OSDN Git Service

drm/i915: Introduce skl_ddb_entry_for_slices()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Jan 2021 20:56:29 +0000 (22:56 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 26 Jan 2021 13:41:18 +0000 (15:41 +0200)
commit96dc6ed879439d6c12fd6c4ec2fbb62dd4e85998
tree8adbebad2b79c443b751e070ff5c8301b223b8f3
parent944a5e3feb8b74cc15652a2196c42b924dce65b1
drm/i915: Introduce skl_ddb_entry_for_slices()

Generalize icl_get_first_dbuf_slice_offset() into something that
just gives us the start+end of the dbuf chunk covered by the
specified slices as a standard ddb entry. Initial idea was to use
it during readout as well, but we shall see.

Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210122205633.18492-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c