Kconfig.profile 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. config DRM_I915_REQUEST_TIMEOUT
  2. int "Default timeout for requests (ms)"
  3. default 20000 # milliseconds
  4. help
  5. Configures the default timeout after which any user submissions will
  6. be forcefully terminated.
  7. Beware setting this value lower, or close to heartbeat interval
  8. rounded to whole seconds times three, in order to avoid allowing
  9. misbehaving applications causing total rendering failure in unrelated
  10. clients.
  11. May be 0 to disable the timeout.
  12. config DRM_I915_FENCE_TIMEOUT
  13. int "Timeout for unsignaled foreign fences (ms, jiffy granularity)"
  14. default 10000 # milliseconds
  15. help
  16. When listening to a foreign fence, we install a supplementary timer
  17. to ensure that we are always signaled and our userspace is able to
  18. make forward progress. This value specifies the timeout used for an
  19. unsignaled foreign fence.
  20. May be 0 to disable the timeout, and rely on the foreign fence being
  21. eventually signaled.
  22. config DRM_I915_USERFAULT_AUTOSUSPEND
  23. int "Runtime autosuspend delay for userspace GGTT mmaps (ms)"
  24. default 250 # milliseconds
  25. help
  26. On runtime suspend, as we suspend the device, we have to revoke
  27. userspace GGTT mmaps and force userspace to take a pagefault on
  28. their next access. The revocation and subsequent recreation of
  29. the GGTT mmap can be very slow and so we impose a small hysteris
  30. that complements the runtime-pm autosuspend and provides a lower
  31. floor on the autosuspend delay.
  32. May be 0 to disable the extra delay and solely use the device level
  33. runtime pm autosuspend delay tunable.
  34. config DRM_I915_HEARTBEAT_INTERVAL
  35. int "Interval between heartbeat pulses (ms)"
  36. default 2500 # milliseconds
  37. help
  38. The driver sends a periodic heartbeat down all active engines to
  39. check the health of the GPU and undertake regular house-keeping of
  40. internal driver state.
  41. This is adjustable via
  42. /sys/class/drm/card?/engine/*/heartbeat_interval_ms
  43. May be 0 to disable heartbeats and therefore disable automatic GPU
  44. hang detection.
  45. config DRM_I915_PREEMPT_TIMEOUT
  46. int "Preempt timeout (ms, jiffy granularity)"
  47. default 640 # milliseconds
  48. help
  49. How long to wait (in milliseconds) for a preemption event to occur
  50. when submitting a new context via execlists. If the current context
  51. does not hit an arbitration point and yield to HW before the timer
  52. expires, the HW will be reset to allow the more important context
  53. to execute.
  54. This is adjustable via
  55. /sys/class/drm/card?/engine/*/preempt_timeout_ms
  56. May be 0 to disable the timeout.
  57. The compiled in default may get overridden at driver probe time on
  58. certain platforms and certain engines which will be reflected in the
  59. sysfs control.
  60. config DRM_I915_MAX_REQUEST_BUSYWAIT
  61. int "Busywait for request completion limit (ns)"
  62. default 8000 # nanoseconds
  63. help
  64. Before sleeping waiting for a request (GPU operation) to complete,
  65. we may spend some time polling for its completion. As the IRQ may
  66. take a non-negligible time to setup, we do a short spin first to
  67. check if the request will complete in the time it would have taken
  68. us to enable the interrupt.
  69. This is adjustable via
  70. /sys/class/drm/card?/engine/*/max_busywait_duration_ns
  71. May be 0 to disable the initial spin. In practice, we estimate
  72. the cost of enabling the interrupt (if currently disabled) to be
  73. a few microseconds.
  74. config DRM_I915_STOP_TIMEOUT
  75. int "How long to wait for an engine to quiesce gracefully before reset (ms)"
  76. default 100 # milliseconds
  77. help
  78. By stopping submission and sleeping for a short time before resetting
  79. the GPU, we allow the innocent contexts also on the system to quiesce.
  80. It is then less likely for a hanging context to cause collateral
  81. damage as the system is reset in order to recover. The corollary is
  82. that the reset itself may take longer and so be more disruptive to
  83. interactive or low latency workloads.
  84. This is adjustable via
  85. /sys/class/drm/card?/engine/*/stop_timeout_ms
  86. config DRM_I915_TIMESLICE_DURATION
  87. int "Scheduling quantum for userspace batches (ms, jiffy granularity)"
  88. default 1 # milliseconds
  89. help
  90. When two user batches of equal priority are executing, we will
  91. alternate execution of each batch to ensure forward progress of
  92. all users. This is necessary in some cases where there may be
  93. an implicit dependency between those batches that requires
  94. concurrent execution in order for them to proceed, e.g. they
  95. interact with each other via userspace semaphores. Each context
  96. is scheduled for execution for the timeslice duration, before
  97. switching to the next context.
  98. This is adjustable via
  99. /sys/class/drm/card?/engine/*/timeslice_duration_ms
  100. May be 0 to disable timeslicing.