No amdtemp sysctls, acpi errors, AMD Ryzen 5 2400G

Conrad Meyer cem at freebsd.org
Wed Nov 14 02:42:07 UTC 2018


On Tue, Nov 13, 2018 at 6:26 PM Daniel Eischen <deischen at freebsd.org> wrote:
> I've attached it.  If it gets filtered by the mail list, I'll
> make it http accessible.

Thanks Daniel.

It looks like your hostbridge zero device has a different device id
than in my first generation Ryzen system.  Would you please try the
following patch and see if it attaches on your system?  I don't
actually have documentation for Ryzen 2, unfortunately, so I'm not
totally sure if the SMN is accessed in the same way for the new
hostbridge device id.  The change below should at least attempt
attaching to hostb0 on your system.

diff --git a/sys/dev/amdsmn/amdsmn.c b/sys/dev/amdsmn/amdsmn.c
index 17792dd922cd..6fe36b4cc4da 100644
--- a/sys/dev/amdsmn/amdsmn.c
+++ b/sys/dev/amdsmn/amdsmn.c
@@ -60,7 +60,8 @@ struct amdsmn_softc {
 static struct pciid {
        uint32_t        device_id;
 } amdsmn_ids[] = {
-       { 0x14501022 },
+       { 0x14501022 },         /* Ryzen */
+       { 0x15d01022 },         /* Ryzen 2 */
 };

 /*
diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c
index 2463212c25f5..765e660a8461 100644
--- a/sys/dev/amdtemp/amdtemp.c
+++ b/sys/dev/amdtemp/amdtemp.c
@@ -102,6 +102,7 @@ static struct amdtemp_product {
        { VENDORID_AMD, DEVICEID_AMD_MISC16_M30H },
        { VENDORID_AMD, DEVICEID_AMD_MISC17 },
        { VENDORID_AMD, DEVICEID_AMD_HOSTB17H },
+       { VENDORID_AMD, 0x15d0 },
 };

 /*


Thanks,
Conrad


More information about the freebsd-current mailing list