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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250916161438.00007ba0@huawei.com>
Date: Tue, 16 Sep 2025 16:14:38 +0100
From: Jonathan Cameron <jonathan.cameron@...wei.com>
To: Marc Zyngier <maz@...nel.org>
CC: <linux-kernel@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
	<linux-acpi@...r.kernel.org>, Thomas Gleixner <tglx@...utronix.de>, "Mark
 Rutland" <mark.rutland@....com>, Will Deacon <will@...nel.org>, "Rafael J.
 Wysocki" <rafael@...nel.org>, Rob Herring <robh@...nel.org>, "Saravana
 Kannan" <saravanak@...gle.com>, Greg Kroah-Hartman
	<gregkh@...uxfoundation.org>, Sven Peter <sven@...nel.org>, Janne Grunau
	<j@...nau.net>, Suzuki K Poulose <suzuki.poulose@....com>, James Clark
	<james.clark@...aro.org>
Subject: Re: [PATCH v2 01/25] irqdomain: Add firmware info reporting
 interface

On Mon, 15 Sep 2025 09:56:38 +0100
Marc Zyngier <maz@...nel.org> wrote:

> Allow an irqdomain callback to report firmware-provided information
> that is otherwise not available in a generic way. This is reported
> using a new data structure (struct irq_fwspec_info).
> 
> This callback is optional and the only information that can be
> reported currently is the affinity of an interrupt. However, the
> containing structure is designed to be extensible, allowing other
> potentially relevant information to be reported in the future.
> 
> Signed-off-by: Marc Zyngier <maz@...nel.org>
Hi Marc,

> ---
>  include/linux/irqdomain.h | 28 ++++++++++++++++++++++++++++
>  kernel/irq/irqdomain.c    | 32 +++++++++++++++++++++++++++-----
>  2 files changed, 55 insertions(+), 5 deletions(-)
> 
> diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
> index 4a86e6b915dd6..34993bf8293c4 100644
> --- a/include/linux/irqdomain.h
> +++ b/include/linux/irqdomain.h
> @@ -44,6 +44,24 @@ struct irq_fwspec {
>  	u32			param[IRQ_DOMAIN_IRQ_SPEC_PARAMS];
>  };
>  
> +/**
> + * struct irq_fwspec_info - firmware provided IRQ information structure
> + *
> + * @fwspec:		Firmware-specific interrupt specifier

Not aligning with what is in the structure that I can see.

> + * @cpumask:		Affinity mask for this interrupt
> + * @flags:		Information validity flags
> + *
> + * This structure reports firmware-specific information about an
> + * interrupt. The only significant information is the affinity of a
> + * per-CPU interrupt, but this is designed to be extended as required.
> + */
> +struct irq_fwspec_info {
> +	unsigned long		flags;
> +	const struct cpumask	*affinity;
> +};



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ