[PATCH i-g-t] tests/intel/xe_debugfs: Extend gt test to check pat entry
Dandamudi, Priyanka
priyanka.dandamudi at intel.com
Wed May 8 08:28:32 UTC 2024
> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of
> janga.rahul.kumar at intel.com
> Sent: Tuesday, May 7, 2024 7:15 PM
> To: igt-dev at lists.freedesktop.org; Gandi, Ramadevi
> <ramadevi.gandi at intel.com>; Kumar, Janga Rahul
> <janga.rahul.kumar at intel.com>
> Subject: [PATCH i-g-t] tests/intel/xe_debugfs: Extend gt test to check pat entry
>
> From: Janga Rahul Kumar <janga.rahul.kumar at intel.com>
>
> Read and dump pat debugfs entry.
>
> Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar at intel.com>
> ---
> tests/intel/xe_debugfs.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tests/intel/xe_debugfs.c b/tests/intel/xe_debugfs.c index
> ba12f6ccc..73b11dc74 100644
> --- a/tests/intel/xe_debugfs.c
> +++ b/tests/intel/xe_debugfs.c
> @@ -158,6 +158,7 @@ test_gt(int fd, int gt_id)
> "topology",
> "sa_info",
> "hw_engines",
> + "pat",
> "mocs",
> // "force_reset"
> };
> @@ -184,6 +185,10 @@ test_gt(int fd, int gt_id)
> igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> igt_debugfs_dump(fd, name);
>
> + sprintf(name, "gt%d/pat", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> sprintf(name, "gt%d/mocs", gt_id);
> igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> igt_debugfs_dump(fd, name);
> --
> 2.25.1
LGTM
Reviewed-by: Priyanka Dandamudi <Priyanka.dandamudi at intel.com>
More information about the igt-dev
mailing list