gamelaster / rtl8xxx

Fork of rtl8xxxu driver with SDIO support
2 stars 0 forks source link

Is it a working driver? #6

Closed devbis closed 4 years ago

devbis commented 4 years ago

Hey @gamelaster

Was it working with sdio cards on prevoius kernels? I checked the driver and used it with rtl8723bs and 5.4 kernel and it fails on init.

[    9.472486] Allocing hw
[    9.472579] Allocating CARD
[    9.475053] Claiming...
[    9.477856] Enabling..
[    9.491411] HW INIT
[   19.691201] mmc0: Timeout waiting for hardware interrupt.
[   19.698734] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[   19.705190] mmc0: sdhci: Sys addr:  0x8f9adcc0 | Version:  0x00000002
[   19.711642] mmc0: sdhci: Blk size:  0x00000004 | Blk cnt:  0x00000001
[   19.718096] mmc0: sdhci: Argument:  0x1401e004 | Trn mode: 0x00000013
[   19.724549] mmc0: sdhci: Present:   0x01f8820e | Host ctl: 0x00000013
[   19.730998] mmc0: sdhci: Power:     0x00000002 | Blk gap:  0x00000080
[   19.737449] mmc0: sdhci: Wake-up:   0x00000008 | Clock:    0x0000003f
[   19.743899] mmc0: sdhci: Timeout:   0x0000008f | Int stat: 0x00000000
[   19.750351] mmc0: sdhci: Int enab:  0x117f100b | Sig enab: 0x117f100b
[   19.756801] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000302
[   19.763254] mmc0: sdhci: Caps:      0x07eb0000 | Caps_1:   0x0000b400
[   19.769706] mmc0: sdhci: Cmd:       0x0000353a | Max curr: 0x00ffffff
[   19.776156] mmc0: sdhci: Resp[0]:   0x00001000 | Resp[1]:  0x00000000
[   19.782606] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[   19.789056] mmc0: sdhci: Host ctl2: 0x00000000
[   19.793511] mmc0: sdhci: ADMA Err:  0x00000003 | ADMA Ptr: 0x8f0fd204
[   19.799960] mmc0: sdhci: ============================================
[   19.807158] CHIP CFG: -1
[   19.807179] rtl8xxxu mmc0:0001:1: Unsupported test chip
[   19.816447] rtl8xxxu mmc0:0001:1: Fatal - failed to identify chip
[   19.822601] ------------[ cut here ]------------
[   19.827253] WARNING: CPU: 0 PID: 995 at drivers/mmc/core/core.c:642 mmc_wait_for_cmd+0x7c/0x80
[   19.835905] Modules linked in: rtl8xxxu(+) pppox ppp_generic nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_rtcache nf_conntrack mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc rfcomm nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_filter ip_tables hidp crc_ccitt compat btusb btintel bnep hid ledtrig_heartbeat nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 snd_rawmidi snd_seq_device snd_pcm_oss snd_mixer_oss snd_hwdep snd_compress button_hotplug
[   19.889720] CPU: 0 PID: 995 Comm: kmodloader Not tainted 5.4.69 #0
[   19.895914] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[   19.902135] [<8010eaa4>] (unwind_backtrace) from [<8010af64>] (show_stack+0x10/0x14)
[   19.909910] [<8010af64>] (show_stack) from [<80807958>] (dump_stack+0x94/0xa8)
[   19.917161] [<80807958>] (dump_stack) from [<80127d5c>] (__warn+0xbc/0xd8)
[   19.924062] [<80127d5c>] (__warn) from [<80127dc8>] (warn_slowpath_fmt+0x50/0x94)
[   19.931572] [<80127dc8>] (warn_slowpath_fmt) from [<805f8e84>] (mmc_wait_for_cmd+0x7c/0x80)
[   19.939953] [<805f8e84>] (mmc_wait_for_cmd) from [<80602fb8>] (mmc_io_rw_direct_host+0x84/0x108)
[   19.948766] [<80602fb8>] (mmc_io_rw_direct_host) from [<806043e0>] (sdio_disable_func+0x2c/0x84)
[   19.957630] [<806043e0>] (sdio_disable_func) from [<7f21f238>] (rtl8xxxu_sdio_probe+0x130/0x160 [rtl8xxxu])
[   19.967476] [<7f21f238>] (rtl8xxxu_sdio_probe [rtl8xxxu]) from [<80603808>] (sdio_bus_probe+0x124/0x17c)
[   19.976989] [<80603808>] (sdio_bus_probe) from [<804da2fc>] (really_probe+0x1f8/0x360)
[   19.984934] [<804da2fc>] (really_probe) from [<804da5e0>] (driver_probe_device+0x60/0x168)
[   19.993223] [<804da5e0>] (driver_probe_device) from [<804da888>] (device_driver_attach+0x58/0x60)
[   20.002118] [<804da888>] (device_driver_attach) from [<804da8e8>] (__driver_attach+0x58/0xcc)
[   20.010667] [<804da8e8>] (__driver_attach) from [<804d87d4>] (bus_for_each_dev+0x68/0x8c)
[   20.018868] [<804d87d4>] (bus_for_each_dev) from [<804d9758>] (bus_add_driver+0x1c8/0x1d8)
[   20.027158] [<804d9758>] (bus_add_driver) from [<804dae98>] (driver_register+0x74/0x108)
[   20.035313] [<804dae98>] (driver_register) from [<7f22c024>] (init_module+0x24/0x1000 [rtl8xxxu])
[   20.044259] [<7f22c024>] (init_module [rtl8xxxu]) from [<80102764>] (do_one_initcall+0x84/0x1d8)
[   20.053076] [<80102764>] (do_one_initcall) from [<8019f078>] (do_init_module+0x5c/0x228)
[   20.061189] [<8019f078>] (do_init_module) from [<801a1284>] (load_module+0x1fb8/0x223c)
[   20.069215] [<801a1284>] (load_module) from [<801a1664>] (sys_init_module+0x15c/0x17c)
[   20.077154] [<801a1664>] (sys_init_module) from [<80101000>] (ret_fast_syscall+0x0/0x54)
[   20.085256] Exception stack(0x8ec65fa8 to 0x8ec65ff0)
[   20.090327] 5fa0:                   00000000 00000000 76e84010 0001c6b4 000129d1 0000000c
[   20.098524] 5fc0: 00000000 00000000 00000003 00000080 0001c6b4 00000000 00023330 00000000
[   20.106713] 5fe0: 7ec2bd14 7ec2bcf8 00011e14 76f0565c
[   20.111876] ---[ end trace 3da498a5eeef3549 ]---
[   20.116512] ------------[ cut here ]------------

I'd like to try to port the driver to modern kernel but I don't know if it was in a working state.

Can you please confirm that it worked earlier?

anarsoul commented 4 years ago

It never worked.

gamelaster commented 4 years ago

As @anarsoul noted, the code here on Github is not finished. I work on this and eventually one day it will be released, sadly, I have plenty other things which needs to be done.

devbis commented 4 years ago

Bad luck. This effort looks very promising to me.