Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1534985imm; Tue, 10 Jul 2018 03:39:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdS7aXogpRee/3cICXjYQMbscUW9lVStesYPr0kGhZDzPxmL3l5iDXQYw4oAx3I+4ZveoO1 X-Received: by 2002:a65:538e:: with SMTP id x14-v6mr15998855pgq.388.1531219154202; Tue, 10 Jul 2018 03:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531219154; cv=none; d=google.com; s=arc-20160816; b=d3CtF6euuBMu8/0Ema13DTwLVknA5XwP4iX0ht9bh8NrtpX1eLFxc0+Ol8A7lj/nmC EdKmk6YVmFmc1Y85TPCnjNu+uQ4/TR+UbYv6mdfNubIrc+t9U0G7PS45oFEs5lmCXnrF QaqcxYKZtwNdgrkGwJi5H8e+Cpeibsv+c1pAXAb1rdrV0KY5SS3atTQfY0Ok7MX7O+fw Cv3FXZV9fV/2AlFKOuA+BVJ7PhJfjifBwLYheGAJvZGmi6MQcjErXuqS9wXznCtOsUQi 7mFSbfKSJ6knC1O0pnvL/HEhrSYi5vGkEpec+zvYDT4PqzaJperPOmRQEWgr5ejQxs0D EP+Q== 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=X7t0dOveLdSo/EvWlufzT3UMD4m4PUCZotNXiPN9NfM=; b=oSChl1VjdMT79hcVdrOxtVWCIEsiK1MzGdIYSaxwtoJ8+uohFKgBDzkD+j9HVDFaM+ avC0OUcQfx+yUrkkkBv4k4htNorsJPAvf51guNMI2iJA5pg4x/0a20lF3lcZTj3BWToJ sMK6CQ8LXx4m4J4X2ad/3ljAtiEWaJGSEyqnWlSvbqk3FPaRlyx/9YNJwtNcKtbUS171 PgLoAkUMkHV6EcvOM+PpaH2ytbhKj1/iH1ZV/vWaO17X61q5NiNlEbZCJ+2gfcjLSis7 u8GVUCtbIMybVb7J1qG+egNSxMKuTL4RG9Jxy+SQ4P246kLRntp22ffUEb+Lery/L0GH D0VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=LRqdmEL1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4-v6si6217965pgg.537.2018.07.10.03.38.59; Tue, 10 Jul 2018 03:39:14 -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=pass header.i=@synopsys.com header.s=mail header.b=LRqdmEL1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbeGJKiF (ORCPT + 99 others); Tue, 10 Jul 2018 06:38:05 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:45929 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751194AbeGJKiD (ORCPT ); Tue, 10 Jul 2018 06:38:03 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id B355D10C1B68; Tue, 10 Jul 2018 03:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1531219083; bh=6FHPyxbx1I81SRCYp/DA72+hnWhXhVdDTgLy1r9KHUU=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=LRqdmEL1gjf908Mh80VJJSz1VuFfa5PlE6EQixyI939IrUiKSUoUbmLfvvdmrzy3H qoCxbgkxjEMIDIUCZvQpwHNc+hnpsM0rYAoSQAmSwo0jaRIQKi6Z9YElseSgjJOOtL YCFZKxefpjoFZ/yc5sgsJ6dQaqSznBVfpkAmW3BOTsAQoxQjKVs8IAxCNQVtLTkehN VBmHZxeCqOQ3pG4UrLjuNJ7e/j76zxsFcVp2oYf0b0rGoEqw/ACSE533xBQXMP1iNG EVUMmdARHN2KpnrmgkkeTGwFEP1VcShw8XjlI/62oyG/WyFsyd4hRVy5bEiwA0X6u1 YgY7aEiwmPYnA== Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2-vip.internal.synopsys.com [10.12.239.238]) by mailhost.synopsys.com (Postfix) with ESMTP id 1928531A7; Tue, 10 Jul 2018 03:38:02 -0700 (PDT) Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 10 Jul 2018 03:37:57 -0700 Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by DE02WEHTCA.internal.synopsys.com (10.225.19.92) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 10 Jul 2018 12:37:55 +0200 Received: from [10.107.25.102] (10.107.25.102) by DE02WEHTCB.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 10 Jul 2018 12:37:55 +0200 Subject: Re: [PATCH v9 10/12] pci_endpoint_test: Add 2 ioctl commands To: Alan Douglas , Gustavo Pimentel , "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" , "Joao.Pinto@synopsys.com" , "jingoohan1@gmail.com" , "kishon@ti.com" , "jesper.nilsson@axis.com" , "shawn.lin@rock-chips.com" CC: "linux-pci@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <185f0395d22083c04364cb81b4c2e2448fa89fb2.1531155252.git.gustavo.pimentel@synopsys.com> From: Gustavo Pimentel Message-ID: Date: Tue, 10 Jul 2018 11:35:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.25.102] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alan, On 10/07/2018 11:10, Alan Douglas wrote: > On 09 July 2018 18:43 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. >> Change v5->v6: >> - Moved PCITEST_SET_IRQTYPE and PCITEST_GET_IRQTYPE ioctl entries >> from patch #10 to here. >> - Increased ioctl parameters range associated to >> drivers/misc/pci_endpoint_test.c driver. >> Change v6->v7: >> - irq_type variable update just before returning the function. >> Change v7->v8: >> - Re-sending the patch series. >> Change v8->v9: >> - Added a extra parameter to pci_endpoint_test_alloc_irq_vectors, >> that specifies which irq type should be allocated. >> >> Documentation/ioctl/ioctl-number.txt | 2 +- >> Documentation/misc-devices/pci-endpoint-test.txt | 3 + >> drivers/misc/pci_endpoint_test.c | 176 +++++++++++++++++------ >> include/uapi/linux/pcitest.h | 2 + >> 4 files changed, 136 insertions(+), 47 deletions(-) >> >> diff --git a/Documentation/ioctl/ioctl-number.txt b/Documentation/ioctl/ioctl-number.txt >> index 65259d4..c15c4f3 100644 >> --- a/Documentation/ioctl/ioctl-number.txt >> +++ b/Documentation/ioctl/ioctl-number.txt >> @@ -166,7 +166,7 @@ Code Seq#(hex) Include File Comments >> 'P' all linux/soundcard.h conflict! >> 'P' 60-6F sound/sscape_ioctl.h conflict! >> 'P' 00-0F drivers/usb/class/usblp.c conflict! >> -'P' 01-07 drivers/misc/pci_endpoint_test.c conflict! >> +'P' 01-09 drivers/misc/pci_endpoint_test.c conflict! >> 'Q' all linux/soundcard.h >> 'R' 00-1F linux/random.h conflict! >> 'R' 01 linux/rfkill.h conflict! >> 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. > I've tested this latest set of patches with the cadence ep driver, which > does not yet support MSI-X, and can confirm that setting, getting and using > legacy and MSI IRQ type IRQs is working correctly. Setting MSI-X fails, as > expected. Great, thanks for testing! Regards, Gustavo >