irqchip: mips-gic: SYNC after enabling GIC region

A SYNC is required between enabling the GIC region and actually trying
to use it, even if the first access is a read, otherwise its possible
depending on the timing (and in my case depending on the precise
alignment of certain kernel code) to hit CM bus errors on that first

Add the SYNC straight after setting the GIC base.

  Changes later in this series increase our likelihood of hitting this
  by reducing the amount of code that runs between enabling the GIC &
  accessing it.]

Fixes: a7057270c280 ("irqchip: mips-gic: Add device-tree support")
Signed-off-by: James Hogan <>
Signed-off-by: Paul Burton <>
Acked-by: Marc Zyngier <>
Cc: Thomas Gleixner <>
Cc: Jason Cooper <>
Cc: James Hogan <>
Cc: <> # 3.19.x-
Signed-off-by: Ralf Baechle <>
1 file changed