Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2292460rdb; Thu, 21 Sep 2023 14:20:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwZlD2yMRCgU/iRyo/3pcAUbUtA6uZRhrzunZ5t69HnbJHi/10nDJ9kK5hG/w7uHymAz7D X-Received: by 2002:a17:902:c40a:b0:1c3:aef9:872e with SMTP id k10-20020a170902c40a00b001c3aef9872emr8780900plk.34.1695331220506; Thu, 21 Sep 2023 14:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695331220; cv=none; d=google.com; s=arc-20160816; b=u7g96M+IaH4sQcgp+D9tIz//DlGlltbPiaaOpXhhbUW86ID5XQ8rXHcUAjZbE7GpQo 4S9S6ZCx24fCgiRHLL0freVyKshnepT3VitTYYfAqDaLsECzvznBT8R+n6weLMvtflDv Ew3Zd2g4jxKm73utBKOXPmPqXL90OsL280ciSjhMYx3qDKN2yAC/x3romhZBlnFk1Wf0 5lT160IdPEzUdFOgr+PZj+Mf712jVlMq7pTA+ijjyh+ZzsWeEAc2JsdZXnAxt9/sjk9k jbKOqu7xTWxAYoxOXyfeLKV/LAzWMgUP9O/7zEVLjn/URsESyKT5di+zGHp1iVSYm2IY LEyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=gD8dVm2YcY2ILr9ORGKe9Jn5pR65/UJUocbpip18AOQ=; fh=MZyShLgMg7p4A+etc9WDHDSDT5SGpdoY5scRfMt1KHE=; b=Ry6W0GLOTue2pUL2+4vJyBIZDlPsFFXuAq4mZOw4s2Rqb61YS6o4RNimyMr2G0sA5I 03IAiKIUODHbpyrTeO1dtM8pZDfCqu77CgYhiWwWj1PL7JKfJtFz6EsSqDgh70O6Z6oy 1c+cNjhRUixDNoL0wuXOn/pW399tt+dPa8GuSmPJtMYo5G3wi1vg09X2HhX/yUkEKqvO cRcRDSEhuyMH7LzyJfw0qQ9Wcq+eq7lkebaaPZFvuiyXNhyIfgk/jqxvYIAZ354LQS/y 7WxHNTN7VlFJOk9b7oL7hw4syrqc+gsnW30yOFnNF/OmtgttPSq6cyj5zuSdDQ0U61hC EL2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=maVjgWzQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id o3-20020a170902d4c300b001bdf71d52b0si2438100plg.456.2023.09.21.14.20.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 14:20:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=maVjgWzQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A2EEE8347B93; Thu, 21 Sep 2023 14:05:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232457AbjIUVEW (ORCPT + 56 others); Thu, 21 Sep 2023 17:04:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbjIUVDo (ORCPT ); Thu, 21 Sep 2023 17:03:44 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B82EC83F58 for ; Thu, 21 Sep 2023 10:37:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00DA5C116B2; Thu, 21 Sep 2023 08:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695283941; bh=T9axprIpl0XduYk3n2EqzXInDwp6YLqpLyjrX8stzrw=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=maVjgWzQpzPgDxayY1N1p0/7EJ+tKT+bbOcaL1VNcdxV83qItOQNXXz68oraB3o4j Z3GPQXWxLIJHh56KAPiyIG59Clc+WE351I2w6klhy44GMIqMzUkaPhxp4cAWA3jJEy dMUWHmouIRsxcATDpaA/sikt23/4TQEhTlzBQ9gDWeTgQDJezUpX7kVm+RpvmskGTc WMDj3B6Y0BS/XSdisIP8m7s8K+XFcQLzqPW/ba0tHH2qlHxnts/KWvj6sLUnTHQJH3 MibcbD23NpF9e3WnOTtzyyk7e4roXRprIIpHSfFAbzevlw7KZ/H8EBCnj1/IReCjZm a5TrvxpxLS5Qg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] wifi: ath11k: fix boot failure with one MSI vector From: Kalle Valo In-Reply-To: <20230907015606.16297-1-quic_bqiang@quicinc.com> References: <20230907015606.16297-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: <169528393922.1539628.7842522127045869453.kvalo@kernel.org> Date: Thu, 21 Sep 2023 08:12:20 +0000 (UTC) X-Spam-Status: No, score=-0.1 required=5.0 tests=DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 14:05:44 -0700 (PDT) Baochen Qiang wrote: > Commit 5b32b6dd96633 ("ath11k: Remove core PCI references from > PCI common code") breaks with one MSI vector because it moves > affinity setting after IRQ request, see below log: > > [ 1417.278835] ath11k_pci 0000:02:00.0: failed to receive control response completion, polling.. > [ 1418.302829] ath11k_pci 0000:02:00.0: Service connect timeout > [ 1418.302833] ath11k_pci 0000:02:00.0: failed to connect to HTT: -110 > [ 1418.303669] ath11k_pci 0000:02:00.0: failed to start core: -110 > > The detail is, if do affinity request after IRQ activated, > which is done in request_irq(), kernel caches that request and > returns success directly. Later when a subsequent MHI interrupt is > fired, kernel will do the real affinity setting work, as a result, > changs the MSI vector. However at that time host has configured > old vector to hardware, so host never receives CE or DP interrupts. > > Fix it by setting affinity before registering MHI controller > where host is, for the first time, doing IRQ request. > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 > Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 > Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-01160-QCAMSLSWPLZ-1 > > Fixes: 5b32b6dd9663 ("ath11k: Remove core PCI references from PCI common code") > Signed-off-by: Baochen Qiang > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 39564b475ac5 wifi: ath11k: fix boot failure with one MSI vector -- https://patchwork.kernel.org/project/linux-wireless/patch/20230907015606.16297-1-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches