Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2386065rwi; Tue, 1 Nov 2022 07:11:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5i6XltyLD+w320CQ12UltAXO/ZIp9XI6AzsqoVMzTYCdOwEQ3N0Fk/2GND5kmHTLowUJbe X-Received: by 2002:a05:6402:5248:b0:461:f0fa:864e with SMTP id t8-20020a056402524800b00461f0fa864emr18932583edd.81.1667311910757; Tue, 01 Nov 2022 07:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667311910; cv=none; d=google.com; s=arc-20160816; b=X0Wyltf60UTFhj135IbeLERh1gyBC9tjTwMSAMYIYAxj3vtKuvM6qRYABeWoEB0TNJ Zso8VzkW2mQ2yXLF5MY/0GoTalxGarBHMT67iY0/nitGGfk81VWM0SYAALBPbzzc1ljj XjBN6jzGQ9OFAmopBcLIGtuEMCD8ZSSsF4lRznUpQ8oQhoBNgLqbRFWdG2Fwd+rdVJlr wtHZOfmcFLlt9sggmQik2HDawtcH7ATfLSRDAW+SUfbf0I4ZEVAfdNXb4YNdY7ez4Osy a7HeN4wfgbBGuABksCN1L2HRlsFCVkp7/SKk018ZcyYn2/8mUewPaZx/y1bIULF9rhD1 R81Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=25r7x71BJUlLmcpTtBOvRX5e+DPvRIUazgMCBLedLV4=; b=sYYxzX6IvAeoaQtlFna4AXTAMK+vqfezJx99hzC/D4N7zFait1AiKRZzoxMpr+r0iy 3rDfy8o0YclNR4iIEHx1HGcLgf5nzSavI/pDUD50pYXO1xtWBpY+e6CdbnXKlpnRB3+p EoaOrZqJW7Syu3P0WLSGB1p779au0HnhsfbblaB5Vjmg1GrWip2fRD68B76xQQFZllJ2 63tnc9zPFRmkcpjfCKn/wZGhp5W/sdY4RBpOe8t+yLWoPvcNhIw9ML8fEkKcPPMTp4wY rih2JlicWqSRHA92O181wP9vyw+ZO9M53J9zxNVcfmMEMHS96j1iBZ+Fdl3ScLClhY3z PjpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="EHwHs/eo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a056402254e00b0045154775089si12902181edb.625.2022.11.01.07.11.26; Tue, 01 Nov 2022 07:11:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="EHwHs/eo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbiKAODv (ORCPT + 96 others); Tue, 1 Nov 2022 10:03:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiKAODp (ORCPT ); Tue, 1 Nov 2022 10:03:45 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89DBD1035 for ; Tue, 1 Nov 2022 07:03:43 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id g129so13502591pgc.7 for ; Tue, 01 Nov 2022 07:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=25r7x71BJUlLmcpTtBOvRX5e+DPvRIUazgMCBLedLV4=; b=EHwHs/eoA11NfprJ9r1RMuqVDVLi0ivOmk0YkDR3SUc3U9iRkiJGI94psFRKl236UT vQxQS3jZob54t5+AdBe16s2vlW9OeUY1WMPnEdaACC8JnhyXclYxM2A2a/2wa0/CPmz5 lt6WXqPUP+dIao3FBfzp5JvqE/lOgpdSKteL0ivNn0fc2pLZbMUwH5JdL2Jh/LudZRg7 MD+9RhtwiRQDC3Sxwdo8Qzy3xGH4eZUR5RzV0tcGzrdzzWUmuOKx8c4GQnHY6dTAmS8x FpAUQSsHtyh3AjSKYABvn4UeuchTHjiowBuSJ9De/iAXtM0Py4ma9Vqzt7PLTM8j8cWD iU8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=25r7x71BJUlLmcpTtBOvRX5e+DPvRIUazgMCBLedLV4=; b=73iZv1ZViQp4j3JS/dlPjavNsJAWG4wP7vfAcfTUeKJ4pm9n5vDtq+JjDO8cIME8IF lgp5uvdSUe2k06lC3RGP8HaOizINy3LrpehD1UzRwbgRWl1jQf1B/hzHijO5pXn/2KuJ wUVa8kBceDoRs9PQ2tjTWRGwTyejjta1zDpJRoEo9SytwweMdL+6a9U+tT+Ya2k3vhNa iOR8fUDad4/WP0vugOtN5Q9WaJ9VFwS6fKwMO9PC8FmPAljZFKgthSilIpZiV4G2Xk5V 1iEuGLprgjnSIN96egUsP2t2wWthIwdKQHRMxpE94LidnTjk4j0TSPlkVEiv5O+SF8Lx QxOg== X-Gm-Message-State: ACrzQf196NhTnwMpgdwyZ330Po7eT3NG+j6xYvS96X9ZEDwL4Okt9G21 FNA1EYN9j0bjyF1dzZN+4L5FncstsO3o X-Received: by 2002:a05:6a00:1d06:b0:56b:ec38:27e9 with SMTP id a6-20020a056a001d0600b0056bec3827e9mr19659995pfx.71.1667311422902; Tue, 01 Nov 2022 07:03:42 -0700 (PDT) Received: from thinkpad ([117.193.209.178]) by smtp.gmail.com with ESMTPSA id c7-20020a17090a020700b002132f3e71c6sm6058590pjc.52.2022.11.01.07.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 07:03:41 -0700 (PDT) Date: Tue, 1 Nov 2022 19:33:34 +0530 From: Manivannan Sadhasivam To: Lorenzo Pieralisi Cc: kishon@ti.com, gregkh@linuxfoundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, mie@igel.co.jp, kw@linux.com Subject: Re: [PATCH v2 0/5] pci_endpoint_test: Fix the return value of IOCTLs Message-ID: <20221101140334.GP54667@thinkpad> References: <20220824123010.51763-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 09, 2022 at 03:09:58PM +0200, Lorenzo Pieralisi wrote: > On Wed, Aug 24, 2022 at 06:00:05PM +0530, Manivannan Sadhasivam wrote: > > During the review of a patch for pci_endpoint_test driver [1], Greg spotted > > the wrong usage of the return value of IOCTLs in the driver. This series > > fixes that by returning 0 for success and negative error code for failure. > > Relevant change is also made to the userspace tool and the Documentation. > > > > Along with those, there are couple more patches fixing other small issues > > I noted. > > > > NOTE: I have just compile tested this series. So it'd be good if someone > > can test it on the PCI endpoint setup. > > > > Thanks, > > Mani > > > > [1] https://lore.kernel.org/all/20220816100617.90720-1-mie@igel.co.jp/ > > > > Changes in v2: > > > > * Fixed the error numbers in pci_endpoint_test > > * Added Fixes tag and CCed stable list for relevant patches. The patches > > should get backported until 5.10 kernel only. Since for the LTS kernels > > before that, the pci_endpoint_test driver was not supporting all commands. > > > > Manivannan Sadhasivam (5): > > misc: pci_endpoint_test: Fix the return value of IOCTL > > tools: PCI: Fix parsing the return value of IOCTLs > > Documentation: PCI: endpoint: Use the correct return value of > > pcitest.sh > > misc: pci_endpoint_test: Remove unnecessary WARN_ON > > tools: PCI: Fix memory leak > > > > Documentation/PCI/endpoint/pci-test-howto.rst | 152 ++++++++-------- > > drivers/misc/pci_endpoint_test.c | 167 ++++++++---------- > > tools/pci/pcitest.c | 48 ++--- > > 3 files changed, 179 insertions(+), 188 deletions(-) > > May I ask where are we with this thread ? I have noticed some key > comments from Greg that need addressing so I'd expect a new version. > Sorry for the late response. Yes, there will be a new version. Thanks, Mani > Thanks, > Lorenzo -- மணிவண்ணன் சதாசிவம்