Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2657204rwb; Mon, 7 Aug 2023 00:52:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoc6NEeipBXenQ3pjqg92mHx7oYCoKOf7Ho5QGKwOjOerHzKrH3Gb2eeD5xEK09eChft05 X-Received: by 2002:a17:907:75ed:b0:98d:5ae2:f1c with SMTP id jz13-20020a17090775ed00b0098d5ae20f1cmr6871842ejc.34.1691394757593; Mon, 07 Aug 2023 00:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691394757; cv=none; d=google.com; s=arc-20160816; b=Mw22gFVvzhXVgmE3fQYWEw1Mq1qXspVoZ+jVfAsR7oIACE9yEc2ns5eQOjsgmIa7ga uFh9mENPpQ+bYiTUznzreXleaA9CPHuhiYBjXRC4qlV+h8C4U75kwT8+XunG4lSNyX4m z0a5aVjfzs36pio8jfE8XWMcOg0zE2y5TjRrKB8iKlXOCa5YMdJ48Chm9X5jNk31OiRa zQ2/+7s2fOk0C6x45wB1ckr35ef7ozhG1rEtKs1YrnHsHAG18VNpPTTioXGM1LZFxU2U uz7fF3P2+zPRxzGgFm+daNqRV5uZAlt+ozD64HByFVVQyeVQt63U+X8+1a4J3xd4aL17 B6Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3wDoO+7e6UMc3eHeW3U35CuvKWUc7EcT+3QPQ0OrXsA=; fh=EptCIbiZWKX2OemHYc4FXG0INw203ZluZ78UdVJsurU=; b=XvG/YSwxuoZpip6sJ6uCububzGEcxFypHIhflQjdwf+oA86Cf2er0Gu6aX0R7QliVr uPa1Oo8xdz6A0krbQShJEnFr08gdvwn+L2i7bJOYrPyuFKJOrSvTdHZnjQKj7xxihBF1 oKmfFuiBqilRAEApp/Akr5q5i+mSaKFczp8R7VoXgM9/T/y401KnyyhJhRXmcc9pUwbX MfZU+fJKQdveE2Xw5f01NlTyVNo05voQ7pfPiCGhjHZXwyk5LGmoO5Yv2rfqXp5+9Sk4 v8aZywg5651ogQOBNkpOLbVoYqMH1i/6strgR68I6wRzGC0eeAUG36/fVz/KkUA2gDX7 5yIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="H/Rc4UYV"; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa21-20020a170907b9d500b009930f844671si5365393ejc.963.2023.08.07.00.52.19; Mon, 07 Aug 2023 00:52:37 -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=@quicinc.com header.s=qcppdkim1 header.b="H/Rc4UYV"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbjHGHX2 (ORCPT + 56 others); Mon, 7 Aug 2023 03:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjHGHX0 (ORCPT ); Mon, 7 Aug 2023 03:23:26 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A086F10F0 for ; Mon, 7 Aug 2023 00:23:25 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3775UFU7015105; Mon, 7 Aug 2023 07:23:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=3wDoO+7e6UMc3eHeW3U35CuvKWUc7EcT+3QPQ0OrXsA=; b=H/Rc4UYVrSjKoTB8+n+K41VOOSYl9tg8TsaVhEdf+sPmkK2EcwaudaJ4XcwGI/ykafQf jSwUhKt1n2xPwyFdRz7XlG6TZGTJau//rSwxWpUfq+l4cnvTRotCj7bla4ssad2jWtvW KNoviGHA9NphVARhirv9GZ9wUT6ru//vlkf9UZbowzz7lltofQDbsGwpWsvVJ4R8hCXz A+paTmC9QjKHGgCI1DXNQXo3bf8QDdqG0LCPWPFUYEQ4/ohPTdm6ca8U5cLcS3lN3ET4 fjafCeCKUi5fPetxn0NLPViolK6/uHNPPz0JilbCgdYbBU/6RbZqrEeYbi22CICJUQ3V 9Q== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s9eh0tttf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 07:23:16 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3777NEvC024328 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 7 Aug 2023 07:23:15 GMT Received: from [10.252.212.151] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Mon, 7 Aug 2023 00:23:13 -0700 Message-ID: <897b61ea-36d2-1ab4-9c60-9bdfd2d9cad7@quicinc.com> Date: Mon, 7 Aug 2023 12:53:10 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] wifi: ath11k: fix boot failure with one MSI vector To: Baochen Qiang , Kalle Valo CC: , References: <20230601033840.2997-1-quic_bqiang@quicinc.com> <87fs70hlel.fsf@kernel.org> <545cc8e8-481d-85b2-5692-43580936b48d@quicinc.com> Content-Language: en-US From: Manikanta Pubbisetty In-Reply-To: <545cc8e8-481d-85b2-5692-43580936b48d@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: YDSlWwzXLXQkutuUfdZXTmqEHu3xqeCk X-Proofpoint-ORIG-GUID: YDSlWwzXLXQkutuUfdZXTmqEHu3xqeCk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-07_04,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1011 bulkscore=0 phishscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 mlxscore=0 mlxlogscore=999 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308070067 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 On 8/7/2023 12:44 PM, Baochen Qiang wrote: > > On 6/9/2023 8:26 PM, Kalle Valo wrote: >> 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? > Hi Manikanta, could you help test this patch on WCN6750? Sure, we will test and update this here. Thanks, Manikanta