Skip to contentSkip to conversation

parisc: Decrease thread and stack size back to 16kb

PATCH New Helge Deller 1 participant 1 message Sep 25, 2017 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Decrease thread and stack size back to 16kb

Revert commit 8f8201dfed91 ("parisc: Increase thread and stack size to 32kb").

Starting with kernel 4.11 the thread and irq stacks on parisc randomly overflow the default size of 16k. The reason why the stack usage suddenly grew was unknown. Now the stack sizes seem to be back at their usual 8-12kb, so we can revert the temporary workaround of commit 8f8201dfed91.

arch/parisc/include/asm/thread_info.h +1 -1
index bc208136bbb2..88fe0aad4390 100644
@@ -34,7 +34,7 @@ struct thread_info {
 
 /* thread information allocation */
 
-#define THREAD_SIZE_ORDER	3 /* PA-RISC requires at least 32k stack */
+#define THREAD_SIZE_ORDER	2 /* PA-RISC requires at least 16k stack */
 /* Be sure to hunt all references to this down when you change the size of
  * the kernel stack */
 #define THREAD_SIZE             (PAGE_SIZE << THREAD_SIZE_ORDER)
arch/parisc/kernel/irq.c +1 -1
index 0ca254085a66..5404e4086cb9 100644
@@ -380,7 +380,7 @@ static inline int eirr_to_irq(unsigned long eirr)
 /*
  * IRQ STACK - used for irq handler
  */
-#define IRQ_STACK_SIZE      (4096 << 3) /* 32k irq stack size */
+#define IRQ_STACK_SIZE      (4096 << 2) /* 16k irq stack size */
 
 union irq_stack_union {
 	unsigned long stack[IRQ_STACK_SIZE/sizeof(unsigned long)];