[igt-dev] [PATCH i-g-t v2 2/2] test/i915_pm_rpm: Verify bridge binds with pcieport driver

Dixit, Ashutosh ashutosh.dixit at intel.com
Wed Nov 16 19:25:34 UTC 2022


On Wed, 02 Nov 2022 04:58:51 -0700, Anshuman Gupta wrote:
>
> @@ -1559,15 +1559,20 @@ static bool device_in_pci_d3(struct pci_device *pci_dev)
>
>  static void pci_d3_state_subtest(void)
>  {
> -	struct pci_device *pci_dev;
> +	struct pci_device *pci_dev, *bridge_pci_dev;
>
>	igt_require(has_runtime_pm);
>
>	pci_dev = igt_device_get_pci_device(drm_fd);
> +	bridge_pci_dev = pci_device_get_parent_bridge(pci_dev);
>
>	disable_all_screens_and_wait(&ms_data);
>	igt_assert(igt_wait(device_in_pci_d3(pci_dev), 2000, 100));
>
> +	if (gem_has_lmem(drm_fd))
> +		igt_require_f(pci_device_has_kernel_driver(bridge_pci_dev),
> +			      "pci bridge device does not bind with pcieport driver\n");

This test is in BAT/fast-feedback list. Not sure if tests in BAT list are
allowed to skip?


More information about the igt-dev mailing list