drm/nouveau/falcon: support for EMEM
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 14 Feb 2017 06:56:10 +0000 (15:56 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:13 +0000 (17:05 +1000)
commit6ac2cc209e0096dabc8e902a8620d45f41b9fc0b
tree1ad51b3563042d5a6cb4130e3b6e7ec058b00c2c
parentcfd044b02873b02236bcd93ff398504d489ddc13
drm/nouveau/falcon: support for EMEM

On SEC, DMEM is unaccessible by the CPU when the falcon is running in LS
mode. This makes communication with the firmware using DMEM impossible.

For this purpose, a new kind of memory (EMEM) has been added. It works
similarly to DMEM, with the difference that its address space starts at
0x1000000. For this reason, it makes sense to treat it like a special
case of DMEM.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h
drivers/gpu/drm/nouveau/nvkm/falcon/base.c
drivers/gpu/drm/nouveau/nvkm/falcon/v1.c