All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] export irq_set_msi_desc
@ 2017-11-08 16:24 subrahmanya l
  2017-11-08 17:24 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: subrahmanya l @ 2017-11-08 16:24 UTC (permalink / raw)
  To: linux-pci, bhelgaas

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

Few of the PCIe driver compilation fails with undefined symbol
"irq_set_msi_desc".
This patch is to export it.

-- 
Mobiveil INC., CONFIDENTIALITY NOTICE: This e-mail message, including any 
attachments, is for the sole use of the intended recipient(s) and may 
contain proprietary confidential or privileged information or otherwise be 
protected by law. Any unauthorized review, use, disclosure or distribution 
is prohibited. If you are not the intended recipient, please notify the 
sender and destroy all copies and the original message.

[-- Attachment #2: 0001-linux-driver-fix.patch --]
[-- Type: application/octet-stream, Size: 500 bytes --]


Signed-off-by: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>

diff -Naur kernel-source/kernel/irq/chip.c kernel-source.mod/kernel/irq/chip.c
--- kernel-source/kernel/irq/chip.c	2017-10-17 04:42:12.027684844 -0400
+++ kernel-source.mod/kernel/irq/chip.c	2017-10-17 04:43:44.904198138 -0400
@@ -137,6 +137,7 @@
 	return irq_set_msi_desc_off(irq, 0, entry);
 }
 
+EXPORT_SYMBOL(irq_set_msi_desc);
 /**
  *	irq_set_chip_data - set irq chip data for an irq
  *	@irq:	Interrupt number

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

* Re: [Patch] export irq_set_msi_desc
  2017-11-08 16:24 [Patch] export irq_set_msi_desc subrahmanya l
@ 2017-11-08 17:24 ` Christoph Hellwig
  2017-11-09  5:12   ` subrahmanya l
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2017-11-08 17:24 UTC (permalink / raw)
  To: subrahmanya l; +Cc: linux-pci, bhelgaas

On Wed, Nov 08, 2017 at 09:54:09PM +0530, subrahmanya l wrote:
> Few of the PCIe driver compilation fails with undefined symbol
> "irq_set_msi_desc".
> This patch is to export it.

Which ones?  Also please add an explanation of why you thing it should
be exported and Cc the irq code maintainers.

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

* Re: [Patch] export irq_set_msi_desc
  2017-11-08 17:24 ` Christoph Hellwig
@ 2017-11-09  5:12   ` subrahmanya l
  2017-11-22  8:02     ` Marc Zyngier
  0 siblings, 1 reply; 5+ messages in thread
From: subrahmanya l @ 2017-11-09  5:12 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-pci, tglx, jason, marc.zyngier

Christoph,

Xilinx MSI driver uses it.

file path: https://github.com/Xilinx/linux-xlnx/blob/master/drivers/pci/host/pcie-xilinx.c#L286

I used the same driver as reference to write another Rootport driver
which needs it too.

Thanks,
~subbu

On Wed, Nov 8, 2017 at 10:54 PM, Christoph Hellwig <hch@infradead.org> wrote:
>
> On Wed, Nov 08, 2017 at 09:54:09PM +0530, subrahmanya l wrote:
> > Few of the PCIe driver compilation fails with undefined symbol
> > "irq_set_msi_desc".
> > This patch is to export it.
>
> Which ones?  Also please add an explanation of why you thing it should
> be exported and Cc the irq code maintainers.

-- 
Mobiveil INC., CONFIDENTIALITY NOTICE: This e-mail message, including any 
attachments, is for the sole use of the intended recipient(s) and may 
contain proprietary confidential or privileged information or otherwise be 
protected by law. Any unauthorized review, use, disclosure or distribution 
is prohibited. If you are not the intended recipient, please notify the 
sender and destroy all copies and the original message.

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

* Re: [Patch] export irq_set_msi_desc
  2017-11-09  5:12   ` subrahmanya l
@ 2017-11-22  8:02     ` Marc Zyngier
  2017-12-08  8:28       ` Subrahmanya Lingappa
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Zyngier @ 2017-11-22  8:02 UTC (permalink / raw)
  To: subrahmanya l; +Cc: Christoph Hellwig, linux-pci, tglx, jason

On Thu, 9 Nov 2017 10:42:06 +0530
subrahmanya l <l.subrahmanya@mobiveil.co.in> wrote:

> Christoph,
> 
> Xilinx MSI driver uses it.
> 
> file path: https://github.com/Xilinx/linux-xlnx/blob/master/drivers/pci/host/pcie-xilinx.c#L286
> 
> I used the same driver as reference to write another Rootport driver
> which needs it too.

You shouldn't need this at all. The driver you are looking at is using
a deprecated API, and you should implement the MSI part of your driver
using the generic MSI layer which takes care of this and shouldn't
require exporting this function.

There is a number of drivers in the tree that have been converted to
generic MSI, such as pcie-tango.c for example.

Thanks,

	M.
-- 
Without deviation from the norm, progress is not possible.

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

* Re: [Patch] export irq_set_msi_desc
  2017-11-22  8:02     ` Marc Zyngier
@ 2017-12-08  8:28       ` Subrahmanya Lingappa
  0 siblings, 0 replies; 5+ messages in thread
From: Subrahmanya Lingappa @ 2017-12-08  8:28 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: Christoph Hellwig, linux-pci, Thomas Gleixner, jason

Marc,
I have dropped this patch off from the patch series.
I will look into generic handling of MSI too.

Thanks.


On Wed, Nov 22, 2017 at 1:32 PM, Marc Zyngier <marc.zyngier@arm.com> wrote:
> On Thu, 9 Nov 2017 10:42:06 +0530
> subrahmanya l <l.subrahmanya@mobiveil.co.in> wrote:
>
>> Christoph,
>>
>> Xilinx MSI driver uses it.
>>
>> file path: https://github.com/Xilinx/linux-xlnx/blob/master/drivers/pci/host/pcie-xilinx.c#L286
>>
>> I used the same driver as reference to write another Rootport driver
>> which needs it too.
>
> You shouldn't need this at all. The driver you are looking at is using
> a deprecated API, and you should implement the MSI part of your driver
> using the generic MSI layer which takes care of this and shouldn't
> require exporting this function.
>
> There is a number of drivers in the tree that have been converted to
> generic MSI, such as pcie-tango.c for example.
>
> Thanks,
>
>         M.
> --
> Without deviation from the norm, progress is not possible.

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

end of thread, other threads:[~2017-12-08  8:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-08 16:24 [Patch] export irq_set_msi_desc subrahmanya l
2017-11-08 17:24 ` Christoph Hellwig
2017-11-09  5:12   ` subrahmanya l
2017-11-22  8:02     ` Marc Zyngier
2017-12-08  8:28       ` Subrahmanya Lingappa

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.