[PATCH v1] tests/intel/xe_debugfs: Extend gt test to check few debugfs entries
Matthew Brost
matthew.brost at intel.com
Thu Dec 19 03:48:31 UTC 2024
On Tue, Dec 17, 2024 at 07:26:59PM +0530, Pravalika Gurram wrote:
> Read and dump below debugfs entries.
> ggtt
> register-save-restore
> workarounds
> default_lrc_rcs
> default_lrc_ccs
> default_lrc_bcs
> default_lrc_vcs
> default_lrc_vecs
> hwconfig"
>
> Signed-off-by: Pravalika Gurram <pravalika.gurram at intel.com>
Reviewed-by: Matthew Brost <matthew.brost at intel.com>
> ---
> tests/intel/xe_debugfs.c | 46 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 46 insertions(+)
>
> diff --git a/tests/intel/xe_debugfs.c b/tests/intel/xe_debugfs.c
> index 700575031..bcbb5036a 100644
> --- a/tests/intel/xe_debugfs.c
> +++ b/tests/intel/xe_debugfs.c
> @@ -162,6 +162,16 @@ test_gt(int fd, int gt_id)
> "pat",
> "mocs",
> // "force_reset"
> + "ggtt",
> + "register-save-restore",
> + "workarounds",
> + "default_lrc_rcs",
> + "default_lrc_ccs",
> + "default_lrc_bcs",
> + "default_lrc_vcs",
> + "default_lrc_vecs",
> + "hwconfig"
> +
> };
> static const char * const expected_files_uc[] = {
> "huc_info",
> @@ -194,6 +204,42 @@ 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/ggtt", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> + sprintf(name, "gt%d/register-save-restore", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> + sprintf(name, "gt%d/workarounds", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> + sprintf(name, "gt%d/default_lrc_rcs", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> + sprintf(name, "gt%d/default_lrc_ccs", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> + sprintf(name, "gt%d/default_lrc_bcs", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> + sprintf(name, "gt%d/default_lrc_vecs", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> + sprintf(name, "gt%d/default_lrc_vcs", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> + sprintf(name, "gt%d/hwconfig", gt_id);
> + igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> + igt_debugfs_dump(fd, name);
> +
> sprintf(name, "gt%d/uc/guc_info", gt_id);
> igt_assert(igt_debugfs_exists(fd, name, O_RDONLY));
> igt_debugfs_dump(fd, name);
> --
> 2.34.1
>
More information about the igt-dev
mailing list