summaryrefslogtreecommitdiff
path: root/include/drm/drm_gem_framebuffer_helper.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2022-02-04 17:18:18 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2022-02-07 12:10:32 +0300
commit15512021eb3975a8c2366e3883337e252bb0eee5 (patch)
treefdd5ad24fdfe320f7592b3c05d388d4b1d54f384 /include/drm/drm_gem_framebuffer_helper.h
parentb3dcc6dc0f32612d04839c2fb32e94d0ebf92c98 (diff)
downloadlinux-15512021eb3975a8c2366e3883337e252bb0eee5.tar.xz
drm/i915: Workaround broken BIOS DBUF configuration on TGL/RKL
On TGL/RKL the BIOS likes to use some kind of bogus DBUF layout that doesn't match what the spec recommends. With a single active pipe that is not going to be a problem, but with multiple pipes active skl_commit_modeset_enables() goes into an infinite loop since it can't figure out any order in which it can commit the pipes without causing DBUF overlaps between the planes. We'd need some kind of extra DBUF defrag stage in between to make the transition possible. But that is clearly way too complex a solution, so in the name of simplicity let's just sanitize the DBUF state by simply turning off all planes when we detect a pipe encroaching on its neighbours' DBUF slices. We only have to disable the primary planes as all other planes should have already been disabled (if they somehow were enabled) by earlier sanitization steps. And for good measure let's also sanitize in case the DBUF allocations of the pipes already seem to overlap each other. Cc: <stable@vger.kernel.org> # v5.14+ Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/4762 Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220204141818.1900-3-ville.syrjala@linux.intel.com Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Diffstat (limited to 'include/drm/drm_gem_framebuffer_helper.h')
0 files changed, 0 insertions, 0 deletions