]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Deal with cpp==8 for g4x watermarks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 3 Jul 2019 20:08:22 +0000 (23:08 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Jul 2019 10:14:05 +0000 (13:14 +0300)
commitb6e05b7993d696395777c258a73e170d258d0c84
tree3b1f8748037ad17a9fa527e7a231692a3e098bbb
parent7fec3c61a32f079aa89ca0826b7364e41ad9eb56
drm/i915: Deal with cpp==8 for g4x watermarks

Docs tell us that on g4x we have to compute the SR watermarks
using 4 bytes per pixel. I'm going to assume that only applies
to 1 and 2 byte per pixel formats, and not 8 byte per pixel
formats. That seems like a recipe for an insufficient watermark
which could lead to underruns. Use the maximum of the two numbers
instead.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190703200824.5971-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c