[PATCH v4 0/2] x86/mce: Handle error injection failure in mce-inject module

Smita Koralahalli posted 2 patches 4 years, 4 months ago
There is a newer version of this series
arch/x86/kernel/cpu/mce/core.c   |  1 +
arch/x86/kernel/cpu/mce/inject.c | 42 +++++++++++++++++++++++++++++---
2 files changed, 39 insertions(+), 4 deletions(-)
[PATCH v4 0/2] x86/mce: Handle error injection failure in mce-inject module
Posted by Smita Koralahalli 4 years, 4 months ago
This set of patches handles a scenario where error injection fails silently
on mce-inject module and returns appropriate error code to userspace.

Error injection fails if the platform enforces write ignored behavior on
status registers and the first patch checks for writes ignored from
MCA_STATUS register and returns appropriate error code to user.

The second patch assigns and returns the error code to userspace when none
of the CPUs are online.

Smita Koralahalli (2):
  x86/mce: Check for writes ignored in MCA_STATUS register
  x86/mce/mce-inject: Return appropriate error code if CPUs are offline

 arch/x86/kernel/cpu/mce/core.c   |  1 +
 arch/x86/kernel/cpu/mce/inject.c | 42 +++++++++++++++++++++++++++++---
 2 files changed, 39 insertions(+), 4 deletions(-)

-- 
2.17.1

Re: [PATCH v4 0/2] x86/mce: Handle error injection failure in mce-inject module
Posted by Koralahalli Channabasappa, Smita 4 years, 3 months ago
Hi all,

Do you have any comments that needs to be addressed on these set of patches?

Thanks,
Smita.

On 2/14/22 5:36 PM, Smita Koralahalli wrote:

> This set of patches handles a scenario where error injection fails silently
> on mce-inject module and returns appropriate error code to userspace.
>
> Error injection fails if the platform enforces write ignored behavior on
> status registers and the first patch checks for writes ignored from
> MCA_STATUS register and returns appropriate error code to user.
>
> The second patch assigns and returns the error code to userspace when none
> of the CPUs are online.
>
> Smita Koralahalli (2):
>    x86/mce: Check for writes ignored in MCA_STATUS register
>    x86/mce/mce-inject: Return appropriate error code if CPUs are offline
>
>   arch/x86/kernel/cpu/mce/core.c   |  1 +
>   arch/x86/kernel/cpu/mce/inject.c | 42 +++++++++++++++++++++++++++++---
>   2 files changed, 39 insertions(+), 4 deletions(-)
>