From: Stephen Hemminger <stephen@networkplumber.org>
To: Ran Shalit <ranshalit@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Q: uio_generic_pci
Date: Tue, 6 Feb 2018 12:56:14 -0800 [thread overview]
Message-ID: <20180206125614.6d6cd31d@xeon-e3> (raw)
In-Reply-To: <CAJ2oMh+r-3L+OwmZ_xuEDw8ABh=WXChxmn64VbqXeBz7vpxDtQ@mail.gmail.com>
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.
prev parent reply other threads:[~2018-02-06 20:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-06 10:57 Ran Shalit
2018-02-06 20:56 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180206125614.6d6cd31d@xeon-e3 \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=ranshalit@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).