Skip to content

Low performance with SDIO (iperf) #588

Open
@zavdimka

Description

@zavdimka

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

Expect to get at last 15Mbits in iperf3 test

Actual behavior (suspected bug)

For TCP connection I get 5.55 Mbits/sec
For UDP connection I get 1.05 Mbits/sec

Error logs or terminal output

Steps to reproduce the behavior

  1. Set up router close to the board.
  2. Check that signal level is good - not less then -15dBm
  3. Run iperf3 server
  4. Run iperf3 clien ( iperf3 -c 192.168.1.2)

Project release version

master

System architecture

ARM 32-bit (Raspberry Pi 32-bit)

Operating system

Linux

Operating system version

Buildroot

Shell

Bash

Additional context

Platform - RockChip RV1106
SDIO section in DTS file

/**********SDIO-WIFI**********/
&sdmmc {
        max-frequency = <5000000>;
        bus-width = <4>;
        cap-sd-highspeed;
        cap-sdio-irq;
        keep-power-in-suspend;
        non-removable;
        //rockchip,default-sample-phase = <90>;
        no-sd;
        no-mmc;
        supports-sdio;
        //mmc-pwrseq = <&sdio_pwrseq>;
        pinctrl-names = "default";
        pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_bus4 &sdmmc0_det>;
		no-prescan-powerup;
        post-power-on-delay-ms = <0>;
        status = "okay";
};
 dmesg | grep mmc1
[    0.168413] mmc_host mmc1: card is non-removable.
[    0.168900] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ d)
[    0.205196] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    0.212248] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    0.215324] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    0.216300] mmc_host mmc1: Bus speed (slot 0) = 4950000Hz (slot req 5000000Hz, actual 4950000H)
[    0.222139] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    0.222257] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    0.222360] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    0.224200] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    0.224302] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    0.224401] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    0.224601] mmc1: new high speed SDIO card at address 0001
dmesg | grep esp32
[   32.809365] esp32_sdio: esp_init: init_adapter
[   32.809397] esp32_sdio: esp_init: esp_init_interface_layer
[   32.809646] esp32_sdio: esp_probe: esp_probe
[   32.809651] esp32_sdio: esp_probe: ESP network device detected
[   32.809894] esp32_sdio: get_firmware_data: Rx Pre ====== 0
[   32.809905] esp32_sdio: get_firmware_data: Rx Pos ======  0
[   32.809954] esp32_sdio: get_firmware_data: Tx Pre ======  0
[   32.809962] esp32_sdio: get_firmware_data: Tx Pos ======  10
[   32.810225] esp32_sdio: esp_init: esp_init_interface_layer pass
[   32.814318] esp32_sdio: process_esp_bootup_event: Received ESP bootup event
[   32.814344] esp32_sdio: process_event_esp_bootup: Bootup Event tag: 3
[   32.814356] esp32_sdio: esp_validate_chipset: Chipset=ESP32-C6 ID=0d detected over SDIO
[   32.814363] esp32_sdio: process_event_esp_bootup: Bootup Event tag: 0
[   32.814371] esp32_sdio: process_event_esp_bootup: Bootup Event tag: 1
[   32.814378] esp32_sdio: process_fw_data: ESP chipset's last reset cause:
[   32.814385] esp32_sdio: print_reset_reason: POWERON_RESET
[   32.814396] esp32_sdio: check_esp_version: ESP-Hosted Version: NG-1.0.3.0.9
[   32.815753] esp32_sdio: esp_reg_notifier: Driver init is ongoing
[   32.839362] esp32_sdio: tx_process: not ready
[   33.179363] esp32_sdio: init_bt: ESP Bluetooth init
[   33.179683] esp32_sdio: print_capabilities: Capabilities: 0xd. Features supported are:
[   33.179697] esp32_sdio: print_capabilities:   * WLAN on SDIO
[   33.179706] esp32_sdio: print_capabilities:   * BT/BLE
[   33.179712] esp32_sdio: print_capabilities:     - HCI over SDIO
[   33.179718] esp32_sdio: print_capabilities:     - BLE only
[   59.038540] esp32_sdio: cmd_auth_request: Authentication request: 6c:b0:ce:ff:5c:d2 1 0 0 0
[   59.285542] esp32_sdio: cmd_assoc_request: Association request: 6c:b0:ce:ff:5c:d2 1 42
[   59.390258] esp32_sdio: process_assoc_event: Connection status: 0
[   67.155800] esp32_sdio: esp_inetaddr_event: NETDEV_UP interface wlan0 ip changed to  192.168.03

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions