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)
commit7028156a91326fda29cf972f0d148badbf5ae078
tree8a5c56248f19d20f06c62d49f57d64b60de07e2a
parent954329412ea45ad6b509aa26f1441941fd432823
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
This page took 0.027542 seconds and 5 git commands to generate.