]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/gic-v3-its: Fix ITT_entry_size accessor
authorZenghui Yu <yuzenghui@huawei.com>
Thu, 31 Jan 2019 11:19:43 +0000 (11:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:13 +0000 (14:04 -0700)
commit01fe6b413d552e1db7f90919bda928e0d91fcd8c
tree3560ffe26a5d1fd1f495f8d3df9e1f3f2fc2fe33
parent93b0bd05278fed9297d8119ab3c36774d8abad9e
irqchip/gic-v3-its: Fix ITT_entry_size accessor

[ Upstream commit 56841070ccc87b463ac037d2d1f2beb8e5e35f0c ]

According to ARM IHI 0069C (ID070116), we should use GITS_TYPER's
bits [7:4] as ITT_entry_size instead of [8:4]. Although this is
pretty annoying, it only results in a potential over-allocation
of memory, and nothing bad happens.

Fixes: 3dfa576bfb45 ("irqchip/gic-v3-its: Add probing for VLPI properties")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
[maz: massaged subject and commit message]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/irqchip/arm-gic-v3.h