EDAC, altera: Disable IRQs while injecting SDRAM errors
authorThor Thayer <tthayer@opensource.altera.com>
Wed, 19 Oct 2016 19:53:47 +0000 (14:53 -0500)
committerBorislav Petkov <bp@suse.de>
Sat, 22 Oct 2016 18:14:03 +0000 (20:14 +0200)
commit90e493d7d51c791a2adc2de962cbd5000f1b7460
treeed9242e35ccf6c932f8353744b0818615148d243
parent240ea9214a6042f3807fd09f149d74ae5700e117
EDAC, altera: Disable IRQs while injecting SDRAM errors

Disable IRQs while injecting SDRAM errors. The RT patches exposed
a spinlock deadlock where the spinlock taken for the regmap write
deadlocked with the IRQ clear regmap write.

Error injection is not normally enabled for ECC but only for testing.

Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1476906827-9412-1-git-send-email-tthayer@opensource.altera.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/altera_edac.c