Re: [PATCH v5] powerpc/mce: Avoid using irq_work_queue() in realmode

2022-03-08 Thread Michael Ellerman
On Thu, 20 Jan 2022 17:49:31 +0530, Ganesh Goudar wrote: > In realmode mce handler we use irq_work_queue() to defer > the processing of mce events, irq_work_queue() can only > be called when translation is enabled because it touches > memory outside RMA, hence we enable translation before >

[PATCH v5] powerpc/mce: Avoid using irq_work_queue() in realmode

2022-01-20 Thread Ganesh Goudar
In realmode mce handler we use irq_work_queue() to defer the processing of mce events, irq_work_queue() can only be called when translation is enabled because it touches memory outside RMA, hence we enable translation before calling irq_work_queue and disable on return, though it is not safe to do