All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Machine Check Exceptions
       [not found]   ` <0CDD4071D6ACF54ABB9CF1A6D90375A809B91C51@ALA-MBD.corp.ad.wrs.com>
@ 2019-04-29  6:10     ` Christophe Leroy
  2019-04-30  0:49       ` Rodriguez Quesada, Pablo
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Leroy @ 2019-04-29  6:10 UTC (permalink / raw)
  To: Rodriguez Quesada, Pablo; +Cc: linuxppc-dev

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@c-s.fr>
> Sent: Wednesday, April 24, 2019 11:07 PM
> To: Rodriguez Quesada, Pablo <Pablo.Rodriguez-Quesada@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
>>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Machine Check Exceptions
  2019-04-29  6:10     ` Machine Check Exceptions Christophe Leroy
@ 2019-04-30  0:49       ` Rodriguez Quesada, Pablo
  0 siblings, 0 replies; 2+ messages in thread
From: Rodriguez Quesada, Pablo @ 2019-04-30  0:49 UTC (permalink / raw)
  To: Christophe Leroy; +Cc: linuxppc-dev

Hi Christophe,

I will try with the NMI approach. Just one question: 

>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.

By NMI mode do you mean enabling the CONFIG_HAVE_NMI_WATCHDOG symbol on the .config?


Thank you,
Pablo

-----Original Message-----
From: Christophe Leroy <christophe.leroy@c-s.fr> 
Sent: Monday, April 29, 2019 12:10 AM
To: Rodriguez Quesada, Pablo <Pablo.Rodriguez-Quesada@windriver.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: Machine Check Exceptions

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@c-s.fr>
> Sent: Wednesday, April 24, 2019 11:07 PM
> To: Rodriguez Quesada, Pablo <Pablo.Rodriguez-Quesada@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/0deae39cec6dab3a66794f3e9e83
>> c
>> 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
>>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-30  3:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <0CDD4071D6ACF54ABB9CF1A6D90375A809B91A41@ALA-MBD.corp.ad.wrs.com>
     [not found] ` <64209dd1-7cce-4061-1139-15e7ef394e66@c-s.fr>
     [not found]   ` <0CDD4071D6ACF54ABB9CF1A6D90375A809B91C51@ALA-MBD.corp.ad.wrs.com>
2019-04-29  6:10     ` Machine Check Exceptions Christophe Leroy
2019-04-30  0:49       ` Rodriguez Quesada, Pablo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.