drm/nouveau/secboot: base support for PMU falcon
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 27 Oct 2016 05:24:34 +0000 (14:24 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:12 +0000 (17:05 +1000)
commit7579e22f38ffe0acf0c4daea0932847023450ac7
tree11d89269136c6c64391d098d956d198c2bf22b33
parenteabe4ea6a418a60b4df666154f2b0d8cd7d5ba29
drm/nouveau/secboot: base support for PMU falcon

Adapt secboot's behavior if a PMU firmware is present, in particular
the way LS falcons are reset. Without PMU firmware, secboot needs to be
performed again from scratch so all LS falcons are reset. With PMU
firmware, we can ask the PMU's ACR unit to reset a specific falcon
through a PMU message.

As we must preserve the old behavior to avoid breaking user-space, add a
few conditionals to the way falcons are reset.

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