]> git.baikalelectronics.ru Git - 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)
commit09a618bc549ca584647495433a8af9d6d90329c5
treec6dd133b5497efbf88eee82bdcd3112e3be4faaf
parent2925c9a171f0c4bdda7fc2796527aaef7fc79f5c
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