From nobody Tue Feb 10 20:06:45 2026 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 05A1218870C for ; Fri, 29 Nov 2024 09:26:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732872420; cv=none; b=h/YbKxd9b3lshQAS9G7LOYnXTh6FCLc1YtIKzsruKq8+u5sohvG2+WNVH/NoFcRRoSoTCeGWxw4jl9GB3JeTrYFINPRzBi0Tw8TGV0bPg+lNG0cT5o71ne2c7y8FSWW/QIov+i9f6ZdVGuwf0nYWZQpdiIXIPxqv5LlI84/8IFE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732872420; c=relaxed/simple; bh=lWn6bFGNd/3JKefZVdI9nxhLKSncMF+8FCLHmP8ExpA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VJ7YHuUIBcPhhKefjWIV5CINesO45emCJ+UDm8SQSDyCAuBnhrUMe6qCRo11Q6Gw7P1hhmRmeDPLcapoKOpmHh6MP2strpOm343CPnuvtJ562K+EmU9E9BE0UZ4cnMKkejEA0O20Z0Vao0x5BLo2Uez9x5RE6mJneQupyo8Pk9A= 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=TrQ/qfkp; arc=none smtp.client-ip=209.85.214.170 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="TrQ/qfkp" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-21269c8df64so14056035ad.2 for ; Fri, 29 Nov 2024 01:26:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732872417; x=1733477217; 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=oI3p2DNU6VR/r2E24vXbkA5gNVpP0sFqur3k9w/neH8=; b=TrQ/qfkpjERf0NSthoGUEWNmfvBs16LaOBZ/GEL+e54MuCuBZo2rM8PZZYXxI04BU9 eQFKugDuAF32kGtcXekfhkhE9pcG9Pj5Thadwq1UR8m0nv2iq4CaAtkf6gTLO/DBvI45 2WaXzC5OQ1zIhqBNbxepkFjSRA4FPk3LSW3MX9EQzvnGVcZzq6BfDoLkzjY1NP7n7ntH PRcFbeEe2vaPxFsurv6Rsn8UoZJA9MLN7o38Kjgrmc+S4WG2p0g1R9nZMsMe0ruePJ/C po6z/kNFfkVOdmg5jCwrSHx6rbnqJ1+rOdu4l4QBgkzJodTf4ta/CynKC4pz4gJm2+2b K10A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732872417; x=1733477217; 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=oI3p2DNU6VR/r2E24vXbkA5gNVpP0sFqur3k9w/neH8=; b=qjtKKVNxjT+yhVcjOdbuMMdIvklRbyyTXV9XCophCu5Qyduc6aT4En260/1elwMu/s 3agjaOMTtPTaZ9572LdJ3HB45rIUmSX9YjiR5oko9c7gjb/GWiQRUdMKbO3VZW5jtGyX i7Wii8qThA/Xju/pCMd4IbovTXgbpeHIqZVTXZTSUbggL5iC68DjiIIA7i5gS7dBd751 +RWAdJytIalRxU16doEcoTMeQ5ahWNEOqzGa2wCe+10+UtUuk3J94xiEPrn6V/lo208Z rSdwbnB+Mi04WW31xXj7EYsEozYfAVnaXHzwROPm/LoGcw1tW5LkMC00detf1fDTrh6O bPww== X-Forwarded-Encrypted: i=1; AJvYcCU2rd47Oa1WoPzhq821wPdtAA6ItRP4rKXcQgXG2qjTKehzCK2khA/M1cnOpx00hMlyRFQB8X62S3ydpiQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yzm1h5EqfgyZkF8JInOO0GUhjQxB0Wn7L6SsTdy1Pu+08LYNFk+ q+Z+rypoB9T2SANu3oPC1IKi5nN+PfcvIp9kzI/HR5lBF10sKRvOO1av7Th8/w== X-Gm-Gg: ASbGncuvTxAHHbr+hXG6BHQ70O91tAmVLpjCGtXHPjZ2olUT2cPDNo8UYjIKyLGlski zGTkjBTZGLCtfuz61xR2zThJx1btFh4d6qaB/wDe3jJwVZul9R4arbZLtQSjsKXMv6VrJAj2WNA etjdR6ZqF1cyhuJN3fgS4bdksxmPGQ4i5RsTzrmcAGgPskQXp6VaYHJEfDs2arIXjXmzFvAw+aq jvMBCc949pkkgVWGtl5qg2Ml/KhmGh4LlAVfdreS4+3vYZAfZ9QUCtLBlYe9sPsxrLhwF43jFPV Sw== X-Google-Smtp-Source: AGHT+IEyxJ6ItSZfdJwmXopsXcgR31wY8rRyptyG0GlAlOJhoeWk52XWXYbOrNtRNKWp96yu5L+fqw== X-Received: by 2002:a17:902:f60f:b0:215:30d1:36f6 with SMTP id d9443c01a7336-21530d13a46mr64816825ad.37.1732872417436; Fri, 29 Nov 2024 01:26:57 -0800 (PST) Received: from localhost.localdomain ([117.213.97.61]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21521987f17sm26648115ad.211.2024.11.29.01.26.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2024 01:26:57 -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, aman1.gupta@samsung.com, p.rajanbabu@samsung.com, 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, Manivannan Sadhasivam Subject: [PATCH v2 3/4] selftests: Move PCI Endpoint tests from tools/pci to Kselftests Date: Fri, 29 Nov 2024 14:54:14 +0530 Message-Id: <20241129092415.29437-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241129092415.29437-1-manivannan.sadhasivam@linaro.org> References: <20241129092415.29437-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 --- 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 21fdaa19229a..f116f78a2ec5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17794,7 +17794,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