drm/nouveau/core: add SEC2 engine
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 23 Feb 2017 09:41:41 +0000 (18:41 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:13 +0000 (17:05 +1000)
commitb62880f7966781eb0b3b1e50f63d6aac362476d3
tree3db7e7808baadcfbe10d329a9bfd79bfcd4b008e
parent16307b5d720af3fec8d2153a68e23066e20c481f
drm/nouveau/core: add SEC2 engine

SEC2 is the name given by NVIDIA to the SEC engine post-Fermi (reasons
unknown). Even though it shares the same address range as SEC, its usage
is quite different and this justifies a new engine. Add this engine and
make TOP use it all post-TOP devices should use this implementation and
not the older SEC.

Also quickly add the short gp102 implementation which will be used for
falcon booting purposes.

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