Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2315473rdb; Mon, 20 Nov 2023 07:52:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxFbJscenVW2ymmeoos98pH55gMG5msyIXVqKhZxLagrrubMwtycex06qbfY/quua74Te+ X-Received: by 2002:a05:6a20:e128:b0:187:725c:6305 with SMTP id kr40-20020a056a20e12800b00187725c6305mr9651006pzb.12.1700495537785; Mon, 20 Nov 2023 07:52:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700495537; cv=none; d=google.com; s=arc-20160816; b=Ah+6yr7Xk2tevQlnsSCqxEYhC6XmjAvHGXURlKketxF2tEl7XVScz9rs+BfoUXQigQ l80bKf6san8ZBWp86+ZS8UOeVDdORBYaiEiOB57YxTBZESjxvHtgBelRRTnKudZ7HCIk ES8/rBKBaLbxODROyoy9zyOyaw4QeBwCqO07gJYBfAR4dI6CvlhmQvekfmtagzwmlJp9 zjYG6agRIBav8cq6ltNNDlaR3rY14ACArXPEepNGqBeFs3+d0TwuciN7VqHOdzjCJQMb UIZi0wOW4wMublfmVq2EaqloOimpo1H8SfdbdzGXWn+r9diN7u3TQCN0pjdx0K9xeYJC jrkA== 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=5smMQP6Bi+Cj+G7n9KxW3cLLytPUPicQYTHAbs4fHPw=; fh=Ahzw9WpusEFEYnVn567yjdM3oQ5tWKzSXN4GqjStBc4=; b=hhb+YJhq5aiMhbfp1j7MHwOlY/myUKzY8/4JdWftVd/Uj3mh0P3/foYX6muq/PzilC hKX1VpfRhEy7TH17ySYodIZBoh998+HogaZTiOKFh5L0q0JFdIj8qwx/ZBt4WOLJRPTe jE95vi8H8jsGg81Ivh0MtqepT636AaK0iIVbqg95WbXXuEmk6i5ltYK5Rrs6grIRNxIG 9WrsPgila2QFiJ2NyHkNI5CZVHRRmlbWqAcPYNWASB6WM7+c3zFSWjMgx29yk67yBwej QqNH3kVGbXlgFRUBheKPSU3mrlP8NwCQTIVCp/gXflqNo8xI/i8Pc8J95UUO3V5TbKEb 5wJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=GLqR4nHc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id fi4-20020a056a00398400b00690258a9766si8416239pfb.373.2023.11.20.07.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 07:52:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=GLqR4nHc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4726B80B7AC7; Mon, 20 Nov 2023 07:52:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233615AbjKTPwL (ORCPT + 54 others); Mon, 20 Nov 2023 10:52:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbjKTPwL (ORCPT ); Mon, 20 Nov 2023 10:52:11 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9C92A7 for ; Mon, 20 Nov 2023 07:52:07 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AKFgbpQ027103; Mon, 20 Nov 2023 15:52:03 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=5smMQP6Bi+Cj+G7n9KxW3cLLytPUPicQYTHAbs4fHPw=; b=GLqR4nHcVV0yucWb8IRrj3i42TekYD5wrVqbe9oyL3Lu4zTWlmgN1VcSU3xQ1TSEeQO9 IIU8Unty/mmT/KW9sb6p88KTYX0Qvv9OHkGmkC43EGJuI5BsFsvc89NxhrTMegIewkBG A4Xm8k7UNWyV9PtyZP1AgAb38MW62VdL+//NariwBmIR+PscpBG9r8stDgB0re0jf0cG NfU1igShE90vMLoOCLuVr4z5WiBeTvCBSS2+m27DQI9IMfa1fczw9u6XSoBbZDkeQR4b F5MQeklNEdbtmwdW1wD7npM0m+/JsmmEIhS2faPbcrLt6x9khpuOCMq+v+X2V8tERNiv MA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ug30mh4kf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 15:52:03 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AKFq24x007203 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 15:52:02 GMT Received: from [10.110.116.223] (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.40; Mon, 20 Nov 2023 07:52:01 -0800 Message-ID: Date: Mon, 20 Nov 2023 07:52:01 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/7] wifi: ath12k: get msi_data again after request_irq is called Content-Language: en-US To: Kang Yang , CC: References: <20231120101543.4369-1-quic_kangyang@quicinc.com> <20231120101543.4369-2-quic_kangyang@quicinc.com> From: Jeff Johnson In-Reply-To: <20231120101543.4369-2-quic_kangyang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: 2nSrn7z1d73xN02CWccRy8CrFpwztw_7 X-Proofpoint-ORIG-GUID: 2nSrn7z1d73xN02CWccRy8CrFpwztw_7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-20_15,2023-11-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 clxscore=1015 mlxlogscore=570 priorityscore=1501 lowpriorityscore=0 spamscore=0 phishscore=0 adultscore=0 bulkscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311200111 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 20 Nov 2023 07:52:11 -0800 (PST) On 11/20/2023 2:15 AM, Kang Yang wrote: > The reservation mode of interrupts in kernel assigns a dummy vector > when the interrupt is allocated and assigns a real vector when the > request_irq is called. The reservation mode helps to ease vector > pressure when devices with a large amount of queues/interrupts are > initialized, but only a minimal subset of those queues/interrupts > is actually used. > > So on reservation mode, the msi_data may change after request_irq is > called, then it will lead to spurious interrupt. But when VT-d in > BIOS is enabled and ath12k can get 32 MSI vectors, ath12k always get > the same msi_data before and after request_irq. > > So in case of one MSI vector, ath12k need read msi_data again after > request_irq is called, and then the correct msi_data is programmed > into WCN7850 hardware components. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Kang Yang Acked-by: Jeff Johnson