summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/i915/gem/i915_gem_mman.c2
-rw-r--r--sys/dev/pci/drm/include/generated/autoconf.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c
index 14daad18e21..2607a4fde21 100644
--- a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c
+++ b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c
@@ -737,11 +737,9 @@ retry:
/* Track the mmo associated with the fenced vma */
vma->mmo = mmo;
-#ifdef notyet
if (IS_ACTIVE(CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND))
intel_wakeref_auto(&i915->ggtt.userfault_wakeref,
msecs_to_jiffies_timeout(CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND));
-#endif
if (write) {
GEM_BUG_ON(!i915_gem_object_has_pinned_pages(obj));
diff --git a/sys/dev/pci/drm/include/generated/autoconf.h b/sys/dev/pci/drm/include/generated/autoconf.h
index 7ef084966ec..51e806128bb 100644
--- a/sys/dev/pci/drm/include/generated/autoconf.h
+++ b/sys/dev/pci/drm/include/generated/autoconf.h
@@ -26,6 +26,7 @@
#define CONFIG_DRM_I915_REQUEST_TIMEOUT 20000 /* ms */
#define CONFIG_DRM_I915_STOP_TIMEOUT 100 /* ms */
#define CONFIG_DRM_I915_FENCE_TIMEOUT 10000 /* ms */
+#define CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND 250 /* ms */
#define CONFIG_DRM_I915_FORCE_PROBE ""
#ifdef __HAVE_ACPI