From nobody Mon Aug 26 05:17:33 2024 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 4Wsf7d2f13z5VFW5; Mon, 26 Aug 2024 05:17:33 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wsf7d1zJhz56NT; Mon, 26 Aug 2024 05:17:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724649453; 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=8jaGIcmLgdmDpJcl+t2ET1RtIecdsHrknE1EeN/LVdg=; b=iiNgi/4U2F/rQLUNQyjnVkBC62ejNKi9tlZk0rquB3KLhxw0jTYabTRSTp51zZ9k3rVH29 YjvqMCZ6jcnFjcdkPH6sFZDBpaMCQISRo2uwm3piGKFEbLYxB+/rCKC5a/NIz7/+iO2G3p pXGdk1B01HDgmFx2HaYifpSBHLyG6y3m5Pw5HNSGPTAeYVTGFcUp6iHIT/Hurmwp1pCxeN C7XOhSqnK4RRcMTFib1Tqsw7rl5Vl2XUQLeonryeeecgoBum8+e7mujdLQtXqR6yRndGqh Zi1R442qjk1lQm+EEjSRKCaVHUf2AmPTELxqP2f9mr3y+T+MC8OqnZr/VWehqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724649453; a=rsa-sha256; cv=none; b=R1a3kq7dweb+fZReTQbs1P2MRn33QpoVb1+UNdo1nZ6RRjZonib+PqZkUtktrA8gKqAGJr QuIA7N+QOOHZ2eq51pyikI0oYgARc1cw83K0RsN9gRoGphPuofFg4qeZr8k0fmES7pKuCm m8pLCGBBQZla+A9WIZIXnfUBRNeYHQe7I+yMIe6j4ttuhFyzn/2DOYZghQUiOahX5v4txM 3g9/HdY02BxSHRnge5GXn9+L5S1PudiosebFxBsNjCaMTCkGAxnchygSHCIRVQf9/A3WPl jn1Hr43uC7iVRXxr/d4pqnn5YQY88XAkd/6vSPO0QZXOG9z7/ECFkcWurb1Mdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724649453; 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=8jaGIcmLgdmDpJcl+t2ET1RtIecdsHrknE1EeN/LVdg=; b=WKFjZJ8XRAJgGOBOEs2Q5LH9B73/q/0Tgx+tOnjpoIWBHJXBYOo+4tRZ5TpAOMA9SM5iwC o6rAgbrBrGRpIUrR2EADSu1p2GR2ZkXgTsE2gmXZlAz5P3DriNKarJsHPaOlKzi4zmssPO lAulHeuuML/HF3QkxO4REAJ2IQ6r2XbltT9Vs0tE36ez2VdJepmnUy/g8T+XTj4csKP3Hz wmXOUxmgwvpE651lt6uJ2lsOmi5ukcOnQTUQiKTzxqzTujPvmU/anlNToojajIfUISkwc/ Feu64KCRsXZPK2j/g78C+iZgMz4WeGoWwLdU2RbfOzEGa6CUrt2Lde3nZ30boA== 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 4Wsf7d1YDYztGs; Mon, 26 Aug 2024 05:17:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47Q5HX9K035707; Mon, 26 Aug 2024 05:17:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47Q5HXaj035704; Mon, 26 Aug 2024 05:17:33 GMT (envelope-from git) Date: Mon, 26 Aug 2024 05:17:33 GMT Message-Id: <202408260517.47Q5HXaj035704@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Xin LI Subject: git: cb8f15aeede6 - stable/13 - amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Phoenix" processors 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cb8f15aeede63627e220c40fe4911df79f35fb69 Auto-Submitted: auto-generated The branch stable/13 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=cb8f15aeede63627e220c40fe4911df79f35fb69 commit cb8f15aeede63627e220c40fe4911df79f35fb69 Author: Oliver Fromme AuthorDate: 2024-08-23 04:46:19 +0000 Commit: Xin LI CommitDate: 2024-08-26 05:17:17 +0000 amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Phoenix" processors Adds support for AMD Ryzen 7 "Phoenix" processors (family 0x19, model 0x70-0x7f) to the amdsmn(4) and amdtemp(4) drivers. This enables temperature readings of these CPUs via sysctl. The sensors function identically to those for the "Raphael" processors (model 0x60-0x6f); only the PCI device ID differs. PR: kern/280942 Relnotes: yes MFC after: 3 days (cherry picked from commit ef3f8aa0a0492487ac7db839de078b1913f61b4c) --- sys/dev/amdsmn/amdsmn.c | 7 +++++++ sys/dev/amdtemp/amdtemp.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/sys/dev/amdsmn/amdsmn.c b/sys/dev/amdsmn/amdsmn.c index decb2c1249ed..fbef358f4957 100644 --- a/sys/dev/amdsmn/amdsmn.c +++ b/sys/dev/amdsmn/amdsmn.c @@ -61,6 +61,7 @@ #define PCI_DEVICE_ID_AMD_17H_M60H_ROOT 0x1630 #define PCI_DEVICE_ID_AMD_19H_M10H_ROOT 0x14a4 #define PCI_DEVICE_ID_AMD_19H_M60H_ROOT 0x14d8 +#define PCI_DEVICE_ID_AMD_19H_M70H_ROOT 0x14e8 struct pciid; struct amdsmn_softc { @@ -116,6 +117,12 @@ static const struct pciid { .amdsmn_addr_reg = F17H_SMN_ADDR_REG, .amdsmn_data_reg = F17H_SMN_DATA_REG, }, + { + .amdsmn_vendorid = CPU_VENDOR_AMD, + .amdsmn_deviceid = PCI_DEVICE_ID_AMD_19H_M70H_ROOT, + .amdsmn_addr_reg = F17H_SMN_ADDR_REG, + .amdsmn_data_reg = F17H_SMN_DATA_REG, + }, }; /* diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c index b38f92131c77..0e7f805b40fd 100644 --- a/sys/dev/amdtemp/amdtemp.c +++ b/sys/dev/amdtemp/amdtemp.c @@ -116,6 +116,7 @@ struct amdtemp_softc { #define DEVICEID_AMD_HOSTB17H_M60H_ROOT 0x1630 #define DEVICEID_AMD_HOSTB19H_M10H_ROOT 0x14a4 #define DEVICEID_AMD_HOSTB19H_M60H_ROOT 0x14d8 +#define DEVICEID_AMD_HOSTB19H_M70H_ROOT 0x14e8 static const struct amdtemp_product { uint16_t amdtemp_vendorid; @@ -142,6 +143,7 @@ static const struct amdtemp_product { { VENDORID_AMD, DEVICEID_AMD_HOSTB17H_M60H_ROOT, false }, { VENDORID_AMD, DEVICEID_AMD_HOSTB19H_M10H_ROOT, false }, { VENDORID_AMD, DEVICEID_AMD_HOSTB19H_M60H_ROOT, false }, + { VENDORID_AMD, DEVICEID_AMD_HOSTB19H_M70H_ROOT, false }, }; /* @@ -875,6 +877,7 @@ amdtemp_probe_ccd_sensors19h(device_t dev, uint32_t model) _Static_assert((int)NUM_CCDS >= 12, ""); break; case 0x60 ... 0x6f: /* Zen4 Ryzen "Raphael" */ + case 0x70 ... 0x7f: /* Zen4 Ryzen "Phoenix" */ sc->sc_temp_base = AMDTEMP_ZEN4_CCD_TMP_BASE; maxreg = 8; _Static_assert((int)NUM_CCDS >= 8, "");