Kconfig.profile 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. If the current context does not hit
  51. an arbitration point and yield to HW before the timer expires, the
  52. HW will be reset to allow the more important context to execute.
  53. This is adjustable via
  54. /sys/class/drm/card?/engine/*/preempt_timeout_ms
  55. May be 0 to disable the timeout.
  56. The compiled in default may get overridden at driver probe time on
  57. certain platforms and certain engines which will be reflected in the
  58. sysfs control.
  59. config DRM_I915_PREEMPT_TIMEOUT_COMPUTE
  60. int "Preempt timeout for compute engines (ms, jiffy granularity)"
  61. default 7500 # milliseconds
  62. help
  63. How long to wait (in milliseconds) for a preemption event to occur
  64. when submitting a new context to a compute capable engine. If the
  65. current context does not hit an arbitration point and yield to HW
  66. before the timer expires, the HW will be reset to allow the more
  67. important context to execute.
  68. This is adjustable via
  69. /sys/class/drm/card?/engine/*/preempt_timeout_ms
  70. May be 0 to disable the timeout.
  71. The compiled in default may get overridden at driver probe time on
  72. certain platforms and certain engines which will be reflected in the
  73. sysfs control.
  74. config DRM_I915_MAX_REQUEST_BUSYWAIT
  75. int "Busywait for request completion limit (ns)"
  76. default 8000 # nanoseconds
  77. help
  78. Before sleeping waiting for a request (GPU operation) to complete,
  79. we may spend some time polling for its completion. As the IRQ may
  80. take a non-negligible time to setup, we do a short spin first to
  81. check if the request will complete in the time it would have taken
  82. us to enable the interrupt.
  83. This is adjustable via
  84. /sys/class/drm/card?/engine/*/max_busywait_duration_ns
  85. May be 0 to disable the initial spin. In practice, we estimate
  86. the cost of enabling the interrupt (if currently disabled) to be
  87. a few microseconds.
  88. config DRM_I915_STOP_TIMEOUT
  89. int "How long to wait for an engine to quiesce gracefully before reset (ms)"
  90. default 100 # milliseconds
  91. help
  92. By stopping submission and sleeping for a short time before resetting
  93. the GPU, we allow the innocent contexts also on the system to quiesce.
  94. It is then less likely for a hanging context to cause collateral
  95. damage as the system is reset in order to recover. The corollary is
  96. that the reset itself may take longer and so be more disruptive to
  97. interactive or low latency workloads.
  98. This is adjustable via
  99. /sys/class/drm/card?/engine/*/stop_timeout_ms
  100. config DRM_I915_TIMESLICE_DURATION
  101. int "Scheduling quantum for userspace batches (ms, jiffy granularity)"
  102. default 1 # milliseconds
  103. help
  104. When two user batches of equal priority are executing, we will
  105. alternate execution of each batch to ensure forward progress of
  106. all users. This is necessary in some cases where there may be
  107. an implicit dependency between those batches that requires
  108. concurrent execution in order for them to proceed, e.g. they
  109. interact with each other via userspace semaphores. Each context
  110. is scheduled for execution for the timeslice duration, before
  111. switching to the next context.
  112. This is adjustable via
  113. /sys/class/drm/card?/engine/*/timeslice_duration_ms
  114. May be 0 to disable timeslicing.