]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gicv3-its: Avoid cache flush beyond ITS_BASERn memory size
authorShanker Donthineni <shankerd@codeaurora.org>
Wed, 17 Feb 2016 00:00:36 +0000 (18:00 -0600)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 17 Feb 2016 17:39:05 +0000 (17:39 +0000)
commitda9fb86b515ea487601e2172b2eb5ec3aa814b19
tree8f10172a84f9541be22bf9710f84785a2cfb3cd5
parent0f505df900d12693781d73def643ce90eb19d52a
irqchip/gicv3-its: Avoid cache flush beyond ITS_BASERn memory size

Function its_alloc_tables() maintains two local variables, "order" and
and "alloc_size", to hold memory size that has been allocated to
ITS_BASEn. We don't always refresh the variable alloc_size whenever
value of the variable order changes, causing the following two
problems.

  - Cache flush operation with size more than required.
  - Information reported by pr_info is not correct.

Use a helper macro that converts page order to size in bytes instead of
variable "alloc_size" to fix both the problems.

Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3-its.c