diff options
author | Vladimir Murzin <vladimir.murzin@arm.com> | 2016-10-17 17:00:46 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-10-17 17:26:29 +0200 |
commit | 9224eb77e63f70f16c0b6b7a20ca7d395f3bc077 (patch) | |
tree | c50c377579d1c6c7170b747b18727a392a232654 /include | |
parent | irqchip/gic-v3-its: Fix 64bit GIC{R,ITS}_TYPER accesses (diff) | |
download | linux-9224eb77e63f70f16c0b6b7a20ca7d395f3bc077.tar.xz linux-9224eb77e63f70f16c0b6b7a20ca7d395f3bc077.zip |
irqchip/gic-v3-its: Fix entry size mask for GITS_BASER
Entry Size in GITS_BASER<n> occupies 5 bits [52:48], but we mask out 8
bits.
Fixes: cc2d3216f53c ("irqchip: GICv3: ITS command queue")
Cc: stable@vger.kernel.org
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/irqchip/arm-gic-v3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/irqchip/arm-gic-v3.h b/include/linux/irqchip/arm-gic-v3.h index 8361c8d3edd1..b7e34313cdfe 100644 --- a/include/linux/irqchip/arm-gic-v3.h +++ b/include/linux/irqchip/arm-gic-v3.h @@ -290,7 +290,7 @@ #define GITS_BASER_TYPE_SHIFT (56) #define GITS_BASER_TYPE(r) (((r) >> GITS_BASER_TYPE_SHIFT) & 7) #define GITS_BASER_ENTRY_SIZE_SHIFT (48) -#define GITS_BASER_ENTRY_SIZE(r) ((((r) >> GITS_BASER_ENTRY_SIZE_SHIFT) & 0xff) + 1) +#define GITS_BASER_ENTRY_SIZE(r) ((((r) >> GITS_BASER_ENTRY_SIZE_SHIFT) & 0x1f) + 1) #define GITS_BASER_SHAREABILITY_SHIFT (10) #define GITS_BASER_InnerShareable \ GIC_BASER_SHAREABILITY(GITS_BASER, InnerShareable) |