From patchwork Thu Apr 4 11:06:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 161776 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1454172jan; Thu, 4 Apr 2019 04:07:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzMXVI3M87jwTI7yQLlDCJ9vHtGx8iN1ByXEMlteixhs9R9UyrgdCw5dXjRLqJnjytBRvH X-Received: by 2002:a17:902:380c:: with SMTP id l12mr5510367plc.238.1554376039522; Thu, 04 Apr 2019 04:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554376039; cv=none; d=google.com; s=arc-20160816; b=oPNj+tguyDeDVBds438hO/z4GacepdtDu2B1WQ/BmS/p6N05ausV5yGpapd5gsGRa5 71wRyEEVsxOZUPmmtbPdFE0aJs178KdhX/KU0up2bWw+RXWxJTxTCsAebW1f4W/EtuW0 0sJ9L3ZdA3WFgTHISN0Tv4w6KKgB4ffgWtq3foAcwfLiotOqfnhGKce6TFu2vYT+L7zt 9EjAc+VxQsHIh9o1Ycm6ZX4rP/PKXXNGYMN8+t2yz8x1EeRN9q7EwKIgiOe+0rfK6VdI 8JMdccF0husBG/9eriEg88o5baJ2oHpFYvtAC653TqkxgJT01zmJw6KhAQuK+UD/2cTW BH/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=rTCB4trMp3+/hiirLD2nEEbonlYRZIaX35QyuQfeVRM=; b=iGV1iLaV2GBaA2/AI/pTLrnZBPCVaklaHClGWmCsTR8OkO+mqAr7dQZHQsGqQ0cj8k I12DXwaUSljAWQjZyqLQWpkES+TXjYEGfrdGEXus6k1xzxmw8PbX6/d1B+PVYL3nAflB K+1C589X/+wYxt4xq1yQFvbOp8GcaSOVdyww/qXD6hgaDbEUTLrTcLOwIh7QUXC9/I7j UCzDGTrdG84Na39IGElr6Gc5S6nofL6HMUvNtWp2gnu+/gCkAQ4gS9cxOSI4J2Gj141L kFbUPSWcNoCuGmNEiV+tVs43aRck6HvafAmV3uhD5442cfT5cfy9npDUFQTk27Vg1Sk9 2f/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DxF21jQR; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n22si15975640pgk.102.2019.04.04.04.07.19; Thu, 04 Apr 2019 04:07:19 -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=@ti.com header.s=ti-com-17Q1 header.b=DxF21jQR; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729191AbfDDLHS (ORCPT + 31 others); Thu, 4 Apr 2019 07:07:18 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:33996 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729032AbfDDLHQ (ORCPT ); Thu, 4 Apr 2019 07:07:16 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x34B7C1u024749; Thu, 4 Apr 2019 06:07:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554376032; bh=rTCB4trMp3+/hiirLD2nEEbonlYRZIaX35QyuQfeVRM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=DxF21jQRIODFjP3PFvOkZqaaZSCN/jP898h51AODXUI+uoJ4YiOVrmFF58+ehYUt1 s7DhS0cHSypQVT86p22LKl1+MnMANDt070tkQwfhCyAIeRxZZAdYFySt69dW3ix1lI hC4ewQPgSgVcFhmaF15ppkY47m4xzfYPBaGMUPGc= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x34B7CM6057594 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 4 Apr 2019 06:07:12 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 4 Apr 2019 06:07:12 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 4 Apr 2019 06:07:12 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x34B78dV106541; Thu, 4 Apr 2019 06:07:11 -0500 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi CC: , , Kishon Vijay Abraham I , Sekhar Nori Subject: [PATCH 1/2] tools: PCI: Add 'h' in optstring of getopt() Date: Thu, 4 Apr 2019 16:36:08 +0530 Message-ID: <20190404110609.26158-2-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190404110609.26158-1-kishon@ti.com> References: <20190404110609.26158-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'h' is a valid option character for pcitest utility used to print the pcitest usage. Add 'h' in optstring of getopt() in order to get rid of "pcitest: invalid option -- 'h'" warning. While at that remove unncessary case '?'. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- tools/pci/pcitest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c index ec4d51f3308b..34d71f7d3b12 100644 --- a/tools/pci/pcitest.c +++ b/tools/pci/pcitest.c @@ -162,7 +162,7 @@ int main(int argc, char **argv) /* set default endpoint device */ test->device = "/dev/pci-endpoint-test.0"; - while ((c = getopt(argc, argv, "D:b:m:x:i:Ilrwcs:")) != EOF) + while ((c = getopt(argc, argv, "D:b:m:x:i:Ilhrwcs:")) != EOF) switch (c) { case 'D': test->device = optarg; @@ -206,7 +206,6 @@ int main(int argc, char **argv) case 's': test->size = strtoul(optarg, NULL, 0); continue; - case '?': case 'h': default: usage: @@ -224,6 +223,7 @@ int main(int argc, char **argv) "\t-w Write buffer test\n" "\t-c Copy buffer test\n" "\t-s Size of buffer {default: 100KB}\n", + "\t-h Print this help message\n", argv[0]); return -EINVAL; } From patchwork Thu Apr 4 11:06:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 161777 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1454238jan; Thu, 4 Apr 2019 04:07:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzK+29GABaHHnPwIiOjjkj+AYSckxDP5/N37eRhtDn25o76GHgLkUviKpzp0heKYbIlgh6 X-Received: by 2002:a62:4d43:: with SMTP id a64mr5238964pfb.157.1554376043086; Thu, 04 Apr 2019 04:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554376043; cv=none; d=google.com; s=arc-20160816; b=I5F42L3QtI8NxaO/Hgv8gO7q5dnI6CtCHsg1qF8g7OAEhvWbAEG2hk9k/IfAb29vji N6FK0gQf70cmfKdnw+ifuLFHzZVtLTu+MiuP92yjU1CYRrMsxZZ5464UhbPBKIfy/at5 cWbctiAvHsNWvP1XFq03qA+A8eomtGXl3S90OfaJ+gNo4FWZX+Mqh3Ov1lqQ5ZUtzawm li0z3cxKR9cmMpIbfTEdOxrTQYU4Q6Ocw2PZdmdeAvVrgTJK+AOWVIqJNRFyOVM5VpzZ 1BzObeuztwSsmJpqUv5tKYKU0ny5eY0MTAEYWIQIQ+z71byP/dSyos0i8zZS6+PmDTgO ExfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=e6DcWDo3OCHtrefJpX2XsLERr6UZA2Xj3zcBx0kKNIM=; b=BjbIU59a2FcJ+vuhFxIydQMujb1zuPoAyvJlq9FdCCBC50Si2ialhrLE9slMjjz19i +KizqImmkSOgigJRssd2lGGkKGfrcvS/b93CVgTmzja2Ydgve4VJtATwrvqYYxQ+PtZb uB2LfXDdMox+stismRkMPBMMZL7vM2B4oaG6AyHR9CqPPjdpi5tJ9/iKsJGxnGlLTOuW HZKGSCguuM7AAAlT3jtO9I7zv4Ka4+u606Nvsz3INwWod2xBtMBNcBsSbvf6vlzSoj6g 4ejZqQz9QfviHKo240mon6H8O5EAMMB6NeQDywAeaQJjSlMWCuZ0adYriU2Py8RDIi3i EWzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iiGUuInt; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si16011582pgq.522.2019.04.04.04.07.22; Thu, 04 Apr 2019 04:07:23 -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=@ti.com header.s=ti-com-17Q1 header.b=iiGUuInt; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729363AbfDDLHV (ORCPT + 31 others); Thu, 4 Apr 2019 07:07:21 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:50902 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729067AbfDDLHS (ORCPT ); Thu, 4 Apr 2019 07:07:18 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x34B7ErO071032; Thu, 4 Apr 2019 06:07:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554376034; bh=e6DcWDo3OCHtrefJpX2XsLERr6UZA2Xj3zcBx0kKNIM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=iiGUuIntohliccrMjV+M2+YHv4dnuQ3S0U4C1OQ9SAiSAJ1P1xOqKf0g3wrv8zyvX Vg0KeT9HWXuRvXbkOeWzLgkFIuemHWVi76YwJMrt/g7bKp0XVOiMtfrAHSQXdU7CrF Mumyecqbz4df6mz8n7txUa4IskYwcRDXdpjuP8RU= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x34B7EWU057637 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 4 Apr 2019 06:07:14 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 4 Apr 2019 06:07:14 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 4 Apr 2019 06:07:14 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x34B78dW106541; Thu, 4 Apr 2019 06:07:13 -0500 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi CC: , , Kishon Vijay Abraham I , Gustavo Pimentel Subject: [PATCH 2/2] tools: PCI: Handle pcitest.sh independently from pcitest Date: Thu, 4 Apr 2019 16:36:09 +0530 Message-ID: <20190404110609.26158-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190404110609.26158-1-kishon@ti.com> References: <20190404110609.26158-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Handling pcitest.sh along with pcitest (obtained by compiling pcitest.c) results in pcitest.sh getting removed inadvertently while "make -C tools/pci clean". Fix it here by handling pcitest.sh independently of pcitest. Fixes: 1ce78ce09430a5f ("tools: PCI: Change pcitest compiling process") Cc: Gustavo Pimentel Reported-by: Adrian Hunter Signed-off-by: Kishon Vijay Abraham I --- tools/pci/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/tools/pci/Makefile b/tools/pci/Makefile index 46e4c2f318c9..9b7534457060 100644 --- a/tools/pci/Makefile +++ b/tools/pci/Makefile @@ -14,9 +14,12 @@ MAKEFLAGS += -r CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include -ALL_TARGETS := pcitest pcitest.sh +ALL_TARGETS := pcitest ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) +SCRIPTS := pcitest.sh +ALL_SCRIPTS := $(patsubst %,$(OUTPUT)%,$(SCRIPTS)) + all: $(ALL_PROGRAMS) export srctree OUTPUT CC LD CFLAGS @@ -46,6 +49,9 @@ install: $(ALL_PROGRAMS) install -d -m 755 $(DESTDIR)$(bindir); \ for program in $(ALL_PROGRAMS); do \ install $$program $(DESTDIR)$(bindir); \ + done; \ + for script in $(ALL_SCRIPTS); do \ + install $$script $(DESTDIR)$(bindir); \ done FORCE: