Ian Lepore wrote on 03/26/16 02:11 AM:
On Fri, 2016-03-25 at 23:33 +0300, Ruslan Makhmatkhanov wrote:
Hello,

I have this in pciconf output:

=====================================================================
=
none1@pci0:36:0:0:      class=0x088000 card=0x167e103c
chip=0x2392197b
rev=0x30 hdr=0x00
      vendor     = 'JMicron Technology Corp.'
      device     = 'SD/MMC Host Controller'
      class      = base peripheral

none2@pci0:36:0:3:      class=0x088000 card=0x167e103c
chip=0x2393197b
rev=0x30 hdr=0x00
      vendor     = 'JMicron Technology Corp.'
      device     = 'MS Host Controller'
      class      = base peripheral
=====================================================================
=

And my SD-card controller is not working anymore (it worked on
-current
on the same laptop year or two ago). Do I need to load some kld to
make
it working, or support for this controllers was dropped altogether
for
some reason? I have mostly vanilla GENERIC at r296772, but it
actually
stopped to work much earlier.

Thanks.


Do you have a pciconf entry for class=080501 chip=0x2391197b, device
would probably be "SD Host Controller", and if so, is it none@pci or
sdhci_pci@pci ?  If sdhci_pci attached, there would be dmesg output for
it, and I'm curious whether any irq-related error showed up when it
attached.

The only change I can find that might have some effect is a switch to
MSI-based interrupts some time ago.  That was MFC'd to 10-stable in
r271051, and that's very close to range cited in that PR.

It might be worth trying to set hw.sdhci.enable_msi=0 in loader.conf
and see if it makes a difference.

-- Ian

For what it worth, I also boot with hw.sdhci.debug=1 and got this:

sdhci_pci0: <Generic SD HCI> mem 0xd4802000-0xd48020ff irq 18 at device 0.2 on pci4
sdhci_pci0-slot0: 50MHz 8bits 3.3V 1.8V DMA
sdhci_pci0-slot0: ============== REGISTER DUMP ==============
sdhci_pci0-slot0: Sys addr: 0x00000000 | Version:  0x0000ad01
sdhci_pci0-slot0: Blk size: 0x00000000 | Blk cnt:  0x00000000
sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000
sdhci_pci0-slot0: Present:  0x00080000 | Host ctl: 0x00000000
sdhci_pci0-slot0: Power:    0x00000000 | Blk gap:  0x00000000
sdhci_pci0-slot0: Wake-up:  0x00000000 | Clock:    0x00000000
sdhci_pci0-slot0: Timeout:  0x00000000 | Int stat: 0x00000000
sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb
sdhci_pci0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000
sdhci_pci0-slot0: Caps:     0x054032b2 | Max curr: 0x00000000
sdhci_pci0-slot0: ===========================================
sdhci_pci0: 1 slot(s) allocated

--
Regards,
Ruslan

T.O.S. Of Reality
_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to