From nobody Wed Dec 15 04:00:21 2021 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 B99CF18DA60F; Wed, 15 Dec 2021 04:00:21 +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 4JDM393H17z4t6H; Wed, 15 Dec 2021 04:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 511831545D; Wed, 15 Dec 2021 04:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BF40LdJ002725; Wed, 15 Dec 2021 04:00:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BF40LNW002720; Wed, 15 Dec 2021 04:00:21 GMT (envelope-from git) Date: Wed, 15 Dec 2021 04:00:21 GMT Message-Id: <202112150400.1BF40LNW002720@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: 00c069c68c30 - stable/13 - mca: Make some sysctls also a loader tunables. 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: mav X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 00c069c68c304ed59bdb29c227de3b3c92ac3b94 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639540821; 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=xycX9OMX26voLticz1WLoG2AyhP2xcRBLF++QHhTGgM=; b=Hy+2aJzlyqbHJ/hgW/9c6jMO7w1CimEKDU4pOup8sa7KVlK1EjN0d3HJlDcXoOSK5wo5VH JQs9Oyito1njI+3eAsiMvLlI2oreKagouafECJleA8ljX2WAYtS9WI08vnEGbjUvp09OX1 w+Ouwef7eO8tPb+71oD4JIUVVA2DgaXl9ycjsj3BT6EgRVMplnBNaVk5LgGezV9U5sZzly 7Cwex0kajTlnsnl8ZHtxIc3WkCeeRNWs7/F8Xdc7kpkiM8/XNJWsD7Q5Zin8SiijtkbAZ2 /EMoj43jg0XaW8QZchFfgpDX2AqxMYn/kPutTYrdODTx7250X836gULDMWnEJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639540821; a=rsa-sha256; cv=none; b=hiz0fr/E/63Y486MeP2IDPH2/4wOtrFnABJeyJdGwNEwm3/oWtO/vMFyM6+Py5ZJNTEr9x Q+CK6FONql3KXM9N4dbkWUCk1wvPPtJX+iUKXM6MxPs3+hjnIvKJZ/ElMiD4FyxupJ6BDo Obsjq0i/eJtpuENx6vLjIcsZg+dKpJTBLJ0jDkTeIa9Q/IJj5ISV3GxMu2Q4uRSKfD603o Xs5oOdarIWVOdBei6Vy2D7V035Svy3g0OHl4lmvvCwg9yn9LSQHdFsj9a+5J/bY579H5el jCZYbMZIjRWxaqwo+l89zm9T+jqlMr0I+q6h5K3jqGjO0PauZyJD/2c0PgOf8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=00c069c68c304ed59bdb29c227de3b3c92ac3b94 commit 00c069c68c304ed59bdb29c227de3b3c92ac3b94 Author: Alexander Motin AuthorDate: 2021-12-08 03:20:59 +0000 Commit: Alexander Motin CommitDate: 2021-12-15 04:00:17 +0000 mca: Make some sysctls also a loader tunables. MFC after: 1 week (cherry picked from commit c2003f268480f040f422c4d7e2d5f590e7084ba2) --- sys/x86/x86/mca.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/x86/x86/mca.c b/sys/x86/x86/mca.c index 801e18073a52..dcb3179bbb70 100644 --- a/sys/x86/x86/mca.c +++ b/sys/x86/x86/mca.c @@ -985,7 +985,7 @@ cmci_setup(void) cmc_state[i] = malloc(sizeof(struct cmc_state) * mca_banks, M_MCA, M_WAITOK | M_ZERO); SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_mca), OID_AUTO, - "cmc_throttle", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, + "cmc_throttle", CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, &cmc_throttle, 0, sysctl_positive_int, "I", "Interval in seconds to throttle corrected MC interrupts"); } @@ -1001,7 +1001,7 @@ amd_thresholding_setup(void) amd_et_state[i] = malloc(sizeof(struct amd_et_state) * mca_banks, M_MCA, M_WAITOK | M_ZERO); SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_mca), OID_AUTO, - "cmc_throttle", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, + "cmc_throttle", CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, &cmc_throttle, 0, sysctl_positive_int, "I", "Interval in seconds to throttle corrected MC interrupts"); } @@ -1037,8 +1037,8 @@ mca_setup(uint64_t mcg_cap) &mca_maxcount, 0, sysctl_mca_maxcount, "I", "Maximum record count (-1 is unlimited)"); SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_mca), OID_AUTO, - "interval", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, &mca_ticks, - 0, sysctl_positive_int, "I", + "interval", CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, + &mca_ticks, 0, sysctl_positive_int, "I", "Periodic interval in seconds to scan for machine checks"); SYSCTL_ADD_NODE(NULL, SYSCTL_STATIC_CHILDREN(_hw_mca), OID_AUTO, "records", CTLFLAG_RD | CTLFLAG_MPSAFE, sysctl_mca_records,