]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gicv3-its: Add workaround for QDF2400 ITS erratum 0065
authorShanker Donthineni <shankerd@codeaurora.org>
Tue, 7 Mar 2017 14:20:38 +0000 (08:20 -0600)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 7 Mar 2017 14:34:27 +0000 (14:34 +0000)
commit65c82ea11d33af58edf6caed558ebc63496b226c
tree5f0f9da3b20bf6b01a1f6f87f25496d62c59676c
parente6fb71fe4e4cc4f384a33e4886ac2a4bd0f3e4a0
irqchip/gicv3-its: Add workaround for QDF2400 ITS erratum 0065

On Qualcomm Datacenter Technologies QDF2400 SoCs, the ITS hardware
implementation uses 16Bytes for Interrupt Translation Entry (ITE),
but reports an incorrect value of 8Bytes in GITS_TYPER.ITTE_size.

It might cause kernel memory corruption depending on the number
of MSI(x) that are configured and the amount of memory that has
been allocated for ITEs in its_create_device().

This patch fixes the potential memory corruption by setting the
correct ITE size to 16Bytes.

Cc: stable@vger.kernel.org
Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Documentation/arm64/silicon-errata.txt
arch/arm64/Kconfig
drivers/irqchip/irq-gic-v3-its.c