From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: Q: uio_generic_pci Date: Tue, 6 Feb 2018 12:56:14 -0800 Message-ID: <20180206125614.6d6cd31d@xeon-e3> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Ran Shalit Return-path: Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by dpdk.org (Postfix) with ESMTP id B70CA1B6CA for ; Tue, 6 Feb 2018 21:56:18 +0100 (CET) Received: by mail-pl0-f67.google.com with SMTP id f8so2024354plk.11 for ; Tue, 06 Feb 2018 12:56:18 -0800 (PST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, 6 Feb 2018 12:57:15 +0200 Ran Shalit 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.