OSDN Git Service

drm/i915: Move FBC init and cleanup calls to modeset functions
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 8 Nov 2018 00:16:45 +0000 (16:16 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 9 Nov 2018 01:09:17 +0000 (17:09 -0800)
commitacde44b5008671b06a8a1c7c6443b9f54ef4be03
treede94e4333cbdca1422ce886f39d4bf5035ced051
parent8d3bf1a3959f456d12f9b78dd8a666afd1057b58
drm/i915: Move FBC init and cleanup calls to modeset functions

Although FBC helps save power it do not belongs to power management
also the cleanup was placed in i915_driver_unload() also not a good
place. intel_modeset_init()/intel_modeset_cleanup() are better places
also this will help make easy disable features that depends in
display being enabled in driver.

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181108001647.11276-2-jose.souza@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_pm.c