From nobody Wed Oct 09 15:06:17 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 4XNx6d6dqtz5Ydrn for ; Wed, 09 Oct 2024 15:06:17 +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 4XNx6d09ZGz4mtH for ; Wed, 9 Oct 2024 15:06:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728486377; 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=STYDJXhIfG9eHLtHh2d5EdvcEUF+ezU2B2qfbCewiz4=; b=aLVfPUN2EwYD2nlaZeF44Q7lC13ZHjVCzF0cDFJJXRs+lHwSxRlw3duAEoaVHxYAnLyv66 9UcmxoDuzva1xPjO8l2dYtNjuvWWtBybr8h8qpZcDuRNv43mPFE/5yGuR/P7gDH8J4zBAB 0xmOtTC80MenTvl4aG23SGCWfvXhPPvzzQP5XX08Bx56l0RTjJhZA2DYs3/FbLp3o4fCWF SAtUSnGYbud4iqd+Ih9Lkl7FjKlbWU4hny32OBBPW61kuuNeA0fj33iEh6Qgp8OEYyYDVk 1vd49DpElbZydNIWRKtRkbM9oKnRsBSj0Odzh7yTXp6O2nxrjrXzrjts+74M2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728486377; a=rsa-sha256; cv=none; b=nuLLn5cp9pW4GQiNQWvSE/6UzMHIMSGsg/6XT/5J+Mrd2J6VM3puhiJslNWCo6gjol+pxu PKH3kURtq5Rbgi+cwNhKOjU6Th1gLlTOlA4Mu+1vazRSAMXRa8zjvUvVSUPqWBUpkL9a4a gBInE8A3TNSE79NCeZ+pNJPy/btIdDwyz4ol2TJH4muhI6newKve5+EYuNNPEuL352ITec iik3L6Pil7E7JnSK8tjYGaSwfGp5M2BFxGoGvGr4PfchWdka3f/X+Zqhw8y2BP1X4C+e6j AJoYbTBRgUbLqhncO7NS1wGLlj7bMFJCeZfTmjYac4mBmC1RNgSEFOGMQ29BhQ== 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 4XNx6c6n6nzHsR for ; Wed, 9 Oct 2024 15:06:16 +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 499F6GIE084590 for ; Wed, 9 Oct 2024 15:06:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 499F6GuI084589 for bugs@FreeBSD.org; Wed, 9 Oct 2024 15:06:16 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 281962] amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 40h-4Fh Date: Wed, 09 Oct 2024 15:06:17 +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: freebsd@lanter-it.ch 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=3D281962 Bug ID: 281962 Summary: amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 40h-4Fh Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: freebsd@lanter-it.ch Created attachment 254112 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D254112&action= =3Dedit Patch for amdsmn.c and amdtemp.c to support AMD Ryzen 7 "Rembrandt" The attached patch adds support for AMD Ryzen 7 "Rembrandt" processors (fam= ily 0x19, model 0x40-0x4f) 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, including 14.1-RELEA= SE. It should also work with 13, as only the PCI device ID is changed. Tested with Ryzen 7 PRO 6850U (family 0x19, model 0x44, https://bsd-hardware.info/?probe=3D0a2c02f944). Kernel messages: CPU: AMD Ryzen 7 PRO 6850U with Radeon Graphics (2695.04-MHz K8-class = CPU) Origin=3D"AuthenticAMD" Id=3D0xa40f41 Family=3D0x19 Model=3D0x44 Step= ping=3D1 [...] amdsmn0: on hostb0 amdtemp0: on hostb0 $ sysctl dev.amdtemp dev.amdtemp.0.core0.sensor0: 48.5C 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: 48.5C dev.cpu.0.cx_method: C1/hlt C2/io C3/io dev.cpu.0.cx_usage_counters: 49971 0 0 dev.cpu.0.cx_usage: 100.00% 0.00% 0.00% last 42529us 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: 2700/3240 1800/1980 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.=