From nobody Tue Oct 11 08:32:49 2022 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 4Mmpv54J0Nz4fFb5; Tue, 11 Oct 2022 08:32:49 +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 4Mmpv53p79z3KGt; Tue, 11 Oct 2022 08:32:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665477169; 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=Oxxmo3f+8oPpDN4WKElnjtoqKpAVjZhCUZX3/HSMinU=; b=AVAUIasZmxO20h4kzwBJvVqihmCa46G1Ate2CBqP2BU22Rm8A0EZ27acqlMD6kjTZvxJN8 oUPM0o2Rk5BKaza5mgbP4B1L0DD+Ka+3VCeu468oEDVGNvcouYH5mor4NJk1oWnrl6rvbX xUpdUxvhk++xcO+e1u++/FFWb5SyKTu64swpn1Wwv09+xdkjMz4rhivLskaq+gvygtKlvT DS+kYjPzUTJD79xmG+isiNM0A1QnoeXgiIQ/BREKSKtYtUvr8dpuXb3/MVMfl1xHn9Qq74 Wb3AYn+ksZPSnMXr8KZXr1beWDqKmmTP8I6fJ7HkmlXlS/yBlxHa375bx7yzlg== 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 4Mmpv52ryFzvF0; Tue, 11 Oct 2022 08:32:49 +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 29B8WnSo003120; Tue, 11 Oct 2022 08:32:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29B8WnnR003119; Tue, 11 Oct 2022 08:32:49 GMT (envelope-from git) Date: Tue, 11 Oct 2022 08:32:49 GMT Message-Id: <202210110832.29B8WnnR003119@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Tom Jones Subject: git: eee0f7aea425 - main - acpi: Put CPPC workaround behind i386/amd64 if def 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: thj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eee0f7aea42564fe005c74f004d63f8cc170ef59 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665477169; 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=Oxxmo3f+8oPpDN4WKElnjtoqKpAVjZhCUZX3/HSMinU=; b=pyAPm4mmVwUK1xHEfG9p473ZUckFXOlEFDwdJ/5UCrBl9jrkEeILrKDDo3qUEC1HWcZ/ia Q2SHhCVhOKKPa3+CUxa435LS73NxCAJz7SFyqpwM5AMF1222LHRablavbKWb1AjMM+dKhX F9NNj02fm/p+3Dp2mujvdUHyEUbuf2YgPPA69Ya4aPNmu55ZYGNs+d5m5dLWoerP5pPcql NU9OKSaXqTg7q9wbq/v8CzpYagF1Z97m9QxSJiH6zPJqIDSKV3Eo5/EInyzqZ+uMR1pzOk RcAjvtet2xgpX196MxkGjCybhu7xDLdBzbXRfo1MVME3NuMjRVuW8toHGuQ2XA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665477169; a=rsa-sha256; cv=none; b=rKHN0JX27PQ3whrKSgD84YM66dYy6UUPUn3yPLelj/T815Neu40yP9r1YrGyaza8ZmEeQ1 PytY8qb9vF0HwQTQs5XP1HfdHK99q7PDZQg8ZSH2UtJ2s5IlZA9ak7FzUw67j/rVoCnmH6 9J5osYOoVJKD+VHOKRwW+EN8hseOuwVCYspXxevXQMlzIGjuk7hfJgtT9yTbaZJifnDArF J7FQns7gYEBSlrK7gmk2xmHOQxhj9nU37lCUyTLCMkyCpveAvgR6y+WsZah7NPjD7fcLUf Jro+ZlQa/+qT/DY4GY0JOP61lzDArGdMy2NbYmMLskr1sDtoKtwgjutf6JWD1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by thj: URL: https://cgit.FreeBSD.org/src/commit/?id=eee0f7aea42564fe005c74f004d63f8cc170ef59 commit eee0f7aea42564fe005c74f004d63f8cc170ef59 Author: Tom Jones AuthorDate: 2022-10-11 08:30:34 +0000 Commit: Tom Jones CommitDate: 2022-10-11 08:31:22 +0000 acpi: Put CPPC workaround behind i386/amd64 if def While CPPC is available on arm64 platforms with ACPI we don't know if we need to work around issues with firmware there. --- sys/dev/acpica/acpi_cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index 49d2bd11fdaa..ea99cfdeb90f 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -153,7 +153,9 @@ static struct sysctl_ctx_list cpu_sysctl_ctx; static struct sysctl_oid *cpu_sysctl_tree; static int cpu_cx_generic; static int cpu_cx_lowest_lim; +#if defined(__i386__) || defined(__amd64__) static bool cppc_notify; +#endif static struct acpi_cpu_softc **cpu_softc; ACPI_SERIAL_DECL(cpu, "ACPI CPU"); @@ -985,11 +987,13 @@ acpi_cpu_startup(void *arg) NULL, 0, acpi_cpu_global_cx_lowest_sysctl, "A", "Global lowest Cx sleep state to use"); +#if defined(__i386__) || defined(__amd64__) /* Add sysctl handler to control registering for CPPC notifications */ cppc_notify = 1; SYSCTL_ADD_BOOL(&cpu_sysctl_ctx, SYSCTL_CHILDREN(cpu_sysctl_tree), OID_AUTO, "cppc_notify", CTLFLAG_RDTUN | CTLFLAG_MPSAFE, &cppc_notify, 0, "Register for CPPC Notifications"); +#endif /* Take over idling from cpu_idle_default(). */ cpu_cx_lowest_lim = 0;