From nobody Fri Jan 21 06:37:21 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 9F42D196D7BA; Fri, 21 Jan 2022 06:37: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 4Jg8nF43FKz4TL0; Fri, 21 Jan 2022 06:37:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642747041; 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=re3hp9yvv4tl1feHhEqtkKxSGvuuAcFaa3ejuq6bv5A=; b=RucDuO/Q724LFQXQeNSo9Np6eq+d0GbJ2BvqiEmwLFL/lj8aDQuY8wDc4zOOQZiGPYZBoh yNS1suTh9OciOxQUHc9nSdgyBv/eUMDzPjznBHdMM3OAEgZ+LldjZBdT/yyLga9OnW/EJb 3r5EJXWCldYLzzf4YuhRW0N/aBri4KFELRvUWNqhv5l8kZzFFpLCuhrbo8sjxEtO5IfMsg Xv5t3II1YtZ/vP4ZnMJTnt3bPKcPsEOfofIPk2ZaVMw3B3nWplyqdnridyAeW45FFuP0/j W2G1y14csHbsu++RhAqaqCriq7QdOuCvSwIMxV4gR2Uwg2OmTQEOh/38UuPnUA== 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 6B11F171BD; Fri, 21 Jan 2022 06:37: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 20L6bLAN035384; Fri, 21 Jan 2022 06:37:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20L6bLPd035383; Fri, 21 Jan 2022 06:37:21 GMT (envelope-from git) Date: Fri, 21 Jan 2022 06:37:21 GMT Message-Id: <202201210637.20L6bLPd035383@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Takanori Watanabe Subject: git: 5c69be708433 - main - acpi: Ignore _STA and never disable AT RTC devices 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: takawata X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5c69be708433c7027b6a08f3d1487cd93d93318f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642747041; 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=re3hp9yvv4tl1feHhEqtkKxSGvuuAcFaa3ejuq6bv5A=; b=xNdfgpP4THp1bunrEuMsukuz+oyAMxmEHoI5WrsvFHhT3RchLpT9YkKCRjL5gNuAJIyhg/ dbiZppEXiuH9nnAmOqjU9OgyqYMB8pyT4OBuYetNQ6X5bSjjUMZFhMMw/GQVfj7W1QYEZC E8yaN81VXAGBE1VPKy/2dqOwxIxg3CO4xXEIcBuJbIFtTrDE21vxuxaTr7oYgah1ztpoeu LdTgwwxkaG3Ye6Ho33PbOoqGz0liKplyuFrDExtR/hdsyM3tGPVoW2ub3HVBWXVdhYcAwj 8IPWVjspX3hqJvABG5htlxMWLovriYten5TyNW7rjTHugqneXBjJApDGZaaVaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642747041; a=rsa-sha256; cv=none; b=ZnYWX9UrdCxMatlAytcN7aU+L15/J2M9ywc3jKVYr029tHgRZrAtkhgwgPIjfsBHOfrhgs OyD2y3w1s2M0WoDU1rgAQ0R+WcGUU46ofbizYT4PKFe/1xrBwJAxy49vaNyGQ+d2O6XRty KLpmFIiC+y3n9yrN7eKR0T7hOpmv6IUXr9tnFpx+is/eK0Fk9aO19aY+shkHk4KxMT8m4d u/3UIBe6s+4hOzIFelCuqSMfQZ2oeQvXgmK+BGxFyZYLKH/baeQRKyIPllRRzJAnXysQrm geX5dqS/GFO2m/jSG0srXJ7Sxj1JZ4QeI3wQ4S7GU8ul+1/jNWBgl4g3G6ibow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by takawata: URL: https://cgit.FreeBSD.org/src/commit/?id=5c69be708433c7027b6a08f3d1487cd93d93318f commit 5c69be708433c7027b6a08f3d1487cd93d93318f Author: Takanori Watanabe AuthorDate: 2022-01-21 06:30:46 +0000 Commit: Takanori Watanabe CommitDate: 2022-01-21 06:30:46 +0000 acpi: Ignore _STA and never disable AT RTC devices atrtc(4) should always install a SystemCMOS address space handler unless the RTC Not Present bit is not set in IAPC_BOOT_ARCH in the FADT. The atrtc(4) driver already checks this bit, but _STA can return not-present even when this bit is clear. Reviewed by : jhb Differential Revision: https://reviews.freebsd.org/D33891 --- sys/dev/acpica/acpi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index cd465fdce72b..a2ea69086559 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -2260,6 +2260,15 @@ acpi_probe_child(ACPI_HANDLE handle, UINT32 level, void *context, void **status) /* Never disable PCI link devices. */ if (acpi_MatchHid(handle, "PNP0C0F")) break; + + /* + * RTC Device should be enabled for CMOS register space + * unless FADT indicate it is not present. + * (checked in RTC probe routine.) + */ + if (acpi_MatchHid(handle, "PNP0B00")) + break; + /* * Docking stations should remain enabled since the system * may be undocked at boot.