https://github.com/torvalds/linux
Revision 7028156a91326fda29cf972f0d148badbf5ae078 authored by Ben Skeggs on 22 November 2015, 19:24:32 UTC, committed by Ben Skeggs on 25 November 2015, 05:31:21 UTC
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>
1 parent 9543294
History
Tip revision: 7028156a91326fda29cf972f0d148badbf5ae078 authored by Ben Skeggs on 22 November 2015, 19:24:32 UTC
drm/nouveau/gr/gf100-: split out per-gpc address calculation macro
Tip revision: 7028156

back to top