drm/nouveau/acr: ensure falcon providing acr functions is bootstrapped first
authorBen Skeggs <bskeggs@redhat.com>
Mon, 10 Feb 2020 22:45:04 +0000 (08:45 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 22 May 2020 01:11:15 +0000 (11:11 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/acr/base.c

index 8eb2a93..e4866a0 100644 (file)
@@ -250,6 +250,11 @@ nvkm_acr_oneinit(struct nvkm_subdev *subdev)
                list_add_tail(&lsf->head, &acr->lsf);
        }
 
+       /* Ensure the falcon that'll provide ACR functions is booted first. */
+       lsf = nvkm_acr_falcon(device);
+       if (lsf)
+               list_move(&lsf->head, &acr->lsf);
+
        if (!acr->wpr_fw || acr->wpr_comp)
                wpr_size = acr->func->wpr_layout(acr);