git: ce9de516eef3 - main - amdsmu: Print detailed stats for KRACKAN_POINT

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 26 Oct 2026 13:34:52 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=ce9de516eef333041d66a87dfb0aa4818cc5044f

commit ce9de516eef333041d66a87dfb0aa4818cc5044f
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-10-23 18:41:34 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-10-26 13:34:41 +0000

    amdsmu: Print detailed stats for KRACKAN_POINT
    
    Testing on a Dell AMD Ryzen AI 5 PRO 435 laptop shows that the same
    diagnostic information is valid.
    
    Reviewed by:    obiwac
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/amdsmu/amdsmu.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sys/dev/amdsmu/amdsmu.c b/sys/dev/amdsmu/amdsmu.c
index 555b263b5bc7..c37a06e18454 100644
--- a/sys/dev/amdsmu/amdsmu.c
+++ b/sys/dev/amdsmu/amdsmu.c
@@ -338,7 +338,11 @@ amdsmu_resume_check(device_t dev, enum power_stype stype)
 	    "failed to enter S0i3 during last suspend; "
 	    "battery drain will be excessive\n");
 
-	if (sc->product->amdsmu_deviceid != PCI_DEVICEID_AMD_PHOENIX_ROOT) {
+	switch (sc->product->amdsmu_deviceid) {
+	case PCI_DEVICEID_AMD_PHOENIX_ROOT:
+	case PCI_DEVICEID_AMD_KRACKAN_POINT_ROOT:
+		break;
+	default:
 		device_printf(dev, "only limited diagnostic information "
 		    "available for %x:%x; check dev.amdsmu.0 sysctl tree\n",
 		    sc->product->amdsmu_vendorid,