]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/gr/gf100-: split out per-gpc address calculation macro
authorBen Skeggs <bskeggs@redhat.com>
Sun, 22 Nov 2015 19:24:32 +0000 (05:24 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 25 Nov 2015 05:31:21 +0000 (15:31 +1000)
commit3b2818efdbf8a41b3ce49a9708e2475639dad2ca
tree8a5c56248f19d20f06c62d49f57d64b60de07e2a
parentb2602d4560b4f571de8a44270c18456ee4a46a8d
drm/nouveau/gr/gf100-: split out per-gpc address calculation macro

There's a few places where we need to access a GPC register from ucode,
but outside of the falcon's io address space.  To do this we need to
calculate the offset based on which GPC we're executing on.

This used to be done manually, but we've since found a "base" offset
that can be added by the hardware.  To use this, an extra bit needs to
be set in the register address, which is what this macro achieves.

There should be no functional change from this commit.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/gpc.fuc
drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/gpcgm107.fuc5.h