Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2793187rwb; Mon, 7 Aug 2023 03:44:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEj0gLPKwWjizsWHTA/VHF6xqFKdiBnr50VTVISK4YfzDHVKrM80N2ji3jOS31DVvKtRWTs X-Received: by 2002:a17:907:1b18:b0:99b:dd23:4f01 with SMTP id mp24-20020a1709071b1800b0099bdd234f01mr6534874ejc.33.1691405092140; Mon, 07 Aug 2023 03:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691405092; cv=none; d=google.com; s=arc-20160816; b=pRvohcv1QwbULjixQ6QdWF7vdzbN/Ky5hTGvg9VuWx8VuUfQLqdJb+jd8twq/b807l /Z5S/c7sfRA7DsTJP3S5/n69uIFlhoZVhS1hcIXDUiLxqnWXp8IwFjT1/AjCxHYoZrhJ kOpLbYBTRGOCQTVNpOIivmTWUGRKDAIXZ3CsNcoOWFkliDJDii2oJDGptVWHNL98/2z/ pjex8k2C8h4rXfWRhEsuYw0E59o2J9zSWZKGCVxwrhVd4T7Pvl9J2UHF5dJEcZe7OKxH bGxptgUB2EvYIzI4Atw2gXapW9o9W608Z+xv+fCeAevoh7WMPkks/c6nldMAa2KxGkPL TXEA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=clwewc+nJxrHkjPRvPrTNgsGN0ILNCRQDIsqjggFwOc=; fh=01lcoSeLwJYeJ9r0fWuUVbGddsRMHaE8vk3tfnvdzG8=; b=SuSUXPUBVENjS+eoFFdKpzNycyk55MYp4Gq6VxGSlwJtA8Kc45jptoF0L1qC3wLu9y dvuPLyEVcCOp4iYPaSOgm6Yw0g/rHE4WTKePrlkg70Fj1yD4cGcrDEpCDMZcrKl0ppVq DH9mcgG+xTNqtcsZa3CXLItmlBQekGSJkI6S8XE+u29CsMpX2CzMCiFScOiR+kYhtnst f54KIhsiM10zwDxDTJG61Ag1Qs4yHw2tVZnXpvm3ptP2af4CsBltELZOSB9ovzJCF70S SRbE/NzPbv0aip2azvlEgSHeaHB+r5e52R+XS5jTjNuMgb7O3qWqqtV8YHo5MBDh5c67 b+PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TDf8yXYc; 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 mj25-20020a170906af9900b0098889bf7f86si5808206ejb.315.2023.08.07.03.44.32; Mon, 07 Aug 2023 03:44:52 -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=TDf8yXYc; 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 S231640AbjHGKa2 (ORCPT + 57 others); Mon, 7 Aug 2023 06:30:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbjHGKaY (ORCPT ); Mon, 7 Aug 2023 06:30:24 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3635198C for ; Mon, 7 Aug 2023 03:30:13 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3778rRxp003033; Mon, 7 Aug 2023 10:29:52 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=clwewc+nJxrHkjPRvPrTNgsGN0ILNCRQDIsqjggFwOc=; b=TDf8yXYcKrpYl1qQJfkD02z8g4xXEPBT9Vq2mgEtU84DViwAEFrvjN8Wes5uXOBD85sp 7K7jBNsQGNGTFNGFsjTup2x+nIDAOXbwA2T0aHpvaUEXSP95sSsl9qRDMWXYbNqIyyrc SOwzrcmSwTuoJIJmX11hNZCTLIPul+aXzmtqdGSA4YEBBKM86WV7g2Q4U/MPXOAAoFqF EMEyHy9nDa8ANotmd2ZWGGpVcJkfZw0OXgSIRh3IU2EWdFSe3gSd37C2qeaIh8mFFrzZ +uM7gocIKcMuQ+Kyzlj0110L7ur9xbT7wrYTgJCD8h8eztKLyxd4zQm39+Pt0Zyv6zyS UQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s9fkuk49s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 10:29:52 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 377ATaq9008553 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 7 Aug 2023 10:29:36 GMT Received: from [10.231.195.68] (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 03:29:35 -0700 Message-ID: Date: Mon, 7 Aug 2023 18:29:32 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] wifi: ath11k: fix boot failure with one MSI vector Content-Language: en-US To: Manikanta Pubbisetty , Kalle Valo CC: , References: <20230601033840.2997-1-quic_bqiang@quicinc.com> <87fs70hlel.fsf@kernel.org> <545cc8e8-481d-85b2-5692-43580936b48d@quicinc.com> <897b61ea-36d2-1ab4-9c60-9bdfd2d9cad7@quicinc.com> From: Baochen Qiang In-Reply-To: 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-ORIG-GUID: d7dMd1m4GFtiZkVCQZqpeGIo5DLuscsx X-Proofpoint-GUID: d7dMd1m4GFtiZkVCQZqpeGIo5DLuscsx 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_09,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 phishscore=0 mlxlogscore=999 clxscore=1015 impostorscore=0 adultscore=0 malwarescore=0 bulkscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308070097 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 6:16 PM, Manikanta Pubbisetty wrote: > On 8/7/2023 12:53 PM, Manikanta Pubbisetty wrote: >> 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. >> > > No impact on WCN6750. > > Tested-by: Manikanta Pubbisetty > > > Thanks, > Manikanta Thanks Mani. Hi Kalle, any more comments?