Machine Check Exceptions
Christophe Leroy
christophe.leroy at c-s.fr
Mon Apr 29 16:10:01 AEST 2019
Hi Pablo,
I know nothing about mce-inject.
The driver I wrote that you are referring to is to handle the watchdog
in e300 powerpc core. This is because the e300 gererates a machine check
on expiry when the watchdog is configured in NMI mode.
Therefore, triggering the machine check is rather easy in that case, I
just have to stop refreshing the watchdog.
Christophe
Le 25/04/2019 à 17:35, Rodriguez Quesada, Pablo a écrit :
> Hi Christopher,
>
> I am trying to create a custom handler for MCE, but I don't have a way to trigger it (Or don't know how)
>
> Therefore I looked at the mce-inject tool(**) and compile it for PPC but the path "/sys/devices/system/machine check/machinecheck0" doesn't exist unlike Intel architecture and the app fails. I want to fix it.
>
> My question is: Do you know if there is a way to inject an MCE on PowerPC? Or can you guide me on how to start my research about it. I find it very difficult to search for PPC documentation. That is why I am writing to you, to get any tips for developing a mce-inject for PPC. And of course, I would be more than glad to contribute to the OpenSource community.
>
> Also, how did you test your handler? Do you have an easy mechanism to trigger the exceptions?
>
> Thank you,
> Pablo
>
> (**) https://github.com/andikleen/mce-inject/
>
>
>
> -----Original Message-----
> From: Christophe Leroy <christophe.leroy at c-s.fr>
> Sent: Wednesday, April 24, 2019 11:07 PM
> To: Rodriguez Quesada, Pablo <Pablo.Rodriguez-Quesada at windriver.com>
> Subject: Re: Machine Check Exceptions
>
> Hi Pablo,
>
> No problem
>
> Christophe
>
>
> Le 24/04/2019 à 21:33, Rodriguez Quesada, Pablo a écrit :
>> Hi Cristopher,
>>
>> Hope you are doing good!
>>
>> I am learning about Machine Check Exceptions on PPC, and I found this
>> commit of yours:
>>
>> https://github.com/torvalds/linux/commit/0deae39cec6dab3a66794f3e9e83c
>> a4dc30080f1
>>
>> Would you mind if I ask you a couple of questions?
>>
>> Thank you,
>>
>> WR logo signiture <http://www.windriver.com/>
>>
>>
>>
>> *Pablo Rodriguez*, Intern, Wind River Costa Rica
>>
More information about the Linuxppc-dev
mailing list