Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2025 13:37:40 +0100
From:      obiwac <obiwac@freebsd.org>
To:        cyric@mm.st
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: AMD SMU driver (amdsmu)
Message-ID:  <CAN8-kNXeHYt0QSSjEORR6DkniMuSc41Hxb85pr7yNmJkR2earw@mail.gmail.com>
In-Reply-To: <f43eae80-2e53-42da-8ac7-c32ca23e7d6a@mm.st>
References:  <CAN8-kNXHVjzFawtP7g2y2gVB3bNPa2=DYdMVCxqV4qDaePM6Jw@mail.gmail.com> <27d98db1-3d04-4c17-89eb-27cba672d0b4@mm.st> <CAN8-kNXSXWCaDYV2587-uLcRNN3MZaRg141z-kKRxcpoopjaHw@mail.gmail.com> <f43eae80-2e53-42da-8ac7-c32ca23e7d6a@mm.st>

next in thread | previous in thread | raw e-mail | index | archive | help

Yeah, maybe I should change this.

On Fri, 25 Jul 2025 at 13:36, <cyric@mm.st> wrote:
>
> obiwac wrote:
> > This is the PCI device ID of the root complex (usually hostb0). You
> > can check this with pciconf -lv in "device", e.g.
> >
> > hostb0@pci0:0:0:0:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022
> > device=0x14e8 subvendor=0xf111 subdevice=0x0006
> >     vendor     = 'Advanced Micro Devices, Inc. [AMD]'
> >     device     = 'Phoenix Root Complex'
> >     class      = bridge
> >     subclass   = HOST-PCI
>
> Thanks, I was misled by "CPUID" in the constant name.
>
> > On Fri, 25 Jul 2025 at 12:37, <cyric@mm.st> wrote:
> >>
> >> obiwac wrote:
> >>> Hi!
> >>>
> >>> I have added an amdsmu driver for the AMD SMU chip (which is necessary
> >>> for S0i3 entry as well as diagnostics), and I'm looking for people to
> >>> review and test these changes out.
> >>>
> >>> The three patches I'm interested in at the moment are:
> >>>
> >>> - https://reviews.freebsd.org/D48683 amdsmu: Initial work on a driver
> >>> for the AMD SMU
> >>> - https://reviews.freebsd.org/D48714 amdsmu: Get and expose sysctls
> >>> for metrics about last sleep
> >>> - https://reviews.freebsd.org/D51487 amdsmu: Read and dump idlemask
> >>>
> >>> There is one other amdsmu-related patch, but it depends on ACPI
> >>> changes for s2idle that haven't been committed yet, so it's less of a
> >>> priority:
> >>>
> >>> - https://reviews.freebsd.org/D48721 amdsmu: Sleep entry/exit hints for PMFW
> >>>
> >>> This is currently only expected to work on the following CPUs:
> >>>
> >>>     #define CPUID_AMD_REMBRANDT    0x14B5
> >>>     #define CPUID_AMD_PHOENIX    0x14E8
> >>>     #define CPUID_AMD_STRIX_POINT    0x14A4
> >>
> >> How does this map to e.g. dmesg cpu information?
> >>
> >> CPU: AMD Ryzen 9 9900X 12-Core Processor             (4391.75-MHz
> >> K8-class CPU)
> >>   Origin="AuthenticAMD"  Id=0xb40f40  Family=0x1a  Model=0x44  Stepping=0
> >>
> >>> And of these, I have only had the opportunity to test on Phoenix
> >>> (specifically the 7040 series).
> >>
> >
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN8-kNXeHYt0QSSjEORR6DkniMuSc41Hxb85pr7yNmJkR2earw>