From patchwork Mon Jul 31 06:38:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9871017 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 B087560375 for ; Mon, 31 Jul 2017 06:39:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B22628572 for ; Mon, 31 Jul 2017 06:39:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D02728595; Mon, 31 Jul 2017 06:39:18 +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 EF4AF28572 for ; Mon, 31 Jul 2017 06:39:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751614AbdGaGij (ORCPT ); Mon, 31 Jul 2017 02:38:39 -0400 Received: from mout.gmx.net ([212.227.15.15]:62482 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750920AbdGaGig (ORCPT ); Mon, 31 Jul 2017 02:38:36 -0400 Received: from ls3530.fritz.box ([193.159.19.154]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MY7dI-1d7DeP3XjU-00Upgz; Mon, 31 Jul 2017 08:38:29 +0200 Date: Mon, 31 Jul 2017 08:38:27 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Increase thread and stack size to 32kb Message-ID: <20170731063827.GA30040@ls3530.fritz.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) X-Provags-ID: V03:K0:Mc08bfimOx3IVJlrJN3DCZ2CKsIUgbG16VqVg11euanaxQYDz5Y QcEI8sH9H5aj+DFOAOSPL/Ew+lRf8miq/FYbXFLdwiI7Y6p7c0VAdCgDfPMBrFjxmfhiUt6 2ixwnhRKn/cv/hCI7qOVGw7nIJHPunwNCJpFuvNIVIPg9ch82nBZPxSxU/IxSmYjihwCVGS FmQsoE2vkAtdO7GL10jCg== X-UI-Out-Filterresults: notjunk:1; V01:K0:HasqbCxJtA0=:iLUGYTfPiKQ00aGJ9VmWe2 hRC4Mvb6iHoj4H2qzYZs8tz0Ma58o2UIG7dtjoxijNGfxTElUFoL7uZ0zkez3et1Co83HOsQ9 ZjawVKYSXXX8ohtJm6w9YxqzpK0OK3Ml6sUq0GncsH1ufbxWEy936BmosX3+5c+kwwT0dRSRz 3ryKc05PoHok37CCdYfEOeZO0bpN7Ze53Vnf4K7VrOqS0IhO02BB7KxRgUlvdFKyKAghXiwh/ A3g6OK03cp0RBki+vTZ0Y+swj/usYm3vQpbRBq4xITdUlnGIM6qXC0dpCY3zLXQHYGG5SFFPG jvcaTiHLsRLlFSje8lL73ZMSQoFZ4SyCKbiZNSUlPzKvhVMrBW2yLFx99iF10NsltVaRTJ1wQ qlPzN1aeKUJPrdh57V2hlXuo7mXR7Ni8qakUeOdaIVoR0AjvwHeaJP1GiWMIGhU7RhCV+HMJJ h66Aa8yShqrcvugRkid/F2TkJRTB/C/7jc+swTnmOFv7wl51udXZ3tLCtgA9axiqD4150Uvez 8G8js/TSTooNWA5QxcChbRK5SuAg+9xSOrmcQkoqs3h9b/ZBu64CVzBwhFsJnRuDgiNZMUlth 4zshZEJZp31zNpjQQEIUtwDds9QIjbWMCcclKTOwuKtrPeR8l2c5MsIWi6a85xoZGWdVCrHC6 toW0flJ72LLMO3Cwd4SxD8AVDOYgGj2WRqptVj2oZvjCmlQ9naEM3urfL4RER5ioTPWmFAogD hbJSkKt49U1ctpj2DispUZoq34kF8KjfXtDc2j0JQo62pvWtQJem0NZ7665jKzz4AOBqJ33CS +znWGFxHVzOcSgrVZbUsndlerS+gQ== 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 Since kernel 4.11 the thread and irq stacks on parisc randomly overflow the default size of 16k. The reason why stack usage suddenly grew is yet unknown. Signed-off-by: Helge Deller Cc: stable@vger.kernel.org # 4.11+ --- 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 88fe0aad4390..761234d8d84e 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 2 /* PA-RISC requires at least 16k stack */ +#define THREAD_SIZE_ORDER 3 /* PA-RISC requires at least 32k 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 ba5e1c7b1f17..0ca254085a66 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 << 2) /* 16k irq stack size */ +#define IRQ_STACK_SIZE (4096 << 3) /* 32k irq stack size */ union irq_stack_union { unsigned long stack[IRQ_STACK_SIZE/sizeof(unsigned long)];