]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/pcie_bwctrl: Create selftests
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 18 Oct 2024 14:47:55 +0000 (17:47 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 16 Nov 2024 16:09:30 +0000 (10:09 -0600)
commit838f12c3d551f8941295ed7085ad360c3d3ad665
treea887a857e1280c3d9d83bef09a9642e70a8a9b1c
parentd278b098282d1327f6e1be82aacb18457a4d244d
selftests/pcie_bwctrl: Create selftests

Create selftests for PCIe BW control through the PCIe cooling device sysfs
interface.

First, the BW control selftest finds the PCIe Port to test with. By
default, the PCIe Port with the highest Link Speed is selected but
another PCIe Port can be provided with -d parameter.

The actual test steps the cur_state of the cooling device one-by-one
from max_state to what the cur_state was initially. The speed change
is confirmed by observing the current_link_speed for the corresponding
PCIe Port.

Link: https://lore.kernel.org/r/20241018144755.7875-10-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
MAINTAINERS
tools/testing/selftests/Makefile
tools/testing/selftests/pcie_bwctrl/Makefile [new file with mode: 0644]
tools/testing/selftests/pcie_bwctrl/set_pcie_cooling_state.sh [new file with mode: 0755]
tools/testing/selftests/pcie_bwctrl/set_pcie_speed.sh [new file with mode: 0755]