Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2007791rwd; Fri, 9 Jun 2023 05:33:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51PTZJEAd7cCW5sN+kDGh0THE6CEzj63dwP0x0snsCZ6dl5MV7OlY7tk8WseaHbBLgujL8 X-Received: by 2002:a05:6a20:968a:b0:116:d935:f742 with SMTP id hp10-20020a056a20968a00b00116d935f742mr1230856pzc.20.1686313995346; Fri, 09 Jun 2023 05:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686313995; cv=none; d=google.com; s=arc-20160816; b=kIUvazXlx2PLehE65szSm26/VuDy20YtzDr3DjGCsVRjwgfnd2cjS24b7ecMxuwC1x beK/HhUvuBiI/FlMaO5zdTaUZVqcQvPESYvNtdXiMMs0NytXWKefX/1V3s7beE3ct1pg iIDF59eEk2eJwDehX6sr4rIpkH1MO0Vnx4g2dXftVqXnOyK3yLRTfm5W6HPXrD3XJxwa hquFItEa+/a4lFuN66M6emUqF5R5n3XdQkIxixOXggxn9fTbCZHDPDJAq1UAJ+Hl2iSK dUHkc5ihPZ4M9XwH6uVuw2Y6Q+Dl1fSZDyFD7i3iHNJiufdAnE4Pl0BjjNJuaNe4Nmje gH+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=6bqkJ3V3SjYW8afLOINDbC6pdN1nwuMF7DNfrX5qYMw=; b=PCq5dR+LPQaQbv537m5LkHXtTee+vL/WJQli2Yaw62Yumvsd6RKxmRDHx2J8fb8X8s uOy5rwjPan+95yBjvgD7kTUOI6XMSWM3SelAnM7kf0KWPLgDsftK+syzNmpQZQDpGtur YiIY5nDf0x05xYVtFW+3uqQa4hok1BuBIRmSkPngFdM1BXF0fPJiah6IVnQTHYjHtpEz 4D/KHikYoTfaGUmVrbWu+xMr6uSUUV7thZyV1K5mrGMOcirmuobPxxQONEj1vemIM/uQ x2WCzXjai+giKqE5q46YyY1Ls+K9xQMFD+GQ/4D/xTWaexkY50il74ksopEeSY8cgBbZ KvGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eEtoTdP4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l126-20020a633e84000000b0053b62724848si2541941pga.679.2023.06.09.05.33.00; Fri, 09 Jun 2023 05:33:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eEtoTdP4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230182AbjFIM23 (ORCPT + 62 others); Fri, 9 Jun 2023 08:28:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239179AbjFIM22 (ORCPT ); Fri, 9 Jun 2023 08:28:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F04E3C02 for ; Fri, 9 Jun 2023 05:27:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8516B61B48 for ; Fri, 9 Jun 2023 12:26:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0799C433EF; Fri, 9 Jun 2023 12:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686313574; bh=sDqla35NPLBYgl0LPzzm4JHUqVVdHhzJ++zG4Cv5Xm0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=eEtoTdP4K0F3D0sRvNPo9UU3ja3ErKFH0iXPQYeueJxBwx5a1Rn8L8h3R85zzgTIJ 9+3tlPmHmGmaRPU87DLa818VcH1SXKSuWXOw+P7vE93+asqPEMitbE01DOnHvsQED/ QazJhUxfZpF5XglJoNl3F1BzhEmFGE1pf+M7tsfUQphVfuF7qDYvLH3DrAnAgTWxLD dr5JuuhWQnDZoUgYHrm2q8KVw6VKRn7n5Xk2Qrvc5k4EGd/UzXBhYulZfv+2pIL61T vGc6zz5qO7D9XFOAGNyAhK/D4tuGiz4LyQdIPpHsDLPn2XjzgYd6lQNLHXFwhB49oh oAtAfFNB//4eg== From: Kalle Valo To: Baochen Qiang , Manikanta Pubbisetty Cc: , Subject: Re: [PATCH] wifi: ath11k: fix boot failure with one MSI vector References: <20230601033840.2997-1-quic_bqiang@quicinc.com> Date: Fri, 09 Jun 2023 15:26:10 +0300 In-Reply-To: <20230601033840.2997-1-quic_bqiang@quicinc.com> (Baochen Qiang's message of "Thu, 1 Jun 2023 11:38:40 +0800") Message-ID: <87fs70hlel.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Baochen Qiang writes: > 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 > > Fixes: 5b32b6dd9663 ("ath11k: Remove core PCI references from PCI common code") > Signed-off-by: Baochen Qiang I'm worried if this breaks WCN6750 support. Manikanta, would able to test this patch on WCN6750 and let us know if breaks anything? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches