drm/i915: Handle changing enable_fbc parameter at runtime better.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 5 Mar 2018 12:36:08 +0000 (13:36 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 7 Mar 2018 09:15:44 +0000 (10:15 +0100)
commit949f7c7d5fc4277e1ca91dbee32ceb469bbb1349
treef3dae3cb3a81d55c7b3203ee8d9b356fc788b4a1
parentedb2e5301c4489d8c99b0f3d86a074df27f6f8ff
drm/i915: Handle changing enable_fbc parameter at runtime better.

If i915.enable_fbc is cleared at runtime, but FBC was previously enabled
then we don't disable FBC until the next time the crtc is disabled.

Make sure that if the module param is changed, we disable FBC in
intel_fbc_post_update so we never have to worry about disabling.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180305123608.20665-1-maarten.lankhorst@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_fbc.c