mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 23:56:42 +07:00
drm/i915: don't touch the PF regs if the power well is down
This solves some "unclaimed register" messages when booting the machine with eDP attached. V2: Rebase and add the comment requested by Daniel. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
15d199ea1f
commit
f7708f78bd
@ -3599,9 +3599,13 @@ static void haswell_crtc_disable(struct drm_crtc *crtc)
|
|||||||
|
|
||||||
intel_ddi_disable_transcoder_func(dev_priv, cpu_transcoder);
|
intel_ddi_disable_transcoder_func(dev_priv, cpu_transcoder);
|
||||||
|
|
||||||
/* Disable PF */
|
/* XXX: Once we have proper panel fitter state tracking implemented with
|
||||||
I915_WRITE(PF_CTL(pipe), 0);
|
* hardware state read/check support we should switch to only disable
|
||||||
I915_WRITE(PF_WIN_SZ(pipe), 0);
|
* the panel fitter when we know it's used. */
|
||||||
|
if (intel_using_power_well(dev)) {
|
||||||
|
I915_WRITE(PF_CTL(pipe), 0);
|
||||||
|
I915_WRITE(PF_WIN_SZ(pipe), 0);
|
||||||
|
}
|
||||||
|
|
||||||
intel_ddi_disable_pipe_clock(intel_crtc);
|
intel_ddi_disable_pipe_clock(intel_crtc);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user