]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit6aecc0427046b7cc0aa874ab27e5dfa1dad922d4
treeb791522c3a3f298595f8957ab728e88ecd363331
parent8aaa44ddc05727f37289e53b7ce1200ddc676458
irqchip/gic-v3-its: Fix ITT_entry_size accessor

BugLink: https://bugs.launchpad.net/bugs/1837813
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/irqchip/arm-gic-v3.h