From nobody Wed Dec 08 03:22:19 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 C9FEC18BE0DF; Wed, 8 Dec 2021 03:22:19 +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 4J82XW3zGPz4vKs; Wed, 8 Dec 2021 03:22:19 +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 690224011; Wed, 8 Dec 2021 03:22:19 +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 1B83MJrK083897; Wed, 8 Dec 2021 03:22:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B83MJZT083896; Wed, 8 Dec 2021 03:22:19 GMT (envelope-from git) Date: Wed, 8 Dec 2021 03:22:19 GMT Message-Id: <202112080322.1B83MJZT083896@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Motin Subject: git: c2003f268480 - main - 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/main X-Git-Reftype: branch X-Git-Commit: c2003f268480f040f422c4d7e2d5f590e7084ba2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638933739; 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=us9B6diMef3+q7vj/7+LubqD+A7TV25LOFfZ8kNDu8A=; b=ovkC6l+oTrFkXE+WTEX6wEJA4CAH7l0+4vLQ5jMRBOTRsMARo/9qD3EziW+xoavLFdBeuK kyidU1P8r35/7Ule/2G+7oiW0YnBT/P+0U88s2BP53d1r6cDe/XOG832US7ZDALFSe0fT/ LSX1a4EYAFu+yOYuJEW6/s6SolWs5dxu8z5Ry0nU8J9khRvF+lS6gABhYXC6RWK7Jc+DDy 97j/WPs6yZ071p1Wb61yUqCBg//J97vSQ2mGiw794aGUmrfVXMy7ObHpuGVajpIzoWvXKr 8eGvMKpgtR3zvbX1l8Q7agXotRsnrtCaBcw0XpbHqsDxICZne9aI+1h91/u8Fg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638933739; a=rsa-sha256; cv=none; b=lKuAUFpGUseX5G41m0Amj1OknHM+PD4LXBMyucpABYT8y8TdGmH6ixMP7bCpebVLCi+ERB CUsiz7cTHBse7udAN4h2HEX1mvWeKB9YHlrtZSzHQ6S2B0yz0UBIMwnjhZ7PfBKlM41Y2z eJtUjMTmynyj4k6XGBJO/ic6kV56W2z0qffGTvbprlEYkciHx17liX9bobpASuwEVmYAPN 32zCCIe46BGftSy8T+/9rLrB0a+OzWcDbLp77oDd8uc8uxmbn796uFPHRY/JaJZr8FfNmp 9+qUweNmzutG4zTY6ajheJFMkPzKp3QQROHH1wI2jylAA5RHqxDpoCPL2e+Y4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=c2003f268480f040f422c4d7e2d5f590e7084ba2 commit c2003f268480f040f422c4d7e2d5f590e7084ba2 Author: Alexander Motin AuthorDate: 2021-12-08 03:20:59 +0000 Commit: Alexander Motin CommitDate: 2021-12-08 03:22:01 +0000 mca: Make some sysctls also a loader tunables. MFC after: 1 week --- 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,