Re: pcidevs and usbdevs in Dell r7515

2020-01-08 Thread Jonathan Gray
On Wed, Jan 08, 2020 at 06:51:26PM +0100, Hrvoje Popovski wrote:
> Hi all,
> 
> in attachment you can find diff with some new AMD devices found in Dell
> R7515.
> 
> pcidevs are from
> https://raw.githubusercontent.com/pciutils/pciids/master/pci.ids
> 
> and usbdevs are from
> https://usb-ids.gowdy.us/read/UD/1604/10c0
> https://certification.ubuntu.com/catalog/component/1604:10c0
> 
> names for amd devices from 0x1490 to 0x1497 are little to general :)

Every pci device has a function, what class do they have?
see pcidump -v

> dmesg with this diff

> "AMD 17h/3xh PCIE" rev 0x00 at pci2 dev 0 function 0 not configured
> "AMD 17h/3xh PCIE" rev 0x00 at pci9 dev 0 function 0 not configured
> "AMD 17h/3xh PCIE" rev 0x00 at pci16 dev 0 function 0 not configured
> "AMD 17h/3xh PCIE" rev 0x00 at pci28 dev 0 function 0 not configured

whatever this id is looks to be wrong

> Index: pci/pcidevs
> ===
> RCS file: /home/cvs/src/sys/dev/pci/pcidevs,v
> retrieving revision 1.1911
> diff -u -p -r1.1911 pcidevs
> --- pci/pcidevs   5 Jan 2020 12:54:21 -   1.1911
> +++ pci/pcidevs   8 Jan 2020 17:17:22 -
> @@ -272,6 +272,7 @@ vendorTOPIC   0x151f  Topic/SmartLink
>  vendor   ENE 0x1524  ENE
>  vendor   ARALION 0x1538  Aralion
>  vendor   TERRATEC0x153b  TerraTec
> +vendor   PLDA0x1556  PLDA
>  vendor   PERLE   0x155f  Perle
>  vendor   SYMBOL  0x1562  Symbol
>  vendor   SYBA0x1592  Syba
> @@ -736,7 +737,23 @@ product AMD 17_CCP_2 0x1468  17h Crypto
>  product AMD 17_PCIE_40x1470  17h PCIE
>  product AMD 17_PCIE_50x1471  17h PCIE
>  product AMD 17_3X_RC 0x1480  17h/3xh Root Complex
> +product AMD 17_3X_IOMM   0x1481  17h/3xh IOMMU

might as well have IOMMU in the define

> +product AMD 17_3X_PCIE_1 0x1482  17h/3xh PCIE
> +product AMD 17_3X_PCIE_2 0x1483  17h/3xh PCIE
> +product AMD 17_3X_PCIE_3 0x1484  17h/3xh PCIE
> +product AMD 17_3X_SPP0x1485  17h/3xh Reserved SPP

17h/3xh SPP

>  product AMD 17_3X_CCP0x1486  17h/3xh Crypto
> +product AMD 17_3X_PCIE_4 0x148a  17h/3xh PCIE
> +product AMD 17_3X_XHCI_1 0x148c  17h/3xh xHCI
> +product AMD 17_3X_F_10x1490  17h/3xh Function
> +product AMD 17_3X_F_20x1491  17h/3xh Function
> +product AMD 17_3X_F_30x1492  17h/3xh Function
> +product AMD 17_3X_F_40x1493  17h/3xh Function
> +product AMD 17_3X_F_50x1494  17h/3xh Function
> +product AMD 17_3X_F_60x1495  17h/3xh Function
> +product AMD 17_3X_F_70x1496  17h/3xh Function
> +product AMD 17_3X_F_80x1497  17h/3xh Function
> +product AMD 17_3X_PTDMA  0x1498  17h/3xh Passthrough DMA Engine

17h/3xh DMA

>  product AMD 14_HB0x1510  14h Host
>  product AMD 14_PCIE_10x1512  14h PCIE
>  product AMD 14_PCIE_20x1513  14h PCIE
> @@ -5866,6 +5883,7 @@ product MATROX G200EV   0x0530  MGA G200eV
>  product MATROX G200EW0x0532  MGA G200eW
>  product MATROX G200EH0x0533  MGA G200eH
>  product MATROX G200ER0x0534  MGA G200eR
> +product MATROX G200EW3   0x0536  MGA G200eW3
>  product MATROX IMPRESSION0x0d10  MGA Impression
>  product MATROX PRODUCTIVA_PCI0x1000  MGA G100 PCI
>  product MATROX PRODUCTIVA_AGP0x1001  MGA G100 AGP
> @@ -6830,6 +6848,9 @@ product PLANEX FNW_3800_TX  0xab07  FNW-38
>  
>  /* Platform */
>  product PLATFORM ES1849  0x0100  ES1849
> +
> +/* PLDA */
> +product  PLDA PCIE   0xbe00  PCI Express Bridge  

whitespace is wrong, string could be shorter

product PLDA PPB0xbe00  PCIE

>  
>  /* PLX products */
>  product PLX 1076 0x1076  I/O 1076

> Index: usb/usbdevs
> ===
> RCS file: /home/cvs/src/sys/dev/usb/usbdevs,v
> retrieving revision 1.707
> diff -u -p -r1.707 usbdevs
> --- usb/usbdevs   5 Jan 2020 10:13:14 -   1.707
> +++ usb/usbdevs   8 Jan 2020 14:08:31 -
> @@ -548,6 +548,7 @@ vendor OLIMEX 0x15ba  Olimex
>  vendor AMIT2 0x15c5  AMIT
>  vendor TRUST 0x15d9  Trust
>  vendor SOHOWARE  0x15e8  SOHOware
> +vendor TASCAM0x1604  Tascam

usb.org has 0x1604/5636 as "Kyokko Seiko"

https://www.usb.org/sites/default/files/vendor_ids082119_0.pdf

>  vendor UMAX  0x1606  UMAX Data Systems
>  vendor INSIDEOUT 0x1608  Inside Out Networks
>  vendor GOODWAY   0x1631  Good Way Technology
> @@ -4178,6 +4179,9 @@ product TANGTOP USBPS2  0x0001  USBPS2
>  
>  /* Tapwave products */
>  product TAPWAVE ZODIAC   0x0100  Zodiac

pcidevs and usbdevs in Dell r7515

2020-01-08 Thread Hrvoje Popovski
Hi all,

in attachment you can find diff with some new AMD devices found in Dell
R7515.

pcidevs are from
https://raw.githubusercontent.com/pciutils/pciids/master/pci.ids

and usbdevs are from
https://usb-ids.gowdy.us/read/UD/1604/10c0
https://certification.ubuntu.com/catalog/component/1604:10c0

names for amd devices from 0x1490 to 0x1497 are little to general :)


dmesg with this diff

r7515# dmesg
OpenBSD 6.6-current (GENERIC.MP) #14: Wed Jan  8 18:20:24 CET 2020
hrv...@r7515.asd:/sys/arch/amd64/compile/GENERIC.MP
real mem = 68279922688 (65116MB)
avail mem = 66198118400 (63131MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x699ad000 (72 entries)
bios0: vendor Dell Inc. version "1.1.6" date 10/02/2019
bios0: Dell Inc. PowerEdge R7515
acpi0 at bios0: ACPI 6.0
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP BERT HEST EINJ HPET APIC MCFG WSMT SLIC SSDT
SSDT CRAT CDIT IVRS SSDT
acpi0: wakeup devices PC00(S5) XHCI(S3) PC01(S5) XHCI(S3) PC02(S5)
XHCI(S3) PC03(S5) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
ioapic0 at mainbus0: apid 240 pa 0xfec0, version 21, 24 pins, can't
remap
ioapic1 at mainbus0: apid 241 pa 0xe028, version 21, 32 pins, can't
remap
ioapic2 at mainbus0: apid 242 pa 0xc518, version 21, 32 pins, can't
remap
ioapic3 at mainbus0: apid 243 pa 0xaa18, version 21, 32 pins, can't
remap
ioapic4 at mainbus0: apid 244 pa 0xfd18, version 21, 32 pins, can't
remap
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD EPYC 7542 32-Core Processor, 2894.93 MHz, 17-31-00
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,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 8-way L2 cache, 128MB 64b/line disabled L3 cache
cpu0: ITLB 64 4KB entries fully associative, 64 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, C-substates=1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: AMD EPYC 7542 32-Core Processor, 2894.58 MHz, 17-31-00
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,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu1: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 8-way L2 cache, 128MB 64b/line disabled L3 cache
cpu1: ITLB 64 4KB entries fully associative, 64 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 4 (application processor)
cpu2: AMD EPYC 7542 32-Core Processor, 2894.57 MHz, 17-31-00
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,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu2: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 8-way L2 cache, 128MB 64b/line disabled L3 cache
cpu2: ITLB 64 4KB entries fully associative, 64 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 6 (application processor)
cpu3: AMD EPYC 7542 32-Core Processor, 2894.57 MHz, 17-31-00
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,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu3: 32KB 64b/line 8-way I-c