mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] irqchip/loongson-eiointc: Refine irq affinity setting during resume
@ 2024-01-18 12:15 Bibo Mao
  2024-01-18 12:15 ` [PATCH v3 1/3] irqchip/loongson-eiointc: Skip handling if there is no pending irq Bibo Mao
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Bibo Mao @ 2024-01-18 12:15 UTC (permalink / raw)
  To: Huacai Chen, Jiaxun Yang, Thomas Gleixner
  Cc: linux-mips, linux-kernel, Sergey Shtylyov, lvjianmin

During suspend and resume, other CPUs are hot-unpluged and IRQs are
migrated to CPU0. So it is not necessary to restore irq affinity for
eiointc irq controller.

Also there is some optimization for the interrupt dispatch function
eiointc_irq_dispatch. There are 256 IRQs supported for eiointc, eiointc
irq handler reads the bitmap and find pending irqs when irq happens.
So there are four times of consecutive iocsr_read64 operations for the
total 256 bits to find all pending irqs. If the pending bitmap is zero,
it means that there is no pending irq for the this irq bitmap range,
we can skip handling to avoid some useless operations such as clearing
hw ISR.

---
 Changes in v3:
   Split the patch into three small patches

 Changes in v2:
   Modify changelog and comments
---
Bibo Mao (3):
  irqchip/loongson-eiointc: Skip handling if there is no pending irq
  irqchip/loongson-eiointc: Refine irq affinity setting during resume
  irqchip/loongson-eiointc: Typo fix in function eiointc_domain_alloc

 drivers/irqchip/irq-loongson-eiointc.c | 29 +++++++++++---------------
 1 file changed, 12 insertions(+), 17 deletions(-)


base-commit: 052d534373b7ed33712a63d5e17b2b6cdbce84fd
-- 
2.39.3


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-01-25  1:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-18 12:15 [PATCH v3 0/3] irqchip/loongson-eiointc: Refine irq affinity setting during resume Bibo Mao
2024-01-18 12:15 ` [PATCH v3 1/3] irqchip/loongson-eiointc: Skip handling if there is no pending irq Bibo Mao
2024-01-24  9:51   ` Huacai Chen
2024-01-24 10:02     ` maobibo
2024-01-18 12:15 ` [PATCH v3 2/3] irqchip/loongson-eiointc: Refine irq affinity setting during resume Bibo Mao
2024-01-24  9:56   ` Huacai Chen
2024-01-25  1:21     ` maobibo
2024-01-18 12:15 ` [PATCH v3 3/3] irqchip/loongson-eiointc: Typo fix in function eiointc_domain_alloc Bibo Mao
2024-01-24  9:52   ` Huacai Chen
2024-01-24 10:02     ` maobibo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®