[PATCH i-g-t v1 2/7] tests/core_hotunplug: set known chipset before tests
Andrzej Hajda
andrzej.hajda at intel.com
Wed Jun 12 07:03:02 UTC 2024
On 07.06.2024 17:36, Kamil Konieczny wrote:
> Set chipset for all known drivers, not only for i915.
>
> Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda at intel.com>
Regards
Andrzej
> ---
> tests/core_hotunplug.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c
> index db7a5c5e8..3971b94ff 100644
> --- a/tests/core_hotunplug.c
> +++ b/tests/core_hotunplug.c
> @@ -685,9 +685,9 @@ igt_main
> fd_drm = __drm_open_driver(DRIVER_ANY);
> igt_skip_on_f(fd_drm < 0, "No known DRM device found\n");
>
> - if (is_i915_device(fd_drm)) {
> - priv.chipset = DRIVER_INTEL;
> + priv.chipset = drm_get_chipset(fd_drm);
>
> + if (is_i915_device(fd_drm)) {
> gem_quiescent_gpu(fd_drm);
> igt_require_gem(fd_drm);
>
More information about the igt-dev
mailing list