Skip to contentSkip to conversation

powerpc/pseries/mce: Fix a typo in error type assignment

PATCH Applied Ganesh Goudar 3 participants 5 messages Apr 16, 2021 – Apr 21, 2021 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries/mce: Fix a typo in error type assignment

The error type is ICACHE and DCACHE, for case MCE_ERROR_TYPE_ICACHE.

---
 arch/powerpc/platforms/pseries/ras.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/ras.c +1 -1
index f8b390a9d9fb..9d4ef65da7f3 100644
@@ -699,7 +699,7 @@ static int mce_handle_err_virtmode(struct pt_regs *regs,
 		mce_err.error_type = MCE_ERROR_TYPE_DCACHE;
 		break;
 	case MC_ERROR_TYPE_I_CACHE:
-		mce_err.error_type = MCE_ERROR_TYPE_DCACHE;
+		mce_err.error_type = MCE_ERROR_TYPE_ICACHE;
 		break;
 	case MC_ERROR_TYPE_UNKNOWN:
 	default:
Signature · 1 line
2.26.2
#1 lore raw
Quoted 1 line · Ganesh Goudar

The error type is ICACHE and DCACHE, for case MCE_ERROR_TYPE_ICACHE.

Do you mean "is ICACHE not DCACHE" ?

cheers

Quoted 20 lines
---
 arch/powerpc/platforms/pseries/ras.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/ras.c +1 -1
index f8b390a9d9fb..9d4ef65da7f3 100644
@@ -699,7 +699,7 @@ static int mce_handle_err_virtmode(struct pt_regs *regs,
 		mce_err.error_type = MCE_ERROR_TYPE_DCACHE;
 		break;
 	case MC_ERROR_TYPE_I_CACHE:
-		mce_err.error_type = MCE_ERROR_TYPE_DCACHE;
+		mce_err.error_type = MCE_ERROR_TYPE_ICACHE;
 		break;
 	case MC_ERROR_TYPE_UNKNOWN:
 	default:
Signature · 1 line
2.26.2
author
#2 lore raw
Quoted 3 lines · Michael Ellerman
Quoted 1 line · Ganesh Goudar

The error type is ICACHE and DCACHE, for case MCE_ERROR_TYPE_ICACHE.

Do you mean "is ICACHE not DCACHE" ?

Right :), Should I send v2 ?

Quoted 23 lines

cheers

Quoted 20 lines
---
  arch/powerpc/platforms/pseries/ras.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/ras.c +1 -1
index f8b390a9d9fb..9d4ef65da7f3 100644
@@ -699,7 +699,7 @@ static int mce_handle_err_virtmode(struct pt_regs *regs,
  		mce_err.error_type = MCE_ERROR_TYPE_DCACHE;
  		break;
  	case MC_ERROR_TYPE_I_CACHE:
-		mce_err.error_type = MCE_ERROR_TYPE_DCACHE;
+		mce_err.error_type = MCE_ERROR_TYPE_ICACHE;
  		break;
  	case MC_ERROR_TYPE_UNKNOWN:
  	default:
Signature · 1 line
2.26.2
#3 lore raw
Quoted 7 lines · Ganesh
Quoted 3 lines · Michael Ellerman
Quoted 1 line · Ganesh Goudar

The error type is ICACHE and DCACHE, for case MCE_ERROR_TYPE_ICACHE.

Do you mean "is ICACHE not DCACHE" ?

Right :), Should I send v2 ?

No I can fix it up :)

cheers

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
---
  arch/powerpc/platforms/pseries/ras.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/ras.c +1 -1
index f8b390a9d9fb..9d4ef65da7f3 100644
@@ -699,7 +699,7 @@ static int mce_handle_err_virtmode(struct pt_regs *regs,
  		mce_err.error_type = MCE_ERROR_TYPE_DCACHE;
  		break;
  	case MC_ERROR_TYPE_I_CACHE:
-		mce_err.error_type = MCE_ERROR_TYPE_DCACHE;
+		mce_err.error_type = MCE_ERROR_TYPE_ICACHE;
  		break;
  	case MC_ERROR_TYPE_UNKNOWN:
  	default:
Signature · 1 line
2.26.2