Skip to content

Commit

Permalink
drm/i915: Restore default settings for enable_psr and disable_power_w…
Browse files Browse the repository at this point in the history
…ell on FreeBSD

[Why]
They used to be disabled because it broke the console: the display was
not refreshed, except when doing a vt-switch.

With the new vt(4) integration which uses the whole drm_fb_helper code,
this seems to be fixed.

Fixes freebsd#17.
  • Loading branch information
dumbbell committed Nov 24, 2023
1 parent 0e386cd commit a62cd16
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions drivers/gpu/drm/i915/i915_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ struct drm_printer;
*/
#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.
Expand All @@ -71,10 +64,10 @@ struct drm_printer;
param(int, vbt_sdvo_panel_type, -1, 0400) \
param(int, enable_dc, -1, 0400) \
param(int, enable_fbc, -1, 0600) \
param(int, enable_psr, 0, 0600) \
param(int, enable_psr, -1, 0600) \
param(bool, psr_safest_params, false, 0400) \
param(bool, enable_psr2_sel_fetch, true, 0400) \
param(int, disable_power_well, 0, 0400) \
param(int, disable_power_well, -1, 0400) \
param(int, enable_ips, 1, 0600) \
param(int, invert_brightness, 0, 0600) \
param(int, enable_guc, 0, 0400) \
Expand Down

0 comments on commit a62cd16

Please sign in to comment.