From mboxrd@z Thu Jan 1 00:00:00 1970 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 7A8D41487F9; Tue, 23 Jul 2024 22:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721775294; cv=none; b=lnXpu9ny99w6E8PM9dkC/Vbto/hHE3TRRVZeUMKDNBoi2Hmr+qU3Sai8ncWyhFi6U0zYR5LjttW2WQDHCLK0E4nBdeFtu97y+D0lpbmh9SXakY4UztNceM+XGbOvQ4MTbPAMpP8Rl/yZWyMKOZvKDNmit8zWjp3YfH8vh9/iPEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721775294; c=relaxed/simple; bh=7yl7pweRsUb/Cz4uzMnBbIvjB393ruYlONQQ/MK1d9U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=s11umWy2x1rORc0LAHUgLx6dUa73EBJk9Kh9k13BAxl1hJPFiFzPbByDrrBQeQAFm4n+IPM9VDLnAHThrjBWWZhF6iDOsCtwEU6Vkmgaa7SrAKF2kueX+zF7KeqYt5EfIA8QldJeMXD5/lUxkf3RSZ0OK9azonxuhFifXRu/loc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cYxwu10z; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cYxwu10z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76859C4AF09; Tue, 23 Jul 2024 22:54:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721775294; bh=7yl7pweRsUb/Cz4uzMnBbIvjB393ruYlONQQ/MK1d9U=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cYxwu10z5OHmkGQRUgijf1f/SRxT0dVPX2MkHzZ+24lrUWB8pLFMqoBbZSJQe7ZqX TwQ8stHcyHiRpcsqYpgYWBMbWA0b80okC3O4iHaCpUCQqJsW3nXu6mwhv7ap2Jpslm 3gu35oqshyEDpN6XdUCp4L0hvI9T+dDTQrZ0JpCLvooTmr7D9d8/GKj99xkadZMqcQ ZvFvAqC+aMnI2mTrS3zU8n0yQJsPLNVA5LHn/HQCRybrhnKNp3PaOhQYN6Kxego95b kieihj7tORN814FXDDg99GVwDban6fQojEoQ6iLhG5S37BWMVjaWU8g1MkRCSDTfc6 947QCP7HuE3Gg== Message-ID: Date: Wed, 24 Jul 2024 07:54:47 +0900 Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 01/15] genirq/msi: Silence set affinity failed warning To: Marek Vasut , linux-pci@vger.kernel.org Cc: =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , =?UTF-8?Q?Pali_Roh=C3=A1r?= , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Aleksandr Mishin , Anna-Maria Behnsen , Anup Patel , Bjorn Helgaas , Broadcom internal kernel review list , Daire McNamara , Florian Fainelli , Hou Zhiqiang , Jianjun Wang , Jim Quinlan , Jingoo Han , Jisheng Zhang , Jon Hunter , Jonathan Derrick , Joyce Ooi , Karthikeyan Mitran , Kishon Vijay Abraham I , Koichiro Den , Lorenzo Pieralisi , Manivannan Sadhasivam , Marc Zyngier , Michal Simek , Nicolas Saenz Julienne , Niklas Cassel , Nipun Gupta , Nirmal Patel , Rob Herring , Ryder Lee , Shivamurthy Shastri , Siddharth Vadapalli , Thierry Reding , Thomas Gleixner , Thomas Petazzoni , Yoshihiro Shimoda , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-tegra@vger.kernel.org References: <20240723132958.41320-1-marek.vasut+renesas@mailbox.org> <20240723132958.41320-2-marek.vasut+renesas@mailbox.org> Content-Language: en-US From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20240723132958.41320-2-marek.vasut+renesas@mailbox.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/23/24 10:27 PM, Marek Vasut wrote: > Various PCIe controllers that mux MSIs onto single IRQ line produce these > "IRQ%d: set affinity failed" warnings when entering suspend. This has been > discussed before [1] [2] and an example test case is included at the end > of this commit message. > > Controller drivers which create MSI IRQ domain with MSI_FLAG_USE_DEF_CHIP_OPS > flag set and which do not override the .irq_set_affinity irqchip callback get > assigned default .irq_set_affinity = msi_domain_set_affinity() callback. That > is not desired on controllers where it is not possible to set affinity of each > MSI IRQ line to a specific CPU core due to hardware limitation. > > Introduce dedicated flag MSI_FLAG_NO_AFFINITY, which keeps .irq_set_affinity > unset in case the controller driver did not assign the callback. This way, the > migrate_one_irq() code in cpuhotplug.c can exit right away, without printing > the aforementioned warning. The .irq_set_affinity implementations which only > return -EINVAL can be removed from multiple controller drivers. > > ``` > $ grep 25 /proc/interrupts > 25: 0 0 0 0 0 0 0 0 PCIe MSI 0 Edge PCIe PME > > $ echo core > /sys/power/pm_test ; echo mem > /sys/power/state > ... > Disabling non-boot CPUs ... > IRQ25: set affinity failed(-22). <---------- This is being silenced here > psci: CPU7 killed (polled 4 ms) > ... > ``` > > [1] https://lore.kernel.org/all/d4a6eea3c5e33a3a4056885419df95a7@kernel.org/ > [2] https://lore.kernel.org/all/5f4947b18bf381615a37aa81c2242477@kernel.org/ > > Signed-off-by: Marek Vasut Looks good to me. Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research