Skip to content

Commit

Permalink
drm/i915: Disable GuC by default on FreeBSD
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dumbbell committed Mar 20, 2023
1 parent 9b0a547 commit ab28294
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion drivers/gpu/drm/i915/i915_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand All @@ -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) \
Expand Down

0 comments on commit ab28294

Please sign in to comment.