drm/nouveau/secboot: support optional falcons
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 18 Nov 2016 08:47:08 +0000 (17:47 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:12 +0000 (17:05 +1000)
commit7775d0dcb215ce0eb639940d201fb9f557823bd7
treef668fbb1293e8b3635034f303986a5b2b0d12fdf
parentbb5ec9c9dd1cc71bbae37a31229d72ffab9b6df4
drm/nouveau/secboot: support optional falcons

PMU support has been enabled for r352 ACR, but it must remain optional
if we want to preserve existing user-space that do not include it. Allow
ACR to be instanciated with a list of optional LS falcons, that will not
produce a fatal error if their firmware is not loaded. Also change the
secure boot bootstrap logic to be able to fall back to legacy behavior
if it turns out the boot falcon's LS firmware cannot be loaded.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr.h
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c