]> git.baikalelectronics.ru Git - kernel.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)
commitbc2ea72051f965ff05dfa4f28c43b3693d221844
tree109194ed46432d0e05da6f071df129188f4682e8
parent4e1638b32fa6f1c10a70b350721cb3646c2f663e
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