]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/dsb: Avoid reads of the DSB buffer for indexed register writes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2024 17:04:03 +0000 (20:04 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 3 Oct 2024 21:32:50 +0000 (00:32 +0300)
commit0e94059113f615af15ce0cb2e56908f7f42ffcc2
tree13c80b42bfd7abf291ec75a69d240af17b21c93a
parentde0cbc741818460f6da2a70a0f9edbff61f53e86
drm/i915/dsb: Avoid reads of the DSB buffer for indexed register writes

Reading from the DSB command buffer might be somewhat expensive on
discrete GPUs because the buffer resides in GPU local memory. Avoid
such reads in the indexed register write handling by tracking the
previous instruction in intel_dsb.

TODO: actually measure this

Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240930170415.23841-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_dsb.c