From patchwork Mon Sep 25 15:48:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9970169 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3FB1D60225 for ; Mon, 25 Sep 2017 15:48:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FE8128AF8 for ; Mon, 25 Sep 2017 15:48:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2439028B02; Mon, 25 Sep 2017 15:48:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C08528AF8 for ; Mon, 25 Sep 2017 15:48:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934483AbdIYPsa (ORCPT ); Mon, 25 Sep 2017 11:48:30 -0400 Received: from mout.gmx.net ([212.227.15.15]:63038 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934482AbdIYPs3 (ORCPT ); Mon, 25 Sep 2017 11:48:29 -0400 Received: from ls3530.fritz.box ([91.36.205.52]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MPDaC-1e0vTC0PJI-004PbY; Mon, 25 Sep 2017 17:48:22 +0200 Date: Mon, 25 Sep 2017 17:48:19 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Decrease thread and stack size back to 16kb Message-ID: <20170925154819.GA24985@ls3530.fritz.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.0 (2017-09-02) X-Provags-ID: V03:K0:9gPuuoXL2AZn+/noLboHacJSjIHUvQl0pIRcrc5+tFDFWC0PoF7 V3EtZMSA0vIKAVE+QkiP3eubTJY6AyNrgWGNWDNQAv3Euf9QzFYM+ztCOuT08hQPg3/g8eo qoqcc9Yhzpo2oTmhYt24HNDVTfwLDSeJ6tGPaIesp5XgzKQvJhaikD2weBZWMwSyY59OIu+ ilE4u9GCXrMwkOWrQbabA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Qb3kEBjZnn8=:EL7XbL3IAEYPOiAULtlTf4 E7aWsBoGgjZxhdwzqJhYBSd2b+V5YBNR/nGojThSiJMjHuW3fq3k/O3uFAAN+lFqmEJET+YGd cvrLxLovPXs5G7frWPvnAPQ42qezG1UedarA6mkn1RO9lFSuerWFx2jfz0A2oBZ4Qs8DICoEX 2wr0ujCI6gXP3hPwssS6AskTEdxcf2ObmZLwK5ptzhdwT4vVWOLrfo9J3CKLWP2wegsabdcrq Pu/WVQ2E746fYy0YZkmZVDMJ2Av0NywGZDCzsQVPie9ELELRjpl4Q/kbTpVkHMb8WK3PemG6d pR8gDOAfGLda7GwqTH9jmwaUN2QboxffmbSFWKNPQAuMKp1uVJpzYW17LgN/jqSWV75WDIv3b u3jnt/KIzIW6IiKOQ2kb5vZK3rjWzbfC1S7foooXss0B0T6eVpdu1aW6lm6yU6/F+Mc+vuhPC vZgvsAERPoAkIhO4vwneVxbpbJ7/BUzqY4GOzF3EzT9D8moJHTUBksN7rg50megf5RoV/85M0 6EdWkgT1gHLDHoIQ0VtxG76HQybmbqLh3rhiDyDL6P+Eis3tDpURKzrGyAm55xvfz89/XOAFR 6wuPAQSIofeVjVXH4Xu17Zyas8tBvd+Olcp3eoOH6OHGOFAxRnDmopqMSGBBZ/Ko1L/TfpCAF xawivTeHWSqmf5aAjeTo3mg1zV3uBP+LGPf5xLR15q4926guCU0uOc2um9cChpAwKnweh5UVh PRZjtY0ea1Vf5bf1gIlTpS/UTVg3iOq1RX708Em3OEWJNV5+F6hjoOklGEJc3nvkfIDIPLrcq fjzqvLGdyFL8Um+nu2oldIUQaKHDg== Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/include/asm/thread_info.h b/arch/parisc/include/asm/thread_info.h index bc208136bbb2..88fe0aad4390 100644 --- a/arch/parisc/include/asm/thread_info.h +++ b/arch/parisc/include/asm/thread_info.h @@ -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) diff --git a/arch/parisc/kernel/irq.c b/arch/parisc/kernel/irq.c index 0ca254085a66..5404e4086cb9 100644 --- a/arch/parisc/kernel/irq.c +++ b/arch/parisc/kernel/irq.c @@ -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)];