From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bf7sXv+ML5Dlqo7uLKQJIe61sI9xWPF46z3P8wDd3uc=; b=bVKv2MR9lsUWXwOG7TgoCwacP4NVPv6Dq7q5thhouSGoqVUj1aYJmAQBTIvrqhjnUw FrQiCueKjX4bFSABiKvI/7NaM6Gn2fu5GJ40iYr1iY/aLQ1ib1sTnNLPucbMDrt/Vn9n 6GnpAsVPviCbG8/SEv123dhvyNTHBGnSOWspMAO0UCUtLUgfN/ES72+JCkTwyE3iFMuh uxOCIxV/P2oFvk/J1ZfE+QSn9iVVankOSqCgW1om/E+8tTdsYqjUX8As3vQt8vpFy6Z9 BxMuGc8x9RaZbnfaeNcqC59aGUF6Rv6qXwigRVfNjMqnLJpx4+IfGVF0HaDzdKADwsFL BufA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bf7sXv+ML5Dlqo7uLKQJIe61sI9xWPF46z3P8wDd3uc=; b=idvlZkXO5AY6Rd/KMiHNos6molZrfSorBdpdq9Fmb9y0DYcelkKLG6JW6UbPB9Qgf5 VyyHx+7NAUy6WTMRSKTwDxqvj5QADLoe9h6V9h5blDpmSEDWprYgEeRyXTWAEeet+4KA 5l8X9BMBJ4jiPujSVQhYRrcaSH16R1NV6Rj9ZKILCAZjjgcJ5QIDBooHpdvJZd5/83MP j+u9A7KG1y1oHkL7X/ajdgYdeC1WGe9iUzMX45qmwnK9lBjLPtQgJKK5JoQyL2H7Usqo Qrje2UoAn9aiMjcIvEBwynWhM9zDli206yshWyuYL8Z0d+17rYZygM4kFjnL0YOHuxl0 ETlw== X-Gm-Message-State: APf1xPDXzpBPFjHkvB3nTG04EzsorYP9H3Mc1byDRpTBH0Vproa4oD14 4/+mLLKPhA3E2gWu6Oi0OUUi9xdDAjU= X-Google-Smtp-Source: AH8x226BMgho0zh445NRHMCeA8NzlC6L+9tAbgvZL/WN2tLD0us1jyX8XQI4Y5sS42wuPFtFTe/3gA== X-Received: by 2002:a17:902:780f:: with SMTP id p15-v6mr3674380pll.161.1517950577798; Tue, 06 Feb 2018 12:56:17 -0800 (PST) Received: from xeon-e3 (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id t1sm4409846pgu.77.2018.02.06.12.56.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Feb 2018 12:56:17 -0800 (PST) Date: Tue, 6 Feb 2018 12:56:14 -0800 From: Stephen Hemminger To: Ran Shalit Cc: dev@dpdk.org Message-ID: <20180206125614.6d6cd31d@xeon-e3> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] Q: uio_generic_pci X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2018 20:56:19 -0000 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.