SC20 customized board some issue with wcnss wlan

Hello,

We are using customized board based on SC20 with Android 7.1.2.

Now facing some issue with wcnss driver something went in previously was fine.

Snip of dmesg when working & non working …

working ok debug logs…
[ 0.394296] msm_iommu_ctx 1e31000.qcom,iommu-ctx: context wlan using bank 17
[ 0.851103] subsys-pil-tz a21b000.qcom,pronto: [wcnss]: Error getting proxy unvoting gpio
[ 1.082575] wcnss_wlan probed in built-in mode
[ 8.094836] init: Starting service ‘wcnss-service’…

[ 15.896250] wcnss_wlan triggered by userspace
[ 15.896965] wcnss_pm_qos_add_request: add request
[ 15.896990] wcnss_pm_qos_update_request: update request 100

[ 15.901506] wcnss_notif_cb: wcnss notification event: 2
[ 15.905891] cma: dma_alloc_from_contiguous(cma 00000000, count 1792, align 8)
[ 15.905912] cma: dma_alloc_from_contiguous(): returned 8d500

[ 15.905930] subsys-pil-tz a21b000.qcom,pronto: wcnss: loading from 0x8d500000 to 0x8db4a000
[ 15.906447] wcnss_notif_cb: wcnss notification event: 6
[ 15.922145] wcnss: IRIS Reg: 04000004
[ 15.955368] cma: dma_alloc_from_contiguous(cma 00000000, count 1, align 0)
[ 15.958594] cma: dma_alloc_from_contiguous(): returned af077
[ 15.958693] cma: dma_release_from_contiguous(pfn af077)

[ 16.150933] subsys-pil-tz a21b000.qcom,pronto: wcnss: Brought out of reset

[ 16.509469] subsys-pil-tz a21b000.qcom,pronto: wcnss: Power/Clock ready interrupt received
[ 16.510691] wcnss_notif_cb: wcnss notification event: 7
[ 16.527218] subsys-pil-tz a21b000.qcom,pronto: Subsystem error monitoring/handling services are up
[ 16.527971] wcnss_notif_cb: wcnss notification event: 3
[ 16.528009] wcnss_pm_qos_update_request: update request -1
[ 16.528044] wcnss_pm_qos_remove_request: remove request
[ 16.660073] wcnss_wlan_ctrl_probe: SMD ctrl channel up
[ 16.661500] wcnss: version 01050102
[ 16.661535] wcnss: schedule dnld work for pronto
[ 16.662524] wcnss: build version 00147
[ 16.661549] wcnss: NV download
[ 16.679226] wcnss: NV bin size: 31719, total_fragments: 11

[ 16.679309] wcnss: no space available for smd frame
[ 16.709047] wcnss: no space available for smd frame
[ 16.739086] wcnss: no space available for smd frame
[ 16.769119] wcnss: no space available for smd frame

wcnss ==> Not working…
[ 0.381895] msm_iommu_ctx 1e31000.qcom,iommu-ctx: context wlan using bank 17
[ 0.834464] subsys-pil-tz a21b000.qcom,pronto: [wcnss]: Error getting proxy unvoting gpio
[ 3.419775] wcnss_wlan probed in built-in mode
[ 13.320285] init: Starting service ‘wcnss-service’…

[ 21.767066] wcnss: no space available for smd frame
[ 21.792569] wcnss: no space available for smd frame
[ 21.822614] wcnss: no space available for smd frame
[ 21.862744] wcnss: no space available for smd frame
[ 22.564486] init: Service ‘config_bluetooth’ (pid 427) exited with status 0
[ 28.096699] HTB: quantum of class 10001 is big. Consider r2q change.
[ 28.147679] HTB: quantum of class 10010 is big. Consider r2q change.
[ 32.380453] wcnss_service (546) used greatest stack depth: 4736 bytes left
[ 32.583403] init: Service ‘wcnss-service’ (pid 546) exited with status 0

===============================================================================

  1. Missing/issue part now
    <>>> No wcnss_wlan triggered by userspace

  2. Also notice Module signature verification failure when clicking WIFI logo
    <>>> Request for unknown module key ‘Magrathea: Glacier signing key: e4cf47b3f89be79091451ac15614216e676b4bcd’ err -11

I notice issue when fastboot flash command failed due size of system.img (now 986368980).

Appreciate your feedback.

Thanks & regards,
Zahir

Hi Zahir,
Can you find wlan.ko in SC20? You should fastboot boot.img and system.img simultaneously.

Hi,

Facing same issue in one of my unit, which is custom based on SC20W using 7.1.2.
@Rooney Yes I am able to find wlan.ko in out/target/…/system/lib/wlan.ko which eventually calling pronto_wlan.ko.

However, my unit is not able to boot complete and watchDog report issue as wcnss crash!!!
Dmesg attached for reference,

[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)

[ 0.375028] mdss_dsi_ctrl_probe: DSI Ctrl name = MDSS DSI CTRL->0
[ 0.375302] mdss_dsi_panel_init: Panel Name = nt35521 800p video mode dsi panel
[ 2.635223] console [ttyHSL0] enabled
[ 2.639179] msm_serial_hsl_probe: detected port #1 (ttyHSL1)
[ 2.644562] AXI: get_pdata(): Error: Client name not found
[ 2.649943] AXI: msm_bus_cl_get_pdata(): client has to provide missing entry for successful registration
[ 2.659444] msm_serial_hsl_probe: Bus scaling is disabled
[ 2.664945] 78b0000.serial: ttyHSL1 at MMIO 0x78b0000 (irq = 140) is a MSM
[ 2.672213] msm_serial_hsl_init: driver initialized
[ 2.676506] smd_tty_log_init: Unable to create IPC log
[ 2.693868] kgsl kgsl-3d0: Initialized kgsl-3d0: mmu=on
[ 2.710820] brd: module loaded
[ 2.717038] loop: module loaded
[ 2.994581] msm_otg 78d9000.usb: msm_otg probe
[ 3.002079] msm_otg 78d9000.usb: OTG regs = f01f4000
[ 3.008538] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 3.014077] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[ 3.020157] ehci-msm2: Qualcomm EHCI Host Controller
[ 3.025170] usbcore: registered new interface driver cdc_acm
[ 3.030170] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 3.038281] usbcore: registered new interface driver ccid_bridge
[ 3.044429] ccid_bridge_init: success
[ 3.088457] Sitronix touch driver 2.10.2
[ 3.092417] Release date: 20180809
[ 3.095753] sitronix_ts_init,2503
[ 3.099073] sitronix_ts_init,2512
[ 3.103073] sitronix_ts_probe,1770
[ 3.105732] sitronix_parse_dt,1678
[ 5.873466] init: Init process start!
[ 5.891400] init: init first stage started!
[ 5.901512] SELinux: 2048 avtab hash slots, 13583 rules.
[ 5.912633] SELinux: 63 classes, 13583 rules
[ 5.915909] SELinux: Completing initialization.
[ 6.015458] init: (Initializing SELinux non-enforcing took 0.10s.)
[ 6.030120] init: Init process start!
[ 6.033084] init: init second stage started!
[ 6.047290] init: property_set(“ro.boot.bootdevice”, “7824900.sdhci”) failed
[ 6.061031] init: Running restorecon…
[ 6.305918] init: waitpid failed: No child processes
[ 6.310467] init: (Loading properties from /default.prop took 0.00s.)
[ 6.321031] init: (Parsing /init.environ.rc took 0.00s.)
[ 6.326657] init: (Parsing /init.usb.rc took 0.00s.)

[ 16.427425] msm_pm_qos_add_request: add request
[ 16.432169] Generating power_down_setting<3>[ 16.434986] msm_camera_fill_vreg_params:87 i 2 j 3 cam_vaf
[ 16.440449] msm_camera_fill_vreg_params:65 i 3 j 1 cam_vio
[ 16.446505] msm_camera_fill_vreg_params:54 i 4 j 0 cam_vdig
[ 16.451947] msm_camera_fill_vreg_params:76 i 5 j 2 cam_vana
[ 16.457029] msm_camera_fill_vreg_params:76 i 4 j 2 cam_vana
[ 16.462938] msm_camera_fill_vreg_params:54 i 5 j 0 cam_vdig
[ 16.468138] msm_camera_fill_vreg_params:65 i 6 j 1 cam_vio
[ 16.473675] msm_camera_fill_vreg_params:87 i 7 j 3 cam_vaf
[ 16.539420] ov2680_5987fhq probe succeeded
[ 16.603492] msm_csid_init: CSID_VERSION = 0x30010000
[ 16.603981] msm_csid_init: Failed in getting TOP gdscr regulator handle
[ 16.639689] msm_isp_close_node: halt timeout rc=0
[ 16.757024] configuring dma source while dma is active
[ 16.758131] msm_csid_init: CSID_VERSION = 0x30010000
[ 16.738405] msm_pm_qos_update_request: update request 100
[ 16.770280] msm_csid_init: Failed in getting TOP gdscr regulator handle<4>[ 16.776815] ------------[ cut here ]------------
[ 16.780425] WARNING: at /home/pk/acmgit/project/kernel/drivers/clk/qcom/clock-local2.c:158 rcg_clk_prepare+0x38/0x40()
[ 16.791084] Attempting to prepare csi1_clk_src before setting its rate. Set the rate first!
[ 16.791097] Modules linked in:
[ 16.791114] CPU: 1 PID: 1254 Comm: mct_pipe_start Tainted: G W 3.10.49-gc25540af518a-00026-gc46f7cfc28ce #1
[ 16.791143] [] (unwind_backtrace+0x0/0xf4) from [] (show_stack+0x10/0x14)
[ 16.791166] [] (show_stack+0x10/0x14) from [] (warn_slowpath_common+0x54/0x6c)
[ 16.791188] [] (warn_slowpath_common+0x54/0x6c) from [] (warn_slowpath_fmt+0x30/0x40)
[ 16.791206] [] (warn_slowpath_fmt+0x30/0x40) from [] (rcg_clk_prepare+0x38/0x40)
[ 16.791221] [] (rcg_clk_prepare+0x38/0x40) from [] (clk_enable+0xb0/0xf4)
[ 16.791234] [] (clk_enable+0xb0/0xf4) from [] (clk_enable+0x4c/0xf4)
[ 16.791250] [] (clk_enable+0x4c/0xf4) from [] (msm_cam_clk_enable+0x78/0x24c)
[ 16.791266] [] (msm_cam_clk_enable+0x78/0x24c) from [] (msm_csiphy_subdev_ioctl+0x4d4/0x84c)
[ 16.791280] [] (msm_csiphy_subdev_ioctl+0x4d4/0x84c) from [] (subdev_do_ioctl+0xc8/0x7bc)
[ 16.791294] [] (subdev_do_ioctl+0xc8/0x7bc) from [] (video_usercopy+0x19c/0x440)
[ 16.791307] [] (video_usercopy+0x19c/0x440) from [] (v4l2_ioctl+0x114/0x13c)
[ 16.791334] [] (v4l2_ioctl+0x114/0x13c) from [] (do_vfs_ioctl+0x400/0x5c8)
[ 16.791357] [] (do_vfs_ioctl+0x400/0x5c8) from [] (SyS_ioctl+0x70/0x80)
[ 16.791378] [] (SyS_ioctl+0x70/0x80) from [] (ret_fast_syscall+0x0/0x30)
[ 16.791389] —[ end trace da227214a82491b9 ]—
[ 16.874989] msm_sensor_config:1245 sensor state 1
[ 17.073671] msm_sensor_config:1272 sensor state 0
[ 16.946445] msm_pm_qos_update_request: update request -1
[ 17.171395] sps:BAM 0x04044000 is registered.<6>[ 17.171586] sps:BAM 0x04044000 (va:0xf17e0000) enabled: ver:0x25, number of pipes:6
[ 18.124799] init: Service ‘config_bluetooth’ (pid 439) exited with status 0
[ 18.152800] wcnss_wlan triggered by userspace
[ 18.153396] wcnss_pm_qos_add_request: add request
[ 18.153416] wcnss_pm_qos_update_request: update request 100
[ 18.153626] Couldn’t get snoc_qosgen
[ 18.158776] Battery mvolts phy=4019846 meas=0x3d64b8
[ 18.159130] wcnss_notif_cb: wcnss notification event: 2
[ 18.159947] subsys-pil-tz a21b000.qcom,pronto: wcnss: loading from 0x8d500000 to 0x8db38000
[ 18.160250] wcnss_notif_cb: wcnss notification event: 6
[ 18.163103] wcnss: IRIS Reg: 04000004
[ 18.314384] subsys-pil-tz a21b000.qcom,pronto: wcnss: Brought out of reset
[ 23.522182] Watchdog bite received from wcnss!
[ 23.525594] wcnss SFR: (unknown, smem_get_entry_no_rlock failed).
[ 23.531668] subsys-restart: subsystem_restart_dev(): Restart sequence requested for wcnss, restart_level = RELATED.
[ 23.531674] ------------[ cut here ]------------
[ 23.536278] WARNING: at /home/pk/acmgit/project/kernel/drivers/soc/qcom/subsystem_restart.c:904 subsystem_restart_dev+0x1d8/0x1f0()
[ 23.548071] SSR aborted: wcnss subsystem not online
[ 23.548077] Modules linked in:
[ 23.548090] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.10.49-gc25540af518a-00026-gc46f7cfc28ce #1
[ 23.548110] [] (unwind_backtrace+0x0/0xf4) from [] (show_stack+0x10/0x14)
[ 23.548127] [] (show_stack+0x10/0x14) from [] (warn_slowpath_common+0x54/0x6c)
[ 23.548144] [] (warn_slowpath_common+0x54/0x6c) from [] (warn_slowpath_fmt+0x30/0x40)
[ 23.548160] [] (warn_slowpath_fmt+0x30/0x40) from [] (subsystem_restart_dev+0x1d8/0x1f0)
[ 23.548177] [] (subsystem_restart_dev+0x1d8/0x1f0) from [] (subsys_wdog_bite_irq_handler+0x54/0x94)
[ 23.548196] [] (subsys_wdog_bite_irq_handler+0x54/0x94) from [] (handle_irq_event_percpu+0x54/0x17c)
[ 23.548212] [] (handle_irq_event_percpu+0x54/0x17c) from [] (handle_irq_event+0x3c/0x5c)
[ 23.548227] [] (handle_irq_event+0x3c/0x5c) from [] (handle_fasteoi_irq+0x84/0x154)
[ 23.548242] [] (handle_fasteoi_irq+0x84/0x154) from [] (generic_handle_irq+0x2c/0x3c)
[ 23.548258] [] (generic_handle_irq+0x2c/0x3c) from [] (handle_IRQ+0x40/0x90)
[ 23.548273] [] (handle_IRQ+0x40/0x90) from [] (gic_handle_irq+0x2c/0x5c)
[ 23.548288] [] (gic_handle_irq+0x2c/0x5c) from [] (__irq_svc+0x40/0x70)
[ 23.548295] Exception stack(0xc0f0fe88 to 0xc0f0fed0)
[ 23.548306] fe80: 8d4fdf3b 83126e97 000bf552 0000030f 00000000 00000000
[ 23.548317] fea0: 00061f65 00000000 c5050f50 ee25d810 c0a00e9c ee21fc10 00000000 c0f0fed0
[ 23.548326] fec0: c06a36d0 c066b38c 000f0013 ffffffff
[ 23.548343] [] (__irq_svc+0x40/0x70) from [] (lpm_cpuidle_enter+0x394/0x4a0)
[ 23.548360] [] (lpm_cpuidle_enter+0x394/0x4a0) from [] (cpuidle_enter_state+0x3c/0xe0)
[ 23.548375] [] (cpuidle_enter_state+0x3c/0xe0) from [] (cpuidle_idle_call+0xb0/0x148)
[ 23.548390] [] (cpuidle_idle_call+0xb0/0x148) from [] (arch_cpu_idle+0x8/0x38)
[ 23.548405] [] (arch_cpu_idle+0x8/0x38) from [] (cpu_startup_entry+0x100/0x13c)
[ 23.548422] [] (cpu_startup_entry+0x100/0x13c) from [] (rest_init+0xa4/0xac)
[ 23.548441] [] (rest_init+0xa4/0xac) from [] (start_kernel+0x380/0x38c)
[ 23.548449] —[ end trace da227214a82491ba ]—

Regards,
Praween

Hi Zahir,
i found wlan.ko file /system/lib/modules directory. But i have the same issue

Dear customer:
Does any one can try to flash all the android images?
On android7, we store the wlan.ko in system image.
So when we flash the boot only, the signature will casue the wlan.ko can’t be installed in the kernel.