Re: [tip: irq/drivers] irqchip/loongson-eiointc: Use pa_to_nid() rather than hard-code
From: 陈华才
Date: Thu Oct 15 2026 - 09:19:00 EST
> -----原始邮件-----
> 发件人: "tip-bot2 for Huacai Chen" <tip-bot2@xxxxxxxxxxxxx>
> 发送时间:2026-10-15 18:22:47 (星期四)
> 收件人: linux-tip-commits@xxxxxxxxxxxxxxx
> 抄送: "Huacai Chen" <chenhuacai@xxxxxxxxxxx>, "Thomas Gleixner" <tglx@xxxxxxxxxx>, x86@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
> 主题: [tip: irq/drivers] irqchip/loongson-eiointc: Use pa_to_nid() rather than hard-code
>
> The following commit has been merged into the irq/drivers branch of tip:
>
> Commit-ID: 0a0cdf87d07e22927c2a4c47b78a09bec37a7d38
> Gitweb: https://git.kernel.org/tip/0a0cdf87d07e22927c2a4c47b78a09bec37a7d38
> Author: Huacai Chen <chenhuacai@xxxxxxxxxxx>
> AuthorDate: Tue, 13 Oct 2026 14:23:58 +08:00
> Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
> CommitterDate: Thu, 15 Oct 2026 12:16:59 +02:00
>
> irqchip/loongson-eiointc: Use pa_to_nid() rather than hard-code
>
> NODE_ADDRSPACE_SHIFT is 44 now but may be changed in the future, so use
> pa_to_nid() rather than the hard-coded valud.
Hi, Thomas,
s/valud/value/g, :)
Huacai
>
> Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
> Link: https://patch.msgid.link/20261013062358.60654-1-chenhuacai@xxxxxxxxxxx
> ---
> drivers/irqchip/irq-loongson-eiointc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/irqchip/irq-loongson-eiointc.c b/drivers/irqchip/irq-loongson-eiointc.c
> index a9e8b48..ba6e848 100644
> --- a/drivers/irqchip/irq-loongson-eiointc.c
> +++ b/drivers/irqchip/irq-loongson-eiointc.c
> @@ -454,7 +454,7 @@ static int __init pch_pic_parse_madt(union acpi_subtable_headers *header,
> const unsigned long end)
> {
> struct acpi_madt_bio_pic *pchpic_entry = (struct acpi_madt_bio_pic *)header;
> - unsigned int node = (pchpic_entry->address >> 44) & 0xf;
> + unsigned int node = pa_to_nid(pchpic_entry->address) & 0xf;
> struct irq_domain *parent = acpi_get_vec_parent(node, pch_group);
>
> if (parent)
本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。
This email and its attachments contain confidential information from Loongson Technology , which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it.