]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Generalize skl_ddb_allocation_overlaps()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 1 Nov 2018 15:05:59 +0000 (17:05 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 9 Nov 2018 17:13:44 +0000 (19:13 +0200)
commitb5d66863108f716a38a98cdea20275a054c6b352
tree0b5330558201f2f5b6135d1b996fdbc3b37246e9
parent8af15d413954d5ffdf518515513fe500696af51f
drm/i915: Generalize skl_ddb_allocation_overlaps()

Make skl_ddb_allocation_overlaps() useful for other callers
besides skl_update_crtcs(). We'll need it to do plane updates
as well.

And while we're here we can reduce the stack utilization a
bit by noting that each struct skl_ddb_entry is 4 bytes whereas
a pointer to one is 8 bytes (on 64bit). So we'll switch to an
array of structs from the array of pointers we used before.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181101150605.18235-9-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c