]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Fix XSCOM address mangling for form 1 indirect
authorMichael Neuling <mikey@neuling.org>
Fri, 24 Mar 2017 10:20:56 +0000 (21:20 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Mar 2017 23:52:03 +0000 (10:52 +1100)
commit3cb24770d90b86d6eaa36a14db039a5a12df14c5
treed25bc3ab29f42b018b0662563e54754271e9f603
parent7b7b5113ae27d2a4eac247989c0659dca464fbc6
powerpc/powernv: Fix XSCOM address mangling for form 1 indirect

POWER9 adds form 1 scoms. The form of the indirection is specified in
the top nibble of the scom address.

Currently we do some (ugly) bit mangling so that we can fit a 64 bit
scom address into the debugfs interface. The current code only shifts
the top bit (indirect bit).

This patch changes it to shift the whole top nibble so that the form
of the indirection is also shifted.

This patch is backwards compatible with older scoms.

(This change isn't required in the arch/powerpc/platforms/powernv/opal-prd.c
scom interface as it passes the whole 64bit scom address without any bit
mangling)

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-xscom.c