Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp67006rdb; Wed, 14 Feb 2024 12:56:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXOXMDuoUzELrN2txrdmfWYO2Vr8Q2EpkbWp98vfoqJsk9N4dlrT1aPaUBGnp3pKT9QOdR1WlrqVKqQqE1CBq+5uT5pIoi1Sht/8U1i0w== X-Google-Smtp-Source: AGHT+IE7EbLpKNDnCtyLpOJo+lniitjNNTRQmjw4tkzugJYh0KVJa39e2qdsPxtTyTMruEntgXkg X-Received: by 2002:a0c:e20c:0:b0:68c:9336:279a with SMTP id q12-20020a0ce20c000000b0068c9336279amr3022614qvl.6.1707944212709; Wed, 14 Feb 2024 12:56:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXyfckRicXPhjrStGX3B1JWXQ6MdXOKlRSlMOwMV86/6NWbX5bzPL4sXFtTr1qzNvkChYZ8lkEOf2DzwZeLOg+rRXOQK0HY+Ru+7A80Wg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 2-20020a0562140dc200b0068edf655758si4918867qvt.146.2024.02.14.12.56.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 12:56:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b="Pz+Du/nR"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-65960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6A8061C2142B for ; Wed, 14 Feb 2024 20:56:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3038D13DBAC; Wed, 14 Feb 2024 20:56:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="Pz+Du/nR" Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2046.outbound.protection.outlook.com [40.107.101.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3833854649 for ; Wed, 14 Feb 2024 20:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.101.46 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707944205; cv=fail; b=BZRKOFZ2BqTimon82duHaTQtirYeJV5quVTmS+5ZJynSxmdQSwHX7A9Ild0Et/AxFqCgQ5VkRJ75cNq+y7EdaW9HFlJuXPCEd5jNfrLAIllQV8V3tEqM50VquTPnqBIlOu0bbIrDFP7pmtGRqGCJSiYYHEPqI/ZmLZIpo7zxPY4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707944205; c=relaxed/simple; bh=/ke4L8DjWC4qd6wtM0l4YL9Qz0JO3OclS9gMSy8DriQ=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: Content-Type:MIME-Version; b=kUO4Ryega6VRDvHmznR3Spv07aUx0J4buLUgZSnI/TeZAiED7IHdystdKhqoY4ym/2X7rZ6sYtD8CY9EjT/WEcv6Y+QC5HSCrHdWNtwXcf+umvaaVFsTXAG+bKitb5tB2iHyejMh1l5USkr/6KyI9qsICiF0WVr/5n39fE76LD4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=Pz+Du/nR; arc=fail smtp.client-ip=40.107.101.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k6CsN4lWBkkUSCOoUJ7l0h+QUKBenFrV2B3G1Ps7EJ41ZUcFb3adf12bG2Os6PdtD56TycS0gpPEeNH5iK62XCDQoocPSgBw8ZrjBKak6MscPHG3oCC8VPzPMYQRCwVcGTTHJ9zIKHwR8nAxqLre7V4sR9E/McRyVD6KaI9vEVHZdZ6KqHzKBHSwFYs288j+LMRXMww0q72u41fkN69Zc5rZH2/Zp6zw+kFAJ43gZzZNYXpHHAz5Mr/QEB7ne+T5qkjcbq/+NONKQi0hKR7R9X6dQh49MpS9Tl2kZXccFYOIkB86aSMIjKhgTXQ1jWkKhQplOH5H1xKirkoEryN5ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1maQEiuNSLlkxHXSAx3IxLnHu1GLwhzZrm8AjMqDSBU=; b=TPuvA3vW8U78aPFgWaBiGiSn0bBJLghMeDt2wP2qHxbpk2DK/6qxC3fmrDMBu0rx6PyEHRz+5X5PPWXo77ZHG/4QEJR+VjA57Lg6JMJuynR6yLuhgbEUl+w3K4jgzwsIkotebTSBR55QXkbJK+9tiKinpWLN8JLnRBQmCMPTpSaLdcX8LdNTJXzygWqxw8A1cPi9pnvTy1buAtQFOSuHFCbvUqaW8QV9zoowsKHRfuOa0miVUZnTie3GM9UIcV5WZlBXwwIq5SPqcG+kbNnFXZW5N6UTFVsqA2jx+jU4Y1mbrsjgOYU4Ok5jQFykmaX4ysksrI+rJSuDT9WsmLm6jA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1maQEiuNSLlkxHXSAx3IxLnHu1GLwhzZrm8AjMqDSBU=; b=Pz+Du/nRttgHHCM9o536srXh7QNBSDfjQckWfPmr9mX8+NeC8F5PW+Dt2cZoN0/Hyn+lRZcI/3LbA7QXZQFrGCtLiwC4cPiB9CWY/C/uJZtYrYDpU2b3KFA9oGxpOiqBOd8csi2MMiz9ZXVgOatAwLtc212PytSPVZqvdJy5tg+qIVCB4kkntNYswft79eJ3cqlCVOyqu4BIiBRexV69DYy0Igh7d8VEfRJ4Z2WSYzKQC7A826i4qYGe8AMo/PvQs4z6Td+SPoEqKlKLTBPkKgNsSaIbefbGKANfpyPcoWMnRbD+/w5eX06QZiTy07asml7RwmyFjexVIYjVAYFh4g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) by BL3PR12MB6522.namprd12.prod.outlook.com (2603:10b6:208:3be::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25; Wed, 14 Feb 2024 20:56:40 +0000 Received: from BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::d726:fa79:bfce:f670]) by BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::d726:fa79:bfce:f670%7]) with mapi id 15.20.7292.022; Wed, 14 Feb 2024 20:56:39 +0000 References: <20231215124449.317597-1-mpe@ellerman.id.au> User-agent: mu4e 1.10.8; emacs 28.2 From: Rahul Rameshbabu To: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Gal Pressman Subject: Re: [PATCH] powerpc/64s: Increase default stack size to 32KB Date: Wed, 14 Feb 2024 12:47:39 -0800 In-reply-to: <20231215124449.317597-1-mpe@ellerman.id.au> Message-ID: <87ttmau5mg.fsf@nvidia.com> Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0016.namprd05.prod.outlook.com (2603:10b6:a03:33b::21) To BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR12MB2743:EE_|BL3PR12MB6522:EE_ X-MS-Office365-Filtering-Correlation-Id: c37e8175-53c2-414a-cdd9-08dc2d9f70e3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fmVi7XDqFXWH/1G5SVFd1N+HMgTj3g7O6mLJ4Ag/1Hgg0aGApg0UPYvNARkxxqkKOYXzjl3AEwmN281+szJtnrWFbFD2IgvvEKfuGWysEmvFnGJBlDVb4m+EpZY6Oyttv10h/I+jAhuAfFW2deJWG3aRfHRj5XDnTeFrKhhyM938C6Kof/TM55K90kA1GuA10vjFigQe2KiIwhCgTXxTsfhDrb+7RAEyJH6qYHTHqZuEQ2si5CMWOVA87NMf/VEv8lQn7/hWMUiq9Jz0Q2bXOXkdkVqH3c6dh6vWSiuULuHBJK1QAZ1KxNDWEjmgLldD7kyK4K8rGtm2d3rsKD79vmRLFe98JpnD8GYOmpPxAPwfgyh8V4UEjOIiXE85OyEoNbMJpuAb8KndLKDbtPawuBWhgFjFoigJvuGBlyJQFfubI3VSoWi/2/txlxVq30qHW0GSHxAlCzwU9kb4npLJDU6N3Es5D/oh3aMUg6+Dl85M6hwfuqU+3S7g0Pz2982Yj2VZvNntSldQnuOIELbzA1xoT+RIU9VrAFIVssS9TKFm8GLufSYqywRaaZLz8XcD X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB2743.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(346002)(366004)(39860400002)(136003)(396003)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(2906002)(66946007)(5660300002)(38100700002)(6506007)(86362001)(107886003)(6512007)(83380400001)(316002)(6916009)(26005)(36756003)(66476007)(4326008)(66556008)(6486002)(8676002)(8936002)(2616005)(478600001)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1T4mhS79BNoBLAzAoKtgfguAxcI0Om9tm2HAI9WZk5mwirlQC1SrX2AT3zcM?= =?us-ascii?Q?ym/aK9Lrb1OlUgeBUTNkdupc8QIu6V1eaaid+wCZYPgCgXsr6kYEvq8hFvEG?= =?us-ascii?Q?4P7+8hUcXqi4PTM70Wdft1gPrMgHezEC0KTk+dxfYitYbQxMZo8tjUHBmrrJ?= =?us-ascii?Q?1xgHSTSPS/MngnsxgRqp3nJCyoQ8iDSVzSXGWXMrDCxDHMvMfC9hIGAs29NS?= =?us-ascii?Q?ws0YU6DgbFiKNJ5EheWFoss7c6fhnS2QNKPlrwkTrUjPffPL2fRX/dZUUfOj?= =?us-ascii?Q?88S4Npp9drjaMSecOcAFZb5mc51eYEBd7WRrkMyBErU33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ZD+4d1ChddwnandqR7newtfexo9/ukwFCGyIGKejHpkfScouiCOf?= =?us-ascii?Q?OKZ/lTNHWsjPG2QieL18H0KZuLeTnHCitvGLdw91xYBO3hMZkg03MvSGkU2Q?= =?us-ascii?Q?UPHrSl9Mv6/pG2OlH7SFzZMI5qQbnPrpj4lJovfLbdzzGtc0iPzXd1z+pFxp?= =?us-ascii?Q?TScMCa8hX1otK4zGROhhii3fZrVtZSsX/yNFD6f9IDUCB9tpmV9YlDfecXHb?= =?us-ascii?Q?t1iGCYzBFgGPi6FH59X3ibpw09LTjHRSzYbKRzOIwGmKowpnSwjidJkTKgRe?= =?us-ascii?Q?ukkVaihe/JQ2g+sAIsN51i8GPSpec3t4zDuTi4p6c00SDoj83N5DeVO0ByXa?= =?us-ascii?Q?I3Hv3cTKBUGuMgWY+zo6j0+Sp2gGmIdNX3/uvowhoapcDNi8CttWP2mtjgjZ?= =?us-ascii?Q?jw=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c37e8175-53c2-414a-cdd9-08dc2d9f70e3 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB2743.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2024 20:56:39.7852 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: squ7KroZS/trb7EWjx9ydVrweylK8RmPtATiBi90j9apBCYBW0MWQSjdYXK377DjKEh79ysiRVmW3KAOfo2pmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6522 On Fri, 15 Dec, 2023 23:44:49 +1100 Michael Ellerman wrote: > There are reports of kernels crashing due to stack overflow while > running OpenShift (Kubernetes). The primary contributor to the stack > usage seems to be openvswitch, which is used by OVN-Kubernetes (based on > OVN (Open Virtual Network)), but NFS also contributes in some stack > traces. > > There may be some opportunities to reduce stack usage in the openvswitch > code, but doing so potentially require tradeoffs vs performance, and > also requires testing across architectures. > > Looking at stack usage across the kernel (using -fstack-usage), shows > that ppc64le stack frames are on average 50-100% larger than the > equivalent function built for x86-64. Which is not surprising given the > minimum stack frame size is 32 bytes on ppc64le vs 16 bytes on x86-64. > > So increase the default stack size to 32KB for the modern 64-bit Book3S > platforms, ie. pseries (virtualised) and powernv (bare metal). That > leaves the older systems like G5s, and the AmigaOne (pasemi) with a 16KB > stack which should be sufficient on those machines. > > Signed-off-by: Michael Ellerman > --- We noticed this change is causing assembler issues for us when building the kernel. make ARCH=powerpc KERNELRELEASE=6.8.0-rc2_for_upstream_debug_2024_02_06_20_01 KBUILD_BUILD_VERSION=1 arch/powerpc/kernel/switch.S: Assembler messages: arch/powerpc/kernel/switch.S:249: Error: operand out of range (0x000000000000fe50 is not between 0xffffffffffff8000 and 0x0000000000007fff) make[6]: *** [scripts/Makefile.build:361: arch/powerpc/kernel/switch.o] Error 1 make[5]: *** [scripts/Makefile.build:481: arch/powerpc/kernel] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [scripts/Makefile.build:481: arch/powerpc] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [Makefile:1921: .] Error 2 The issue lies with the do_switch_64 macro. -- Thanks, Rahul Rameshbabu