All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390/pci: Use irq_data_get_msi_desc()
@ 2022-11-12 18:47 Thomas Gleixner
  2022-11-14  8:55 ` Niklas Schnelle
  2022-11-14  9:36 ` Alexander Gordeev
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Gleixner @ 2022-11-12 18:47 UTC (permalink / raw)
  To: linux-s390; +Cc: Niklas Schnelle, Heiko Carstens, Christian Borntraeger

No point in doing another lookup of irq_data, it's already provided as
an argument.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/s390/pci/pci_irq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/s390/pci/pci_irq.c
+++ b/arch/s390/pci/pci_irq.c
@@ -132,7 +132,7 @@ static int zpci_clear_irq(struct zpci_de
 static int zpci_set_irq_affinity(struct irq_data *data, const struct cpumask *dest,
 				 bool force)
 {
-	struct msi_desc *entry = irq_get_msi_desc(data->irq);
+	struct msi_desc *entry = irq_data_get_msi_desc(data);
 	struct msi_msg msg = entry->msg;
 	int cpu_addr = smp_cpu_get_cpu_address(cpumask_first(dest));
 

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

* Re: [PATCH] s390/pci: Use irq_data_get_msi_desc()
  2022-11-12 18:47 [PATCH] s390/pci: Use irq_data_get_msi_desc() Thomas Gleixner
@ 2022-11-14  8:55 ` Niklas Schnelle
  2022-11-14  9:18   ` Thomas Gleixner
  2022-11-14  9:36 ` Alexander Gordeev
  1 sibling, 1 reply; 4+ messages in thread
From: Niklas Schnelle @ 2022-11-14  8:55 UTC (permalink / raw)
  To: Thomas Gleixner, linux-s390; +Cc: Heiko Carstens, Christian Borntraeger

On Sat, 2022-11-12 at 19:47 +0100, Thomas Gleixner wrote:
> No point in doing another lookup of irq_data, it's already provided as
> an argument.
> 
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> ---
>  arch/s390/pci/pci_irq.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/arch/s390/pci/pci_irq.c
> +++ b/arch/s390/pci/pci_irq.c
> @@ -132,7 +132,7 @@ static int zpci_clear_irq(struct zpci_de
>  static int zpci_set_irq_affinity(struct irq_data *data, const struct cpumask *dest,
>  				 bool force)
>  {
> -	struct msi_desc *entry = irq_get_msi_desc(data->irq);
> +	struct msi_desc *entry = irq_data_get_msi_desc(data);
>  	struct msi_msg msg = entry->msg;
>  	int cpu_addr = smp_cpu_get_cpu_address(cpumask_first(dest));
>  

Thanks for the patch, makes sense to me so have my:

Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>

That said it must be noted that this function is only called when using
directed PCI IRQs which is a hardware feature that has not made it to
any released hardware. Nevertheless no point int doing things more
complicated than necessary even for that case.

If there are no objections I'll apply this to our internal tree and it
will then go upstream via the s390 tree.


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

* Re: [PATCH] s390/pci: Use irq_data_get_msi_desc()
  2022-11-14  8:55 ` Niklas Schnelle
@ 2022-11-14  9:18   ` Thomas Gleixner
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2022-11-14  9:18 UTC (permalink / raw)
  To: Niklas Schnelle, linux-s390; +Cc: Heiko Carstens, Christian Borntraeger

On Mon, Nov 14 2022 at 09:55, Niklas Schnelle wrote:
> On Sat, 2022-11-12 at 19:47 +0100, Thomas Gleixner wrote:
> That said it must be noted that this function is only called when using
> directed PCI IRQs which is a hardware feature that has not made it to
> any released hardware. Nevertheless no point int doing things more
> complicated than necessary even for that case.
>
> If there are no objections I'll apply this to our internal tree and it
> will then go upstream via the s390 tree.

Sure. It has no dependencies. I just stumbled over it when doing a tree
wide inspection of (PCI)MSI code.

Thanks,

        tglx

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

* Re: [PATCH] s390/pci: Use irq_data_get_msi_desc()
  2022-11-12 18:47 [PATCH] s390/pci: Use irq_data_get_msi_desc() Thomas Gleixner
  2022-11-14  8:55 ` Niklas Schnelle
@ 2022-11-14  9:36 ` Alexander Gordeev
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Gordeev @ 2022-11-14  9:36 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: linux-s390, Niklas Schnelle, Heiko Carstens, Christian Borntraeger

On Sat, Nov 12, 2022 at 07:47:52PM +0100, Thomas Gleixner wrote:
> No point in doing another lookup of irq_data, it's already provided as
> an argument.
> 
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> ---
>  arch/s390/pci/pci_irq.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/arch/s390/pci/pci_irq.c
> +++ b/arch/s390/pci/pci_irq.c
> @@ -132,7 +132,7 @@ static int zpci_clear_irq(struct zpci_de
>  static int zpci_set_irq_affinity(struct irq_data *data, const struct cpumask *dest,
>  				 bool force)
>  {
> -	struct msi_desc *entry = irq_get_msi_desc(data->irq);
> +	struct msi_desc *entry = irq_data_get_msi_desc(data);
>  	struct msi_msg msg = entry->msg;
>  	int cpu_addr = smp_cpu_get_cpu_address(cpumask_first(dest));

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>

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

end of thread, other threads:[~2022-11-14  9:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-12 18:47 [PATCH] s390/pci: Use irq_data_get_msi_desc() Thomas Gleixner
2022-11-14  8:55 ` Niklas Schnelle
2022-11-14  9:18   ` Thomas Gleixner
2022-11-14  9:36 ` Alexander Gordeev

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.