stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqchip/gic-v3-its: Fix entry size mask for GITS_BASER
@ 2016-10-26  9:27 Marc Zyngier
  2016-10-26  9:38 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Zyngier @ 2016-10-26  9:27 UTC (permalink / raw)
  To: stable; +Cc: Vladimir Murzin

From: Vladimir Murzin <vladimir.murzin@arm.com>

4.4 port, original commit 9224eb77e63f70f16c0b6b7a20ca7d395f3bc077

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>
---
 include/linux/irqchip/arm-gic-v3.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/irqchip/arm-gic-v3.h b/include/linux/irqchip/arm-gic-v3.h
index e984250..54048f3 100644
--- a/include/linux/irqchip/arm-gic-v3.h
+++ b/include/linux/irqchip/arm-gic-v3.h
@@ -218,7 +218,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_NonShareable		(0UL << 10)
 #define GITS_BASER_InnerShareable	(1UL << 10)
 #define GITS_BASER_OuterShareable	(2UL << 10)
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] irqchip/gic-v3-its: Fix entry size mask for GITS_BASER
  2016-10-26  9:27 [PATCH] irqchip/gic-v3-its: Fix entry size mask for GITS_BASER Marc Zyngier
@ 2016-10-26  9:38 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2016-10-26  9:38 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: stable, Vladimir Murzin

On Wed, Oct 26, 2016 at 10:27:21AM +0100, Marc Zyngier wrote:
> From: Vladimir Murzin <vladimir.murzin@arm.com>
> 
> 4.4 port, original commit 9224eb77e63f70f16c0b6b7a20ca7d395f3bc077

Thanks, now queued up.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-26  9:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-26  9:27 [PATCH] irqchip/gic-v3-its: Fix entry size mask for GITS_BASER Marc Zyngier
2016-10-26  9:38 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).