From ab28294d6da40251d546279e005f632aee61aa86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Mon, 20 Mar 2023 21:55:21 +0100 Subject: [PATCH] drm/i915: Disable GuC by default on FreeBSD GuC initialization freezes the computer on an Intel 12th gen GPU. It works fine on a 9th gen GPU, but GuC is barely used on this generation. --- drivers/gpu/drm/i915/i915_params.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h index eec2479e3bf..4aff59b26b4 100644 --- a/drivers/gpu/drm/i915/i915_params.h +++ b/drivers/gpu/drm/i915/i915_params.h @@ -49,6 +49,20 @@ struct drm_printer; * mode: debugfs file permissions, one of {0400, 0600, 0}, use 0 to not create * debugfs file */ +#ifdef __FreeBSD__ +/* Changes in default values in I915_PARAMS_FOR_EACH below: + * + * enable_psr: -1 -> 0 + * the console screen doesn't refresh otherwise (the computer remains + * responsive). + * + * disable_power_well: -1 -> 0 + * ? + * + * enable_guc: -1 -> 0 + * GuC initialization freeze the computer. + */ +#endif #define I915_PARAMS_FOR_EACH(param) \ param(char *, vbt_firmware, NULL, 0400) \ param(int, modeset, -1, 0400) \ @@ -63,7 +77,7 @@ struct drm_printer; param(int, disable_power_well, 0, 0400) \ param(int, enable_ips, 1, 0600) \ param(int, invert_brightness, 0, 0600) \ - param(int, enable_guc, -1, 0400) \ + param(int, enable_guc, 0, 0400) \ param(int, guc_log_level, -1, 0400) \ param(char *, guc_firmware_path, NULL, 0400) \ param(char *, huc_firmware_path, NULL, 0400) \