Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp496334rdf; Tue, 21 Nov 2023 08:10:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFk7IMfKvcNkKc6UqtrRY7dKdVIH+3aQ3ZPZ73ArkJR8uG3lZqpZCzjFBZOIcLobvW4MAvf X-Received: by 2002:a17:903:1209:b0:1cc:332f:9e4b with SMTP id l9-20020a170903120900b001cc332f9e4bmr4744253plh.1.1700583013805; Tue, 21 Nov 2023 08:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700583013; cv=none; d=google.com; s=arc-20160816; b=l1l27LqOzwJUfX0xczS7x3ucH0BfEcl02I9Q6wmmYo9a4crmHB7aUIcagMGBqiQ2gY Yo697Dk9wOBoOlyLIBVwBPsZ9QL7mmmVtUrcaKQvpKiq2MXMVDYLFz1r40RhaZ9sd+wF l46F3cUTr9VKJbWYCJO1J0XN/C+JCLZZKPpAgGRE2//EbJT/iAzqeFlgg8PTBtHk8Y25 eopLroHt7d7NdTopUnr5hlUqV++CoteoUGH9f9LP4lX9La3EH+uF6o1T5kGGfljwELvy q7SuotrlNvDDHx2d6Ve3juKn/RQFl5MDPin5oymmGPLaTNyBy5DqfW5CVrDYr0B0GwS5 gJ7A== 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=73gKxGYAx6ZqonAGyIOfj3nt6aoxP5I6g8KM488fgCQ=; fh=Ahzw9WpusEFEYnVn567yjdM3oQ5tWKzSXN4GqjStBc4=; b=A02zUpQ2sugQrWDKTv86WQM7Gt+yHn2sUZizOSssSQ8IhKuO40lm71vExFO8bJL6sK OSfUJP+ytrYRTFLH7YB76pLy/Jo+OMQKsI+NRnUg/gPFa7mJCA3g23B1akIucpgyGUW5 LeTuVUUOYu+8d/IeoRAEEXWoL4/YWJyIjKFpTO5/I/DGXslD2kXAurerHE33ENRtoVUt AjIyI9/8Cr12SnHdR+SbSfCTVX3Yfxhep4D3/QkqWr65jTL/tsGyLNazPVVIQu67xqb/ 7/WO+uD0zAYKsM+fWR/JbRqYIVtkH+0jrUB6i4qmLJgNR3/27Tr8TahM19spUWHobXQE 7D0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LaOyoYSJ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i17-20020a170902c95100b001c3da86939csi10982678pla.546.2023.11.21.08.10.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:10:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LaOyoYSJ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id C8E22803E48B; Tue, 21 Nov 2023 08:06:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230449AbjKUQGf (ORCPT + 54 others); Tue, 21 Nov 2023 11:06:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbjKUQGe (ORCPT ); Tue, 21 Nov 2023 11:06:34 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A56A8CB for ; Tue, 21 Nov 2023 08:06:30 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ALE2A3I027341; Tue, 21 Nov 2023 16:06:28 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=73gKxGYAx6ZqonAGyIOfj3nt6aoxP5I6g8KM488fgCQ=; b=LaOyoYSJQFABKnZUx49lBe4YEJlW/RBMWooBeqfriQEjX7K66BmHSSg/EnmFG0Ljad4I Wp2wi+jX+Vgy7W1TYIe0TY41r0dhZ/Jl7L8yFNoDptaASS2ZfD42Gqh61oDe0mBg7Xbn 61fsEDzF1a4M1JPFn1mbGNc2ST0hE84vK+OFXZxQ3bm/OmXAGXhfNSvYwWiGOQf3USne xRPnmB2fIk0f+QNHjJz2FnBgYVHQZhUM8j4R0PHveMJKSCPMZGOlWshcqHxJjBZsQaXW szsNRk0gHQjaDCutDo1WfSiUg/1sZQJfoY/wIrpJeFiqe/KycPlyZ23uZa4d1PJkh0iP QQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ugk6x27kt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 16:06:27 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3ALG6QOF027479 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 16:06:26 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; Tue, 21 Nov 2023 08:06:26 -0800 Message-ID: <485e2c52-a12c-4325-84b2-38a64cc92708@quicinc.com> Date: Tue, 21 Nov 2023 08:06:25 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/7] wifi: ath12k: get msi_data again after request_irq is called Content-Language: en-US To: Kang Yang , CC: References: <20231121021304.12966-1-quic_kangyang@quicinc.com> <20231121021304.12966-2-quic_kangyang@quicinc.com> From: Jeff Johnson In-Reply-To: <20231121021304.12966-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: 7x-VRQwiYdLYzZhOEuHrLeyIYJWndizu X-Proofpoint-ORIG-GUID: 7x-VRQwiYdLYzZhOEuHrLeyIYJWndizu 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-21_09,2023-11-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxscore=0 impostorscore=0 spamscore=0 clxscore=1015 adultscore=0 malwarescore=0 bulkscore=0 phishscore=0 priorityscore=1501 mlxlogscore=570 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311210126 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 08:06:33 -0800 (PST) On 11/20/2023 6:12 PM, 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