Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp614305lqc; Fri, 8 Mar 2024 07:07:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWYPaNCde7OvR7gIjZH0DSLOgKezHlqAR7mHr+xt0//p+QdVbHBmPcF0iQm/v8KnEYePd/HxAShHIdz5amvrepQv/GZ36bw1bae3GWhQw== X-Google-Smtp-Source: AGHT+IGXzLx9YMH5Lz11A9DC6xkKaVmg0d9lRulrB3eetxC+gQeu0Q0taDoSfoz/EUlfZX2mVQT0 X-Received: by 2002:a50:8d52:0:b0:566:4adc:45ac with SMTP id t18-20020a508d52000000b005664adc45acmr2002442edt.8.1709910429327; Fri, 08 Mar 2024 07:07:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709910429; cv=pass; d=google.com; s=arc-20160816; b=WWUAp+hdwUkPSw4fdIJ2MBgkKPqSoURmAqrDnl4Ws2e4RLQqEFRkHRQL/OshBdlDSS KfkRZoAh3gZ/+e4uUQ1fbThy3oPHVz0RVVZACAU11mAu/ThGyC6OnsoxlsjRPpDkeyCj kIpQHOKgihKjvOLImPSZuSE85D76TkLYtxNZXMhWs3Xq2U1bg5iQYPNetCEhwwd4EbiV oGMV+pURQh/T7zxJdmyC85ndroh+a16uGk6IbN/lBkgQK7/nC0OLFyhXMkiSIvQpSLyS c4kMTKREIbq2mqGAFPldl7ULUXBVbfjMMAf6cklCDPN+Sv6y4SnrOeBF72uRnL0ZXrgo Vtvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=BySKygHjkpO4pgRVR1fU42e8wVrU3nPHIKrOcc5drfc=; fh=92ujh+XG/FQ1qTQ8Hrqcd2zrXL0pTT/514CZ8jpdgsc=; b=EpP415kSDLlE57Y1uAnhVMyhxeB0VxIo+KPHrwHQ/6C9V269qI33ZrI10DOhmKfRaR Q7yY1nB4C+lNJoDlaRWYdJP4S6It4X0J/7qwkVEsJgAf9suKZFPvEvmHvXM2vmIMk2Ex uzy56WDH28yC3q2UdK+Cri1I4ON5zmB8dQ/X6Jl/UAhp2a2mxV6ZJxHrz10YMjJBCm0p AIac/5FqLmzun126g0mklJgpcF1MKhLKNLcfawYFBYBUWLbQxtLU3zw1gAun0eNb6mZX lz1zzdm28MPm/b2gxq8qsDZNTeUdW+dp4b006dS8vOHu2mY/JYjofWnjiFE+L0VzpjCp Nedg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BDkSlMMe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id er22-20020a056402449600b00568235f7d82si1065002edb.313.2024.03.08.07.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 07:07:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BDkSlMMe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 06BA81F23A84 for ; Fri, 8 Mar 2024 15:07:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2931539C; Fri, 8 Mar 2024 15:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BDkSlMMe" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF929524A for ; Fri, 8 Mar 2024 15:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709910411; cv=none; b=DcORGGfgwbn1r1NnBrlhCB28WmCUE7MOZzxMrBgcMaUeAiPFdEAJtHKMpxWhhQj43/4c+oKVhj/VSY8nDAlrGpLkJISowkQbtCUEE2f5BfBxTp9PRpCBxa/l7Ld6gisJI8RCV+QJSI6HetehjcB/MmnfRb6smkIj/Jnp0wq4XpI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709910411; c=relaxed/simple; bh=7hPKA+WyRR2wPp58WUztimwXnR4OlEnInvhO2YFNqHI=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=LrIRGAbWV4UTEoWRHZmw6YScNFFcjWxrvM9UwOAdRKXUXGnG3h+fHNE6vkRGzXmBNBSQf5NSVzJBqeobmKG2ppKEeVn09jASO5rq8+whZgptVpEBIp7CTgt/85ZX65081uGuqC/VluWlkDd8+PeKC9PemUbGTz/27wUyj9Ek2pY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BDkSlMMe; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57542C43394; Fri, 8 Mar 2024 15:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709910411; bh=7hPKA+WyRR2wPp58WUztimwXnR4OlEnInvhO2YFNqHI=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=BDkSlMMe5tR2s4HlKT2gsr6FmIHpZSmGaD/YU0+SbP3XMALb0WdHeHYxZ64/Komz+ lLrhYRPxteYyuLWmNQzTvguxplAbbtSOsC58nlrwrZJL3vfmEjrRD8QeH9PXCioL0o s+T1pf+33BFQG8PVRAg5StNZ9fYttLWDBtKA5mDMfjlXBwesoLLb8ARBJyLZ97/Zxw ilX0thJlWazX2K/J2zmSXih3z3mMwX0/VgsexgpIdesSsCT/zKQwcmA+S5n4TF8iJ/ 9mLWzYpVZ54CH3tLbjpdcPJI+D2HqOY+iOzMWeLZ4OVG34uC8yfg5JQrAjojZAs+3R AczjgJ2TPumgg== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] wifi: ath10k: poll service ready message before failing From: Kalle Valo In-Reply-To: <20240227030409.89702-1-quic_bqiang@quicinc.com> References: <20240227030409.89702-1-quic_bqiang@quicinc.com> To: Baochen Qiang Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170991040833.1311983.10804124328210267048.kvalo@kernel.org> Date: Fri, 8 Mar 2024 15:06:50 +0000 (UTC) Baochen Qiang wrote: > Currently host relies on CE interrupts to get notified that > the service ready message is ready. This results in timeout > issue if the interrupt is not fired, due to some unknown > reasons. See below logs: > > [76321.937866] ath10k_pci 0000:02:00.0: wmi service ready event not received > ... > [76322.016738] ath10k_pci 0000:02:00.0: Could not init core: -110 > > And finally it causes WLAN interface bring up failure. > > Change to give it one more chance here by polling CE rings, > before failing directly. > > Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00157-QCARMSWPZ-1 > > Fixes: 5e3dd157d7e7 ("ath10k: mac80211 driver for Qualcomm Atheros 802.11ac CQA98xx devices") > Reported-by: James Prestwood > Tested-By: James Prestwood # on QCA6174 hw3.2 > Link: https://lore.kernel.org/linux-wireless/304ce305-fbe6-420e-ac2a-d61ae5e6ca1a@gmail.com/ > Signed-off-by: Baochen Qiang > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. e57b7d62a1b2 wifi: ath10k: poll service ready message before failing -- https://patchwork.kernel.org/project/linux-wireless/patch/20240227030409.89702-1-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches