Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp345169rdb; Tue, 5 Dec 2023 07:06:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPcbT71sXOECx3gtMlA9LvhwiVFAngJ+9LiPCUMYkphLVSVZtjvmMlcVihdzC4Kn4g5wbQ X-Received: by 2002:a17:902:8f8c:b0:1d0:6ffd:ae0a with SMTP id z12-20020a1709028f8c00b001d06ffdae0amr3169148plo.113.1701788764343; Tue, 05 Dec 2023 07:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701788764; cv=none; d=google.com; s=arc-20160816; b=VZGvfQp/DWG10fcFqSomzUG6aKTvg5qB678PV774mum5eCK3mtjSuM6YQrfi2WZMt2 oz3+Pt7HddmJdvMO4nkUxOqfbZ7+6kUZvCywkv5KiRWJTqAj/r/XsyXnQyeOwp+AYrRX 9l+1oRnpyGrW0S2VTNWKeI8YsrQJsLVTn8vzjSGViFgobID2SelPHHwbEy9rbwhSn8+Y 8j76uXJ6wE7P8MPHXNlSu7QAB1UCNuYoKFJGsZhgi40TPXR9THRqJUBLopJBHWhHoyti 69W9vp/yTOl6bLu6ROSWByJvnacoSnCkUbrDuianeoeS316BePLfQ5Dr92wwESpD4rI8 Fy+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=qh4M/HaWRgVz9cqERXkCTW97SfYibLK7II5oA1mLzIE=; fh=+B39J27GC0ldRvcC9cXT9HuwLoG252QR41Wdf+xN3Fg=; b=Px2sbF9WcSm+gZI96DNdOttukU3R2AQvYjcGVwcWt7047BPoI6hGiAZicr7r89Kz4X SoqM83wKwqF+epWpFZ08goXiS4ixiP9vWEqfpr0KvZhQcMPHvw245KfOO2wYFhqu1QIP CEQq1i+JtMueIZEBSyJtVoXzPJh3jhDD7srsITh6ccMhCJMXXdfFgQ+QrRW83IE1D+bP sls7h8ZXonX00bk5A7bCHaTb/Oe3Zhbr1hrcTEi9f6l5sekugZaCPM3Z499yz5fQOLp2 QFn1QqJ9uidqoYoFmK1GwrBke1TipSelpLoMQee87w57dSy7ZTJRwKfSrznZIYTg115m lB2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ayT6Ffhp; spf=pass (google.com: domain of linux-wireless+bounces-425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h8-20020a170902f54800b001c9c967e77esi4627758plf.207.2023.12.05.07.06.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 07:06:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ayT6Ffhp; spf=pass (google.com: domain of linux-wireless+bounces-425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E9CA8281B05 for ; Tue, 5 Dec 2023 15:06:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B28567E81; Tue, 5 Dec 2023 15:06:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ayT6Ffhp" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F14D758101 for ; Tue, 5 Dec 2023 15:06:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 708B4C433C8; Tue, 5 Dec 2023 15:05:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701788760; bh=6XNlK8LiAolYKHBxWx4NVArki/Uu6MojnCM41SR+luI=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=ayT6Ffhpsc7mLa0pDG9oXhR7w6GsqIM5JnJhmeFABlRsvjvkRGRe/LVdF1lcVYYd/ qW9b8F4uHVvMlqmGNl7DusWF7fmW2XeTW61mMSePnHf6HvN61npRXFJh7gPAvj/8MF i4JNSRkvGY5YvdWTzdKnpXE5QpjjhacaTbER+vUCB9fceYR1uiYd9zqqZru9aYFHru Fl8lzKY8ewUnwexb9+Z5spdEi1IOXgQu/rDdc7iB+cK7U0k3RU7SPZ4txn4iUSh6ru S7h4O53MlrzLPjgAuqEsFFx8MTLT9mGRJ/B6khv/V3aMr+OpFju3F13MH28P97IQ5i ccke1p0W2pLcQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 1/7] wifi: ath12k: get msi_data again after request_irq is called From: Kalle Valo In-Reply-To: <20231121021304.12966-2-quic_kangyang@quicinc.com> References: <20231121021304.12966-2-quic_kangyang@quicinc.com> To: Kang Yang Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170178875768.2413512.746840226279919618.kvalo@kernel.org> Date: Tue, 5 Dec 2023 15:05:59 +0000 (UTC) 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 > Signed-off-by: Kalle Valo 7 patches applied to ath-next branch of ath.git, thanks. 1b66601d1416 wifi: ath12k: get msi_data again after request_irq is called 604308a34487 wifi: ath12k: add CE and ext IRQ flag to indicate irq_handler 1f1f7d548a00 wifi: ath12k: use ATH12K_PCI_IRQ_DP_OFFSET for DP IRQ 6711b2a80b9a wifi: ath12k: refactor multiple MSI vector implementation 8398654398c2 wifi: ath12k: add support one MSI vector 08d52ba29678 wifi: ath12k: do not restore ASPM in case of single MSI vector a3012f206d07 wifi: ath12k: set IRQ affinity to CPU0 in case of one MSI vector -- https://patchwork.kernel.org/project/linux-wireless/patch/20231121021304.12966-2-quic_kangyang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches