2023-07-27 01:17:00

by Larry Finger

[permalink] [raw]
Subject: Problem with rtw8723ds

Hi,

I am trying to help a user of rtw8723ds. The original problem was that the
vendor driver was causing a spontaneous reboot. As I have no interest in
"fixing" that driver, I steered him to my rtw88 repo.

The driver loads, and then nothing happens. With the debug mask in rtw_core set
to all ones, his log shows the following:

[ 150.131387] rtw_core: loading out-of-tree module taints kernel.
[ 165.352077] rtw_8723ds mmc1:0001:1: rtw88 SDIO probe: vendor=0x024c
device=d723 class=ff
[ 165.359853] rtw_8723ds mmc1:0001:1: Firmware version 48.0.0, H2C version 0
[ 165.818336] rtw_8723ds mmc1:0001:1: hw cap: hci=0x06, bw=0x03, ptcl=0x02,
ant_num=2, nss=1
[ 165.818350] rtw_8723ds mmc1:0001:1: use rfe_def[0]
[ 165.820320] rtw_8723ds mmc1:0001:1: use rfe_def[0]
[ 165.820333] rtw_8723ds mmc1:0001:1: phy cond=0x0304f400
[ 165.820412] rtw_8723ds mmc1:0001:1: txpwr regd 3 does not be configured
[ 165.820423] rtw_8723ds mmc1:0001:1: cfg txpwr regd 3 by regd 0 as alternative
[ 165.820438] rtw_8723ds mmc1:0001:1: txpwr regd 4 does not be configured
[ 165.820448] rtw_8723ds mmc1:0001:1: cfg txpwr regd 4 by regd 2 as alternative
[ 165.820462] rtw_8723ds mmc1:0001:1: txpwr regd 5 does not be configured
[ 165.820472] rtw_8723ds mmc1:0001:1: cfg txpwr regd 5 by regd 2 as alternative
[ 165.820485] rtw_8723ds mmc1:0001:1: txpwr regd 6 does not be configured
[ 165.820495] rtw_8723ds mmc1:0001:1: cfg txpwr regd 6 by regd 0 as alternative
[ 165.820508] rtw_8723ds mmc1:0001:1: txpwr regd 7 does not be configured
[ 165.820517] rtw_8723ds mmc1:0001:1: cfg txpwr regd 7 by regd 2 as alternative
[ 165.820531] rtw_8723ds mmc1:0001:1: txpwr regd 8 does not be configured
[ 165.820540] rtw_8723ds mmc1:0001:1: cfg txpwr regd 8 by regd 0 as alternative
[ 165.820554] rtw_8723ds mmc1:0001:1: txpwr regd 9 does not be configured
[ 165.820563] rtw_8723ds mmc1:0001:1: cfg txpwr regd 9 by regd 2 as alternative
[ 165.820755] rtw_8723ds mmc1:0001:1: regd init state 0: apply alpha2 00, regd
{10, 10}, dfs_region 0
[ 165.820952] rtw_8723ds mmc1:0001:1: regd state: 0 -> 0
[ 165.820969] rtw_8723ds mmc1:0001:1: get alpha2 00 from initiator 0: apply
alpha2 00, regd {10, 10}, dfs_region 0

There is no more output. I see nothing wrong here, but I have no SDIO
experience. Am I missing something?

Thanks,

Larry


2023-07-30 19:03:39

by Martin Blumenstingl

[permalink] [raw]
Subject: Re: Problem with rtw8723ds

Hi Larry,

On Thu, Jul 27, 2023 at 2:41 AM Larry Finger <[email protected]> wrote:
>
> Hi,
>
> I am trying to help a user of rtw8723ds. The original problem was that the
> vendor driver was causing a spontaneous reboot. As I have no interest in
> "fixing" that driver, I steered him to my rtw88 repo.
>
> The driver loads, and then nothing happens. [...]
I have a few questions here:
- is the wlan0 interface present?
- does "$ ip link set up dev wlan0" do anything?
- does "$ iw dev wlan0 scan" work?

Also do we know more about the host (e.g. which MMC/SDIO host driver
is involved)?


Best regards,
Martin

2023-07-31 17:21:23

by Larry Finger

[permalink] [raw]
Subject: Re: Problem with rtw8723ds

On 7/30/23 13:54, Martin Blumenstingl wrote:
> I have a few questions here:
> - is the wlan0 interface present?
> - does "$ ip link set up dev wlan0" do anything?
> - does "$ iw dev wlan0 scan" work?
>
> Also do we know more about the host (e.g. which MMC/SDIO host driver
> is involved)?

Martin,

No, wlan0 is not set up. Anything referencing it will fail.

I have asked about the MMC/SDIO host, but the OP never responded to that
question. The OP is an engineer, and not the best with software. His dmesg
output lists the following:

mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
mmc1: SDHCI controller on e0101000.mmc [e0101000.mmc] using ADMA
sdhci-arasan e0101000.mmc: card claims to support voltages below defined range

That last line would indicate the pci-arasan controller. If that is not
sufficient, how would we get that info?

The CPU is a Cortex-A9 dual-processor unit, and he is running Linux version
5.4.0-xilinx (oe-user@oe-host). Dmesg also reports
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d

If you want to eliminate the middle man and ask the OP questions directly, the
GitHub thread is
https://github.com/lwfinger/rtl8723ds/issues/41#issuecomment-1656990344

I have tried to get some logging of the SDIO traffic to see if I can find
differences between the vendor and rtw88 drivers. Thus far, I have not made much
progress.

One thing he has noted is that the LDO with the vendor driver is 1.25 V, but
that rtw88 has it as low as 0.82 V. On one occasion, it was 1.22, but that made
no difference.

Larry