lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6526cfc-a0a7-7c31-d39d-8f2195d1ceec@huawei.com>
Date: Thu, 11 Dec 2025 09:58:06 +0800
From: Jinjie Ruan <ruanjinjie@...wei.com>
To: Marc Zyngier <maz@...nel.org>, <linux-kernel@...r.kernel.org>,
	<linux-mips@...r.kernel.org>
CC: Daniel Lezcano <daniel.lezcano@...aro.org>, Thomas Gleixner
	<tglx@...utronix.de>, Thomas Bogendoerfer <tsbogend@...ha.franken.de>, Joshua
 Kinard <kumba@...too.org>
Subject: Re: [PATCH 3/6] mips: Move IP30 timer to request_percpu_irq()



On 2025/12/10 16:22, Marc Zyngier wrote:
> Teach the SGI IP30 timer about request_percpu_irq(), which ultimately
> will allow for the removal of the antiquated setup_percpu_irq() API.
> 
> Signed-off-by: Marc Zyngier <maz@...nel.org>
> ---
>  arch/mips/include/asm/cevt-r4k.h |  1 -
>  arch/mips/kernel/cevt-r4k.c      | 11 -----------
>  arch/mips/sgi-ip30/ip30-timer.c  |  5 ++---
>  3 files changed, 2 insertions(+), 15 deletions(-)
> 
> diff --git a/arch/mips/include/asm/cevt-r4k.h b/arch/mips/include/asm/cevt-r4k.h
> index 2e13a038d2600..5229eb34f28a4 100644
> --- a/arch/mips/include/asm/cevt-r4k.h
> +++ b/arch/mips/include/asm/cevt-r4k.h
> @@ -23,7 +23,6 @@ void mips_event_handler(struct clock_event_device *dev);
>  int c0_compare_int_usable(void);
>  irqreturn_t c0_compare_interrupt(int, void *);
>  
> -extern struct irqaction c0_compare_irqaction;
>  extern int cp0_timer_irq_installed;
>  
>  #endif /* __ASM_CEVT_R4K_H */
> diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
> index 5f6e9e2ebbdbb..f58325f9bd2bc 100644
> --- a/arch/mips/kernel/cevt-r4k.c
> +++ b/arch/mips/kernel/cevt-r4k.c
> @@ -159,17 +159,6 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id)
>  	return IRQ_NONE;
>  }
>  
> -struct irqaction c0_compare_irqaction = {
> -	.handler = c0_compare_interrupt,
> -	/*
> -	 * IRQF_SHARED: The timer interrupt may be shared with other interrupts
> -	 * such as perf counter and FDC interrupts.
> -	 */
> -	.flags = IRQF_PERCPU | IRQF_TIMER | IRQF_SHARED,

The flags will add a "IRQF_NO_SUSPEND" when using request_percpu_irq(),
is there any change?

> -	.name = "timer",
> -};
> -
> -
>  void mips_event_handler(struct clock_event_device *dev)
>  {
>  }
> diff --git a/arch/mips/sgi-ip30/ip30-timer.c b/arch/mips/sgi-ip30/ip30-timer.c
> index 7652f72f0daf6..294e1f7e6d8a6 100644
> --- a/arch/mips/sgi-ip30/ip30-timer.c
> +++ b/arch/mips/sgi-ip30/ip30-timer.c
> @@ -52,11 +52,10 @@ void __init plat_time_init(void)
>  	int irq = get_c0_compare_int();
>  
>  	cp0_timer_irq_installed = 1;
> -	c0_compare_irqaction.percpu_dev_id = &mips_clockevent_device;
> -	c0_compare_irqaction.flags &= ~IRQF_SHARED;
>  	irq_set_handler(irq, handle_percpu_devid_irq);
>  	irq_set_percpu_devid(irq);
> -	setup_percpu_irq(irq, &c0_compare_irqaction);
> +	WARN_ON(request_percpu_irq(irq, c0_compare_interrupt,
> +				   "timer", &mips_clockevent_device));
>  	enable_percpu_irq(irq, IRQ_TYPE_NONE);
>  
>  	ip30_heart_clocksource_init();

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ