From nobody Fri Oct 13 09:27:31 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 4S6Lkr1clQz4wkxh; Fri, 13 Oct 2023 09:27:32 +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 4S6Lkq5Zdwz4S58; Fri, 13 Oct 2023 09:27:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697189251; 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=b0ZRy472bo29HjdHfu2bd+VXCeH33n1jvbfDz/xBeow=; b=VghLkCtCfDbkuRdEMfdMwLo7NJEieCGMbwJz5XItYjRLoxUumofgwBNu67VpYZvwzhWFx7 0lAMozK7LiP2vOt6kWT8NyXtrY0OfS7nTfK9xaThUwNKClnxsSt9MXSTQjzV77VanhuWp0 6nwsMP5ke+2KmUW7ibsD4KXbzdU9VOvekR0zcGfc9FWnAschyW4cQH2BzJYgHSX7gImVQx reqkpFsN1UYIEyB9jtbGhp/YqL4F9tHboecJOWV98QmLTSoJOAcK89DpgeHNOso+mWrM1s +MP2TxHYe7/yKldfm8/5xukznctlEsWwtJfkD8lfIrnxPeSy2FMjatIOVIlwkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697189251; a=rsa-sha256; cv=none; b=gOpGKmiZ/ET0z4aKhszKGG+eSy5KDdtgN7xdetb0/HOyeRKRx4HwfaMW4vfta05oPVQCP8 9BECWpnfSwrwBb/jnKEwhtQoU90m0IbQD0S2UyDXVatzxNPFywrXEvkWF9/jxqyOiWIchB JnZLoiVvsaLdzknhzGUcUC58jNO2WU4XxJEyRG/OGtC9c+wWQwk/WDu1ZOC6rCTtYOjTKF cXavVAKYlfw77URizi5hE4/XBAyMYTsZirvmCeueo3Vho+JyCu86vCFR3pcPl8EOTB0xoz 78Q5aIqIn9nJtAl0NC4Zd1BwkpE5JC/FdVquD9wxK1q099PsaxTwwrZQJR3Owg== 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=1697189251; 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=b0ZRy472bo29HjdHfu2bd+VXCeH33n1jvbfDz/xBeow=; b=hFxLtYtBsqqt2fdad7zM6Xxrho3dgu2nzigyGypeTWBvupcxCgDIRk1Wx/fm9LR8bhSo10 oL34LPgiJG9yTFxTmKYlde8KHkW33Qngx6M9xkfSiYEkL+s5oTdqvEIBsee2AaEWs6IFwR F4I5TjxwIFYoNYuAsAF6jS9Xm8vzW0VHwYkdKmCXrW1b8Cls9tkQsDS8nkOABci7WK8IN0 AMe599PN2PzHPKXXUq2jgw1moU7rVB81DWo5pzUBkwoT2mUeUXB5BiloBR7xDPfYjcZcHC uLpPMv6Sbou2QasbST/5ybbdc/7dzv+Gb/HrnaMIKR96iECRxFRTNxPcpvYacg== 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 4S6Lkq4dM7zhyN; Fri, 13 Oct 2023 09:27:31 +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 39D9RVFr085736; Fri, 13 Oct 2023 09:27:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39D9RVIj085733; Fri, 13 Oct 2023 09:27:31 GMT (envelope-from git) Date: Fri, 13 Oct 2023 09:27:31 GMT Message-Id: <202310130927.39D9RVIj085733@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 6aa641b71d0d - main - arm64, risvc: warn about ignored kstack_pages for thread0 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/main X-Git-Reftype: branch X-Git-Commit: 6aa641b71d0dd1b26674f0b6dba086410f643595 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6aa641b71d0dd1b26674f0b6dba086410f643595 commit 6aa641b71d0dd1b26674f0b6dba086410f643595 Author: Konstantin Belousov AuthorDate: 2023-10-11 18:56:28 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-13 09:26:45 +0000 arm64, risvc: warn about ignored kstack_pages for thread0 Suggested by: brooks Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42143 --- sys/arm64/arm64/machdep.c | 4 ++++ sys/riscv/riscv/machdep.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c index 8aa45a86fef4..bb7689c19101 100644 --- a/sys/arm64/arm64/machdep.c +++ b/sys/arm64/arm64/machdep.c @@ -1049,6 +1049,10 @@ initarm(struct arm64_bootparams *abp) early_boot = 0; + if (bootverbose && kstack_pages != KSTACK_PAGES) + printf("kern.kstack_pages = %d ignored for thread0\n", + kstack_pages); + TSEXIT(); } diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c index 261dc8d6d840..d5767e240c7e 100644 --- a/sys/riscv/riscv/machdep.c +++ b/sys/riscv/riscv/machdep.c @@ -596,5 +596,9 @@ initriscv(struct riscv_bootparams *rvbp) early_boot = 0; + if (bootverbose && kstack_pages != KSTACK_PAGES) + printf("kern.kstack_pages = %d ignored for thread0\n", + kstack_pages); + TSEXIT(); }