关于jetson xavier nx SDIO的问题

现在有个问题,我在使用sdio作为wifi模块接口的时候,需要在设备树中添加“nvidia,disable-rtpm",否则就会报错,如下

[  297.169740] sdhci-tegra 3440000.sdhci: Reg 0x30\ being accessed without clock
[  297.169783] ------------[ cut here ]------------
[ 297.169787] WARNING: CPU: 0 PID: 12 at ../drivers/mmc/host/sdhci-tegra.c:284 tegra_sdhci_is_clk_enabled.isra.1+0x48/0x60
[ 297.169822] Modules linked in: 8852bs(O) cfg80211 xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack br_netfilter zram overlay userspace_alert ip_tables x_tables
[  297.169824]
[  297.169827] CPU: 0 PID: 12 Comm: watchdog/0 Tainted: G        W  O L  4.9.253-tegra #2
[  297.169829] Hardware name: NVIDIA Jetson Xavier NX Developer Kit (DT)
[  297.169832] task: ffffffc1f6b71c00 task.stack: ffffffc1f6b80000
[  297.169835] PC is at tegra_sdhci_is_clk_enabled.isra.1+0x48/0x60
[  297.169837] LR is at tegra_sdhci_is_clk_enabled.isra.1+0x48/0x60
[  297.169840] pc : [<ffffff8008bc51d0>] lr : [<ffffff8008bc51d0>] pstate: 204001c5
[  297.169842] sp : ffffffc1ffd00dd0
[  297.169847] x29: ffffffc1ffd00dd0 x28: ffffffc1f6b71c00
[  297.169852] x27: ffffff800a0ea000 x26: ffffffc1e25247c0
[  297.169857] x25: ffffffc1ffd00f3c x24: ffffff8009865018
[  297.169862] x23: ffffff8009eb6e38 x22: 0000000000000034
[  297.169868] x21: ffffffc1e2524a38 x20: 0000000000000030
[  297.169873] x19: ffffffc1e2524000 x18: 0000000000000020
[  297.169878] x17: 0000000000200000 x16: 000000000000000e
[  297.169883] x15: ffffffffffffffff x14: ffffff800a19ddd8
[  297.169888] x13: ffffff800a19da1b x12: ffffff8009ed4000
[  297.169893] x11: 000000000003f018 x10: ffffff800a19d050
[  297.169899] x9 : 0000000000000001 x8 : ffffffc1ffcfbe53
[  297.169904] x7 : 0000000000000000 x6 : 0000000014c6bd23
[  297.169908] x5 : 0000000000000000 x4 : 0000000000000000
[  297.169917] x3 : ffffffffffffffff x2 : 00000041f6498000
[  297.169922] x1 : ffffffc1f6b71c00 x0 : 0000000000000040
[  297.169924]
[  297.169925] ---[ end trace 037077a91a2acfd6 ]---
[  297.169927] Call trace:
[  297.169931] [<ffffff8008bc51d0>] tegra_sdhci_is_clk_enabled.isra.1+0x48/0x60
[  297.169934] [<ffffff8008bc5480>] tegra_sdhci_readl+0x28/0x60
[  297.169937] [<ffffff8008bc13a0>] sdhci_irq+0x7f0/0xd80
[  297.169940] [<ffffff8008121918>] __handle_irq_event_percpu+0x68/0x288
[  297.169943] [<ffffff8008121b60>] handle_irq_event_percpu+0x28/0x60
[  297.169946] [<ffffff8008121be8>] handle_irq_event+0x50/0x80
[  297.169950] [<ffffff8008125a7c>] handle_fasteoi_irq+0xd4/0x1c0
[  297.169953] [<ffffff80081208cc>] generic_handle_irq+0x34/0x50
[  297.169956] [<ffffff8008120fb8>] __handle_domain_irq+0x68/0xc0
[  297.169959] [<ffffff8008080d44>] gic_handle_irq+0x5c/0xb0
[  297.169961] [<ffffff8008082c28>] el1_irq+0xe8/0x194
[  297.169965] [<ffffff8008f66c58>] _raw_spin_unlock_irq+0x28/0x58
[  297.169968] [<ffffff80080e55bc>] finish_task_switch+0x7c/0x1a8
[  297.169972] [<ffffff8008f621c4>] __schedule+0x23c/0x7d0
[  297.169976] [<ffffff8008f62798>] schedule+0x40/0xa8
[  297.169980] [<ffffff80080dfb18>] smpboot_thread_fn+0x238/0x248
[  297.169983] [<ffffff80080db0a4>] kthread+0xec/0xf0
[  297.169986] [<ffffff80080838a0>] ret_from_fork+0x10/0x30
[    2.029927] sdhci: =========== REGISTER DUMP (mmc0)===========
[    2.030058] sdhci: Sys addr: 0x00000000 | Version:  0x00000505
[    2.030170] sdhci: Blk size: 0x00000200 | Blk cnt:  0x00000000
[    2.030276] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
[    2.030382] sdhci: Present:  0x01fb00f0 | Host ctl: 0x00000020
[    2.030488] sdhci: Power:    0x00000000 | Blk gap:  0x00000000
[    2.030594] sdhci: Wake-up:  0x00000000 | Clock:    0x00000000
[    2.030701] sdhci: Timeout:  0x00000000 | Int stat: 0x00000000
[    2.030809] sdhci: Int enab: 0x00ff0003 | Sig enab: 0x00fc0003
[    2.030918] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[    2.031026] sdhci: Caps:     0x3f6cd08c | Caps_1:   0x18002f77
[    2.031157] sdhci: Cmd:      0x00000000 | Max curr: 0x00000000
[    2.031384] sdhci: Host ctl2: 0x00003000
[    2.031702] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000
[    2.032338] sdhci: ===========================================
[    2.036073] sdhci: =========== REGISTER DUMP (mmc1)===========
[    2.036205] sdhci: Sys addr: 0x00000000 | Version:  0x00000505
[    2.038018] sdhci: Blk size: 0x00000200 | Blk cnt:  0x00000000
[    2.043621] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
[    2.049465] sdhci: Present:  0x01fb00f0 | Host ctl: 0x00000002
[    2.055383] sdhci: Power:    0x00000000 | Blk gap:  0x00000000
[    2.061190] sdhci: Wake-up:  0x00000000 | Clock:    0x00000000
[    2.067050] sdhci: Timeout:  0x00000000 | Int stat: 0x00000000
[    2.073247] sdhci: Int enab: 0x00ff0003 | Sig enab: 0x00fc0003
[    2.078776] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[    2.084811] sdhci: Caps:     0x3f6cd08c | Caps_1:   0x18002f73
[    2.090852] sdhci: Cmd:      0x00000000 | Max curr: 0x00000000
[    2.096967] sdhci: Host ctl2: 0x00003000
[    2.100740] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000
[    2.107026] sdhci: ===========================================


还有nx在sdio的中断上是否做了什么限制?
谢谢。

Hi,

“nvidia,disable-rtpm” property in the dt should ensure that the card clock is not disabled.

hi, so this property is needed must?

SDIO card is always case by case. May need that for your card, but not needed on another card.

I would suggest suggest just use the property that can make your card work.

ok, thank you, i do it.
About another question, sdio interrupt? how should i understand it?

hi,@WayneWWW:
i try to use wifi module in nx by sdio interface;The wifi module(the main ic is RTL8852S) is work normally in tx2-4GB,but nx not.
The bad situation in nx is follow:

1.connecting AP very difficultly;
2. if connected, ping is very high and speed is very low(about 10Kbytes even lower)

But wifi module work in tx2-4GB has no problems.

How can i solve this question?
thanks.

Sorry that actually we don’t support any SDIO wifi card on NX. So actually I have no idea about it.

i wanna know about what reason?
it not support in hardware level? Or it has not completed in software level?

hi,@WayneWWW
it is whether worth to realize sdio WIFI taking much time in Jetson Xavier NX or not?

We didn’t validate it. Some customers have successful experience.

they use REALTEK IC modules also?

@WayneWWW

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.