All of lore.kernel.org
 help / color / mirror / Atom feed
* Q: uio_generic_pci
@ 2018-02-06 10:57 Ran Shalit
  2018-02-06 20:56 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Ran Shalit @ 2018-02-06 10:57 UTC (permalink / raw)
  To: dev

Hello,

I would please like to ask about uio_generic_pci :

1. how to set irq from userspace.
Is there anything similar to
echo "3" > /sys/bus/pci/drivers/uio_pci_generic/irq
in all documentation which talk about it, it is not mentioned (or I
don't find it):
https://github.com/rumpkernel/wiki/wiki/Howto:-Accessing-PCI-devices-from-userspace
http://www.hep.by/gnu/kernel/uio-howto/uio_pci_generic.html

2. Is there a way to use dma from userspace with this driver ?

Best Regards,
Ran

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

* Q:uio_generic_pci
@ 2018-02-06 10:59 Ran Shalit
  0 siblings, 0 replies; 3+ messages in thread
From: Ran Shalit @ 2018-02-06 10:59 UTC (permalink / raw)
  To: linux-kernel

Hello,

I would please like to ask about uio_generic_pci :

1. I have some misunderstanding as to how to set irq from userspace.
Is there anything similar to echo "3" >
/sys/bus/pci/drivers/uio_pci_generic/irq ?

In all documentation which talk about it, it is not mentioned (or I
don't find it):
https://github.com/rumpkernel/wiki/wiki/Howto:-Accessing-PCI-devices-from-userspace
http://www.hep.by/gnu/kernel/uio-howto/uio_pci_generic.html

2. Is there a way to use dma from userspace with this driver ?

Best Regards,
Ran

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

* Re: Q: uio_generic_pci
  2018-02-06 10:57 Q: uio_generic_pci Ran Shalit
@ 2018-02-06 20:56 ` Stephen Hemminger
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2018-02-06 20:56 UTC (permalink / raw)
  To: Ran Shalit; +Cc: dev

On Tue, 6 Feb 2018 12:57:15 +0200
Ran Shalit <ranshalit@gmail.com> wrote:

> Hello,
> 
> I would please like to ask about uio_generic_pci :
> 
> 1. how to set irq from userspace.

No. that is not generally possible.
It is expected that the IRQ will come from the hardware device.
On some hardware it is possible to poke a register and cause an interrupt.

> Is there anything similar to
> echo "3" > /sys/bus/pci/drivers/uio_pci_generic/irq
> in all documentation which talk about it, it is not mentioned (or I
> don't find it):
> https://github.com/rumpkernel/wiki/wiki/Howto:-Accessing-PCI-devices-from-userspace
> http://www.hep.by/gnu/kernel/uio-howto/uio_pci_generic.html
> 
> 2. Is there a way to use dma from userspace with this driver ?

This driver does not provide mappings of the PCI memory regions
so DMA is not possible. Use VFIO-pci or igb_uio instead.

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

end of thread, other threads:[~2018-02-06 20:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-06 10:57 Q: uio_generic_pci Ran Shalit
2018-02-06 20:56 ` Stephen Hemminger
  -- strict thread matches above, loose matches on Subject: below --
2018-02-06 10:59 Q:uio_generic_pci Ran Shalit

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.