drm/nouveau/fb/gp102-: unlock VPR right after devinit
authorBen Skeggs <bskeggs@redhat.com>
Wed, 1 Jun 2022 10:47:52 +0000 (20:47 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 9 Nov 2022 00:44:58 +0000 (10:44 +1000)
commite3f324956a32d08a9361ee1e3beca383f1b01eba
tree23278105005c111ba94796493e74b33242977819
parent5728d064190e169f1a42381bd7e5fc4d411f3188
drm/nouveau/fb/gp102-: unlock VPR right after devinit

Under memory load, instmem allocations could end up in the regions of
VRAM that are inaccessible right after boot, and be corrupted after a
suspend/resume cycle as a result of being restored before booting the
mem unlock firmware.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c