From nobody Wed Nov 15 21:28:18 2023 X-Original-To: dev-commits-src-main@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 4SVx9G5C2Qz50mBb; Wed, 15 Nov 2023 21:28:18 +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 4SVx9G4SWqz4flW; Wed, 15 Nov 2023 21:28:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700083698; 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=qBjols3lSFaL0gj2WQR8kFoplWtYItZScJscYK85/MA=; b=K8z/55VmRoKH0D43tAmC8kw1j4R0X8mQj8Exejvfn3yiQWD0vJvsbZAr8KKGHQcu8z/6XB k2qr/OTJ3YaYbcEyE7xRaL/G+VCprx1t6G8et6o7nuAI8pwGce/MRds3zrr9iHfwY9Yxy+ W/ve66SN62GJ0Uw39NhFG4jBoYmyN7Ke7zqYOdzVAY7x4rT4Z50Z/OOGMo7LSaW4hh2GWM fYbMEeQsk9snPX7oQKisvvg8aSLk7RGqYFYik+K6Oukzm3GI5/OwgnPST8EuirpTXYU42x MX+xZDI2xX6/R05U2uu0QjLiUMFG0vqesc2YAhdpS0JnPb6w4fK3JzQx1NIpZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700083698; 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=qBjols3lSFaL0gj2WQR8kFoplWtYItZScJscYK85/MA=; b=HJvlXGQTZuRUoHTOZjK24PbWdxGI/Y5Fg5T57Cmhm/Q5vvoad70JDL/Tw70QUry55tkyGq tpIOfhRg4AD8INrwfXn/Y0fYVK/lxWe0kMSE7knpJieVsIlU9AFcppT4LCeP9mJxvTU3h4 6qpcrojhG2RZVofOBx3RSM5Cwqat06QHx3b/I/mQRZevNvBBBzLzsz8Sdc8SqH9hl+9PsV jaT2w25nK6oA9F+BydcNeYyaWbAXJo31ZvUYNm//hMW0ev/T4EWTvNSkQHRK5u/jiNBNXS atKpW11pMRoLlVgVpTB6UszMw/3q2KrzA+mPbQGJfJGXxTHLrnWAmoQCc7qb/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700083698; a=rsa-sha256; cv=none; b=W//tkh+Iv/tYWMscgoYcqvN6bp20GKnPs0FGYLP1NFYno7eIXGOzC8D+4yU3z0StQbVcPf dweU8K8uLSGCL/gHbUsKMaUObP8UVPdYynxqCyMm8jY7mJtmkacNXULVNsHXR2xW6Hk7Aa aYor44RLDCzeWgZ5fyUAfdZgp4tVRx+k0kphBmULXy/cYcVfsWeiQxvBK5WP31H5RMNctt 3btZ6y6+gVe6mPEWrY1vyFIKrKmNX7xXfL0+A3vvI1/9f2pqRx7LsiDKg+jhPFQO5Y1JBv +7iNflFnL5Tinwz6dHxtJWT4UBSIhk6w2+dsJjhZ6wtmSc5vBMEEEVn9XW/5PQ== 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 4SVx9G3Wd7zYNL; Wed, 15 Nov 2023 21:28:18 +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 3AFLSId2096571; Wed, 15 Nov 2023 21:28:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AFLSIcs096568; Wed, 15 Nov 2023 21:28:18 GMT (envelope-from git) Date: Wed, 15 Nov 2023 21:28:18 GMT Message-Id: <202311152128.3AFLSIcs096568@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Gallatin Subject: git: 6f38d2e7b059 - main - acpi: Add workaround for Altra I2C memory resource List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gallatin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6f38d2e7b0599f9b61c04686eb9a7faf3264b8ec Auto-Submitted: auto-generated The branch main has been updated by gallatin: URL: https://cgit.FreeBSD.org/src/commit/?id=6f38d2e7b0599f9b61c04686eb9a7faf3264b8ec commit 6f38d2e7b0599f9b61c04686eb9a7faf3264b8ec Author: Andrew Gallatin AuthorDate: 2023-11-15 21:22:00 +0000 Commit: Andrew Gallatin CommitDate: 2023-11-15 21:25:00 +0000 acpi: Add workaround for Altra I2C memory resource Submitted by: allanjude Sponsored by: Ampere Computing LLC Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D28741 --- sys/dev/acpica/acpi_resource.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c index 373cc6da9820..b845fd146f67 100644 --- a/sys/dev/acpica/acpi_resource.c +++ b/sys/dev/acpica/acpi_resource.c @@ -517,6 +517,13 @@ acpi_parse_resources(device_t dev, ACPI_HANDLE handle, acpi_MatchHid(handle, "ARMHD620") != ACPI_MATCHHID_NOMATCH) arc.ignore_producer_flag = true; + /* + * The DesignWare I2C Controller on Ampere Altra sets ResourceProducer on + * memory resources. + */ + if (acpi_MatchHid(handle, "APMC0D0F") != ACPI_MATCHHID_NOMATCH) + arc.ignore_producer_flag = true; + status = AcpiWalkResources(handle, "_CRS", acpi_parse_resource, &arc); if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { printf("can't fetch resources for %s - %s\n",