Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp93835rdb; Wed, 14 Feb 2024 13:57:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU+v8xN9VWiBFcLTouSp/nROSZr4bdaihAxollK38nElOAXdzzx79+JJwsSyzMdrI4BEVrcHcw5ezYz4XLonSsdgtLPr8XoIzQtL9UyUg== X-Google-Smtp-Source: AGHT+IEQbafpxVhfp1c3vpwquAQTKtViPpA+tF4f06vCzEtjFvKGOWImc13hoG5ku6dbu6oecpZv X-Received: by 2002:a05:6402:1ac9:b0:55f:c3c1:34e with SMTP id ba9-20020a0564021ac900b0055fc3c1034emr2677220edb.15.1707947852075; Wed, 14 Feb 2024 13:57:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707947852; cv=pass; d=google.com; s=arc-20160816; b=qSG7/Za4ikowM78gUQ2JXo+bvweDBW833gHEtJYzkbBrwZNvlIoHY5ZNxJwuE328+U A9bctiLJR0bklwGOEAtzMjJQd6zOMXXOwVQYLxAdReuLzII2gYGMUVcw0wZ6qUIfgyfT NBTR3etvTG/uyhRa2Y3xnbVGEkhZD9OEjzomUtvxORAiTNgtkqYRXPv/PyoZY1DxzDoN djWSQtFSiAdzesUdrtnfMagyXk3255Ytvy78Z37osdPJeBgR3omZrIWqviHMoTf7S+Eh BQB7FlDojXbLPqGo+ozjNhzyouzVtZmajlUSKkPJKujZ8DokgMZ/Agr2RlvSMvaTLGx6 IrFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=ptVY8+ctsEMPdzQdMVEcEaylbr4N9FMoA+0k/Zm7vvI=; fh=4DTJenY0LUBTg/7eVSG/0OBqJw1KiBWM5WxLww/w7vs=; b=Nl8lKJA1lBJiI6L9+hbOHwV3+mao5//JRnj8Flg6ggCNJGHdTORCjlKEzkE/MzVaRf ys+c2yIrvJA7ybAojedVwzJ+x3GCeaHP6D6JEat7mfqWcSfdkSzLqYVVC+21XaecDHTA MuWBwGc5Dd0A8gfoeIIq+SkA3ek2mYHhgPiOB+VjX3ZW40/AMc5VquF1kpKHNoDCymGx p6S5L5okUuTeG5wQpMB+z1St1KLfmhdXbZNnUBCSnYyZSMABzzO9+39+VYnGt8jBioeq gHkmAYMpVPl3D6gDmXk92fyAu+GVTGNYHGDcxEFMeT4HjObvWRlQb44FPEiQUSDp7azM myMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=EGrvNimn; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-66010-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66010-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWPJOzCg25rQBXkZuUsG3hhUIwzhS7g4BAccQ65y1uY/yzcZ4SjzuoaHiOGxGjaUp1VnX7VBiyzUlmF8ylaWBF7tavanvOzBFxe8KKN2A== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t15-20020a50ab4f000000b00563042ccf48si1005500edc.568.2024.02.14.13.57.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:57:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66010-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=EGrvNimn; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-66010-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66010-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2C9E61F298A8 for ; Wed, 14 Feb 2024 21:57:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC14813F016; Wed, 14 Feb 2024 21:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="EGrvNimn" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 6FDC318E0C for ; Wed, 14 Feb 2024 21:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707947827; cv=none; b=lTvzGy4zfPY8rx7S58mgmye77B0E4K4Zr9X9bWKfeu41tvgSrgiIMV30iq6txyVTk09oCAWcryVA+QGbkY4yCiTawWjHUeSDe6mvPjdKg6oc0BOmq7I6oiHHOMqLnaK3DDh99OrRXA5qhkA6swvnQUR1M4gdzp+1MFW6sBlee50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707947827; c=relaxed/simple; bh=M2VX53hh2X2+EDZ9L6EW8YSDDt5OHDvGvJYbu8/dn38=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=aQ+NUXl7/Y0RHkKe+YU8UTQqq+5ZRplbtGo4CFvDhd3OpujMLYowh4hE/h/PwB7TFaXShuInPMD4DRLQvYIdSp45/GbbYBsR36oQyFEmsLjp0LqIBjHZZAezMPpK8M1gtvz697ea/mHeNPgVFa0NoZanv0HBPUTDt8Kslr/6194= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=EGrvNimn; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1707947821; bh=ptVY8+ctsEMPdzQdMVEcEaylbr4N9FMoA+0k/Zm7vvI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=EGrvNimnx3BgExLs+6EE6sBnci2Wyn1SmyHYST8YoKmsjteL24VJ1RqdGiuvUJeLn urHV4WCzxmFQbyh/4ecwRbZBROvSzbRhSXj/uVhWJDupWoYClulsQOtz/QavCw2kUI +1agm6/2zUxzdaaO90cQESACk/IeqZ5WWu+SgAGu89qz/IipGnoSg0+6Cw34ss/Lgg Stpl97P/OrKl47x2zE/UuqcquMI8/mfO0QOixENxDblJiLZpvK1uMI+Nloz0ngrJZv N3LeXGLRvjxaFJ6u86npcfuX13XR9pYsrlzKfn55vAPN4XK4OtILfeM/sQ80caoHhE RVgwW+JtWteZQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4TZsVN6WXmz4wcb; Thu, 15 Feb 2024 08:57:00 +1100 (AEDT) From: Michael Ellerman To: Rahul Rameshbabu Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Gal Pressman Subject: Re: [PATCH] powerpc/64s: Increase default stack size to 32KB In-Reply-To: <87ttmau5mg.fsf@nvidia.com> References: <20231215124449.317597-1-mpe@ellerman.id.au> <87ttmau5mg.fsf@nvidia.com> Date: Thu, 15 Feb 2024 08:56:59 +1100 Message-ID: <87cysy7lqs.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Rahul Rameshbabu writes: > 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 There's a fix in my fixes branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=fixes&id=f1acb109505d983779bbb7e20a1ee6244d2b5736 I'll send it to Linus this week. cheers