drm/nouveau/secboot: check that WPR region is properly set
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 15 Nov 2016 07:26:09 +0000 (16:26 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:12 +0000 (17:05 +1000)
commitfc12745717392b5a4421a72c98cfce2c1f287d70
treeabc27a119cdcd33d9047b84d8c17ca5bd663f488
parent7775d0dcb215ce0eb639940d201fb9f557823bd7
drm/nouveau/secboot: check that WPR region is properly set

The ACR firmware may return no error but fail nonetheless. Such cases
can be detected by verifying that the WPR region has been properly set
in FB. If this is not the case, this is an error, but the unload
firmware should still not be run.

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