linux_dsm_epyc7002/drivers/gpu/drm/nouveau/dispnv04
Lyude Paul eb493fbc15 drm/nouveau: Set DRIVER_ATOMIC cap earlier to fix debugfs
Currently nouveau doesn't actually expose the state debugfs file that's
usually provided for any modesetting driver that supports atomic, even
if nouveau is loaded with atomic=1. This is due to the fact that the
standard debugfs files that DRM creates for atomic drivers is called
when drm_get_pci_dev() is called from nouveau_drm.c. This happens well
before we've initialized the display core, which is currently
responsible for setting the DRIVER_ATOMIC cap.

So, move the atomic option into nouveau_drm.c and just add the
DRIVER_ATOMIC cap whenever it's enabled on the kernel commandline. This
shouldn't cause any actual issues, as the atomic ioctl will still fail
as expected even if the display core doesn't disable it until later in
the init sequence. This also provides the added benefit of being able to
use the state debugfs file to check the current display state even if
clients aren't allowed to modify it through anything other than the
legacy ioctls.

Additionally, disable the DRIVER_ATOMIC cap in nv04's display core, as
this was already disabled there previously.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2018-07-16 17:59:59 +10:00
..
arb.c drm/nouveau: deprecate pci_get_bus_and_slot() 2018-01-11 17:28:14 -06:00
crtc.c drm/nouveau/kms/nv04-nv4x: fix exposed format list 2017-08-22 18:04:35 +10:00
cursor.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dac.c drm/nouveau: allocate device object for every client 2017-02-17 15:15:04 +10:00
dfp.c drm/nouveau: allocate device object for every client 2017-02-17 15:15:04 +10:00
disp.c drm/nouveau: Set DRIVER_ATOMIC cap earlier to fix debugfs 2018-07-16 17:59:59 +10:00
disp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hw.c drm/nouveau: deprecate pci_get_bus_and_slot() 2018-01-11 17:28:14 -06:00
hw.h drm/nouveau: allocate device object for every client 2017-02-17 15:15:04 +10:00
Kbuild drm/nouveau: remove symlinks, move core/ to nvkm/ (no code changes) 2015-01-22 12:15:10 +10:00
nvreg.h
overlay.c drm/nouveau: Replace the iturbt_709 prop with the standard COLOR_ENCODING prop 2018-03-08 18:25:04 +02:00
tvmodesnv17.c drm/nouveau: rename nouveau_drm.h to nouveau_drv.h 2016-05-20 14:43:04 +10:00
tvnv04.c drm/nouveau: allocate device object for every client 2017-02-17 15:15:04 +10:00
tvnv17.c drm/nouveau: allocate device object for every client 2017-02-17 15:15:04 +10:00
tvnv17.h drm/nouveau: allocate device object for every client 2017-02-17 15:15:04 +10:00