linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 1/2] powerpc/mce: Reduce the size of event arrays
@ 2021-01-22 12:32 Ganesh Goudar
  2021-01-22 12:32 ` [PATCH v4 2/2] powerpc/mce: Remove per cpu variables from MCE handlers Ganesh Goudar
  0 siblings, 1 reply; 5+ messages in thread
From: Ganesh Goudar @ 2021-01-22 12:32 UTC (permalink / raw)
  To: linuxppc-dev, mpe; +Cc: Ganesh Goudar, mahesh, npiggin

Maximum recursive depth of MCE is 4, Considering the maximum depth
allowed reduce the size of event to 10 from 100. This saves us ~19kB
of memory and has no fatal consequences.

Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
---
v4: This patch is a fragment of the orignal patch which is 
    split into two.
---
 arch/powerpc/include/asm/mce.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/mce.h b/arch/powerpc/include/asm/mce.h
index e6c27ae843dc..7d8b6679ec68 100644
--- a/arch/powerpc/include/asm/mce.h
+++ b/arch/powerpc/include/asm/mce.h
@@ -204,7 +204,7 @@ struct mce_error_info {
 	bool			ignore_event;
 };
 
-#define MAX_MC_EVT	100
+#define MAX_MC_EVT	10
 
 /* Release flags for get_mce_event() */
 #define MCE_EVENT_RELEASE	true
-- 
2.26.2


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

end of thread, other threads:[~2021-01-28  9:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-22 12:32 [PATCH v4 1/2] powerpc/mce: Reduce the size of event arrays Ganesh Goudar
2021-01-22 12:32 ` [PATCH v4 2/2] powerpc/mce: Remove per cpu variables from MCE handlers Ganesh Goudar
2021-01-24 19:45   ` kernel test robot
2021-01-25  9:24   ` Christophe Leroy
2021-01-28  9:27     ` Ganesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).