diff options
| author | Serge Semin <[email protected]> | 2020-05-21 00:34:37 +0000 |
|---|---|---|
| committer | Thomas Bogendoerfer <[email protected]> | 2020-05-21 07:06:05 +0000 |
| commit | bbb5946eb545fab8ad8f46bce8a803e1c0c39d47 (patch) | |
| tree | 9f674052c544dabcc939b95fd39ba79ba69629db /arch/mips/mm/sc-mips.c | |
| parent | MIPS: SGI-IP27: Remove not used definition TICK_SIZE in ip27-timer.c (diff) | |
| download | kernel-bbb5946eb545fab8ad8f46bce8a803e1c0c39d47.tar.gz kernel-bbb5946eb545fab8ad8f46bce8a803e1c0c39d47.zip | |
mips: MAAR: Use more precise address mask
Indeed according to the MIPS32 Privileged Resource Architecgture the MAAR
pair register address field either takes [12:31] bits for non-XPA systems
and [12:55] otherwise. In any case the current address mask is just
wrong for 64-bit and 32-bits XPA chips. So lets extend it to 59-bits
of physical address value. This shall cover the 64-bits architecture and
systems with XPA enabled, and won't cause any problem for non-XPA 32-bit
systems, since address values exceeding the architecture specific MAAR
mask will be just truncated with setting zeros in the unsupported upper
bits.
Co-developed-by: Alexey Malahov <[email protected]>
Signed-off-by: Alexey Malahov <[email protected]>
Signed-off-by: Serge Semin <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'arch/mips/mm/sc-mips.c')
0 files changed, 0 insertions, 0 deletions
