OSDN Git Service

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)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 31 Jan 2019 12:51:33 +0000 (12:51 +0000)
commit56841070ccc87b463ac037d2d1f2beb8e5e35f0c
treef2327f17144c5d83b36bdb413443a4c798bae696
parent2380a22b60ce6f995eac806e69c66e397b59d045
irqchip/gic-v3-its: Fix ITT_entry_size accessor

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>
include/linux/irqchip/arm-gic-v3.h