selftests/pcie_bwctrl: Fix test progs listCommit df6f8c4d72ae ("selftests/pcie_bwctrl: Add 'set_pcie_speed.sh' toTEST_PROGS") added set_pcie_speed.sh into TEST_PROGS but that script is ahelper th
selftests/pcie_bwctrl: Fix test progs listCommit df6f8c4d72ae ("selftests/pcie_bwctrl: Add 'set_pcie_speed.sh' toTEST_PROGS") added set_pcie_speed.sh into TEST_PROGS but that script is ahelper that is only being called by set_pcie_cooling_state.sh, not a testcase itself. When set_pcie_speed.sh is in TEST_PROGS, selftest harness willexecute also it leading to bwctrl selftest errors: # selftests: pcie_bwctrl: set_pcie_speed.sh # cat: /cur_state: No such file or directory not ok 2 selftests: pcie_bwctrl: set_pcie_speed.sh # exit=1Place set_pcie_speed.sh into TEST_FILES instead to have it included intoinstalled test files but not execute it from the test harness.Fixes: df6f8c4d72ae ("selftests/pcie_bwctrl: Add 'set_pcie_speed.sh' to TEST_PROGS")Signed-off-by: Ilpo Järvinen <[email protected]>Signed-off-by: Bjorn Helgaas <[email protected]>Cc: [email protected]Link: https://patch.msgid.link/[email protected]
show more ...
selftests/pcie_bwctrl: Add 'set_pcie_speed.sh' to TEST_PROGSThe test shell script "set_pcie_speed.sh" is not installed in INSTALL_PATH.Attempting to execute set_pcie_cooling_state.sh shows warning
selftests/pcie_bwctrl: Add 'set_pcie_speed.sh' to TEST_PROGSThe test shell script "set_pcie_speed.sh" is not installed in INSTALL_PATH.Attempting to execute set_pcie_cooling_state.sh shows warning: ./set_pcie_cooling_state.sh: line 119: ./set_pcie_speed.sh: No such file or directoryAdd "set_pcie_speed.sh" to TEST_PROGS.Link: https://lore.kernel.org/r/Z8FfK8rN30lKzvVV@ly-workstationFixes: 838f12c3d551 ("selftests/pcie_bwctrl: Create selftests")Signed-off-by: Yi Lai <[email protected]>Signed-off-by: Bjorn Helgaas <[email protected]>
selftests/pcie_bwctrl: Create selftestsCreate selftests for PCIe BW control through the PCIe cooling device sysfsinterface.First, the BW control selftest finds the PCIe Port to test with. Bydef
selftests/pcie_bwctrl: Create selftestsCreate selftests for PCIe BW control through the PCIe cooling device sysfsinterface.First, the BW control selftest finds the PCIe Port to test with. Bydefault, the PCIe Port with the highest Link Speed is selected butanother PCIe Port can be provided with -d parameter.The actual test steps the cur_state of the cooling device one-by-onefrom max_state to what the cur_state was initially. The speed changeis confirmed by observing the current_link_speed for the correspondingPCIe Port.Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Ilpo Järvinen <[email protected]>Signed-off-by: Bjorn Helgaas <[email protected]>Reviewed-by: Jonathan Cameron <[email protected]>