OSDN Git Service

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)
committerLyude Paul <lyude@redhat.com>
Mon, 30 Jan 2023 23:49:16 +0000 (18:49 -0500)
commitd22915d22ded21fd5b24b60d174775789f173997
treeba18c61ac02e79eb072dea4da00064091e371c34
parentd2ceea0eb6e17bb37d8b85cb4c16797c0d683d1c
drm/nouveau/devinit/tu102-: wait for GFW_BOOT_PROGRESS == COMPLETED

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
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/tu102.c