On Fri, 04 Jun 2021 20:07:38 +0900,
KIRIYAMA Kazuhiko wrote:
>
> Hi, all
>
> I've reconfigured kernel to GENERIC-MMCCAM on Pinebook Pro (PBP) to use SDIO
> wifi module Broadcom BCM43456 (AMPAK AP6256 [1]). But nothing SDIO module
Sorry for not adding reference sites. Broadcom BCM43456 on AMPAK AP6256
sites to [1] and FreeBSD SDIO reference site is [2].
[1] https://wiki.pine64.org/wiki/Pinebook_Pro#Hardware_Overview
[2] https://wiki.freebsd.org/SDIO
> found :
>
> root@kazu:~ # camcontrol devlist -v
> scbus0 on dw_mmc_sim0 bus 0:
> scbus1 on dw_mmc_sim1 bus 0:
> scbus2 on sdhci_slot0 bus 0:
> <MMCHC DA4128 0.1 SN AD0EFC3E MFG 03/200> at scbus2 target 0 lun 0
(pass0,sdda0)
> scbus-1 on xpt0 bus 0:
> <> at scbus-1 target -1 lun ffffffff (xpt0)
> root@kazu:~ #
>
> My environments are as follows :
>
> root@kazu:~ # uname -a
> FreeBSD kazu.tfc 14.0-CURRENT FreeBSD 14.0-CURRENT #0 n246349-daa5350d0e0c:
Wed Jun 2 17:01:11 JST 2021
root@tbedfc:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-MMCCAM arm64
> root@kazu:~ # cat /var/run/dmesg.boot
> ---<<BOOT>>---
> GDB: debug ports: uart
> GDB: current port: uart
> KDB: debugger backends: ddb gdb
> KDB: current backend: ddb
> WARNING: Cannot find freebsd,dts-version property, cannot check DTB compliance
> Copyright (c) 1992-2021 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
> The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 14.0-CURRENT #0 n246349-daa5350d0e0c: Wed Jun 2 17:01:11 JST 2021
> root@tbedfc:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-MMCCAM arm64
> FreeBSD clang version 11.0.1 (g...@github.com:llvm/llvm-project.git
llvmorg-11.0.1-0-g43ff75f2c3fe)
> WARNING: WITNESS option enabled, expect reduced performance.
> VT(efifb): resolution 1920x1080
> module firmware already present!
> real memory = 4158373888 (3965 MB)
> avail memory = 4025626624 (3839 MB)
> Starting CPU 1 (1)
> Starting CPU 2 (2)
> Starting CPU 3 (3)
> Starting CPU 4 (100)
> Starting CPU 5 (101)
> FreeBSD/SMP: Multiprocessor System Detected: 6 CPUs
> random: unblocking device.
> random: entropy device external interface
> MAP f3f16000 mode 2 pages 4
> MAP f3f1b000 mode 2 pages 4
> MAP f6f40000 mode 2 pages 16
> WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 14.0.
> kbd0 at kbdmux0
> WARNING: Device "openfirm" is Giant locked and may be deleted before FreeBSD
14.0.
> ofwbus0: <Open Firmware Device Tree>
> clk_fixed0: <Fixed clock> on ofwbus0
> simplebus0: <Flattened device tree simple bus> on ofwbus0
> rk_grf0: <RockChip General Register Files> mem 0xff320000-0xff320fff on
ofwbus0
> rk3399_pmucru0: <Rockchip RK3399 PMU Clock and Reset Unit> mem
0xff750000-0xff750fff on ofwbus0
> rk3399_cru0: <Rockchip RK3399 Clock and Reset Unit> mem 0xff760000-0xff760fff
on ofwbus0
> rk_grf1: <RockChip General Register Files> mem 0xff770000-0xff77ffff on
ofwbus0
> regfix0: <Fixed Regulator> on ofwbus0
> regfix1: <Fixed Regulator> on ofwbus0
> regfix2: <Fixed Regulator> on ofwbus0
> regfix3: <Fixed Regulator> on ofwbus0
> regfix4: <Fixed Regulator> on ofwbus0
> regfix5: <Fixed Regulator> on ofwbus0
> regfix6: <Fixed Regulator> on ofwbus0
> regfix7: <Fixed Regulator> on ofwbus0
> regfix8: <Fixed Regulator> on ofwbus0
> regfix9: <Fixed Regulator> on ofwbus0
> regfix10: <Fixed Regulator> on ofwbus0
> regfix11: <Fixed Regulator> on ofwbus0
> simple_mfd0: <Simple MFD (Multi-Functions Device)> mem 0xff310000-0xff310fff
on ofwbus0
> psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
> gic0: <ARM Generic Interrupt Controller v3.0> mem
0xfee00000-0xfee0ffff,0xfef00000-0xfefbffff,0xfff00000-0xfff0ffff,0xfff10000-0xfff1ffff,0xfff20000-0xfff2ffff
irq 18 on ofwbus0
> its0: <ARM GIC Interrupt Translation Service> mem 0xfee20000-0xfee3ffff on
gic0
> rk_iodomain0: <RockChip IO Voltage Domain> mem 0-0xff31ffff,0-0xfff on rk_grf0
> rk_iodomain1: <RockChip IO Voltage Domain> mem 0-0xff76ffff,0-0xffff on
rk_grf1
> rk_pinctrl0: <RockChip Pinctrl controller> on ofwbus0
> gpio0: <RockChip GPIO Bank controller> mem 0xff720000-0xff7200ff irq 71 on
rk_pinctrl0
> gpiobus0: <OFW GPIO bus> on gpio0
> gpio1: <RockChip GPIO Bank controller> mem 0xff730000-0xff7300ff irq 72 on
rk_pinctrl0
> gpiobus1: <OFW GPIO bus> on gpio1
> gpio2: <RockChip GPIO Bank controller> mem 0xff780000-0xff7800ff irq 73 on
rk_pinctrl0
> gpiobus2: <OFW GPIO bus> on gpio2
> gpio3: <RockChip GPIO Bank controller> mem 0xff788000-0xff7880ff irq 74 on
rk_pinctrl0
> gpiobus3: <OFW GPIO bus> on gpio3
> gpio4: <RockChip GPIO Bank controller> mem 0xff790000-0xff7900ff irq 75 on
rk_pinctrl0
> gpiobus4: <OFW GPIO bus> on gpio4
> rk_i2c0: <RockChip I2C> mem 0xff110000-0xff110fff irq 20 on ofwbus0
> iicbus0: <OFW I2C bus> on rk_i2c0
> rk_i2c1: <RockChip I2C> mem 0xff130000-0xff130fff irq 22 on ofwbus0
> iicbus1: <OFW I2C bus> on rk_i2c1
> rk_i2c2: <RockChip I2C> mem 0xff3c0000-0xff3c0fff irq 38 on ofwbus0
> iicbus2: <OFW I2C bus> on rk_i2c2
> syr8270: <Silergy SYR827 regulator> at addr 0x80 on iicbus2
> rk_i2c3: <RockChip I2C> mem 0xff3d0000-0xff3d0fff irq 39 on ofwbus0
> iicbus3: <OFW I2C bus> on rk_i2c3
> rk805_pmu0: <RockChip RK805 PMIC> at addr 0x36 irq 76 on iicbus2
> generic_timer0: <ARMv8 Generic Timer> irq 2,3,4,5 on ofwbus0
> Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
> Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
> rk_tsadc0: <RockChip temperature sensors> mem 0xff260000-0xff2600ff irq 35 on
ofwbus0
> rk_usb2phy0: <Rockchip RK3399 USB2PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1
> rk_usb2phy1: <Rockchip RK3399 USB2PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1
> rk_emmcphy0: <Rockchip RK3399 eMMC PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1
> rk_pcie_phy0: <Rockchip RK3399 PCIe PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1
> rk_typec_phy0: <Rockchip RK3399 PHY TYPEC> mem 0xff7c0000-0xff7fffff on
ofwbus0
> rk_typec_phy1: <Rockchip RK3399 PHY TYPEC> mem 0xff800000-0xff83ffff on
ofwbus0
> cpulist0: <Open Firmware CPU Group> on ofwbus0
> cpu0: <Open Firmware CPU> on cpulist0
> cpufreq_dt0: <Generic cpufreq driver> on cpu0
> cpu1: <Open Firmware CPU> on cpulist0
> cpufreq_dt1: <Generic cpufreq driver> on cpu1
> cpu2: <Open Firmware CPU> on cpulist0
> cpufreq_dt2: <Generic cpufreq driver> on cpu2
> cpu3: <Open Firmware CPU> on cpulist0
> cpufreq_dt3: <Generic cpufreq driver> on cpu3
> cpu4: <Open Firmware CPU> on cpulist0
> cpufreq_dt4: <Generic cpufreq driver> on cpu4
> cpu5: <Open Firmware CPU> on cpulist0
> cpufreq_dt5: <Generic cpufreq driver> on cpu5
> pmu0: <Performance Monitoring Unit> irq 0 on ofwbus0
> pmu1: <Performance Monitoring Unit> irq 1 on ofwbus0
> pcib0: <Rockchip PCIe controller> mem
0xf8000000-0xf9ffffff,0xfd000000-0xfdffffff irq 6,7,8 on ofwbus0
> pcib0: Gen1 link training timeouted: 0x00080001.
> pci0: <PCI bus> on pcib0
> pcib1: <PCI-PCI bridge> at device 0.0 on pci0
> pcib0: failed to reserve resource for pcib1
> pcib1: failed to allocate initial memory window: 0-0xfffff
> pci1: <PCI bus> on pcib1
> rockchip_dwmmc0: <Synopsys DesignWare Mobile Storage Host Controller
(RockChip)> mem 0xfe310000-0xfe313fff irq 10 on ofwbus0
> rockchip_dwmmc0: Hardware version ID is 270a
> rockchip_dwmmc1: <Synopsys DesignWare Mobile Storage Host Controller
(RockChip)> mem 0xfe320000-0xfe323fff irq 11 on ofwbus0
> rockchip_dwmmc1: Hardware version ID is 270a
> sdhci_fdt0: <Rockchip RK3399 fdt SDHCI controller> mem 0xfe330000-0xfe33ffff
irq 12 on ofwbus0
> rk_emmcphy0: got emmcclk clock
> sdhci_fdt0-slot0: Hardware doesn't specify timeout clock frequency, setting
BROKEN_TIMEOUT quirk.
> sdhci_fdt0: 1 slot(s) allocated
> uma_zalloc_debug: zone "malloc-2048" with the following non-sleepable locks
held:
> exclusive sleep mutex SD slot mtx (sdhci) r = 0 (0xffff0000411c6030) locked @
/usr/src/sys/dev/sdhci/sdhci.c:617
> stack backtrace:
> #0 0xffff0000004d819c at witness_debugger+0x64
> #1 0xffff0000004d9320 at witness_warn+0x3e8
> #2 0xffff0000006f9084 at uma_zalloc_debug+0x2c
> #3 0xffff0000006f8a8c at uma_zalloc_arg+0x2c
> #4 0xffff00000043fa18 at malloc+0xa0
> #5 0xffff00000000f550 at xpt_alloc_ccb+0x1c
> #6 0xffff000000034ee0 at mmccam_start_discovery+0x18
> #7 0xffff0000002506fc at sdhci_card_task+0x110
> #8 0xffff000000255460 at sdhci_fdt_attach+0x5b4
> #9 0xffff0000004a3b34 at device_attach+0x400
> #10 0xffff0000004a369c at device_probe_and_attach+0x7c
> #11 0xffff0000004a5880 at bus_generic_new_pass+0xf8
> #12 0xffff0000004a5830 at bus_generic_new_pass+0xa8
> #13 0xffff0000004a5830 at bus_generic_new_pass+0xa8
> #14 0xffff0000004a0ae0 at bus_set_pass+0x4c
> #15 0xffff0000003f644c at mi_startup+0x12c
> #16 0xffff0000000008a8 at virtdone+0x6c
> ehci0: <Generic EHCI Controller> mem 0xfe380000-0xfe39ffff irq 13 on ofwbus0
> usbus0: EHCI version 1.0
> usbus0 on ehci0
> ohci0: <Generic OHCI Controller> mem 0xfe3a0000-0xfe3bffff irq 14 on ofwbus0
> usbus1 on ohci0
> ehci1: <Generic EHCI Controller> mem 0xfe3c0000-0xfe3dffff irq 15 on ofwbus0
> usbus2: EHCI version 1.0
> usbus2 on ehci1
> ohci1: <Generic OHCI Controller> mem 0xfe3e0000-0xfe3fffff irq 16 on ofwbus0
> usbus3 on ohci1
> rk_dwc30: <Rockchip RK3399 DWC3> on ofwbus0
> xhci0: <Synopsys Designware DWC3> mem 0xfe800000-0xfe8fffff irq 77 on rk_dwc30
> xhci0: 64 bytes context size, 32-bit DMA
> usbus4: trying to attach
> usbus4 on xhci0
> rk_dwc31: <Rockchip RK3399 DWC3> on ofwbus0
> xhci1: <Synopsys Designware DWC3> mem 0xfe900000-0xfe9fffff irq 78 on rk_dwc31
> xhci1: 64 bytes context size, 32-bit DMA
> usbus5: trying to attach
> usbus5 on xhci1
> iicbus0: <unknown card> at addr 0x22
> iic0: <I2C generic I/O> on iicbus0
> iic1: <I2C generic I/O> on iicbus1
> uart0: <Non-standard ns8250 class UART with FIFOs> mem 0xff180000-0xff1800ff
irq 26 on ofwbus0
> uart0: debug port (-1,n,8,1)
> uart1: <16750 or compatible> mem 0xff1a0000-0xff1a00ff irq 28 on ofwbus0
> uart1: console (1500000,n,8,1)
> spi0: <Rockchip SPI> mem 0xff1d0000-0xff1d0fff irq 31 on ofwbus0
> spibus0: <OFW SPI bus> on spi0
> spibus0: <unknown card> at cs 0 mode 0
> iicbus2: <unknown card> at addr 0x82
> iic2: <I2C generic I/O> on iicbus2
> iicbus3: <unknown card> at addr 0x44
> iic3: <I2C generic I/O> on iicbus3
> pwm0: <Rockchip PWM> mem 0xff420000-0xff42000f on ofwbus0
> pwmbus0: <OFW PWM bus> on pwm0
> pwmc0: <PWM Control> channel 0 on pwmbus0
> pwm1: <Rockchip PWM> mem 0xff420020-0xff42002f on ofwbus0
> pwmbus1: <OFW PWM bus> on pwm1
> pwmc1: <PWM Control> channel 0 on pwmbus1
> gpioc0: <GPIO controller> on gpio0
> gpioc1: <GPIO controller> on gpio1
> gpioc2: <GPIO controller> on gpio2
> gpioc3: <GPIO controller> on gpio3
> gpioc4: <GPIO controller> on gpio4
> gpioled0: <GPIO LEDs> on ofwbus0
> armv8crypto0: <AES-CBC,AES-XTS,AES-GCM>
> Timecounters tick every 1.000 msec
> usbus0: 480Mbps High Speed USB v2.0
> usbus1: 12Mbps Full Speed USB v1.0
> rk805_pmu0: registered as a time-of-day clock, resolution 1.000000s
> Release APs...done
> usbus2: 480Mbps High Speed USB v2.0
> CPU 0: ARM Cortex-A53 r0p4 affinity: 0 0
> usbus3: 12Mbps Full Speed USB v1.0
> Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT
ICache,64 byte ERG,64 byte CWG>
> usbus4: 5.0Gbps Super Speed USB v3.0
> Instruction Set Attributes 0 = <CRC32,SHA2,SHA1,AES+PMULL>
> usbus5: 5.0Gbps Super Speed USB v3.0
> Instruction Set Attributes 1 = <>
> (noperiph:dw_mmc_sim0:0:-1:ffffffff): Processor Features 0 =
<GIC,AdvSIMD,FP,EL3 32,EL2 32,EL1 32,EL0 32>
> Processor Features 1 = <>
> Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB
PA>
> Memory Model Features 1 = <8bit VMID>
> Memory Model Features 2 = <32bit CCIDX,48bit VA>
> Debug Features 0 = <2 CTX BKPTs,4 Watchpoints,6
Breakpoints,PMUv3,Debugv8>
> Debug Features 1 = <>
> Auxiliary Features 0 = <>
> Auxiliary Features 1 = <>
> CPU 1: ARM Cortex-A53 r0p4 affinity: 0 1
> Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT
ICache,64 byte ERG,64 byte CWG>
> Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB
PA>
> CPU 2: ARM Cortex-A53 r0p4 affinity: 0 2
> Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT
ICache,64 byte ERG,64 byte CWG>
> Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB
PA>
> CPU 3: ARM Cortex-A53 r0p4 affinity: 0 3
> Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT
ICache,64 byte ERG,64 byte CWG>
> Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB
PA>
> CPU 4: ARM Cortex-A72 r0p2 affinity: 1 0
> Cache Type = <64 byte D-cacheline,64 byte I-cacheline,PIPT
ICache,64 byte ERG,64 byte CWG>
> Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,16TB
PA>
> CPU 5: ARM Cortex-A72 r0p2 affinity: 1 1
> Cache Type = <64 byte D-cacheline,64 byte I-cacheline,PIPT
ICache,64 byte ERG,64 byte CWG>
> Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,16TB
PA>
> XPT_SCAN_{BUS,TGT,LUN}
> (noperiph:dw_mmc_sim0:0:0:0): XPT_SCAN_{BUS,TGT,LUN}
> (noperiph:dw_mmc_sim0:0:0:0): ugen4.1: <Synopsys XHCI root HUB> at usbus4
> Set up the mmcprobe device...
> ugen0.1: <Generic EHCI root HUB> at usbus0
> (mmcprobe0:dw_mmc_sim0:0:0:0): ugen3.1: <Generic OHCI root HUB> at usbus3
> Periph created
> ugen1.1: <Generic OHCI root HUB> at usbus1
> ugen5.1: <Synopsys XHCI root HUB> at usbus5
> ugen2.1: <Generic EHCI root HUB> at usbus2
> (mmcprobe0:dw_mmc_sim0:0:0:0): sysctl_warn_reuse: can't re-use a leaf
(dev.uhub.%parent)!
> sysctl_warn_reuse: can't re-use a leaf (dev.uhub.%parent)!
> sysctl_warn_reuse: can't re-use a leaf (dev.uhub.%parent)!
> sysctl_warn_reuse: can't re-use a leaf (dev.uhub.%parent)!
> sysctl_warn_reuse: can't re-use a leaf (dev.uhub.%parent)!
> uhub1 on usbus0
> uhub5 on usbus2
> uhub1: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
> uhub5: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
> uhub4Probe started
> on usbus5
> (mmcprobe0:dw_mmc_sim0:0:0:0): uhub2Probe PROBE_INVALID to PROBE_RESET
> on usbus3
> (mmcprobe0:dw_mmc_sim0:0:0:0): uhub3mmcprobe_start
> on usbus1
> uhub2: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
> (mmcprobe0:dw_mmc_sim0:0:0:0): uhub4: <Synopsys XHCI root HUB, class 9/0, rev
3.00/1.00, addr 1> on usbus5
> Trying to mount root from ufs:/dev/mmcsd0p3 [rw]...
> Start with PROBE_RESET
> uhub3: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
> (mmcprobe0:dw_mmc_sim0:0:0:0): Root mount waiting for:uhub0Start with
PROBE_IDENTIFY
> CAM usbus0 usbus1 on usbus4
> usbus2uhub0: <Synopsys XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on
usbus4
> usbus3 usbus4 usbus5
> WARNING: WITNESS option enabled, expect reduced performance.
> Unresolved linked clock found: clkin_gmac
> lock order reversal: (sleepable after non-sleepable)
> 1st 0xffffa00001026558 dwmmcsim (dwmmcsim, sleep mutex) @
/usr/src/sys/cam/cam_xpt.c:2802
> 2nd 0xffff000000c12a30 Clock topology lock (Clock topology lock, sx) @
/usr/src/sys/dev/extres/clk/clk.c:1154
> lock order dwmmcsim -> Clock topology lock attempted at:
> #0 0xffff0000004d7e7c at witness_checkorder+0xc50
> #1 0xffff0000004743e8 at _sx_xlock+0x7c
> #2 0xffff0000001ac808 at clk_set_freq+0x4c
> #3 0xffff00000078a998 at dwmmc_rockchip_update_ios+0x3c
> #4 0xffff00000078a3bc at dwmmc_update_ios+0xfc
> #5 0xffff000000789854 at dwmmc_cam_action+0x14c
> #6 0xffff000000009c34 at xpt_action_default+0xca8
> #7 0xffff000000008f5c at xpt_action+0x270
> #8 0xffff00000003633c at mmcprobe_start+0x89c
> #9 0xffff00000000cc10 at xpt_run_allocq+0x104
> #10 0xffff00000000cadc at xpt_schedule+0x230
> #11 0xffff000000035a78 at mmcprobe_register+0x2a4
> #12 0xffff000000003b90 at cam_periph_alloc+0x528
> #13 0xffff0000000354dc at mmc_action+0x484
> #14 0xffff000000008f5c at xpt_action+0x270
> #15 0xffff000000011750 at xpt_scanner_thread+0xcc
> #16 0xffff000000424198 at fork_exit+0x74
> #17 0xffff00000076716c at fork_trampoline+0x14
> uhub3: 1 port with 1 removable, self powered
> (mmcprobe0:dw_mmc_sim0:0:0:0): uhub2: 1 port with 1 removable, self powered
> Send first XPT_MMC_IO
> (noperiph:dw_mmc_sim1:0:-1:ffffffff): XPT_SCAN_{BUS,TGT,LUN}
> (noperiph:dw_mmc_sim1:0:0:0): (mmcprobe0:dw_mmc_sim0:0:0:0):
XPT_SCAN_{BUS,TGT,LUN}
> done with PROBE_RESET
> (noperiph:dw_mmc_sim1:0:0:0): (mmcprobe0:dw_mmc_sim0:0:0:0): Set up the
mmcprobe device...
> Probe PROBE_RESET to PROBE_SEND_IF_COND
> (mmcprobe1:dw_mmc_sim1:0:0:0): (mmcprobe0:dw_mmc_sim0:0:0:0): Periph created
> mmcprobe_done: remaining freeze count 0
> (mmcprobe1:dw_mmc_sim1:0:0:0): (mmcprobe0:dw_mmc_sim0:0:0:0): Probe started
> mmcprobe_start
> (mmcprobe0:dw_mmc_sim0:0:0:0): (mmcprobe1:dw_mmc_sim1:0:0:0): Start with
PROBE_SEND_IF_COND
> Probe PROBE_INVALID to PROBE_RESET
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_start
> (mmcprobe1:dw_mmc_sim1:0:0:0): Start with PROBE_RESET
> (mmcprobe0:dw_mmc_sim0:0:0:0): (mmcprobe1:dw_mmc_sim1:0:0:0): IF_COND: error
1, pattern 00000000
> Start with PROBE_IDENTIFY
> (mmcprobe0:dw_mmc_sim0:0:0:0): Probe PROBE_SEND_IF_COND to PROBE_SDIO_RESET
> (mmcprobe0:dw_mmc_sim0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:dw_mmc_sim0:0:0:0): mmcprobe_start
> (mmcprobe0:dw_mmc_sim0:0:0:0): Start with PROBE_SDIO_RESET
> (mmcprobe0:dw_mmc_sim0:0:0:0): SDIO_RESET: error 1, CCCR CTL register:
00000000
> (mmcprobe0:dw_mmc_sim0:0:0:0): Probe PROBE_SDIO_RESET to PROBE_SDIO_INIT
> (mmcprobe0:dw_mmc_sim0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:dw_mmc_sim0:0:0:0): mmcprobe_start
> (mmcprobe0:dw_mmc_sim0:0:0:0): Start with PROBE_SDIO_INIT
> (mmcprobe0:dw_mmc_sim0:0:0:0): SDIO_INIT: error 1, 00000000 00000000 00000000
00000000
> (mmcprobe0:dw_mmc_sim0:0:0:0): Probe PROBE_SDIO_INIT to PROBE_SEND_APP_OP_COND
> (mmcprobe0:dw_mmc_sim0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:dw_mmc_sim0:0:0:0): mmcprobe_start
> (mmcprobe0:dw_mmc_sim0:0:0:0): APP_OP_COND: error 1, resp 00000000
> (mmcprobe0:dw_mmc_sim0:0:0:0): Probe PROBE_SEND_APP_OP_COND to PROBE_MMC_INIT
> (mmcprobe0:dw_mmc_sim0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:dw_mmc_sim0:0:0:0): mmcprobe_start
> (mmcprobe0:dw_mmc_sim0:0:0:0): Start with PROBE_MMC_INIT
> (mmcprobe0:dw_mmc_sim0:0:0:0): MMC_INIT: error 1, resp 00000000
> (mmcprobe0:dw_mmc_sim0:0:0:0): Probe PROBE_MMC_INIT to PROBE_INVALID
> (mmcprobe0:dw_mmc_sim0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:dw_mmc_sim0:0:0:0): Periph invalidated
> (mmcprobe0:dw_mmc_sim0:0:0:0): Periph destroyed
> uhub0: 2 ports with 2 removable, self powered
> uhub4: 2 ports with 2 removable, self powered
> (mmcprobe1:dw_mmc_sim1:0:0:0): Send first XPT_MMC_IO
> (noperiph:sdhci_slot0:0:-1:ffffffff): XPT_SCAN_{BUS,TGT,LUN}
> (mmcprobe1:dw_mmc_sim1:0:0:0): (noperiph:sdhci_slot0:0:0:0): done with
PROBE_RESET
> XPT_SCAN_{BUS,TGT,LUN}
> (noperiph:sdhci_slot0:0:0:0): (mmcprobe1:dw_mmc_sim1:0:0:0): Set up the
mmcprobe device...
> Probe PROBE_RESET to PROBE_SEND_IF_COND
> (mmcprobe0:sdhci_slot0:0:0:0): (mmcprobe1:dw_mmc_sim1:0:0:0): Periph created
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> Probe started
> (mmcprobe1:dw_mmc_sim1:0:0:0): (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe1:dw_mmc_sim1:0:0:0): Probe PROBE_INVALID to PROBE_RESET
> Start with PROBE_SEND_IF_COND
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_RESET
> (mmcprobe0:sdhci_slot0:0:0:0): (mmcprobe1:dw_mmc_sim1:0:0:0): Start with
PROBE_IDENTIFY
> IF_COND: error 1, pattern 00000000
> (mmcprobe1:dw_mmc_sim1:0:0:0): Probe PROBE_SEND_IF_COND to PROBE_SDIO_RESET
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_start
> (mmcprobe1:dw_mmc_sim1:0:0:0): Start with PROBE_SDIO_RESET
> (mmcprobe1:dw_mmc_sim1:0:0:0): SDIO_RESET: error 1, CCCR CTL register:
00000000
> (mmcprobe1:dw_mmc_sim1:0:0:0): Probe PROBE_SDIO_RESET to PROBE_SDIO_INIT
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_start
> (mmcprobe1:dw_mmc_sim1:0:0:0): Start with PROBE_SDIO_INIT
> (mmcprobe1:dw_mmc_sim1:0:0:0): SDIO_INIT: error 1, 00000000 00000000 00000000
00000000
> (mmcprobe1:dw_mmc_sim1:0:0:0): Probe PROBE_SDIO_INIT to PROBE_SEND_APP_OP_COND
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_start
> (mmcprobe1:dw_mmc_sim1:0:0:0): APP_OP_COND: error 1, resp 00000000
> (mmcprobe1:dw_mmc_sim1:0:0:0): Probe PROBE_SEND_APP_OP_COND to PROBE_MMC_INIT
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_start
> (mmcprobe1:dw_mmc_sim1:0:0:0): Start with PROBE_MMC_INIT
> (mmcprobe1:dw_mmc_sim1:0:0:0): MMC_INIT: error 1, resp 00000000
> (mmcprobe1:dw_mmc_sim1:0:0:0): Probe PROBE_MMC_INIT to PROBE_INVALID
> (mmcprobe1:dw_mmc_sim1:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe1:dw_mmc_sim1:0:0:0): Periph invalidated
> (mmcprobe1:dw_mmc_sim1:0:0:0): Periph destroyed
> uhub5: 1 port with 1 removable, self powered
> uhub1: 1 port with 1 removable, self powered
> (mmcprobe0:sdhci_slot0:0:0:0): Send first XPT_MMC_IO
> (mmcprobe0:sdhci_slot0:0:0:0): done with PROBE_RESET
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_RESET to PROBE_SEND_IF_COND
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_SEND_IF_COND
> (mmcprobe0:sdhci_slot0:0:0:0): IF_COND: error 1, pattern 00000000
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_SEND_IF_COND to PROBE_SDIO_RESET
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_SDIO_RESET
> (mmcprobe0:sdhci_slot0:0:0:0): SDIO_RESET: error 1, CCCR CTL register:
00000000
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_SDIO_RESET to PROBE_SDIO_INIT
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_SDIO_INIT
> (mmcprobe0:sdhci_slot0:0:0:0): SDIO_INIT: error 1, 00000000 00000000 00000000
00000000
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_SDIO_INIT to PROBE_SEND_APP_OP_COND
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): APP_OP_COND: error 1, resp 00000000
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_SEND_APP_OP_COND to PROBE_MMC_INIT
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_MMC_INIT
> (mmcprobe0:sdhci_slot0:0:0:0): MMC card, OCR 40ff8080
> (mmcprobe0:sdhci_slot0:0:0:0): -> sending OCR to card
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_MMC_INIT
> (mmcprobe0:sdhci_slot0:0:0:0): MMC card, OCR 40ff8080
> (mmcprobe0:sdhci_slot0:0:0:0): Card is still powering up
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_MMC_INIT
> (mmcprobe0:sdhci_slot0:0:0:0): MMC card, OCR 40ff8080
> (mmcprobe0:sdhci_slot0:0:0:0): Card is still powering up
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_MMC_INIT
> (mmcprobe0:sdhci_slot0:0:0:0): MMC card, OCR c0ff8080
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_MMC_INIT to PROBE_GET_CID
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): CID 45010044413431323801ad0efc3e3600
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_GET_CID to
PROBE_MMC_SET_RELATIVE_ADDR
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_MMC_SET_RELATIVE_ADDR to
PROBE_GET_CSD
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): CSD d00f00328f5903ffffffffef8a404000
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_GET_CSD to PROBE_SELECT_CARD
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_SELECT_CARD to PROBE_DONE
> (mmcprobe0:sdhci_slot0:0:0:0): mmcprobe_done: remaining freeze count 0
> (noperiph:sdhci_slot0:0:0:0): (mmcprobe0:sdhci_slot0:0:0:0):
xpt_async(AC_FOUND_DEVICE)
> mmcprobe_start
> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_DONE
> (mmcprobe0:sdhci_slot0:0:0:0): Periph invalidated
> (mmcprobe0:sdhci_slot0:0:0:0): Periph destroyed
> (sdda0:sdhci_slot0:0:0:0): Periph created
> (pass0:sdhci_slot0:0:0:0): Periph created
> (sdda0:sdhci_slot0:0:0:0): Capacity: 125069950976, sectors: 244277248
> (sdda0:sdhci_slot0:0:0:0): Set SD freq to 25 MHz (min out of host f=25 MHz
and card f=52 MHz)
> (sdda0:sdhci_slot0:0:0:0): Set bus width to 8-bit (min of host 8-bit and card
8-bit)
> (sdda0:sdhci_slot0:0:0:0): Partition type 'default', size 125069950976
> (sdda0:sdhci_slot0:0:0:0): Partition type 'boot0', size 4194304
> (sdda0:sdhci_slot0:0:0:0): Partition type 'boot1', size 4194304
> (sdda0:sdhci_slot0:0:0:0): Partition type 'RPMB', size 16777216
> (sdda0:sdhci_slot0:0:0:0): Don't know what to do with RPMB partitions yet
> sdda0 at sdhci_slot0 bus 0 scbus2 target 0 lun 0
> sdda0: Relative addr: 00000002
> Card features: <MMC Memory High-Capacity>
> Card memory OCR: 40ff8080
> sdda0: Serial Number AD0EFC3E
> (sdda0:sdhci_slot0:0:0:0): XPT info: CLK 25000000, ...
> sdda0: MMCHC DA4128 0.1 SN AD0EFC3E MFG 03/2003 by 69 0x0000
> (sdda0:sdhci_slot0:0:0:0): Partition 0 -> 1
> g_dev_taste: make_dev_alias_p() failed (name=mmcsd0, error=17)
> (sdda0:sdhci_slot0:0:0:0): Partition 1 -> 2
> (sdda0:sdhci_slot0:0:0:0): Partition 2 -> 0
> ugen5.2: <Realtek USB 10/100/1000 LAN> at usbus5
> ure0 on uhub4
> ure0: <Realtek USB 10/100/1000 LAN, class 0/0, rev 3.00/30.00, addr 1> on
usbus5
> miibus0: <MII bus> on ure0
> rgephy0: <RTL8251/8153 1000BASE-T media interface> PHY 0 on miibus0
> rgephy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseT-FDX, 1000baseT-FDX-master, auto
> ue0: <USB Ethernet> on ure0
> ue0: Ethernet address: a0:ce:c8:de:9c:95
> ugen2.2: <vendor 0x05e3 USB2.0 Hub> at usbus2
> uhub6 on uhub5
> uhub6: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/85.36, addr 2> on usbus2
> ugen1.2: <HAILUCK CO.,LTD USB KEYBOARD> at usbus1
> ukbd0 on uhub3
> ukbd0: <HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.10/1.00, addr 2> on
usbus1
> kbd1 at ukbd0
> ums0 on uhub3
> ums0: <HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.10/1.00, addr 2> on
usbus1
> ums0: 3 buttons and [XY] coordinates ID=1
> Root mount waiting for: usbus2
> uhub6: 4 ports with 4 removable, self powered
> ugen2.3: <Sonix Technology Co., Ltd. USB Camera> at usbus2
> mountroot: waiting for device /dev/mmcsd0p3...
> WARNING: /: TRIM flag on fs but disk does not support TRIM
> Dual Console: Serial Primary, Video Secondary
> lock order reversal:
> 1st 0xffffa00007850770 ufs (ufs, lockmgr) @
/usr/src/sys/kern/vfs_mount.c:1780
> 2nd 0xffffa00005e52e70 devfs (devfs, lockmgr) @
/usr/src/sys/kern/vfs_subr.c:3035
> lock order devfs -> ufs established at:
> #0 0xffff0000004d7670 at witness_checkorder+0x444
> #1 0xffff000000439744 at lockmgr_lock_flags+0x1d8
> #2 0xffff0000006debac at ffs_lock+0x64
> #3 0xffff0000005647ac at _vn_lock+0x54
> #4 0xffff000000544fb8 at vfs_domount+0xeb0
> #5 0xffff000000543058 at vfs_donmount+0x2b4
> #6 0xffff00000054783c at kernel_mount+0x4c
> #7 0xffff000000549fd8 at parse_mount+0x49c
> #8 0xffff000000548520 at vfs_mountroot+0x400
> #9 0xffff0000003f7448 at start_init+0x24
> #10 0xffff000000424198 at fork_exit+0x74
> #11 0xffff00000076716c at fork_trampoline+0x14
> lock order ufs -> devfs attempted at:
> #0 0xffff0000004d7e7c at witness_checkorder+0xc50
> #1 0xffff00000043b198 at lockmgr_xlock+0x50
> #2 0xffff0000005647ac at _vn_lock+0x54
> #3 0xffff00000054e6c4 at vget_finish+0x4c
> #4 0xffff000000318328 at devfs_allocv+0xd0
> #5 0xffff000000317ab8 at devfs_root+0x44
> #6 0xffff000000553bb0 at vfs_cache_root_fallback+0x154
> #7 0xffff00000054f944 at vflush+0x5c
> #8 0xffff0000003179c0 at devfs_unmount+0x34
> #9 0xffff000000545e4c at dounmount+0x43c
> #10 0xffff0000005459c8 at kern_unmount+0x2d4
> #11 0xffff000000767a40 at do_el0_sync+0x4a4
> #12 0xffff000000746a1c at handle_el0_sync+0x90
> dwwdt0: <Synopsys Designware watchdog timer> mem 0xff848000-0xff8480ff irq 47
on ofwbus0
> pwm_backlight0: <PWM Backlight> on ofwbus0
> mx25l0: <M25Pxx Flash Family> at cs 0 mode 0 on spibus0
> mx25l0: device type gd25q128, size 16384K in 256 sectors of 64K, erase size 4K
> lo0: link state changed to UP
> ue0: link state changed to DOWN
> ue0: link state changed to UP
>
>
> Is there any patches to enable SDIO on Broadcom BCM43456 ?
>
> Best regards
> ---
> Kazuhiko Kiriyama <k...@truefc.org>
>
---
Kazuhiko Kiriyama <k...@truefc.org>