OSDN Git Service

net: ipa: don't define unneeded GSI register offsets
authorAlex Elder <elder@linaro.org>
Sat, 10 Sep 2022 01:11:26 +0000 (20:11 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 14:45:46 +0000 (07:45 -0700)
commit5ea4285829de7aa823d60d7338668fb821bb1753
tree9faa57fd4ac94fe0d58c3a0041210819d4334064
parent01544a272bbd1fbf1d2510e575fc494a80994948
net: ipa: don't define unneeded GSI register offsets

Each GSI execution environment (EE) is able to access many of the
GSI registers associated with the other EEs.  A block of GSI
registers is contained within a region of memory, and an EE's
register offset can be determined by adding the register's base
offset to the product of the EE ID and a fixed constant.

Despite this possibility, the AP IPA code *never* accesses any GSI
registers other than its own.  So there's no need to define the
macros that compute register offsets for other EEs.

Redefine the AP access macros to compute the offset the way the more
general "any EE" macro would, and get rid of the unneeded macros.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/gsi_reg.h