DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Q: uio_generic_pci
@ 2018-02-06 10:57 Ran Shalit
  2018-02-06 20:56 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ 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] 2+ messages in thread

* Re: [dpdk-dev] Q: uio_generic_pci
  2018-02-06 10:57 [dpdk-dev] Q: uio_generic_pci Ran Shalit
@ 2018-02-06 20:56 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ 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] 2+ messages in thread

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-06 10:57 [dpdk-dev] Q: uio_generic_pci Ran Shalit
2018-02-06 20:56 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).