diff options
Diffstat (limited to 'SOURCES/0002-drm-i915-add-kernel-parameter-to-disable-async-page-.patch')
-rw-r--r-- | SOURCES/0002-drm-i915-add-kernel-parameter-to-disable-async-page-.patch | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/SOURCES/0002-drm-i915-add-kernel-parameter-to-disable-async-page-.patch b/SOURCES/0002-drm-i915-add-kernel-parameter-to-disable-async-page-.patch index b91bf1a..a6c9f38 100644 --- a/SOURCES/0002-drm-i915-add-kernel-parameter-to-disable-async-page-.patch +++ b/SOURCES/0002-drm-i915-add-kernel-parameter-to-disable-async-page-.patch @@ -28,31 +28,29 @@ diff --git a/drivers/gpu/drm/i915/i915_params.c b/drivers/gpu/drm/i915/i915_para index de43048543e8..2c6fe740609e 100644 --- a/drivers/gpu/drm/i915/i915_params.c +++ b/drivers/gpu/drm/i915/i915_params.c -@@ -134,6 +134,10 @@ i915_param_named_unsafe(lmem_size, uint, 0400, +@@ -130,6 +130,10 @@ + "Set the lmem size(in MiB) for each region. (default: 0, all memory)"); i915_param_named_unsafe(lmem_bar_size, uint, 0400, "Set the lmem bar size(in MiB)."); - ++ +i915_param_named_unsafe(disable_async_page_flip, bool, 0400, + "Disable async page flipping" + "(0=disabled [default], 1=enabled)"); -+ - static void _param_print_bool(struct drm_printer *p, const char *name, - bool val) - { + + #if IS_ENABLED(CONFIG_DRM_I915_REPLAY_GPU_HANGS_API) + i915_param_named(enable_debug_only_api, bool, 0400, diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h index 1315d7fac850..53d47b1ef79e 100644 --- a/drivers/gpu/drm/i915/i915_params.h +++ b/drivers/gpu/drm/i915/i915_params.h -@@ -64,7 +64,8 @@ struct drm_printer; - /* leave bools at the end to not create holes */ \ +@@ -64,6 +64,7 @@ param(bool, enable_hangcheck, true, 0600) \ param(bool, error_capture, true, IS_ENABLED(CONFIG_DRM_I915_CAPTURE_ERROR) ? 0600 : 0) \ -- param(bool, enable_gvt, false, IS_ENABLED(CONFIG_DRM_I915_GVT) ? 0400 : 0) -+ param(bool, enable_gvt, false, IS_ENABLED(CONFIG_DRM_I915_GVT) ? 0400 : 0) \ -+ param(bool, disable_async_page_flip, false, 0400) + param(bool, enable_gvt, false, IS_ENABLED(CONFIG_DRM_I915_GVT) ? 0400 : 0) \ ++ param(bool, disable_async_page_flip, false, 0400) \ + param(bool, enable_debug_only_api, false, IS_ENABLED(CONFIG_DRM_I915_REPLAY_GPU_HANGS_API) ? 0400 : 0) #define MEMBER(T, member, ...) T member; - struct i915_params { diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index e8491979a6f2..4682970746c3 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h |