From nobody Fri Oct 20 15:56:12 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SBq247464z4xwKh; Fri, 20 Oct 2023 15:56:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SBq246VXxz3Dy7; Fri, 20 Oct 2023 15:56:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697817372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=St9DdKc3KElN5BamUSG/EKWnKqxJ6ho8K5POonEw1rg=; b=rLMiHD7SgPVCl16I7hk5WgVACVk6VNCGXmPatDWB0OSbT4KLD/51giadAixu9uhuDb+h7P lwM6JuPkrpd+Fpbw+DJo0W5t/jaahc0+R3czRAZbzQ1HbcIojuYjy7BLZnqa65o0ry/RHR RuEPtztTiTtSxg8COho91kLCw5v8BDCdYa4PNn0ZAF1OYTuQztCo+hrFQZfOLB4wMwuC1d QmeYha2J2nLn/TWq++LuPHWRlzWZiZwRMZVKM+kAqZuxHuQxw7NZqnT0Kqta5TC3dAMndQ RZgUH+GwOXzWJ6ZdckNsVkyH617tYNVA3J8JFupDtwg4WBvMnxfPRhVnjxVWOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697817372; a=rsa-sha256; cv=none; b=JTsJ0XpRKa18rm1TG8bj1VqHw+BHMhXapoT08/8995L2pAJ0X0RJsTF59LeGNVvQEcbqT4 50zOcXxpJzGw7l8Pv3Nc/nWvrzBBBAtHSpcfBE465wW4yEPN0pESqw6ElB0/rL87SF+vw7 9t+n7ubXtAEXMjnwo5E9jezKT6wd18ugYhozib8qSZkwmBMcELqYDWSBL3Hlrinqy0Xtt2 5dwp22g7U3UHEV3LO2yQE1tE7Dbahbp6aUk3o3NUoTcWIw5nHl1e/BgXNcYanw05Zz7FGu u4+aYSh2XEagQOGQkU787jafAL00r1srnX6tuub44nX86RK7IW2ynllLyFYvlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697817372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=St9DdKc3KElN5BamUSG/EKWnKqxJ6ho8K5POonEw1rg=; b=UT6QADQOdDkax4oyue8kGkMpwgV54zDPiUIooQtRPhV/rA7DdpkvotGJR3WOy2x0LiUJQV vtT+o6HdnB8nmw6kLRyegSQrKig1lD4vbUm7aw3zVSMNMlIzWrqgLZw8CYdYvAirmd5qsH ZHllShKVSdKXFKbyUaDQF367HnJc67kOwSeqJf4UlpxeHeJa0o0DB57dFmvKWGyIIp4wPK bl8JsndtM3INl7cS0kfkpQayt+dlnShF5SaqXsVUPB9kwJtscKtn/3OWeNaFXvPzcR970Z I9vxg8fpCE8sMJjs76i3u5Hw+AjzQsPB0R/Nw9DLyYuRQMZdN9VP8UKAFaX3Dg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SBq245Vgtzdh6; Fri, 20 Oct 2023 15:56:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39KFuCjJ021645; Fri, 20 Oct 2023 15:56:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39KFuCi9021642; Fri, 20 Oct 2023 15:56:12 GMT (envelope-from git) Date: Fri, 20 Oct 2023 15:56:12 GMT Message-Id: <202310201556.39KFuCi9021642@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: d4ee047036ce - stable/14 - arm64: do not disable the kern.kstack_pages tunable on arm64 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d4ee047036cea25334da2157171fecc26f6cb13c Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d4ee047036cea25334da2157171fecc26f6cb13c commit d4ee047036cea25334da2157171fecc26f6cb13c Author: Konstantin Belousov AuthorDate: 2023-10-10 00:02:06 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-20 15:55:45 +0000 arm64: do not disable the kern.kstack_pages tunable on arm64 (cherry picked from commit 39cddbd7a07c182c4f121bea5a6effa36862fc63) --- sys/kern/subr_param.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index f7d6cf848424..b7dbf606f492 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -170,9 +170,13 @@ init_param1(void) { TSENTER(); -#if !defined(__arm64__) + + /* + * arm64 and riscv currently hard-code the thread0 kstack size + * to KSTACK_PAGES, ignoring the tunable. + */ TUNABLE_INT_FETCH("kern.kstack_pages", &kstack_pages); -#endif + hz = -1; TUNABLE_INT_FETCH("kern.hz", &hz); if (hz == -1)