Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2316970rdb; Mon, 20 Nov 2023 07:54:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2D7AX3MEsLgFfxJF3ayIP0HZ6z6BMAoGTF2F6HTvBLJpsjAWN2b2tJUrfODi/y9z2f8Ws X-Received: by 2002:a05:6a20:2589:b0:187:3765:178f with SMTP id k9-20020a056a20258900b001873765178fmr6711220pzd.61.1700495689856; Mon, 20 Nov 2023 07:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700495689; cv=none; d=google.com; s=arc-20160816; b=Mw87XjAeDIyftvcZfzcK1BUHjOglyC7ksy08wHqFL3DuUvQvDKTw27vCrXsAq8Exg6 XePjFvnX1NoP2wipHDa2aLt9X7hWdY2O9KQ55eWZOV47kSMpN+UzJfvmANXCFqV5m62I INPJV17zmStD2wg/pINkWYXU5wxVz79yxEwAw7VmpIfTtgSA+3vSlYnNIRdv9sIUXGMb Rs1pmvdjbKbnuyHc1wwqitCqLBozL4QioIiGjLygTO0D/+IjxbO0UojO0VQuIuQAfjNX kqzXXaOR565hyiphybW/rLvdMlkl8Mddx1cl+h/gjJIYXg26KJI6oNTC9OeSeLKXqt0n z3bw== 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=Ecz2MTpk2YTNo6aoiceIM9H2ckiTAOo6tol6IfP7ZHM=; fh=Ahzw9WpusEFEYnVn567yjdM3oQ5tWKzSXN4GqjStBc4=; b=AxAtMObxc3zJKUc8EWIBF35P7XfTyCwEeKq84Jvf2Xx4wj/jCZKPqK8DQbng83/0oT 8WfROhKHvd0RmMWoolZDn4c2sfvVVs3URGHERCbHeaD2D37vkNAxZdqyKOiNe6JJ3E7E v7URvMQaUIDi4LM/cjGwPXrcZIaCCJj0axrbaFwKNfo625qVgYN6XKB6rpIRT9Mq6ztk emph78gCGEvEV8QVI6mS6LZJH7RIwGhMBSExYHQk2EMCcUMNvvb2jwJkUC2cf4LSpTfS Z7wZMUskjlzuI/GY9PrIK6y5e1bSwGXM1FTPyUv7C+eUQgh39GycXE+4Nt/EDK+Q4ZWX /Z5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jYoCIic+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id fw14-20020a17090b128e00b002801dcaf6a9si10494789pjb.64.2023.11.20.07.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 07:54:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jYoCIic+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 3BF078053CC2; Mon, 20 Nov 2023 07:54:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234020AbjKTPyf (ORCPT + 54 others); Mon, 20 Nov 2023 10:54:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234019AbjKTPye (ORCPT ); Mon, 20 Nov 2023 10:54:34 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6300A10E for ; Mon, 20 Nov 2023 07:54:31 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AKFN62Z008480; Mon, 20 Nov 2023 15:54:29 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=Ecz2MTpk2YTNo6aoiceIM9H2ckiTAOo6tol6IfP7ZHM=; b=jYoCIic+TjuavC/qxP16SnEKHh86iOYoBnkM3SGo2pfKdNtbMagW48sq4Q0CjkBTZGfq 5posC0Lf683Cby7+gP1cQSrIP+kjYXGaJnftX9I8qFLUoGyVuaPDIwkVt6cNRkkncODT xQA/yhNbjoQG8WONF6jqsWSqkxDzrPKjzs/IaOXCQ7lPpE26Fv2R//A4/WSc/uiNDq8j ulqC0xbaZ+ecTJhqQRe/Ja2wkZiTw+7sNF8wH+Q4VTb88t0UQYx5yESoi4EhVCmqLg5x Yt+Giu1b9WwMgC4w3vfxYV2Ip4ActU1nabPs7tRgmVvpD+sHzzRCAYEAINJdi4EAeAxy Rg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uem80mg5k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 15:54:29 +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 3AKFsSr4010481 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 15:54:29 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:54:27 -0800 Message-ID: <03dace08-3916-4332-bd31-b82b627ae847@quicinc.com> Date: Mon, 20 Nov 2023 07:54:27 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 7/7] wifi: ath12k: set IRQ affinity to CPU0 in case of one MSI vector Content-Language: en-US To: Kang Yang , CC: References: <20231120101543.4369-1-quic_kangyang@quicinc.com> <20231120101543.4369-8-quic_kangyang@quicinc.com> From: Jeff Johnson In-Reply-To: <20231120101543.4369-8-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: T12yydX1ezDFwHH1FsE7EmcBSrCCBCtu X-Proofpoint-ORIG-GUID: T12yydX1ezDFwHH1FsE7EmcBSrCCBCtu 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_16,2023-11-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxlogscore=920 adultscore=0 priorityscore=1501 phishscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 spamscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311200112 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 07:54:40 -0800 (PST) On 11/20/2023 2:15 AM, Kang Yang wrote: > With VT-d disabled on Intel platform, ath12k gets only one MSI > vector. In that case, ath12k does not free IRQ when doing suspend, > hence the kernel has to migrate it to CPU0 (if it was affine to > other CPUs) and allocates a new MSI vector. However, ath12k has > no chance to reconfig it to HW srngs during this phase, thus > ath12k fails to resume. > > This issue can be fixed by setting IRQ affinity to CPU0 before > request_irq is called. With such affinity, migration will not > happen and thus the vector keeps unchanged during suspend/resume. > > 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