Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2278613imm; Thu, 21 Jun 2018 09:51:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLHwsvdRgSvuH2JJW3H6Yrt9oOwxsHJKrdJ7Q6B/Pf3ABs6w1kxT4wGMz9iZgmZapvYCx9k X-Received: by 2002:a62:8703:: with SMTP id i3-v6mr28289049pfe.115.1529599917577; Thu, 21 Jun 2018 09:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529599917; cv=none; d=google.com; s=arc-20160816; b=H3vGEcCOcSFAwqWWvl057LOZCN7zVeJkjCzkM3EdZY8EXbhHgciA2VQZE6kQpzrTFT y65ml2+iPx2Yv4NzG+uwj6+NyDAocU6X5IfqdgEHtvkFzlptm7OkaunWLeQIArF5vxgy vcItb0gxa/KJGnt4cnDj5+ik64LIicA2BvjM0XM6JFO9tF1A0u6DW8oehnPE/Wjgzatj eoevILEIjUVlDm8yz9d2Zgn6c1Hr+oS1sPaTTx2mXhI0XmqNbT5ObJd54LtbUef0Txze Mpn7IbduVj25TlHqNPlLrqnYBO5MyfC/UTMrn2eJCk0sp1eXx4S3GnduowuWcTv8mQQB aJeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=aX4FL6cdsrerOHY+UazX1q6izlxHSE2oPLQvB6Fl9u8=; b=J4ZmAVGgUdMVraObVEviQoUDgIuT8b5vp3a+zhPapJKGct4spayWcjmiO3vekouSXt c/0aym7thYwQIHNlNPWdIP1BHSmtp5UjTkTrcJd+fyTok1ZELuaLxq6qh9O6rz/kKZwS 0+B0uO9VL3OnvDygjJ5e+tttAlodJ+FbKiigvkFzSfL/SgbUWN7dSDXpei9G41N6Mbt3 F5r67/VrS14zJoQwqYdLhHaJU7fs52a0SFbHrg5Cf1kLGynAt0aRdROL+0hHKqaZx0hd ofTNa6W+vLHitNAeCHB1UdSmoOG27xhhmNkIOPnGMc6V/CKIKzVTHmfTvxClZuaxxj41 boKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="t/NMZBfP"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13-v6si5088087plp.350.2018.06.21.09.51.38; Thu, 21 Jun 2018 09:51:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="t/NMZBfP"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933650AbeFUQtN (ORCPT + 99 others); Thu, 21 Jun 2018 12:49:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:51404 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933446AbeFUQtL (ORCPT ); Thu, 21 Jun 2018 12:49:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aX4FL6cdsrerOHY+UazX1q6izlxHSE2oPLQvB6Fl9u8=; b=t/NMZBfPcjafI/xOGrqG959g1 mK18ErNg4D0Lb/3QGpNxFNIi2q1tSdLTbkK4+xQx26jQCfPCWAInix8TiAe5QWgr8LeMWWd1zJ+yS OjMM5tyoqzD83RP/VOzVwDtCaiDla29Vd2hHP8mdit9WANT9coWs5UnT1QEx3AbH7OCka5MD/fkzc 7qPTg6JU/s8NZS2fj4Vf/Ikaktl6vTNLb0Z/L9NEf38ZojD2jZmps2xdRoLuLI50DXYlCKM2bSyJn 23CerDomOqxs+vCxHiLxZk1jjECGtHudNbCYeXyfjqH4x4dZSacqOdkmPt9l2HgAaC7on7fpIzk5t bi2Hv9DBQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW2lf-0006T7-Qx; Thu, 21 Jun 2018 16:49:07 +0000 Subject: Re: [PATCH v5 09/11] pci_endpoint_test: Add 2 ioctl commands To: Gustavo Pimentel , "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" , "Joao.Pinto@synopsys.com" , "jingoohan1@gmail.com" , "kishon@ti.com" , "adouglas@cadence.com" , "jesper.nilsson@axis.com" , "sboyd@codeaurora.org" Cc: "linux-pci@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <8695864db0191b2e85ed81e97a8990baea3468fa.1529507416.git.gustavo.pimentel@synopsys.com> From: Randy Dunlap Message-ID: Date: Thu, 21 Jun 2018 09:49:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/21/2018 03:23 AM, Gustavo Pimentel wrote: > On 20/06/2018 19:12, Randy Dunlap wrote: >> On 06/20/2018 09:28 AM, Gustavo Pimentel wrote: >>> Add MSI-X support and update driver documentation accordingly. >>> >>> Add 2 new IOCTL commands: >>> - Allow to reconfigure driver IRQ type in runtime. >>> - Allow to retrieve current driver IRQ type configured. >>> >>> Signed-off-by: Gustavo Pimentel >>> --- >>> Change v2->v3: | -------------------------------------------------------------------------------------------- >>> - New patch file created base on the previous patch | -------------------------------------------------------------------------------------------- >>> "misc: pci_endpoint_test: Add MSI-X support" patch file following | -------------------------------------------------------------------------------------------- >>> Kishon's suggestion. | -------------------------------------------------------------------------------------------- >>> Change v3->v4: | -------------------------------------------------------------------------------------------- >>> - Rebased to Lorenzo's master branch v4.18-rc1. >>> Change v4->v5: >>> - Nothing changed, just to follow the patch set version. >>> >>> Documentation/misc-devices/pci-endpoint-test.txt | 3 + >>> drivers/misc/pci_endpoint_test.c | 177 +++++++++++++++++------ >>> 2 files changed, 132 insertions(+), 48 deletions(-) >>> >>> diff --git a/Documentation/misc-devices/pci-endpoint-test.txt b/Documentation/misc-devices/pci-endpoint-test.txt >>> index fdfa0f6..58ccca4 100644 >>> --- a/Documentation/misc-devices/pci-endpoint-test.txt >>> +++ b/Documentation/misc-devices/pci-endpoint-test.txt >>> @@ -28,6 +28,9 @@ ioctl >>> to be tested should be passed as argument. >>> PCITEST_MSIX: Tests message signalled interrupts. The MSI-X number >>> to be tested should be passed as argument. >>> + PCITEST_SET_IRQTYPE: Changes driver IRQ type configuration. The IRQ type >>> + should be passed as argument (0: Legacy, 1:MSI, 2:MSI-X). >>> + PCITEST_GET_IRQTYPE: Gets driver IRQ type configuration. >>> PCITEST_WRITE: Perform write tests. The size of the buffer should be passed >>> as argument. >>> PCITEST_READ: Perform read tests. The size of the buffer should be passed >>> diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c >>> index 2b58887..82fa0c2 100644 >>> --- a/drivers/misc/pci_endpoint_test.c >>> +++ b/drivers/misc/pci_endpoint_test.c >> >> Hi, >> >> The ioctl "type" (as "type" is used in ), >> value of 'P' in this case, should be documented in >> Documentation/ioctl/ioctl-number.txt. > > Hi Randy, > > I wasn't aware of this file. Adding the entry bellow would be suitable? > > 'P' 01-09 drivers/misc/pci_endpoint_test.c conflict! Yes. Thanks. -- ~Randy