Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AA4DC433EF for ; Wed, 17 Nov 2021 07:43:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A3BF61350 for ; Wed, 17 Nov 2021 07:43:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231610AbhKQHqi (ORCPT ); Wed, 17 Nov 2021 02:46:38 -0500 Received: from m43-7.mailgun.net ([69.72.43.7]:35475 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229973AbhKQHqh (ORCPT ); Wed, 17 Nov 2021 02:46:37 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1637135019; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=3sSp4klagRt88pGsJmhchh7aqNuv0yFReBJKdJbycrU=; b=XGbsnpce8jEz5tHemtNv0X2jg9iMP5GNak65KYcNCly4HEteWRSp/8QSEJrBsoCYkNeb6c6J qB+Ag80H4tPDr84vdilWnrzOKcuKU6h7OYwIg/SEuthTdzidRADfoQp4saioxcGTTI3f7Ls1 FPkBe5lWrei9EsNTpgOVoiSafPI= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 6194b2aa11cd6d407793848e (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 17 Nov 2021 07:43:38 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A8D1CC43617; Wed, 17 Nov 2021 07:43:38 +0000 (UTC) Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 032ABC43460; Wed, 17 Nov 2021 07:43:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 032ABC43460 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Kalle Valo To: "Seevalamuthu Mariappan \(Temp\) \(QUIC\)" Cc: "ath11k\@lists.infradead.org" , "linux-wireless\@vger.kernel.org" Subject: Re: [PATCH] ath11k: add hw_param for wakeup_mhi References: <1636702019-26142-1-git-send-email-quic_seevalam@quicinc.com> <87czn1iurz.fsf@codeaurora.org> Date: Wed, 17 Nov 2021 09:43:31 +0200 In-Reply-To: (Seevalamuthu Mariappan's message of "Tue, 16 Nov 2021 08:04:54 +0000") Message-ID: <871r3ffcrg.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org "Seevalamuthu Mariappan (Temp) (QUIC)" writes: >> Seevalamuthu Mariappan writes: >> >> > Wakeup mhi is needed before pci_read/write only for QCA6390 and >> > WCN6855. Since wakeup & release mhi is enabled for all hardwares, >> > below mhi assert is seen in QCN9074. >> > >> > Kernel panic - not syncing: dev_wake != 0 >> > CPU: 2 PID: 13535 Comm: procd Not tainted 4.4.60 #1 >> > Hardware name: Generic DT based system >> > [<80316dac>] (unwind_backtrace) from [<80313700>] >> (show_stack+0x10/0x14) >> > [<80313700>] (show_stack) from [<805135dc>] >> (dump_stack+0x7c/0x9c) >> > [<805135dc>] (dump_stack) from [<8032136c>] (panic+0x84/0x1f8) >> > [<8032136c>] (panic) from [<80549b24>] >> (mhi_pm_disable_transition+0x3b8/0x5b8) >> > [<80549b24>] (mhi_pm_disable_transition) from [<80549ddc>] >> (mhi_power_down+0xb8/0x100) >> > [<80549ddc>] (mhi_power_down) from [<7f5242b0>] >> (ath11k_mhi_op_status_cb+0x284/0x3ac [ath11k_pci]) >> > [E][__mhi_device_get_sync] Did not enter M0 state, cur_state:RESET >> pm_state:SHUTDOWN Process >> > [E][__mhi_device_get_sync] Did not enter M0 state, cur_state:RESET >> pm_state:SHUTDOWN Process >> > [E][__mhi_device_get_sync] Did not enter M0 state, cur_state:RESET >> pm_state:SHUTDOWN Process >> > [<7f5242b0>] (ath11k_mhi_op_status_cb [ath11k_pci]) from >> [<7f524878>] (ath11k_mhi_stop+0x10/0x20 [ath11k_pci]) >> > [<7f524878>] (ath11k_mhi_stop [ath11k_pci]) from [<7f525b94>] >> (ath11k_pci_power_down+0x54/0x90 [ath11k_pci]) >> > [<7f525b94>] (ath11k_pci_power_down [ath11k_pci]) from >> [<8056b2a8>] (pci_device_shutdown+0x30/0x44) >> > [<8056b2a8>] (pci_device_shutdown) from [<805cfa0c>] >> (device_shutdown+0x124/0x174) >> > [<805cfa0c>] (device_shutdown) from [<8033aaa4>] >> (kernel_restart+0xc/0x50) >> > [<8033aaa4>] (kernel_restart) from [<8033ada8>] >> (SyS_reboot+0x178/0x1ec) >> > [<8033ada8>] (SyS_reboot) from [<80301b80>] >> > (ret_fast_syscall+0x0/0x34) >> > >> > Hence, disable wakeup/release mhi using hw_param for other hardwares. >> > >> > Tested-on: QCN9074 hw1.0 PCI >> > WLAN.HK.2.5.0.1-01060-QCAHKSWPL_SILICONZ-1 >> > >> > Fixes: a05bd85133 ("ath11k: read and write registers below unwindowed >> > address") >> > Signed-off-by: Seevalamuthu Mariappan >> >> The commit log is not quite clear, are you saying that commit a05bd85133 >> broke QCN9074 support altogether? Or it was failing only in some cases? >> I can update the commit log. >> > > [seevalam]: MHI assert seen during 'rmmod ath11k_pci' for QCN9074. Thanks, I added that to the commit log. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches