]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/i915: don't write PLANE_BUF_CFG twice every time
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 4 Oct 2018 23:15:59 +0000 (16:15 -0700)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 11 Oct 2018 21:23:04 +0000 (14:23 -0700)
commit9e44b180f81bbc69d15807e113675d19bf538c77
treec6dd133b5497efbf88eee82bdcd3112e3be4faaf
parentcbacc79db6ac932f7ac86ff01086302bfb79e5d0
drm/i915: don't write PLANE_BUF_CFG twice every time

We were writing to PLANE_BUF_CFG(pipe, plane_id) twice for every
platform, and we were even using different values on the gen10- planar
case. The first write is useless since it just gets replaced with the
next one, so kill it.

There's a lot to improve in the DDB code, but let's start by avoiding
the double write.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181004231600.14101-6-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/intel_pm.c