Giter Site home page Giter Site logo

drm_sched_test's Introduction

Linux DRM Scheduler Selftest

Linux DRM sched_test Driver

sched_test is a simple DRM driver which exposes a RENDER interface with ioctls to submit (DRM_IOCTL_SCHED_TEST_SUBMIT) a dummy task and wait (DRM_IOCTL_SCHED_TEST_WAIT) for the completion of the sumitted dummy task. The driver uses a dedicated kernel thread to emulate a real HW queue. The DRM scheduler instantiated by this driver submits jobs to this emulated HW queue and waits for completion notification from the emulated HW thread. The emulated HW thread treats the sumitted dummy task as a NOP and tries to immediately complete the task by notifying the scheduler of completion.

Building the driver

cd drm_sched_test
make

Test Applications

There are currently two tests: test1 and test2

Building the Test Applications

cd drm_sched_test/test
make

Running the Test Applications

cd drm_sched_test
make run

Benchmarking the Scheduler

The tests print throughput numbers as IOPS. Run the tests with large iteration loops like this

cd drm_sched_test
make
./test1 -c 1000000
./test2 -c 1000000

drm_sched_test's People

Contributors

sonals avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.