]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/devinit/tu102-: wait for GFW_BOOT_PROGRESS == COMPLETED
authorBen Skeggs <bskeggs@redhat.com>
Mon, 30 Jan 2023 22:37:13 +0000 (08:37 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:43 +0000 (12:59 +0100)
commit51a23091cd9843c8b541d8d916c0b77f522f95d9
tree41cdbbad83f4c86db78130f77ab90ec0b109717b
parent96988cd6dede8f15e30a00945e379cab6e2c385e
drm/nouveau/devinit/tu102-: wait for GFW_BOOT_PROGRESS == COMPLETED

[ Upstream commit 9d6ccfc04fdc5f490f50902d5dae9f53163aa358 ]

Starting from Turing, the driver is no longer responsible for initiating
DEVINIT when required as the GPU started loading a FW image from ROM and
executing DEVINIT itself after power-on.

However - we apparently still need to wait for it to complete.

This should correct some issues with runpm on some systems, where we get
control of the HW before it's been fully reinitialised after resume from
suspend.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230130223715.1831509-1-bskeggs@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/tu102.c