]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/nouveau/secboot: let callers interpret return value of blobs
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 23 Feb 2017 04:05:27 +0000 (13:05 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:13 +0000 (17:05 +1000)
commitc93cfe35c4da46502ffb0b8a9ded3a1f1a819b9d
tree109194ed46432d0e05da6f071df129188f4682e8
parent7defd1daacef6bfae5387e95bcd7b57c9183aaf7
drm/nouveau/secboot: let callers interpret return value of blobs

Since the HS blobs are provided and signed by NVIDIA, we cannot expect
always-consistent behavior. In this case, on GP10x the unload blob may
return 0x1d even though things have run perfectly well. This behavior
has been confirmed by NVIDIA.

So let the callers of the run_blob() hook receive the blob return's
value (a positive integer) and decide what it means. This allows us to
workaround the 0x1d code instead of issuing an error.

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