Wi-Fi SD8987 + iMX8mp can't get IP after HDMI patch

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Wi-Fi SD8987 + iMX8mp can't get IP after HDMI patch

ソリューションへジャンプ
22,147件の閲覧回数
DrRamm
Contributor III

Hi, I am facing this problem on Android 13 1.0.0 and kernel 5.15.71, imx8mp cpu


My device works fine with SD8987 Wi-Fi SDIO, but after adding the HDMI patch from NXP, the Wi-Fi module cannot connect to channels 1/2/3/4 at 2.4 GHz. I am referring to frequencies 2412 2417 2422 2427. It connects to the other channels/frequencies (5-11) without problems. I can't understand how the HDMI patch affects the wifi module. And why exactly the first four channels do not connect.

P.S. Access point sees, but can not get an IP address. Only this commit breaks the work. And if I delete the item above in samsung_phy_pll_cfg, all channels work again

 

 

From 4e3dc9e454fa9b30620c14abf9bcccdd9e97f6d7 Mon Sep 17 00:00:00 2001
From: Richard Kim <richard.kim@nxp.com>
Date: Tue, 28 Sep 2021 11:18:29 +0900
Subject: [PATCH] 1024x768@60Hz 65MHz support

---
drivers/phy/freescale/phy-fsl-samsung-hdmi.c | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/drivers/phy/freescale/phy-fsl-samsung-hdmi.c b/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
index c0ba6e8073452..26673c455264e 100644
--- a/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
+++ b/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
@@ -325,6 +325,15 @@ const struct phy_config samsung_phy_pll_cfg[] = {
0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xE0, 0x83, 0x0F, 0x3E, 0xF8, 0x00, 0x00,
},
+ }, {
+ 65000000, {
+ 0x00, 0xD1, 0x51, 0x58, 0x8D, 0x04, 0x9A, 0x57,
+ 0x4F, 0x30, 0x33, 0x65, 0x10, 0xBE, 0x24, 0x80,
+ 0x6C, 0xF2, 0x67, 0x00, 0x10, 0x85, 0x30, 0x3A,
+ 0x74, 0x8F, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
+ 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0xE0, 0x83, 0x0F, 0x3E, 0xF8, 0x00, 0x00,
+ },
}, {
67500000, {
0x00, 0xD1, 0x54, 0x52, 0x87, 0x03, 0x80, 0x40,
--
GitLab

 

 

[ 0.000000][ T0] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000][ T0] Linux version 5.15.71-g4e3dc9e454fa-dirty-abmp1V91221 (nobody@android-build) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #1 SMP PREEMPT Wed Mar 6 11:23:52 MSK 2024
[ 0.000000][ T0] Machine model: NXP i.MX8MPlus EVK board
[ 0.000000][ T0] Stack Depot is disabled
[ 0.000000][ T0] efi: UEFI not found.
[ 0.000000][ T0] Reserved memory: created DMA memory pool at 0x0000000094300000, size 1 MiB
[ 0.000000][ T0] OF: reserved mem: initialized node vdev0buffer@94300000, compatible id shared-dma-pool
[ 0.000000][ T0] NUMA: No NUMA configuration found
[ 0.000000][ T0] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000][ T0] NUMA: NODE_DATA [mem 0xbfbd20c0-0xbfbd4fff]
[ 0.000000][ T0] kvm [0]: Reserved 16 MiB at 0xbea00000
[ 0.000000][ T0] Zone ranges:
[ 0.000000][ T0] DMA [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000][ T0] DMA32 empty
[ 0.000000][ T0] Normal empty
[ 0.000000][ T0] Movable zone start for each node
[ 0.000000][ T0] Early memory node ranges
[ 0.000000][ T0] node 0: [mem 0x0000000040000000-0x0000000055ffffff]
[ 0.000000][ T0] node 0: [mem 0x0000000058000000-0x00000000923fffff]
[ 0.000000][ T0] node 0: [mem 0x0000000092400000-0x00000000943fffff]
[ 0.000000][ T0] node 0: [mem 0x0000000094400000-0x00000000bfffffff]
[ 0.000000][ T0] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000][ T0] On node 0, zone DMA: 8192 pages in unavailable ranges
[ 0.000000][ T0] cma: Reserved 480 MiB at 0x000000009e000000

[ 7.395320][ T216] wlan: Loading MWLAN driver
[ 7.417783][ T219] random: hwservicemanage: uninitialized urandom read (40 bytes read)
[ 7.426978][ T216] wlan: Register to Bus Driver...
[ 7.452281][ T219] random: hwservicemanage: uninitialized urandom read (16 bytes read)
[ 7.463016][ T216] vendor=0x02DF device=0x9149 class=0 function=1
[ 7.466307][ T219] random: hwservicemanage: uninitialized urandom read (0 bytes read)
[ 7.472570][ T216] Attach moal handle ops, card interface type: 0x105
[ 7.489346][ T216] SD8987: init module param from usr cfg
[ 7.494925][ T216] card_type: SD8987, config block: 0
[ 7.500098][ T216] cfg80211_wext=0xf
[ 7.503796][ T216] sta_name=wlan
[ 7.507143][ T216] uap_name=wlan
[ 7.510479][ T216] wfd_name=p2p
[ 7.513741][ T216] max_vir_bss=1
[ 7.517082][ T216] cal_data_cfg=none
[ 7.520785][ T216] ps_mode = 2
[ 7.524003][ T216] auto_ds = 2
[ 7.534570][ T216] host_mlme=enable
[ 7.543236][ T216] fw_name=sdiouart8987_combo_v0.bin
[ 7.543285][ T216] SDIO: max_segs=128 max_seg_size=65472
[ 7.556345][ T216] rx_work=1 cpu_num=4
[ 7.556372][ T216] Attach mlan adapter operations.card_type is 0x105.
[ 7.587427][ T216] wlan: Enable TX SG mode
[ 7.602421][ T216] wlan: Enable RX SG mode
[ 7.687234][ T216] Request firmware: sdiouart8987_combo_v0.bin
[ 7.953168][ T216] Wlan: FW download over, firmwarelen=603832 downloaded 603832
[ 8.823046][ T216] WLAN FW is active
[ 8.826955][ T216] on_time is 8824068000
[ 8.888673][ T20] fw_cap_info=0x181d7f03, dev_cap_mask=0xffffffff
[ 8.894979][ T20] max_p2p_conn = 8, max_sta_conn = 8
[ 8.900465][ T20] SDIO rx aggr: 1 block_size=512
[ 8.905428][ T20] wlan: Enable RX SG mode
[ 8.909710][ T20] mpa_rx_buf_size=65280
[ 8.914535][ T259] EXT4-fs (dm-6): Ignoring removed nomblk_io_submit option
[ 8.924745][ T259] EXT4-fs (dm-6): mounted filesystem with ordered data mode. Opts: nomblk_io_submit,noauto_da_alloc,errors=panic. Quota mode: journalled.
[ 8.927986][ T216] wlan: version = SD8987----16.92.21.p69.3-MM5X16344.p3-GPL-(FP92)
[ 8.945977][ T1] loop2: detected capacity change from 0 to 6780
[ 8.947367][ T216] wlan: Register to Bus Driver Done
[ 8.957996][ T216] wlan: Driver loaded successfully

 


[ 117.075702][ T2065] wlan: Received disassociation request on wlan0, reason: 3
[ 117.082925][ T2065] wlan: REASON: (Deauth) Sending STA is leaving (or has left) IBSS or ESS
[ 117.091327][ T2065] Already disconnected
[ 121.232677][ T150] wlan: SCAN COMPLETED: scanned AP count=25
[ 121.304403][ T1736] wlan: wlan0 START SCAN
[ 122.606673][ T150] usb 1-1.2.1.2: USB disconnect, device number 6
[ 125.825286][ T150] wlan: SCAN COMPLETED: scanned AP count=27
[ 125.840113][ T2065] wlan: HostMlme wlan0 send auth to bssid 6c:XX:XX:XX:d4:64
[ 127.166634][ T1736] wlan: wlan0 START SCAN
[ 130.851850][ T2065] wlan: Received disassociation request on wlan0, reason: 3
[ 130.859026][ T2065] wlan: REASON: (Deauth) Sending STA is leaving (or has left) IBSS or ESS
[ 130.867393][ T2065] Already disconnected
[ 132.905403][ T150] wlan: SCAN COMPLETED: scanned AP count=29
[ 132.983645][ T2065] wlan: HostMlme wlan0 send auth to bssid 6c:XX:XX:XX:d4:64
[ 134.678759][ T1736] wlan: wlan0 START SCAN
[ 137.994655][ T2065] wlan: Received disassociation request on wlan0, reason: 3
[ 138.001858][ T2065] wlan: REASON: (Deauth) Sending STA is leaving (or has left) IBSS or ESS
[ 138.010249][ T2065] Already disconnected
[ 138.623755][ T4111] audit: audit_lost=407 audit_rate_limit=5 audit_backlog_limit=64
[ 138.631510][ T4111] audit: rate limit exceeded
[ 140.007820][ T150] wlan: SCAN COMPLETED: scanned AP count=27
[ 140.091134][ T2065] wlan: HostMlme wlan0 send auth to bssid 6c:XX:XX:XX:d4:64
[ 142.142183][ T1736] wlan: wlan0 START SCAN
[ 145.101498][ T2065] wlan: Received disassociation request on wlan0, reason: 3
[ 145.108692][ T2065] wlan: REASON: (Deauth) Sending STA is leaving (or has left) IBSS or ESS
[ 145.117076][ T2065] Already disconnected
[ 147.199056][ T150] wlan: SCAN COMPLETED: scanned AP count=28
[ 147.285430][ T2065] wlan: HostMlme wlan0 send auth to bssid 6c:XX:XX:XX:d4:64
[ 148.100347][ T269] wlan0:
[ 148.100362][ T269] wlan: HostMlme Auth received from 6c:XX:XX:XX:d4:64
[ 149.228682][ T150] ASSOC_RESP: Association Failed, status code = 1, error = 0xfffc, a_id = 0xffff
[ 149.237829][ T150] IOCTL failed: 00000000dc935728 id=0x20000, sub_id=0x20001 action=1, status_code=0xfffc0001
[ 149.247886][ T2065] HostMlme wlan0: bss_start Fails
[ 149.252899][ T2065] wlan: HostMlme wlan0 Failed to connect to bssid 6c:XX:XX:XX:d4:64
[ 149.676738][ T1736] wlan: wlan0 START SCAN
[ 154.153894][ T150] wlan: SCAN COMPLETED: scanned AP count=26
[ 154.243081][ T2065] wlan: HostMlme wlan0 send auth to bssid 6c:XX:XX:XX:d4:64
[ 154.680139][ T1736] wlan: wlan0 START SCAN
[ 159.255254][ T2065] wlan: Received disassociation request on wlan0, reason: 3
[ 159.262443][ T2065] wlan: REASON: (Deauth) Sending STA is leaving (or has left) IBSS or ESS
[ 159.270841][ T2065] Already disconnected
[ 161.222368][ T150] wlan: SCAN COMPLETED: scanned AP count=29
[ 161.327843][ T2065] wlan: HostMlme wlan0 send auth to bssid 6c:XX:XX:XX:d4:64
[ 161.347127][ T1736] wlan: wlan0 START SCAN
[ 166.365790][ T2065] wlan: Received disassociation request on wlan0, reason: 3
[ 166.372963][ T2065] wlan: REASON: (Deauth) Sending STA is leaving (or has left) IBSS or ESS
[ 166.381328][ T2065] Already disconnected
[ 168.308602][ T150] wlan: SCAN COMPLETED: scanned AP count=29
[ 168.405199][ T2065] wlan: HostMlme wlan0 send auth to bssid 6c:XX:XX:XX:d4:64
[ 169.661253][ T1736] wlan: wlan0 START SCAN

タグ(4)
0 件の賞賛
返信
1 解決策
21,405件の閲覧回数
DrRamm
Contributor III

Hi! Do you want a joke?) This patch fixes Wi-Fi. But I still need an explanation of what happened and why HDMI affects Wi-Fi.

 

I've worked a lot with mtk and qcom, but I've never encountered that changing the HDMI driver affects any other components. This is crazy

--- a/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
+++ b/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
@@ -330,7 +330,7 @@ const struct phy_config samsung_phy_pll_cfg[] = {
0x00, 0xD1, 0x51, 0x58, 0x8D, 0x04, 0x9A, 0x57,
0x4F, 0x30, 0x33, 0x65, 0x10, 0xBE, 0x24, 0x80,
0x6C, 0xF2, 0x67, 0x00, 0x10, 0x85, 0x30, 0x3A,
- 0x74, 0x8F, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
+ 0x60, 0x8F, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xE0, 0x83, 0x0F, 0x3E, 0xF8, 0x00, 0x00,
},
--
GitLab

 

So the correct settings are

                65000000, {
                        0x00, 0xD1, 0x51, 0x58, 0x8D, 0x04, 0x9A, 0x57,
                        0x4F, 0x30, 0x33, 0x65, 0x10, 0xBE, 0x24, 0x80,
                        0x6C, 0xF2, 0x67, 0x00, 0x10, 0x85, 0x30, 0x3A,
                        0x60, 0x8F, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
                        0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                        0x00, 0xE0, 0x83, 0x0F, 0x3E, 0xF8, 0x00, 0x00,
                },

 

元の投稿で解決策を見る

0 件の賞賛
返信
22 返答(返信)
7,182件の閲覧回数
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @DrRamm 

Sorry, I was in PTO and come back to office today.

Right now I am a little busy for some issues, once have any updates on this issue, I will let you know.

 

Best regards,

Christine.

タグ(1)
0 件の賞賛
返信
1,346件の閲覧回数
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @DrRamm 

I sent you another private email, please let me know whether you can receive it.

 

B.R,

Christine.

タグ(1)
0 件の賞賛
返信