From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99843C433B4 for ; Tue, 11 May 2021 16:32:32 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E1E8C6187E for ; Tue, 11 May 2021 16:32:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1E8C6187E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=ath11k-bounces+ath11k=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2o10EvRGLA6BJsy+PkpVuOnm35mvZSnQ6C6jP6d8Rus=; b=WD9i8kMFGDJ/cwydHWKgquS8h AOq6biIRNKXeExYPp078DjyoiN8zKmIU7r/pqMN7j3VL37jXfIctFddRYIFlKvjVIfbhbo+poCfBz a3tWaNv54HHeal+Ms1N2R2c5Yy3IY8KFWTQlfLEzGFNqBzH3cbZqDiZpqUDnmd1UTjaLTlufk5jUg c9nx/NUFP5vxTJk9WTbYz6uut2aVj0sHqRqOf6xdazm1uT43bynNLT1nEwPQuUEPFL4J09WPbNwNS 0qij09tWfSEhJ77VfRGO+OA0Z/sXpLUxWM+xS/O/s4VHTWzmctwISGc6AcBJ+ffEoq4NyaMapHKfz uLBhtPYcw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgVJ3-000kgK-1e; Tue, 11 May 2021 16:32:25 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgV1B-000gum-VY for ath11k@desiato.infradead.org; Tue, 11 May 2021 16:13:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Message-ID:References:In-Reply-To: Subject:Cc:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version: Sender:Reply-To:Content-ID:Content-Description; bh=CkD8/qIWqcnIOV07qlR+Mtk3eUIlmnr8hLUqu10ofY0=; b=0rq3h6FNQWR358TrcpXDXv2Swp R2UZoueok2Y76kcLpCyLJhVRLBwQHhJHMSHqlHr/fW+LSHFA0cVanbgRQmJHz8A29Eu3F1O6WcMl1 sZqgYd9WODrqAMZdj2/pe2GtAYltjxExsbWPkw8a81AYeD+0Nn5gmq06HK2pvZn/KucO6AsALkwqC 9nPnw4/6QXYUSWp+0nAbIgCWf8ueq3ybu3Bltzwx9zYYc4UsoA0wI5kbjRA/dB1//b8p2awd3q+py TLhWVdOVbfcsG+0mh4Nhfp9oUjozK3YBaSN2MbmNkz/AR8sw3G3DfJk2fUOjg7mncEsqLjmZjqTpe /d/GXDfg==; Received: from so254-9.mailgun.net ([198.61.254.9]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgV18-009kbE-GN for ath11k@lists.infradead.org; Tue, 11 May 2021 16:13:56 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1620749631; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=CkD8/qIWqcnIOV07qlR+Mtk3eUIlmnr8hLUqu10ofY0=; b=YpjoDl4RL+90o4JFwjQjRiuIaIxqNohBDk5l72VZSmAA9ARo9GijQC3KHGNfqzgJAMkL2q35 VV1RvNSF+S+olElfFm/imHUGN4HzlX7QabNqGrcdibPyv+cDrOTYocV7Cd0vJJAthpYOWqjD occKF15LcLX/0tS9Di/8oF8mmuA= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyJmOGQ2ZiIsICJhdGgxMWtAbGlzdHMuaW5mcmFkZWFkLm9yZyIsICJiZTllNGEiXQ== Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 609aad3e2bad3af5f6ae9670 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 11 May 2021 16:13:50 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 16999C43143; Tue, 11 May 2021 16:13:49 +0000 (UTC) Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bperumal) by smtp.codeaurora.org (Postfix) with ESMTPSA id 23D2AC433D3; Tue, 11 May 2021 16:13:47 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 11 May 2021 21:43:47 +0530 From: Bhagavathi Perumal S To: Robert Marko Cc: John Crispin , ath11k@lists.infradead.org Subject: Re: IPQ6018 issues In-Reply-To: References: <6b7c79f0fd04c2d7752a181e5d0281f5@codeaurora.org> <4b13c9a8-a673-83e0-2f44-5d9e463a25cc@phrozen.org> Message-ID: <77a17df97ac7817364b5ee3de7d48a95@codeaurora.org> X-Sender: bperumal@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_091354_652305_3B571FE8 X-CRM114-Status: GOOD ( 28.87 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "ath11k" Errors-To: ath11k-bounces+ath11k=archiver.kernel.org@lists.infradead.org On 2021-05-07 16:08, Robert Marko wrote: > Hi, > > I could not previously reply to my inquiry as for whatever reason I > did not receive the message to my email. > > I have managed to get the ath11k mostly working on IPQ6018, the issue > was in the APPS PLL and the resets in the GCC driver > were not fully working and some were incorrect. > > So, after backporting all of the downstream 5.4 changes to clock > drivers ath11k mostly works, however, if cold-boot calibration is > enabled it will then trigger the remoteproc WDT and crash and hang the > board as well. > > However, I have not been able to get the radio working in 80 or 160MHz > mode, only 20MHz. > > Trying 80Mhz will simply fail like this log: > https://gist.github.com/robimarko/b0d002a4cc5390a82a22eb47aa97684d > > Hostapd 2.9 config used is: > root@localhost $ cat hostapd-ax.conf > logger_syslog=-1 > logger_syslog_level=2 > logger_stdout=-1 > logger_stdout_level=2 > ctrl_interface=/var/run/hostapd > > interface=wlan0 > bridge=br-lan > driver=nl80211 > ssid=AXTest > country_code=US > ieee80211d=1 > ieee80211h=1 > hw_mode=a > channel=36 > wmm_enabled=1 > ieee80211n=0 Please try with enabling ieee80211n and ht_capab. Have you tried with default configs? > ieee80211ac=1 > ieee80211ax=1 > he_oper_chwidth=1 > he_oper_centr_freq_seg0_idx=42 > > Regards, > Robert > > > On Fri, May 7, 2021 at 7:35 AM John Crispin wrote: >> >> Hi Bhagavathi, >> >> please confirm whether QCA tests patches it sends upstream against the >> upstream kernel and not the forked v4.4 QSDK kernel. >> >> John >> >> On 07.05.21 07:02, Bhagavathi Perumal S wrote: >> > On 2021-05-04 22:05, Robert Marko wrote: >> >> Hi, >> >> >> >> I am trying to use ath11k on multiple IPQ6018 and IPQ6010 boards, >> >> unfortunately, they will all fail like this: >> >>> >> >>> # echo c000000.wifi > /sys/bus/platform/drivers/ath11k/bind >> >>> [ 12.417214] ath11k c000000.wifi: event type: 0 >> >>> [ 12.417557] ath11k c000000.wifi: qmi ignore invalid mem req type 3 >> >>> [ 12.420605] ath11k c000000.wifi: event type: 2 >> >>> [ 12.427191] ath11k c000000.wifi: event type: 3 >> >>> [ 12.431312] ath11k c000000.wifi: chip_id 0x0 chip_family 0x4 >> >>> board_id 0xff soc_id 0xffffffff >> >>> [ 12.435626] ath11k c000000.wifi: fw_version 0x240606c6 >> >>> fw_build_timestamp 2021-02-12 03:17 fw_build_id >> >>> QC_IMAGE_VERSION_STRING=WLAN.HK.2.4.0.1-01734-QCAHKSWPL_SILICONZ-1 >> >>> [ 12.447560] ath11k c000000.wifi: event type: 4 >> >>> [ 12.459215] ath11k c000000.wifi: ATH11K_QMI_EVENT_FW_READY >> >>> [ 12.463551] ath11k c000000.wifi: ath11k_core_qmi_firmware_ready >> >>> [ 12.469013] ath11k c000000.wifi: ath11k_core_qmi_firmware_ready >> >>> start >> >>> [ 12.474900] ath11k c000000.wifi: ath11k_ce_init_pipes pass >> >>> # [ 12.491124] ath11k c000000.wifi: ath11k_crypto_mode: 0 >> >>> >> >>> Format: Log Type - Time(microsec) - Message - Optional Info >> >>> Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic >> >>> S - QC_IMAGE_VERSION_STRING=BOOT.XF.0.3-00098-IPQ60xxLZB-1 >> >>> S - IMAGE_VARIANT_STRING=IPQ6018LA >> >>> S - OEM_IMAGE_VERSION_STRING=crm-ubuntu121 >> >>> S - Boot Interface: SPI >> >>> S - Secure Boot: Off >> >>> S - Boot Config @ 0x000a602c = 0x000002e1 >> >>> S - JTAG ID @ 0x000a607c = 0x0013a0e1 >> >>> S - OEM ID @ 0x000a6080 = 0x00000000 >> >>> S - Serial Number @ 0x000a4128 = 0xd92ca102 >> >>> S - OEM Config Row 0 @ 0x000a4188 = 0x0000000000000000 >> >>> S - OEM Config Row 1 @ 0x000a4190 = 0x0000000000000000 >> >>> S - Feature Config Row 0 @ 0x000a4130 = 0x0000000008000001 >> >>> S - Feature Config Row 1 @ 0x000a4138 = 0x02c3e83383000009 >> >>> S - PBL Patch Ver: 1 >> >>> S - I-cache: On >> >>> S - D-cache: On >> >>> B - 3413 - PBL, Start >> >>> B - 592 - bootable_media_detect_entry, Start >> >>> B - 4339 - bootable_media_detect_success, Start >> >>> B - 4435 - elf_loader_entry, Start >> >>> B - 4607 - auth_hash_seg_entry, Start >> >>> B - 10854 - auth_hash_seg_exit, Start >> >>> B - 11350 - elf_segs_hash_verify_entry, Start >> >>> B - 357983 - elf_segs_hash_verify_exit, Start >> >>> B - 362173 - auth_xbl_sec_hash_seg_entry, Start >> >>> B - 362318 - auth_xbl_sec_hash_seg_exit, Start >> >>> B - 368868 - xbl_sec_segs_hash_verify_entry, Start >> >>> B - 368869 - xbl_sec_segs_hash_verify_exit, Start >> >>> B - 369798 - PBL, End >> >>> B - 296002 - SBL1, Start >> >>> B - 435814 - GCC [RstStat:0x2, RstDbg:0x420100] WDog Stat : 0x4 >> >>> B - 438254 - clock_init, Start >> >>> D - 3812 - clock_init, Delta >> >>> B - 447862 - boot_flash_init, Start >> >>> D - 8082 - boot_flash_init, Delta >> >>> B - 458201 - sbl1_ddr_set_default_params, Start >> >>> D - 274 - sbl1_ddr_set_default_params, Delta >> >>> B - 464820 - boot_config_data_table_init, Start >> >>> D - 1891 - boot_config_data_table_init, Delta - (575 Bytes) >> >>> B - 473970 - CDT Version:2,Platform ID:8,Major ID:3,Minor >> >>> ID:0,Subtype:0 >> >>> B - 479490 - Image Load, Start >> >>> D - 6619 - OEM_MISC Image Loaded, Delta - (0 Bytes) >> >>> B - 488823 - Image Load, Start >> >>> D - 5063 - PMIC Image Loaded, Delta - (0 Bytes) >> >>> B - 496692 - sbl1_ddr_set_params, Start >> >>> B - 501694 - CPR configuration: 0x366 >> >>> B - 504897 - Pre_DDR_clock_init, Start >> >>> D - 183 - Pre_DDR_clock_init, Delta >> >>> D - 0 - sbl1_ddr_set_params, Delta >> >> >> >> >> >> I added most of the prints to figure out where it dies. >> >> If cold-boot calibration is enabled then it will die on the >> >> ath11k_qmi_process_coldboot_calibration(), to be exact on the >> >>> >> >>> ret = ath11k_qmi_wlanfw_mode_send(ab, ATH11K_FIRMWARE_MODE_COLD_BOOT); >> >> >> >> >> >> But, if cold-boot calibration is disabled then ti will fail in >> >> ath11k_core_qmi_firmware_ready at or after ath11k_crypto_mode switch. >> >> >> >> A big issue is that it will crash the board and it will get stuck in >> >> SBL, only removing the power will help. >> >> >> >> The hardware I tried on is: >> >> * Wallys CP01-C1 >> >> * Wallys CP03-C1 >> >> * Alfa AP1800C-AX PRO >> >> >> >> I also tried fw versions from 2.1.0.1 to 2.5.0.1-R2 >> >> >> >> Does anybody have an idea how to solve this? >> >> >> >> -- >> >> Robert Marko >> >> Staff Embedded Linux Engineer >> >> Sartura Ltd. >> >> Lendavska ulica 16a >> >> 10000 Zagreb, Croatia >> >> Email: robert.marko@sartura.hr >> >> Web: www.sartura.hr >> > >> > Hi, Please share full boot up log(enable below logs and include them >> > as well), what is the image version you used and please share kernel >> > version as well? and share us the codebase details as well? >> > >> > ATH11K_DBG_QMI = 0x00000040, >> > ATH11K_DBG_BOOT = 0x00000020 >> > >> > eg: >> > echo 0x60 >/sys/module/ath11k/parameters/debug_mask >> > >> > or modify below file and get during boot >> > >> > $cat /etc/modules.d/ath11k >> > ath11k debug_mask=0x60 >> > ath11k_ahb >> > >> > >> > -- ath11k mailing list ath11k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath11k