[igt-dev] [i-g-t V3 1/6] lib/igt_gt: Fix igt_post_hang_ring for XE driver
Kumar, Janga Rahul
janga.rahul.kumar at intel.com
Thu Sep 7 04:43:20 UTC 2023
> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of
> Bhanuprakash Modem
> Sent: Wednesday, September 6, 2023 1:39 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Joshi, Kunal1 <kunal1.joshi at intel.com>
> Subject: [igt-dev] [i-g-t V3 1/6] lib/igt_gt: Fix igt_post_hang_ring for XE driver
>
> Fix igt_post_hang_ring() to not execute gem specific logic for XE driver.
>
> Cc: Kunal Joshi <kunal1.joshi at intel.com>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
> lib/igt_gt.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 7cf0e468e..a24a566c7 100644
> --- a/lib/igt_gt.c
> +++ b/lib/igt_gt.c
> @@ -384,6 +384,8 @@ void igt_post_hang_ring(int fd, igt_hang_t arg)
> if (is_xe_device(fd)) {
> igt_spin_free(fd, arg.spin);
> xe_post_hang_ring(fd, arg);
> +
> + return;
> }
>
> gem_sync(fd, arg.spin->handle); /* Wait until it hangs */
> --
> 2.40.0
Reviewed-by: Janga Rahul Kumar<janga.rahul.kumar at intel.com>
More information about the igt-dev
mailing list