On Sun, Jan 15, 2023 at 11:49 AM Matthias Reichl <hias@xxxxxxxxx> wrote: > > I noticed some of the used HP Z240 workstations I recently bought had a > Barco MXRT-5600 branded FirePro W5100 card installed - some others came with > an unbranded W5100 (with the standard 6449 PCI ID). > > Except for a large Barco sticker on the top and Barco being mentioned on > the barcode label on the back they look completely identical. > > lspci knows about the 644d PCI ID but neither the radeon nor amdgpu kernel > drivers do nor does drm/mesa/xorg userspace. > > I had a go at it, added the pci id to kernel drivers, libdrm, mesa, xf86-video-ati > and xserver and got the card working fine on Debian Bullseye with kernel 6.2-rc3. > I also gave it a quick try with LibreELEC (where we build bleeding edge versions > from scratch) and that worked fine, too. > > Do you happen to know more about that card and why the PCI ID is missing in > linux drivers/userspace? I don't see that DID in either the Linux driver or our windows driver. Presumably it was a special card supported with a special driver for a specific customer. I'm not really sure off hand whether it needs some special handling. Alex > > I'm just attaching my current kernel and userspace patches as a reference > for now but I'm very unsure in which sequence they should be applied without > risking breakage - I already found out the hard way that patched xorg server > and driver with old libdrm is a bad idea as that results in "Failed to initialize > surface manager" instead of starting with framebuffer driver. > > If you prefer I can send proper patches or I can just you let handle it. > > For reference here's the lspci outout (with patched kernel and cik support > enabled in amdgpu): > > root@camel3:~# lspci -vn -s 01:00.0 > 01:00.0 0300: 1002:664d (prog-if 00 [VGA controller]) > Subsystem: 13cc:3d2a > Flags: bus master, fast devsel, latency 0, IRQ 137 > Memory at 1c00000000 (64-bit, prefetchable) [size=4G] > Memory at 1d00000000 (64-bit, prefetchable) [size=8M] > I/O ports at 3000 [size=256] > Memory at d0f00000 (32-bit, non-prefetchable) [size=256K] > Expansion ROM at d0f40000 [disabled] [size=128K] > Capabilities: [48] Vendor Specific Information: Len=08 <?> > Capabilities: [50] Power Management version 3 > Capabilities: [58] Express Legacy Endpoint, MSI 00 > Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+ > Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?> > Capabilities: [150] Advanced Error Reporting > Capabilities: [200] Physical Resizable BAR > Capabilities: [270] Secondary PCI Express > Capabilities: [2b0] Address Translation Service (ATS) > Capabilities: [2c0] Page Request Interface (PRI) > Capabilities: [2d0] Process Address Space ID (PASID) > Kernel driver in use: amdgpu > Kernel modules: radeon, amdgpu > > so long, > > Hias