2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 23:23:55 +08:00
linux-next/drivers/gpu/drm/nouveau/nvkm
Alexandre Courbot a6a0f67ca7 drm/nouveau/devinit/gf100-: detect if BIOS invoked devinit
It is not advisable to perform devinit if it has already been done.
VBIOS will very likely have invoked devinit if the GPU is the primary
graphics device, but there is no accurate way to detect this fact yet.

This patch adds such a method for gf100 and later chips, by means of the
NV_PTOP_SCRATCH1_DEVINIT_COMPLETED bit. This bit is set to 1 by devinit,
and reset to 0 when the GPU is powered.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2016-03-14 10:13:16 +10:00
..
core drm/nouveau/core: add firmware handling functions 2016-03-14 10:11:06 +10:00
engine drm/nouveau: s/gm204/gm200/ in a number of places 2016-03-14 10:13:12 +10:00
subdev drm/nouveau/devinit/gf100-: detect if BIOS invoked devinit 2016-03-14 10:13:16 +10:00
Kbuild