Patch for i915 module load parameter to igore edp bpp value
Subsystems (2)
Patch against Linus' latest git, fixing bug 59841 reported at https://bugzilla.kernel.org/show_bug.cgi?id=59841 for the cases where a quirk has not been added to the kernel for specific hardware.
At least one Intel HD Graphics 4000 PCI display controller hardware with PCI id 0x0166 appears to return an incorrect edp bpp value 18 instead of the correct 24. This patch allows user to set a flag at module load time to ignore the incorrect edp bpp value.
Correction to previous patch notes: the edp bpp value returned is 18, not 16 as erroneusly claimed in previous patch (quirking the feature).
Date: Sat, 7 Sep 2013 13:17:59 +0300
Subject: [PATCH] i915: add module load parameter to ignore incorrect edp_bpp
value
Signed-off-by Jyrki Kuoppala <[email protected]>
--- drivers/gpu/drm/i915/i915_drv.c | 4 ++++ drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_dp.c | 1 + 3 files changed, 6 insertions(+)
drivers/gpu/drm/i915/i915_drv.c +4 -0
@@ -136,6 +136,10 @@ int i915_enable_ips __read_mostly = 1;module_param_named (enable_ips, i915_enable_ips, int,0600 );MODULE_PARM_DESC (enable_ips,"Enable IPS (default: true)" ); +bool i915_ignore_edp_bpp__read_mostly ; +module_param_named (i915_ignore_edp_bpp, i915_ignore_edp_bpp, bool,0600 ); +MODULE_PARM_DESC (i915_ignore_edp_bpp,"Ignore BDB edp BPP value (default: false)" ); +bool i915_fastboot__read_mostly =0 ;module_param_named (fastboot, i915_fastboot, bool,0600 ); MODULE_PARM_DESC(fastboot, "Try to skip unnecessary mode sets at boot
time "
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -1707,6 +1707,7 @@ extern int i915_enable_psr __read_mostly;extern unsigned int i915_preliminary_hw_support__read_mostly ;extern int i915_disable_power_well__read_mostly ;extern int i915_enable_ips__read_mostly ; +extern bool i915_ignore_edp_bpp__read_mostly ;extern bool i915_fastboot__read_mostly ;extern int i915_enable_pc8__read_mostly ;extern int i915_pc8_timeout__read_mostly ;
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -732,6 +732,7 @@ intel_dp_compute_config(struct intel_encoder *encoder,* bpc in between. */ bpp = pipe_config->pipe_bpp;if (is_edp (intel_dp) && dev_priv->vbt.edp_bpp + && !i915_ignore_edp_bpp && !(dev_priv->quirks &QUIRK_IGNORE_EDP_BPP )) {DRM_DEBUG_KMS ("clamping bpp for eDP panel to BIOS-provided %i\n" , dev_priv->vbt.edp_bpp);
Signature · 1 line
1.8.1.2