]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/gm20b: add dummy PMU device
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 13 Dec 2016 08:11:25 +0000 (17:11 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 17 Feb 2017 05:14:31 +0000 (15:14 +1000)
commit047a70494999664713ec7e94b318afd764227022
tree8d80934773d1c02ff96ea154ea4403bf6270a1ef
parent6f29ae2c2f5d86a3d94b99a2a8af7081491348ed
drm/nouveau/gm20b: add dummy PMU device

Add a dummy PMU device so the PMU falcon is instanciated and can be used
by secure boot.

We could reuse gk20a's implementation here, but it would fight with
secboot over PMU falcon's ownership and secboot will reset the PMU,
preventing it from operating afterwards. Proper handout between secboot
and pmu is coming along with the actual gm20b PMU implementation, so
use this as a temporary solution.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/pmu.h
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/Kbuild
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c [new file with mode: 0644]