]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/nouveau/kms/nv50-: Limit MST BPC to 8
authorLyude Paul <lyude@redhat.com>
Fri, 15 Nov 2019 21:07:20 +0000 (16:07 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 13:57:36 +0000 (07:57 -0600)
commit2ed318e97e3105625ea651346abc976c855cff1f
treea84fee322fcc06a4061a804d21135863f862fc20
parenta9761ebab0d374e6135e3cf97629db33c7da8f75
drm/nouveau/kms/nv50-: Limit MST BPC to 8

BugLink: https://bugs.launchpad.net/bugs/1858427
commit ae5769d4670982bc483885b120b557a9ffd57527 upstream.

Noticed this while working on some unrelated CRC stuff. Currently,
userspace has very little support for BPCs higher than 8. While this
doesn't matter for most things, on MST topologies we need to be careful
about ensuring that we do our best to make any given display
configuration fit within the bandwidth restraints of the topology, since
otherwise less people's monitor configurations will work.

Allowing for BPC settings higher than 8 dramatically increases the
required bandwidth for displays in most configurations, and consequently
makes it a lot less likely that said display configurations will pass
the atomic check.

In the future we want to fix this correctly by making it so that we
adjust the bpp for each display in a topology to be as high as possible,
while making sure to lower the bpp of each display in the event that we
run out of bandwidth and need to rerun our atomic check. But for now,
follow the behavior that both i915 and amdgpu are sticking to.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Fixes: 232c9eec417a ("drm/nouveau: Use atomic VCPI helpers for MST")
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: David Airlie <airlied@redhat.com>
Cc: Jerry Zuo <Jerry.Zuo@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Juston Li <juston.li@intel.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: <stable@vger.kernel.org> # v5.1+
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c