hlh-restart / rtsx

Porting OpenBSD rtsx driver to FreeBSD with updates from Linux
BSD 2-Clause "Simplified" License
14 stars 4 forks source link

RTS5129 - Lenovo IdeaPad 510-15IKB 80SV - FreeBSD 12.2 #20

Closed rmszc81 closed 3 years ago

rmszc81 commented 3 years ago

Good evening,

I downloaded the source code from ports, at https://www.freshports.org/sysutils/rtsx-kmod/, used make install clean, restarted the machine but it seems that something is wrong, couldn't even see any device added to /dev...

Here's the probe of my laptop https://bsd-hardware.info/?probe=3ebe1fd064

I even added the driver on kld_list for loading at boot time but no success.

What may I'm missing?

I want to help testing, 🙂

Thank you.

hlh-restart commented 3 years ago

I only see in your configuration a ethernet Realtek (which is working with re) but no other pci device with vendor=0x10ec. So the rtsx driver is not needed in your case.

To be sure, can you post the output of pciconf -l

rmszc81 commented 3 years ago

Here it is:

hostb0@pci0:0:0:0:  class=0x060000 card=0x380517aa chip=0x59048086 rev=0x02 hdr=0x00
vgapci0@pci0:0:2:0: class=0x030000 card=0x39f117aa chip=0x59168086 rev=0x02 hdr=0x00
xhci0@pci0:0:20:0:  class=0x0c0330 card=0x382e17aa chip=0x9d2f8086 rev=0x21 hdr=0x00
none0@pci0:0:20:2:  class=0x118000 card=0x381e17aa chip=0x9d318086 rev=0x21 hdr=0x00
none1@pci0:0:22:0:  class=0x078000 card=0x382d17aa chip=0x9d3a8086 rev=0x21 hdr=0x00
ahci0@pci0:0:23:0:  class=0x010601 card=0x382917aa chip=0x9d038086 rev=0x21 hdr=0x00
pcib1@pci0:0:28:0:  class=0x060400 card=0x382117aa chip=0x9d148086 rev=0xf1 hdr=0x01
pcib2@pci0:0:28:5:  class=0x060400 card=0x381517aa chip=0x9d158086 rev=0xf1 hdr=0x01
pcib3@pci0:0:29:0:  class=0x060400 card=0x381617aa chip=0x9d188086 rev=0xf1 hdr=0x01
isab0@pci0:0:31:0:  class=0x060100 card=0x381b17aa chip=0x9d588086 rev=0x21 hdr=0x00
none2@pci0:0:31:2:  class=0x058000 card=0x382c17aa chip=0x9d218086 rev=0x21 hdr=0x00
hdac0@pci0:0:31:3:  class=0x040300 card=0x382c17aa chip=0x9d718086 rev=0x21 hdr=0x00
none3@pci0:0:31:4:  class=0x0c0500 card=0x382c17aa chip=0x9d238086 rev=0x21 hdr=0x00
re0@pci0:1:0:0: class=0x020000 card=0x384c17aa chip=0x816810ec rev=0x10 hdr=0x00
iwm0@pci0:2:0:0:    class=0x028000 card=0x42108086 chip=0x31668086 rev=0x99 hdr=0x00
vgapci1@pci0:3:0:0: class=0x030200 card=0x39f117aa chip=0x134d10de rev=0xa2 hdr=0x00
rmszc81 commented 3 years ago

In case, pciconf -lv too:

hostb0@pci0:0:0:0:  class=0x060000 card=0x380517aa chip=0x59048086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 card=0x39f117aa chip=0x59168086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'HD Graphics 620'
    class      = display
    subclass   = VGA
xhci0@pci0:0:20:0:  class=0x0c0330 card=0x382e17aa chip=0x9d2f8086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP USB 3.0 xHCI Controller'
    class      = serial bus
    subclass   = USB
none0@pci0:0:20:2:  class=0x118000 card=0x381e17aa chip=0x9d318086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP Thermal subsystem'
    class      = dasp
none1@pci0:0:22:0:  class=0x078000 card=0x382d17aa chip=0x9d3a8086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP CSME HECI'
    class      = simple comms
ahci0@pci0:0:23:0:  class=0x010601 card=0x382917aa chip=0x9d038086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP SATA Controller [AHCI mode]'
    class      = mass storage
    subclass   = SATA
pcib1@pci0:0:28:0:  class=0x060400 card=0x382117aa chip=0x9d148086 rev=0xf1 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:5:  class=0x060400 card=0x381517aa chip=0x9d158086 rev=0xf1 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:29:0:  class=0x060400 card=0x381617aa chip=0x9d188086 rev=0xf1 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:  class=0x060100 card=0x381b17aa chip=0x9d588086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP LPC Controller'
    class      = bridge
    subclass   = PCI-ISA
none2@pci0:0:31:2:  class=0x058000 card=0x382c17aa chip=0x9d218086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP PMC'
    class      = memory
hdac0@pci0:0:31:3:  class=0x040300 card=0x382c17aa chip=0x9d718086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP HD Audio'
    class      = multimedia
    subclass   = HDA
none3@pci0:0:31:4:  class=0x0c0500 card=0x382c17aa chip=0x9d238086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Sunrise Point-LP SMBus'
    class      = serial bus
    subclass   = SMBus
re0@pci0:1:0:0: class=0x020000 card=0x384c17aa chip=0x816810ec rev=0x10 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
iwm0@pci0:2:0:0:    class=0x028000 card=0x42108086 chip=0x31668086 rev=0x99 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Dual Band Wireless-AC 3165 Plus Bluetooth'
    class      = network
vgapci1@pci0:3:0:0: class=0x030200 card=0x39f117aa chip=0x134d10de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'GM108M [GeForce 940MX]'
    class      = display
    subclass   = 3D
rmszc81 commented 3 years ago

Maybe it's an error from hw-probe?

hlh-restart commented 3 years ago

As expected, you have no hardware supported by rtsx.

Do you have a SD card reader?

rmszc81 commented 3 years ago

Yes, I use it on Windows, used to transfer data from SDCard days ago. Before I was using Ubuntu but never tested the SD Card reader on it. Now I'm trying to use BSD, some things doesn't work, SD card reader is one of them.

hlh-restart commented 3 years ago

I see that you have a USB RTS5129 Card Reader Controller. rtsx only work for some PCIe device.

rmszc81 commented 3 years ago

Yes, I understand, thank you so much! Here's the proof that you're right:

image

You can close the ticket now!

hlh-restart commented 3 years ago

Sorry, but some bad news for you:

https://bsd-hardware.info/index.php?id=usb:0bda-0129

rmszc81 commented 3 years ago

No worries, I saw that already, that's why I tried your driver, 👍 This guy here supports linux: https://github.com/asymingt/rts5139