* [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation
@ 2025-12-13 9:49 Huacai Chen
2025-12-13 9:51 ` kernel test robot
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Huacai Chen @ 2025-12-13 9:49 UTC (permalink / raw)
To: Greg Kroah-Hartman, Sasha Levin, Huacai Chen
Cc: Xuerui Wang, stable, linux-kernel, loongarch, Huacai Chen,
Tianyang Zhang
Commit 863a320dc6fd7c855f47da4b ("LoongArch: Mask all interrupts during
kexec/kdump") is backported to LTS branches, but they lack a generic
machine_kexec_mask_interrupts() implementation, so add an arch-specific
one.
Signed-off-by: Tianyang Zhang <zhangtianyang@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
6.6LTS also need it if commit 863a320dc6fd7c855f47da4b is backported.
arch/loongarch/kernel/machine_kexec.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/loongarch/kernel/machine_kexec.c b/arch/loongarch/kernel/machine_kexec.c
index 8ef4e4595d61..19bd763263d3 100644
--- a/arch/loongarch/kernel/machine_kexec.c
+++ b/arch/loongarch/kernel/machine_kexec.c
@@ -136,6 +136,28 @@ void kexec_reboot(void)
BUG();
}
+static void machine_kexec_mask_interrupts(void)
+{
+ unsigned int i;
+ struct irq_desc *desc;
+
+ for_each_irq_desc(i, desc) {
+ struct irq_chip *chip;
+
+ chip = irq_desc_get_chip(desc);
+ if (!chip)
+ continue;
+
+ if (chip->irq_eoi && irqd_irq_inprogress(&desc->irq_data))
+ chip->irq_eoi(&desc->irq_data);
+
+ if (chip->irq_mask)
+ chip->irq_mask(&desc->irq_data);
+
+ if (chip->irq_disable && !irqd_irq_disabled(&desc->irq_data))
+ chip->irq_disable(&desc->irq_data);
+ }
+}
#ifdef CONFIG_SMP
static void kexec_shutdown_secondary(void *regs)
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation
2025-12-13 9:49 [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation Huacai Chen
@ 2025-12-13 9:51 ` kernel test robot
2025-12-16 10:26 ` Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.1-stable tree gregkh
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2025-12-13 9:51 UTC (permalink / raw)
To: Huacai Chen; +Cc: stable, oe-kbuild-all
Hi,
Thanks for your patch.
FYI: kernel test robot notices the stable kernel rule is not satisfied.
The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-3
Rule: The upstream commit ID must be specified with a separate line above the commit text.
Subject: [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation
Link: https://lore.kernel.org/stable/20251213094950.1068951-1-chenhuacai%40loongson.cn
Please ignore this mail if the patch is not relevant for upstream.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 5+ messages in thread
* Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.1-stable tree
2025-12-13 9:49 [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation Huacai Chen
2025-12-13 9:51 ` kernel test robot
@ 2025-12-16 10:26 ` gregkh
2025-12-16 10:26 ` Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.6-stable tree gregkh
2025-12-16 10:26 ` Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.12-stable tree gregkh
3 siblings, 0 replies; 5+ messages in thread
From: gregkh @ 2025-12-16 10:26 UTC (permalink / raw)
To: chenhuacai, chenhuacai, gregkh, kernel, loongarch, sashal,
zhangtianyang
Cc: stable-commits
This is a note to let you know that I've just added the patch titled
[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation
to the 6.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
loongarch-add-machine_kexec_mask_interrupts-implementation.patch
and it can be found in the queue-6.1 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
From chenhuacai@loongson.cn Tue Dec 16 11:19:39 2025
From: Huacai Chen <chenhuacai@loongson.cn>
Date: Sat, 13 Dec 2025 17:49:50 +0800
Subject: [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Sasha Levin <sashal@kernel.org>, Huacai Chen <chenhuacai@kernel.org>
Cc: Xuerui Wang <kernel@xen0n.name>, stable@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Huacai Chen <chenhuacai@loongson.cn>, Tianyang Zhang <zhangtianyang@loongson.cn>
Message-ID: <20251213094950.1068951-1-chenhuacai@loongson.cn>
From: Huacai Chen <chenhuacai@loongson.cn>
Commit 863a320dc6fd7c855f47da4b ("LoongArch: Mask all interrupts during
kexec/kdump") is backported to LTS branches, but they lack a generic
machine_kexec_mask_interrupts() implementation, so add an arch-specific
one.
Signed-off-by: Tianyang Zhang <zhangtianyang@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
arch/loongarch/kernel/machine_kexec.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
--- a/arch/loongarch/kernel/machine_kexec.c
+++ b/arch/loongarch/kernel/machine_kexec.c
@@ -136,6 +136,28 @@ void kexec_reboot(void)
BUG();
}
+static void machine_kexec_mask_interrupts(void)
+{
+ unsigned int i;
+ struct irq_desc *desc;
+
+ for_each_irq_desc(i, desc) {
+ struct irq_chip *chip;
+
+ chip = irq_desc_get_chip(desc);
+ if (!chip)
+ continue;
+
+ if (chip->irq_eoi && irqd_irq_inprogress(&desc->irq_data))
+ chip->irq_eoi(&desc->irq_data);
+
+ if (chip->irq_mask)
+ chip->irq_mask(&desc->irq_data);
+
+ if (chip->irq_disable && !irqd_irq_disabled(&desc->irq_data))
+ chip->irq_disable(&desc->irq_data);
+ }
+}
#ifdef CONFIG_SMP
static void kexec_shutdown_secondary(void *regs)
Patches currently in stable-queue which might be from chenhuacai@loongson.cn are
queue-6.1/loongarch-mask-all-interrupts-during-kexec-kdump.patch
queue-6.1/loongarch-add-machine_kexec_mask_interrupts-implementation.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
* Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.6-stable tree
2025-12-13 9:49 [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation Huacai Chen
2025-12-13 9:51 ` kernel test robot
2025-12-16 10:26 ` Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.1-stable tree gregkh
@ 2025-12-16 10:26 ` gregkh
2025-12-16 10:26 ` Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.12-stable tree gregkh
3 siblings, 0 replies; 5+ messages in thread
From: gregkh @ 2025-12-16 10:26 UTC (permalink / raw)
To: chenhuacai, chenhuacai, gregkh, kernel, loongarch, sashal,
zhangtianyang
Cc: stable-commits
This is a note to let you know that I've just added the patch titled
[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation
to the 6.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
loongarch-add-machine_kexec_mask_interrupts-implementation.patch
and it can be found in the queue-6.6 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
From chenhuacai@loongson.cn Tue Dec 16 11:19:39 2025
From: Huacai Chen <chenhuacai@loongson.cn>
Date: Sat, 13 Dec 2025 17:49:50 +0800
Subject: [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Sasha Levin <sashal@kernel.org>, Huacai Chen <chenhuacai@kernel.org>
Cc: Xuerui Wang <kernel@xen0n.name>, stable@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Huacai Chen <chenhuacai@loongson.cn>, Tianyang Zhang <zhangtianyang@loongson.cn>
Message-ID: <20251213094950.1068951-1-chenhuacai@loongson.cn>
From: Huacai Chen <chenhuacai@loongson.cn>
Commit 863a320dc6fd7c855f47da4b ("LoongArch: Mask all interrupts during
kexec/kdump") is backported to LTS branches, but they lack a generic
machine_kexec_mask_interrupts() implementation, so add an arch-specific
one.
Signed-off-by: Tianyang Zhang <zhangtianyang@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
arch/loongarch/kernel/machine_kexec.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
--- a/arch/loongarch/kernel/machine_kexec.c
+++ b/arch/loongarch/kernel/machine_kexec.c
@@ -136,6 +136,28 @@ void kexec_reboot(void)
BUG();
}
+static void machine_kexec_mask_interrupts(void)
+{
+ unsigned int i;
+ struct irq_desc *desc;
+
+ for_each_irq_desc(i, desc) {
+ struct irq_chip *chip;
+
+ chip = irq_desc_get_chip(desc);
+ if (!chip)
+ continue;
+
+ if (chip->irq_eoi && irqd_irq_inprogress(&desc->irq_data))
+ chip->irq_eoi(&desc->irq_data);
+
+ if (chip->irq_mask)
+ chip->irq_mask(&desc->irq_data);
+
+ if (chip->irq_disable && !irqd_irq_disabled(&desc->irq_data))
+ chip->irq_disable(&desc->irq_data);
+ }
+}
#ifdef CONFIG_SMP
static void kexec_shutdown_secondary(void *regs)
Patches currently in stable-queue which might be from chenhuacai@loongson.cn are
queue-6.6/loongarch-mask-all-interrupts-during-kexec-kdump.patch
queue-6.6/loongarch-add-machine_kexec_mask_interrupts-implementation.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
* Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.12-stable tree
2025-12-13 9:49 [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation Huacai Chen
` (2 preceding siblings ...)
2025-12-16 10:26 ` Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.6-stable tree gregkh
@ 2025-12-16 10:26 ` gregkh
3 siblings, 0 replies; 5+ messages in thread
From: gregkh @ 2025-12-16 10:26 UTC (permalink / raw)
To: chenhuacai, chenhuacai, gregkh, kernel, loongarch, sashal,
zhangtianyang
Cc: stable-commits
This is a note to let you know that I've just added the patch titled
[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation
to the 6.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
loongarch-add-machine_kexec_mask_interrupts-implementation.patch
and it can be found in the queue-6.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
From chenhuacai@loongson.cn Tue Dec 16 11:19:39 2025
From: Huacai Chen <chenhuacai@loongson.cn>
Date: Sat, 13 Dec 2025 17:49:50 +0800
Subject: [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Sasha Levin <sashal@kernel.org>, Huacai Chen <chenhuacai@kernel.org>
Cc: Xuerui Wang <kernel@xen0n.name>, stable@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Huacai Chen <chenhuacai@loongson.cn>, Tianyang Zhang <zhangtianyang@loongson.cn>
Message-ID: <20251213094950.1068951-1-chenhuacai@loongson.cn>
From: Huacai Chen <chenhuacai@loongson.cn>
Commit 863a320dc6fd7c855f47da4b ("LoongArch: Mask all interrupts during
kexec/kdump") is backported to LTS branches, but they lack a generic
machine_kexec_mask_interrupts() implementation, so add an arch-specific
one.
Signed-off-by: Tianyang Zhang <zhangtianyang@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
arch/loongarch/kernel/machine_kexec.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
--- a/arch/loongarch/kernel/machine_kexec.c
+++ b/arch/loongarch/kernel/machine_kexec.c
@@ -136,6 +136,28 @@ void kexec_reboot(void)
BUG();
}
+static void machine_kexec_mask_interrupts(void)
+{
+ unsigned int i;
+ struct irq_desc *desc;
+
+ for_each_irq_desc(i, desc) {
+ struct irq_chip *chip;
+
+ chip = irq_desc_get_chip(desc);
+ if (!chip)
+ continue;
+
+ if (chip->irq_eoi && irqd_irq_inprogress(&desc->irq_data))
+ chip->irq_eoi(&desc->irq_data);
+
+ if (chip->irq_mask)
+ chip->irq_mask(&desc->irq_data);
+
+ if (chip->irq_disable && !irqd_irq_disabled(&desc->irq_data))
+ chip->irq_disable(&desc->irq_data);
+ }
+}
#ifdef CONFIG_SMP
static void kexec_shutdown_secondary(void *regs)
Patches currently in stable-queue which might be from chenhuacai@loongson.cn are
queue-6.12/loongarch-add-machine_kexec_mask_interrupts-implementation.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-12-16 10:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-13 9:49 [PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation Huacai Chen
2025-12-13 9:51 ` kernel test robot
2025-12-16 10:26 ` Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.1-stable tree gregkh
2025-12-16 10:26 ` Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.6-stable tree gregkh
2025-12-16 10:26 ` Patch "[PATCH 6.12] LoongArch: Add machine_kexec_mask_interrupts() implementation" has been added to the 6.12-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.