From nobody Wed Feb 5 21:42:55 2025 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5523222B595 for ; Thu, 16 Jan 2025 13:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737035493; cv=none; b=GVN5oYt7eF8eTzbO5l2xerQJnvM7k1rlqHHokj/fXc+myf8AYEb9cT1KUI34uagXZieM5flRux5ito6ufhmkrImCcceCyKervG/CMm/q4DLK6L+xFIT2B2ToMMK/lHcLlvOkaA5GTOzvuTgJ8R7GOj3kpm47+nKsdBq8x3XCWTw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737035493; c=relaxed/simple; bh=rUp8au/mlBU5RQbAnAVoSzPC4lKhXO94PCSwv3MUeLI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lB2osWGsbHHGcuJBL+3E6mhgdQBnFkg6KdsZKNZJZqjTduOuaQi8QAoJ+YtzEnWbc89e8+up5Vog8MrbRNvgTVkBDqeGfFw6afdeR0opfeZg0MG5PyZwL6SVXgOMPsG4ND5kZQ4WuX1Jp+N7B+3EVBT7+b5E45gZ0p+wD/+K9U0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=G1Tq+YWy; arc=none smtp.client-ip=209.85.216.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="G1Tq+YWy" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-2f44353649aso1380970a91.0 for ; Thu, 16 Jan 2025 05:51:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737035491; x=1737640291; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+yDAroObl81+EbrVfBlBT3/KwKlJ8oI8mcGbXGzIBkQ=; b=G1Tq+YWyeYsAQt++vlL1XJoygqcxEqEa4asBxYBqQgQ6m1xAyaWUa9tsoTl7xnu2WH Sn+FkzfCmw35/o5mTmANdTaXoNq1U/ywi0zxcKrZInWlos1TAdeVTOI9MPCQPat6YiiT TgjD/cQQhshNW6nwchEduTedx17xs8rJ0Em/2EUac3Z/EhUFAS91V6XAsFZlnJMHuhCk TO6ALP3SD2iUjs6V5e745lYY2NEFq+dafqTaoQj0FWB4fXftapZeiVUanh2sLoX6xp5N jHLqIuqreBTcQfJ8fxb5Zz1+fOWVZ6Ybx9ZB71ZvDiIVNBmSbednr4M9qiGw/Owq3t5d 8cKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737035491; x=1737640291; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+yDAroObl81+EbrVfBlBT3/KwKlJ8oI8mcGbXGzIBkQ=; b=DQAz0Cyib10GEmftjfVBhCm34KGaHLgyzDpu3OSe+MQzw6Osv5SbE5r6ILFqLgm89R nGVKmUdD+pOfDFXRH+lAKtb84Qk+eSx1h7jrhTDDUzHDT/xcMFpuiFALdSvi84u7yPi/ NtVe+29o2OH/Mnweb9uN3pg2YDGcPT4FTkvgYABZfu4nR3+0Tj2jsdHGZ1jtkujvjvOy IYZaBD0fooWrcHZSV0N2ZrGUCdaFX5MRCJg+3WjI1LxbjpC3gKEZUbHfyBBOYzjsMo1O X6yriwRO3vbe2Bn4cngzZ21kUS4rEZP+56lFwAKZYBwzUY9OkPoqn/lRPmSBOD3q9tpW B7sA== X-Forwarded-Encrypted: i=1; AJvYcCUxBj0FHNeGpLwafQwkttvg6D1Evs/WKS+hj1Op3eKIzEIz4f9NYVb3qUx4wR/J8HCoN1JKElXsNDLmQ7E=@vger.kernel.org X-Gm-Message-State: AOJu0YwjxyRx5OxgNssNbRSHDkin3IcbnVg1f4VsvAWPbJGzNNDjnU3d uFr4SIS8ARb6AQyPgLBDdxAqSpGnooF2bctcp3cOX1vvs4qfjvxfScWP7WZCow== X-Gm-Gg: ASbGncsoi7xam5txJAMZC9ZZlSg2nFOkvfsa8FRhQg6lf43PfpGa/VUr/z4joM/mAX6 ONtD042WeILCtlT0/79vdMJvC6gjRsD/8HjaiQW7ChoSf3IZCZ1UYhxjIfh/w29RL/K5rCCMcw3 FcvmG0Stnf/3H3IxgRs2x0rYHwPH4pGoeHqmr7fjP7jcfyZ8jb7QzC334pDYhKX7AFkjcdBcBIV f3UrKJohxLXhvGRcEzSNV5j9DNicHKywhLlb0PqsPzJtbpT7qM81eHYklamppDCo4wI0nunl6Wg 9zcYX4wW X-Google-Smtp-Source: AGHT+IGfsxiOyI9MXUFJUJDJh/D8O9xdElBVOkU0GQewPrAZlSi1sf3zNBlNdZuKU5JnZChqLjmaJA== X-Received: by 2002:a17:90b:2e06:b0:2ee:bc7b:9237 with SMTP id 98e67ed59e1d1-2f548f44812mr45308189a91.27.1737035491543; Thu, 16 Jan 2025 05:51:31 -0800 (PST) Received: from localhost.localdomain ([120.60.79.208]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f72c1cba9csm3341229a91.24.2025.01.16.05.51.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 05:51:31 -0800 (PST) From: Manivannan Sadhasivam To: kw@linux.com, gregkh@linuxfoundation.org, arnd@arndb.de, lpieralisi@kernel.org, shuah@kernel.org Cc: kishon@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, linux-arm-msm@vger.kernel.org, robh@kernel.org, linux-kselftest@vger.kernel.org, cassel@kernel.org, Manivannan Sadhasivam Subject: [PATCH v5 3/4] selftests: Move PCI Endpoint tests from tools/pci to Kselftests Date: Thu, 16 Jan 2025 19:21:05 +0530 Message-Id: <20250116135106.19143-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250116135106.19143-1-manivannan.sadhasivam@linaro.org> References: <20250116135106.19143-1-manivannan.sadhasivam@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This just moves the existing tests under tools/pci to tools/testing/selftests/pci_endpoint and adjusts the paths in Makefile accordingly. Migration to Kselftest framework will be done in subsequent commits. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Niklas Cassel --- Documentation/PCI/endpoint/pci-test-howto.rst | 9 +++++---- MAINTAINERS | 2 +- tools/testing/selftests/pci_endpoint/.gitignore | 3 +++ tools/{pci =3D> testing/selftests/pci_endpoint}/Build | 0 tools/{pci =3D> testing/selftests/pci_endpoint}/Makefile | 10 +++++----- .../{pci =3D> testing/selftests/pci_endpoint}/pcitest.c | 0 .../{pci =3D> testing/selftests/pci_endpoint}/pcitest.sh | 0 7 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 tools/testing/selftests/pci_endpoint/.gitignore rename tools/{pci =3D> testing/selftests/pci_endpoint}/Build (100%) rename tools/{pci =3D> testing/selftests/pci_endpoint}/Makefile (83%) rename tools/{pci =3D> testing/selftests/pci_endpoint}/pcitest.c (100%) rename tools/{pci =3D> testing/selftests/pci_endpoint}/pcitest.sh (100%) diff --git a/Documentation/PCI/endpoint/pci-test-howto.rst b/Documentation/= PCI/endpoint/pci-test-howto.rst index 909f770a07d6..c4ae7af50ede 100644 --- a/Documentation/PCI/endpoint/pci-test-howto.rst +++ b/Documentation/PCI/endpoint/pci-test-howto.rst @@ -123,16 +123,17 @@ above:: Using Endpoint Test function Device ----------------------------------- =20 -pcitest.sh added in tools/pci/ can be used to run all the default PCI endp= oint -tests. To compile this tool the following commands should be used:: +pcitest.sh added in tools/testing/selftests/pci_endpoint can be used to ru= n all +the default PCI endpoint tests. To compile this tool the following commands +should be used:: =20 # cd - # make -C tools/pci + # make -C tools/testing/selftests/pci_endpoint =20 or if you desire to compile and install in your system:: =20 # cd - # make -C tools/pci install + # make -C tools/testing/selftests/pci_endpoint install =20 The tool and script will be located in /usr/bin/ =20 diff --git a/MAINTAINERS b/MAINTAINERS index e0fcdd8b6434..e96e80d8486d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18002,7 +18002,7 @@ F: Documentation/PCI/endpoint/* F: Documentation/misc-devices/pci-endpoint-test.rst F: drivers/misc/pci_endpoint_test.c F: drivers/pci/endpoint/ -F: tools/pci/ +F: tools/testing/selftests/pci_endpoint/ =20 PCI ENHANCED ERROR HANDLING (EEH) FOR POWERPC M: Mahesh J Salgaonkar diff --git a/tools/testing/selftests/pci_endpoint/.gitignore b/tools/testin= g/selftests/pci_endpoint/.gitignore new file mode 100644 index 000000000000..29ab47c48484 --- /dev/null +++ b/tools/testing/selftests/pci_endpoint/.gitignore @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-only +*.o +pcitest diff --git a/tools/pci/Build b/tools/testing/selftests/pci_endpoint/Build similarity index 100% rename from tools/pci/Build rename to tools/testing/selftests/pci_endpoint/Build diff --git a/tools/pci/Makefile b/tools/testing/selftests/pci_endpoint/Make= file similarity index 83% rename from tools/pci/Makefile rename to tools/testing/selftests/pci_endpoint/Makefile index 62d41f1a1e2c..3c6fe18e32cc 100644 --- a/tools/pci/Makefile +++ b/tools/testing/selftests/pci_endpoint/Makefile @@ -1,11 +1,10 @@ # SPDX-License-Identifier: GPL-2.0 -include ../scripts/Makefile.include +include ../../../scripts/Makefile.include =20 bindir ?=3D /usr/bin =20 ifeq ($(srctree),) -srctree :=3D $(patsubst %/,%,$(dir $(CURDIR))) -srctree :=3D $(patsubst %/,%,$(dir $(srctree))) +srctree :=3D $(patsubst %/tools/testing/selftests/,%,$(dir $(CURDIR))) endif =20 # Do not use make's built-in rules @@ -27,10 +26,11 @@ include $(srctree)/tools/build/Makefile.include # # We need the following to be outside of kernel tree # -$(OUTPUT)include/linux/: ../../include/uapi/linux/ +$(OUTPUT)include/linux/: ../../../../include/uapi/linux/ mkdir -p $(OUTPUT)include/linux/ 2>&1 || true - ln -sf $(CURDIR)/../../include/uapi/linux/pcitest.h $@ + ln -sf $(CURDIR)/../../../../include/uapi/linux/pcitest.h $@ =20 +$(info ${CURDIR}) prepare: $(OUTPUT)include/linux/ =20 PCITEST_IN :=3D $(OUTPUT)pcitest-in.o diff --git a/tools/pci/pcitest.c b/tools/testing/selftests/pci_endpoint/pci= test.c similarity index 100% rename from tools/pci/pcitest.c rename to tools/testing/selftests/pci_endpoint/pcitest.c diff --git a/tools/pci/pcitest.sh b/tools/testing/selftests/pci_endpoint/pc= itest.sh similarity index 100% rename from tools/pci/pcitest.sh rename to tools/testing/selftests/pci_endpoint/pcitest.sh --=20 2.25.1