Received: by 10.223.176.5 with SMTP id f5csp813368wra; Sat, 3 Feb 2018 10:53:28 -0800 (PST) X-Google-Smtp-Source: AH8x2259q7s7RJZ3snJKeyqOfXRHS5WymxwKSj5ibNPJq/l4D6fyO8cY410ttkUIXkM/sEwiQdCL X-Received: by 10.98.228.5 with SMTP id r5mr44892355pfh.193.1517684008137; Sat, 03 Feb 2018 10:53:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517684008; cv=none; d=google.com; s=arc-20160816; b=sokfFJtnvS/z8+9hcAOEVlary6Q3X3/kNFNWhUeHxIKiRl2qLunt/ufJOTh2w1CPaX q0UBsU0VEm6IBlAKdb+vwrqAMoLaSLFs5/J1CT3RyMdiNjr892AoMee4WJ0HmrIJd3Vu DT+25HrU2hXYHnvihoNAGi9OaeIxYVjAdcAW3jCMUYzfl7C1fzAcHqeCrxKHzOX3KmMh uar71gaRk+ZHuByGaXapgumi9TspuniCY2jwnAGJGuEsN9NQDTgZbdr01jwCG6u4l8zJ lg0poLOSvIUIYn/wWk3lhR/94xPQH81z4yA1BurBcwTNz47ccDyCnaAtqHjRg/5Gm769 /pyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=yT1Spp594UK1hqaPd9WhSdysY5YE9YM9gFHQeX5flWE=; b=A339vdSklzAXQmfbDRLQWB7hsowwEXDfgzzYf5XLofLXXJmufAEW9pZo0W4+9/8N5s ixJIFWLU3QwCXjPJllMSK5mU8P+LLlXXOod3iVMIdCi4ldlhW/QtBSklfbP/cnPb/HvY 8B0Gyem7W0l4yhSuISJCfSq86BoGM34pSaf6OA3QTjYm88SSIMnNp4CKd5HWGp7l11N1 1iwYmphDv3JLRxs7L8EOkAGPS97YmWtTBH+x/tqr3jyHSDdtLzfvkeIdDFMDCLWJLpIi VXiI3o3cj2slg753U6xxoUWppVpmffDWnD7EWjr4AE5+4sCDsQFwUUnR30AhewqPH44l L1ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Sler5B+F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15-v6si2436612pll.744.2018.02.03.10.53.13; Sat, 03 Feb 2018 10:53:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Sler5B+F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754031AbeBCSwT (ORCPT + 99 others); Sat, 3 Feb 2018 13:52:19 -0500 Received: from mail-bn3nam01on0138.outbound.protection.outlook.com ([104.47.33.138]:24890 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752581AbeBCSBT (ORCPT ); Sat, 3 Feb 2018 13:01:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=yT1Spp594UK1hqaPd9WhSdysY5YE9YM9gFHQeX5flWE=; b=Sler5B+FkQCkFTJ60sWftcuK0bNrmh/QQRqVdKv541W85YLUkECUEkzvAi0W5y8w4CUSb0m4wRLivRI5hMC3WqGFeSQupXkK2dWan4DTxcsGRzGYTWMYlYFb08cAa4k5suMFTVASynSgdDXS3ZH5hy4/pWcU7F7vy6IjKSzzwsQ= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1043.namprd21.prod.outlook.com (52.132.24.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.506.3; Sat, 3 Feb 2018 18:00:36 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:00:36 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: John David Anglin , Helge Deller , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 016/110] parisc: Reduce thread stack to 16 kb Thread-Topic: [PATCH AUTOSEL for 4.14 016/110] parisc: Reduce thread stack to 16 kb Thread-Index: AQHTnRjj3m0Cl89qUkSsCjIzyI54sw== Date: Sat, 3 Feb 2018 18:00:34 +0000 Message-ID: <20180203180015.29073-16-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1043;7:SSPqeGpUQmAXUFJRqflFB2gVUdJkk0Rnm51KAopuwfBw9Qtc3mmufJ+Y8nfsiTql8P/L3NFI04rs2OO0Ld6kYlzeuhbZ3hfrSW53v86h3L4apdNHk613CuqCT/ni945i3oysGa2sivD6bpKGppGpQ6kEwXGZmMbvsNxoa0khD5BKGHc/q8cX8Af1S219kZiD/Tks6FYB9BEkYo9JhtBlt2ESUqJZellxn5kd7gl6hV0rKYrGcIkAJ3nRUpdNpetL x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 5f9ddb63-4472-43ff-39ee-08d56b300751 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1043; x-ms-traffictypediagnostic: BL0PR2101MB1043: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(26323138287068)(89211679590171)(192391740597602); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3231101)(2400082)(944501161)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011);SRVR:BL0PR2101MB1043;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1043; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(376002)(39860400002)(366004)(346002)(396003)(189003)(199004)(59450400001)(10290500003)(186003)(6486002)(14454004)(1076002)(102836004)(6506007)(76176011)(26005)(6346003)(66066001)(10090500001)(8666007)(5250100002)(36756003)(6512007)(2501003)(110136005)(99286004)(54906003)(478600001)(53936002)(72206003)(6436002)(316002)(305945005)(7736002)(2950100002)(2906002)(5660300001)(4326008)(106356001)(575784001)(86362001)(97736004)(25786009)(22452003)(2900100001)(3846002)(107886003)(8676002)(8936002)(6116002)(3280700002)(105586002)(81156014)(81166006)(3660700001)(86612001)(68736007)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1043;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: 2J5YKhEi581AmPv9uRmnXiAwQ5Emq1mPGiNiSQhLjFYPtYLb0kCo2WaaJ6DCMC8g8vYGzQbzs/eoZQrlHeEQQQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f9ddb63-4472-43ff-39ee-08d56b300751 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:00:34.3940 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1043 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John David Anglin [ Upstream commit da57c5414f49ef9e4bcb9ae0bbafd1d650b31411 ] In testing, I found that the thread stack can be 16 kB when using an irq stack. Without it, the thread stack needs to be 32 kB. Currently, the irq stack is 32 kB. While it probably could be 16 kB, I would prefer to leave i= t as is for safety. Signed-off-by: John David Anglin Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- arch/parisc/include/asm/thread_info.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/parisc/include/asm/thread_info.h b/arch/parisc/include/as= m/thread_info.h index c980a02a52bc..598c8d60fa5e 100644 --- a/arch/parisc/include/asm/thread_info.h +++ b/arch/parisc/include/asm/thread_info.h @@ -35,7 +35,12 @@ struct thread_info { =20 /* thread information allocation */ =20 +#ifdef CONFIG_IRQSTACKS +#define THREAD_SIZE_ORDER 2 /* PA-RISC requires at least 16k stack */ +#else #define THREAD_SIZE_ORDER 3 /* PA-RISC requires at least 32k stack */ +#endif + /* 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) --=20 2.11.0