From nobody Tue Aug 20 10:17:21 2024 X-Original-To: bugs@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 4Wp54L1Hmhz5SpxH for ; Tue, 20 Aug 2024 10:17:22 +0000 (UTC) (envelope-from bugzilla-noreply@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 4Wp54K6sNmz4DQb for ; Tue, 20 Aug 2024 10:17:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724149042; a=rsa-sha256; cv=none; b=R8vWZWlNtHSAwluDYi3E4Ab2aWNNjp2puoFzZybDV4AG4KO4zY/hvuHL9qeV0B641lnQdP j22LepP74dyyuXJ9CXqRHA3L8pMI/l3A6c0kurrsX1UgG1t7gvoQIb/VYYP/sf4ULAjbDq JufclfLj3kEypaVo2zSirS1cEF2kXRpSstNhvmXmlCmYNWPg8OJPejOyDdprgswMq3S7iA +ep1PRZTFNbxnl8oUUmdjKtne62vtcPf5UmbXT9wmnRXkOAdWPHyfNpE+aTbwqCui5mYLN NTc7P5E4tzhmZbLQ2wQTBlBgAsdbNTJel8lcdq4rOzTujCqXDKVtUdPY16zLzg== 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=1724149042; 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=0kiD1Iakv+NnomOixah2pvYPMQ2CvbxSG/7ZV0cQS8I=; b=hFAF8P2yqZKslVLhpvM6H5tKbFy+3mH6G/BsWS0i2TJw62/OiZx6BkTMlWkyilipyNkOeI PhmPkQ7mYabU06TF4EmiqVSh1mZvfuZjVzwc/DSBrdcKy3ibBuvhMbqTswoF2oyHRS6mO4 WhgKOkhowb1nI2v9KlW8FbehiMcdN9Ok3ekmqyU8tlmJHZuEZzJjT+j+aklSnrjKOaz4ES Iw9rVTYKc18eWti0LnEM7FZn5f67dgIRtFqNl/jP7bFQC2mSZk1Lghz6CUz+kaREAgZ4CR k/A1ry2vDHak7Iokbcd0FQhSiCRxD2WH6jzIACTbzgGOzNdFbdIfsoW3kkrjcA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4Wp54K6MCzzwcs for ; Tue, 20 Aug 2024 10:17:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47KAHLC9074207 for ; Tue, 20 Aug 2024 10:17:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47KAHLli074206 for bugs@FreeBSD.org; Tue, 20 Aug 2024 10:17:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280942] amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 10h-1Fh. Date: Tue, 20 Aug 2024 10:17:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: olli@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280942 Bug ID: 280942 Summary: amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 10h-1Fh. Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: olli@FreeBSD.org Created attachment 252943 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252943&action= =3Dedit Patch for amdsmn.c and amdtemp.c to support AMD Ryzen 7 "Phoenix" The attached patch adds support for AMD Ryzen 7 "Phoenix" processors (family 0x19, model 0x70-0x7f) to the amdsmn(4) and amdtemp(4) drivers, enabling temperature readings of these CPUs via sysctl. The sensors work the same as= for the "Raphael" processors (model 0x60-0x6f), only the PCI device ID differs. The patch applies cleanly to (15-) current, 14-stable and 13-stable, includ= ing 14.1-RELEASE and 13.4-BETA. However, I have *not* tested it on 13, but I'm fairly certain that it works there, too (as explained above, it's only the = PCI device ID). Tested with Ryzen 7 8700G (family 0x19, model 0x75). Kernel messages: CPU: AMD Ryzen 7 8700G w/ Radeon 780M Graphics (4200.20-MHz K8-class = CPU) Origin=3D"AuthenticAMD" Id=3D0xa70f52 Family=3D0x19 Model=3D0x75 Step= ping=3D2 [...] amdsmn0: on hostb0 amdtemp0: on hostb0 $ sysctl dev.amdtemp dev.amdtemp.0.core0.sensor0: 32.1C dev.amdtemp.0.sensor_offset: 0 dev.amdtemp.0.%parent: hostb0 dev.amdtemp.0.%pnpinfo:=20 dev.amdtemp.0.%location:=20 dev.amdtemp.0.%driver: amdtemp dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors dev.amdtemp.%parent:=20 $ sysctl dev.cpu.0 dev.cpu.0.temperature: 32.1C dev.cpu.0.cx_method: C1/hlt C2/io C3/io dev.cpu.0.cx_usage_counters: 931437 0 0 dev.cpu.0.cx_usage: 100.00% 0.00% 0.00% last 1557us dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_supported: C1/1/1 C2/2/18 C3/3/350 dev.cpu.0.freq_levels: 4200/5040 2200/2420 1600/1600 dev.cpu.0.freq: 1600 dev.cpu.0.%parent: acpi0 dev.cpu.0.%pnpinfo: _HID=3DACPI0007 _UID=3D0 _CID=3Dnone dev.cpu.0.%location: handle=3D\_SB_.PLTF.C000 dev.cpu.0.%driver: cpu dev.cpu.0.%desc: ACPI CPU --=20 You are receiving this mail because: You are the assignee for the bug.=