From patchwork Fri Sep 4 14:23:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jungseok Lee X-Patchwork-Id: 7123901 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E83A79F32B for ; Fri, 4 Sep 2015 14:26:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F0CBB20528 for ; Fri, 4 Sep 2015 14:26:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3570320495 for ; Fri, 4 Sep 2015 14:26:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZXrug-0004ak-6m; Fri, 04 Sep 2015 14:24:22 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZXru8-0004Ed-UI for linux-arm-kernel@lists.infradead.org; Fri, 04 Sep 2015 14:23:49 +0000 Received: by pacfv12 with SMTP id fv12so26362361pac.2 for ; Fri, 04 Sep 2015 07:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TRR1MwbVSddpoKjWnHoQ5fY/yBuu8AP0yHKX6Xs4dbI=; b=R9FitQJ7JndJQaOW1fz3LrCV0ED+n4NtjG4eKupiFnSt8hqLgx7/2CklwOKMwxFkoU iVbHUbQgTzQFCE5748LF6yu9cLJuuUc9W43uMTT0r3jE20nZcve51j8U1UElnrGioYJn w16+smYl4SKlKEXGWPUeHh/0jINZcNarGEBSu1xqqIhsgEBRMwdTOr1sVfDu9joADbke chZyTIqN+6FvPFmnrcPJb5Cap1O4QnP2NgWa7jOaX9SO3km0grqWtnK4TG0pP/38aLNQ L7kzx7j1q8iEi9Pk/d/zcueLxzeGA/QGNDM0CCmIx1QunDHcLZeEvwfiVgkPNlLnTG4S HryQ== X-Received: by 10.66.253.170 with SMTP id ab10mr8828735pad.135.1441376608324; Fri, 04 Sep 2015 07:23:28 -0700 (PDT) Received: from ip-10-186-128-153.ap-northeast-1.compute.internal (ec2-54-178-75-198.ap-northeast-1.compute.amazonaws.com. [54.178.75.198]) by smtp.gmail.com with ESMTPSA id em1sm2733412pbd.42.2015.09.04.07.23.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Sep 2015 07:23:28 -0700 (PDT) From: Jungseok Lee To: catalin.marinas@arm.com, will.deacon@arm.com, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 3/3] arm64: Reduce kernel stack size when using IRQ stack Date: Fri, 4 Sep 2015 14:23:07 +0000 Message-Id: <1441376587-12979-4-git-send-email-jungseoklee85@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441376587-12979-1-git-send-email-jungseoklee85@gmail.com> References: <1441376587-12979-1-git-send-email-jungseoklee85@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150904_072349_045014_8D86BADD X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is a principal objective of IRQ stack feature to reduce kernel stack size. Therefore, the size is set to 8KB when a separate IRQ stack is active. Signed-off-by: Jungseok Lee --- arch/arm64/include/asm/thread_info.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h index 5345a67..e79210d 100644 --- a/arch/arm64/include/asm/thread_info.h +++ b/arch/arm64/include/asm/thread_info.h @@ -24,10 +24,18 @@ #include #ifndef CONFIG_ARM64_64K_PAGES +#ifdef CONFIG_IRQ_STACK +#define THREAD_SIZE_ORDER 1 +#else #define THREAD_SIZE_ORDER 2 #endif +#endif +#ifdef CONFIG_IRQ_STACK +#define THREAD_SIZE 8192 +#else #define THREAD_SIZE 16384 +#endif #define THREAD_START_SP (THREAD_SIZE - 16) #ifndef __ASSEMBLY__