Re: [PATCH v8 8/8] selftests/pcie_bwctrl: Create selftests
From: Jonathan Cameron
Date: Thu Oct 17 2024 - 07:09:19 EST
On Wed, 9 Oct 2024 12:52:23 +0300
Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx> wrote:
> 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.
>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
My bash is terrible, but as far as I can tell this looks reasonable.
So with that in mind take this with a pinch of salt.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>