git: 6bd08ccc9b09 - stable/14 - amdsmn: add support for AMD Family 19h Models 40h-4Fh

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sun, 20 Oct 2024 15:24:21 UTC
The branch stable/14 has been updated by markj:

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

commit 6bd08ccc9b09ae5da4cb2561244ab57576752cd1
Author:     Matthias Lanter <freebsd@lanter-it.ch>
AuthorDate: 2024-10-13 13:20:01 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-10-20 15:22:46 +0000

    amdsmn: add support for AMD Family 19h Models 40h-4Fh
    
    PR:             281962
    MFC after:      2 weeks
    
    (cherry picked from commit a76e28d10f8516a2e796bba3fff4257b150bc259)
---
 sys/dev/amdsmn/amdsmn.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/dev/amdsmn/amdsmn.c b/sys/dev/amdsmn/amdsmn.c
index a0a7b9db60f8..4f85c830b327 100644
--- a/sys/dev/amdsmn/amdsmn.c
+++ b/sys/dev/amdsmn/amdsmn.c
@@ -60,6 +60,7 @@
 #define	PCI_DEVICE_ID_AMD_17H_M30H_ROOT		0x1480	/* Also M70H, F19H M00H/M20H */
 #define	PCI_DEVICE_ID_AMD_17H_M60H_ROOT		0x1630
 #define	PCI_DEVICE_ID_AMD_19H_M10H_ROOT		0x14a4
+#define	PCI_DEVICE_ID_AMD_19H_M40H_ROOT		0x14b5
 #define	PCI_DEVICE_ID_AMD_19H_M60H_ROOT		0x14d8
 #define	PCI_DEVICE_ID_AMD_19H_M70H_ROOT		0x14e8
 
@@ -111,6 +112,12 @@ static const struct pciid {
 		.amdsmn_addr_reg = F17H_SMN_ADDR_REG,
 		.amdsmn_data_reg = F17H_SMN_DATA_REG,
 	},
+	{
+		.amdsmn_vendorid = CPU_VENDOR_AMD,
+		.amdsmn_deviceid = PCI_DEVICE_ID_AMD_19H_M40H_ROOT,
+		.amdsmn_addr_reg = F17H_SMN_ADDR_REG,
+		.amdsmn_data_reg = F17H_SMN_DATA_REG,
+	},
 	{
 		.amdsmn_vendorid = CPU_VENDOR_AMD,
 		.amdsmn_deviceid = PCI_DEVICE_ID_AMD_19H_M60H_ROOT,