summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_atomic_plane.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2023-03-01 14:29:43 +0200
committerJani Nikula <jani.nikula@intel.com>2023-03-06 19:09:47 +0200
commite81a3c12b88ab685ce10482c3f6d5aa46f08a6fa (patch)
treef36cb5d8376121a70b96ca58ad4c8ede83dc74f9 /drivers/gpu/drm/i915/display/intel_atomic_plane.c
parent1b28c1c789d0c11be213bb5d892f9a094ab8e201 (diff)
downloadlinux-e81a3c12b88ab685ce10482c3f6d5aa46f08a6fa.tar.gz
linux-e81a3c12b88ab685ce10482c3f6d5aa46f08a6fa.tar.bz2
linux-e81a3c12b88ab685ce10482c3f6d5aa46f08a6fa.zip
drm/i915/dmc: allocate dmc structure dynamically
sizeof(struct intel_dmc) > 1024 bytes, allocated on all platforms as part of struct drm_i915_private, whether they have DMC or not. Allocate struct intel_dmc dynamically, and hide all the dmc details behind an opaque pointer in intel_dmc.c. Care must be taken to take into account all cases: DMC not supported on the platform, DMC supported but not initialized, and DMC initialized but not loaded. For the second case, we need to move the wakeref out of struct intel_dmc. v2: - Rebase to kzalloc dmc after runtime pm get (Imre) Cc: Imre Deak <imre.deak@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230301122944.1298929-4-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_atomic_plane.c')
0 files changed, 0 insertions, 0 deletions