Howdy.

This patch adds AMD 15h/3xh (i.e. A8-7670K) and Kaveri devices.

dmesg and patch attached.

Comments. Ok?

+--+
Carlos
OpenBSD 6.3-current (GENERIC.MP) #1: Thu Apr 19 11:04:10 PDT 2018
    los@rollo.castle:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16046288896 (15302MB)
avail mem = 15552061440 (14831MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xecc20 (55 entries)
bios0: vendor American Megatrends Inc. version "V1.3" date 04/13/2016
bios0: MSI MS-7969
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET UEFI IVRS SSDT SSDT CRAT SSDT 
SSDT
acpi0: wakeup devices SBAZ(S4) P0PC(S4) OHC1(S4) EHC1(S4) OHC2(S4) EHC2(S4) 
OHC3(S4) EHC3(S4) OHC4(S4) XHC0(S4) XHC1(S4) PE20(S4) PE21(S4) PE23(S4) 
PB21(S4) PB22(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD A8-7670K Radeon R7, 10 Compute Cores 4C+6G, 3595.94 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,DBKP,PERFTSC,ITSC,FSGSBASE,BMI1
cpu0: 96KB 64b/line 3-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
cpu1: AMD A8-7670K Radeon R7, 10 Compute Cores 4C+6G, 3593.29 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,DBKP,PERFTSC,ITSC,FSGSBASE,BMI1
cpu1: 96KB 64b/line 3-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 18 (application processor)
cpu2: AMD A8-7670K Radeon R7, 10 Compute Cores 4C+6G, 3593.29 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,DBKP,PERFTSC,ITSC,FSGSBASE,BMI1
cpu2: 96KB 64b/line 3-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 19 (application processor)
cpu3: AMD A8-7670K Radeon R7, 10 Compute Cores 4C+6G, 3593.29 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,DBKP,PERFTSC,ITSC,FSGSBASE,BMI1
cpu3: 96KB 64b/line 3-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 21, 24 pins
ioapic1 at mainbus0: apid 1 pa 0xfec01000, version 21, 32 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (P0PC)
acpiprt2 at acpi0: bus -1 (PE20)
acpiprt3 at acpi0: bus -1 (PE21)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus 1 (PB21)
acpiprt6 at acpi0: bus -1 (PB22)
acpiprt7 at acpi0: bus 2 (PB31)
acpiprt8 at acpi0: bus -1 (PB32)
acpiprt9 at acpi0: bus 3 (PB33)
acpiprt10 at acpi0: bus -1 (PB34)
acpiprt11 at acpi0: bus -1 (PE22)
acpicpu0 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
acpivideo2 at acpi0: VGA_
cpu0: 3595 MHz: speeds: 3600 3400 3100 2800 2400 1900 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 15h Root Complex" rev 0x00
"AMD AMD64 15h IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
radeondrm0 at pci0 dev 1 function 0 "ATI Kaveri Radeon R7" rev 0xd4
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci0 dev 1 function 1 "ATI Kaveri HD Audio" rev 0x00: msi
azalia0: no supported codecs
pchb1 at pci0 dev 2 function 0 "AMD AMD64 15h PCIE" rev 0x00
ppb0 at pci0 dev 2 function 1 "AMD AMD64 15h PCIE Bridge" rev 0x00: msi
pci1 at ppb0 bus 1
oce0 at pci1 dev 0 function 0 "ServerEngines BladeEngine2 10GbE" rev 0x02: apic 
1 int 0, address b4:99:ba:5d:d2:f0
oce1 at pci1 dev 0 function 1 "ServerEngines BladeEngine2 10GbE" rev 0x02: apic 
1 int 1, address b4:99:ba:5d:d2:f4
pchb2 at pci0 dev 3 function 0 "AMD AMD64 15h PCIE" rev 0x00
ppb1 at pci0 dev 3 function 1 "AMD AMD64 15h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G (0x4c00), 
msi, address 4c:cc:6a:46:e7:25
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ppb2 at pci0 dev 3 function 3 "AMD AMD64 15h PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
xhci0 at pci3 dev 0 function 0 "VIA VL805 xHCI" rev 0x01: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "VIA xHCI root hub" rev 3.00/1.00 
addr 1
pchb3 at pci0 dev 4 function 0 "AMD AMD64 15h PCIE" rev 0x00
xhci1 at pci0 dev 16 function 0 "AMD Bolton xHCI" rev 0x09: msi
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Patriot Blast, SAFM> SCSI3 0/direct fixed 
t10.ATA_Patriot_Blast_DF0B0773027D00006925
sd0: 114473MB, 512 bytes/sector, 234441648 sectors, thin
sd1 at scsibus1 targ 1 lun 0: <ATA, SAMSUNG HM100UI, 2AM1> SCSI3 0/direct fixed 
naa.50024e9204a70bb6
sd1: 953869MB, 512 bytes/sector, 1953525168 sectors
ohci0 at pci0 dev 18 function 0 "AMD Hudson-2 USB" rev 0x11: apic 0 int 18, 
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "AMD Hudson-2 USB2" rev 0x11: apic 0 int 17
usb2 at ehci0: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "AMD EHCI root hub" rev 2.00/1.00 
addr 1
ohci1 at pci0 dev 19 function 0 "AMD Hudson-2 USB" rev 0x11: apic 0 int 18, 
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "AMD Hudson-2 USB2" rev 0x11: apic 0 int 17
usb3 at ehci1: USB revision 2.0
uhub3 at usb3 configuration 1 interface 0 "AMD EHCI root hub" rev 2.00/1.00 
addr 1
piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x16: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800
spdmem1 at iic0 addr 0x53: 8GB DDR3 SDRAM PC3-12800
pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
ppb3 at pci0 dev 20 function 4 "AMD Hudson-2 PCI" rev 0x40
pci4 at ppb3 bus 4
ohci2 at pci0 dev 20 function 5 "AMD Hudson-2 USB" rev 0x11: apic 0 int 18, 
version 1.0, legacy support
pchb4 at pci0 dev 24 function 0 "AMD AMD64 15h Link Cfg" rev 0x00
pchb5 at pci0 dev 24 function 1 "AMD AMD64 15h Address Map" rev 0x00
pchb6 at pci0 dev 24 function 2 "AMD AMD64 15h DRAM Cfg" rev 0x00
pchb7 at pci0 dev 24 function 3 "AMD AMD64 15h Misc Cfg" rev 0x00
pchb8 at pci0 dev 24 function 4 "AMD AMD64 15h CPU Power" rev 0x00
pchb9 at pci0 dev 24 function 5 "AMD AMD64 15h Misc Cfg" rev 0x00
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "AMD OHCI root hub" rev 1.00/1.00 
addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "AMD OHCI root hub" rev 1.00/1.00 
addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb6 at ohci2: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "AMD OHCI root hub" rev 1.00/1.00 
addr 1
vmm0 at mainbus0: SVM/RVI
efifb at mainbus0 not configured
uhub7 at uhub0 port 1 configuration 1 interface 0 "VIA Labs USB2.0 Hub" rev 
2.10/4.20 addr 2
uhidev0 at uhub7 port 1 configuration 1 interface 0 "Microsoft Microsoft\M-. 
Nano Transceiver v1.0" rev 2.00/7.04 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub7 port 1 configuration 1 interface 1 "Microsoft Microsoft\M-. 
Nano Transceiver v1.0" rev 2.00/7.04 addr 3
uhidev1: iclass 3/1, 26 report ids
uhid0 at uhidev1 reportid 18: input=0, output=0, feature=1
uhid1 at uhidev1 reportid 23: input=0, output=0, feature=1
ums0 at uhidev1 reportid 26: 5 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhidev2 at uhub7 port 1 configuration 1 interface 2 "Microsoft Microsoft\M-. 
Nano Transceiver v1.0" rev 2.00/7.04 addr 3
uhidev2: iclass 3/0, 8 report ids
uhid2 at uhidev2 reportid 3: input=1, output=0, feature=0
uhid3 at uhidev2 reportid 4: input=1, output=0, feature=0
uhid4 at uhidev2 reportid 7: input=7, output=0, feature=0
uhid5 at uhidev2 reportid 8: input=1, output=0, feature=0
uhub8 at uhub7 port 3 configuration 1 interface 0 "ATEN International product 
0x8021" rev 1.10/1.00 addr 4
uhidev3 at uhub8 port 1 configuration 1 interface 0 "Corsair Corsair K70R 
Gaming Keyboard" rev 2.00/1.09 addr 5
uhidev3: iclass 3/1
ukbd1 at uhidev3: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
uhidev4 at uhub8 port 1 configuration 1 interface 1 "Corsair Corsair K70R 
Gaming Keyboard" rev 2.00/1.09 addr 5
uhidev4: iclass 3/0
uhid6 at uhidev4: input=4, output=0, feature=0
uhidev5 at uhub8 port 1 configuration 1 interface 2 "Corsair Corsair K70R 
Gaming Keyboard" rev 2.00/1.09 addr 5
uhidev5: iclass 3/0
ukbd2 at uhidev5: 120 variable keys, 0 key codes
wskbd3 at ukbd2 mux 1
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (348d8b5aa0286d7e.a) swap on sd0b dump on sd0b
initializing kernel modesetting (KAVERI 0x1002:0x1313 0x1462:0x7969).
error: [drm:pid0:cik_ring_test] *ERROR* radeon: ring 2 test failed 
(scratch(0x3010C)=0xCAFEDEAD)
error: [drm:pid0:cik_sdma_ring_test] *ERROR* radeon: ring 3 test failed 
(0xCAFEDEAD)
drm:pid0:cik_init *ERROR* disabling GPU acceleration
Can't enable IRQ/MSI because no handler is installed
radeondrm0: 1920x1080, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wskbd3: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
Index: pcidevs
===================================================================
RCS file: /home/los/cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1843
diff -u -p -r1.1843 pcidevs
--- pcidevs     14 Apr 2018 20:27:17 -0000      1.1843
+++ pcidevs     19 Apr 2018 18:00:42 -0000
@@ -718,6 +718,17 @@ product AMD AMD64_15_1x_PCIE_5     0x1416  AM
 product AMD AMD64_15_1x_PCIE_6 0x1417  AMD64 15/1xh PCIE
 product AMD AMD64_15_1x_PCIE_7 0x1418  AMD64 15/1xh PCIE
 product AMD AMD64_15_1x_IOMMU  0x1419  AMD64 15/1xh IOMMU
+product AMD AMD64_15_3X_LINK   0x141a  AMD64 15h Link Cfg
+product AMD AMD64_15_3X_ADDR   0x141b  AMD64 15h Address Map
+product AMD AMD64_15_3X_DRAM   0x141c  AMD64 15h DRAM Cfg
+product AMD AMD64_15_3X_MISC   0x141d  AMD64 15h Misc Cfg
+product AMD AMD64_15_3X_CPU_PM 0x141e  AMD64 15h CPU Power
+product AMD AMD64_15_3X_MISC_2 0x141f  AMD64 15h Misc Cfg
+product AMD AMD64_15_3X_RC     0x1422  AMD64 15h Root Complex
+product AMD AMD64_15_3X_IOMMU  0x1423  AMD64 15h IOMMU
+product AMD AMD64_15_3X_PCIE_1 0x1424  AMD64 15h PCIE
+product AMD AMD64_15_3X_PPB    0x1425  AMD64 15h PCIE Bridge
+product AMD AMD64_15_3X_PCIE_2 0x1426  AMD64 15h PCIE
 product AMD AMD64_16_PCIE      0x1439  AMD64 16h PCIE
 product AMD AMD64_14_HB                0x1510  AMD64 14h Host
 product AMD AMD64_14_PCIE_1    0x1512  AMD64 14h PCIE
@@ -1007,7 +1018,30 @@ product ASMEDIA ASM1143          0x1343  ASM1143 
 product ASUSTEK HFCPCI         0x0675  ISDN
 
 /* ATI Technologies */
+product ATI KAVERI_1           0x1304  Kaveri
+product ATI KAVERI_2           0x1305  Kaveri
+product ATI KAVERI_3           0x1306  Kaveri
+product ATI KAVERI_4           0x1307  Kaveri
+product ATI KAVERI_HDA         0x1308  Kaveri HD Audio
+product ATI KAVERI_5           0x1309  Kaveri Radeon R6/R7
+product ATI KAVERI_6           0x130a  Kaveri Radeon R6
+product ATI KAVERI_7           0x130b  Kaveri Radeon R4
+product ATI KAVERI_8           0x130c  Kaveri Radeon R7
+product ATI KAVERI_9           0x130d  Kaveri Radeon R6
+product ATI KAVERI_10          0x130e  Kaveri Radeon R5
+product ATI KAVERI_11          0x130f  Kaveri Radeon R7
+product ATI KAVERI_12          0x1310  Kaveri
+product ATI KAVERI_13          0x1311  Kaveri
+product ATI KAVERI_14          0x1312  Kaveri
+product ATI KAVERI_15          0x1313  Kaveri Radeon R7
 product ATI RADEON_HD6310_HDA  0x1314  Radeon HD 6310 HD Audio
+product ATI KAVERI_16          0x1315  Kaveri Radeon R5
+product ATI KAVERI_17          0x1316  Kaveri Radeon R5
+product ATI KAVERI_18          0x1317  Kaveri
+product ATI KAVERI_19          0x1318  Kaveri Radeon R5
+product ATI KAVERI_20          0x131b  Kaveri Radeon R4
+product ATI KAVERI_21          0x131c  Kaveri Radeon R7
+product ATI KAVERI_22          0x131d  Kaveri Radeon R6
 product ATI RADEON_HD6500D_HDA 0x1714  Radeon HD 6500D HD Audio
 product ATI RADEON_M241P       0x3150  Mobility Radeon X600
 product ATI FIREMV_2400_1      0x3151  FireMV 2400

Reply via email to