]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Frob the correct crtc state in intel_crtc_disable_noatomic()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 5 Nov 2019 17:14:46 +0000 (19:14 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 6 Nov 2019 13:41:05 +0000 (15:41 +0200)
commit1e460bf9eaa59047183689ac28a772147eb747c9
tree8acd2dd977ed064cd72879640c79056edb5f57c0
parentbee0a70a9eab27061dd0346dd0df09e6c2e8caa2
drm/i915: Frob the correct crtc state in intel_crtc_disable_noatomic()

The uapi vs. hw state split introduced a bug in
intel_crtc_disable_noatomic() where it's now frobbing an already
freed temp crtc state instead of adjusting the crtc state we
are really left with. Fix that by making a cleaner separation
beteen the two.

This causes explosions on any machine that boots up with pipes
already running but not hooked up to any encoder (typical
behaviour for gen2-4 VBIOS).

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 58d124ea2739 ("drm/i915: Complete crtc hw/uapi split, v6.")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191105171447.22111-1-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/display/intel_display.c