Add initial test to xe query test suite that exercises the reset stats
query. The new test outputs the results of the query.
Signed-off-by: Jonathan Cavitt
---
tests/intel/xe_query.c | 85 ++
1 file changed, 85 insertions(+)
diff --git a/tests/intel
Extend the reset stats query tests to exercise the ban count value.
Assert that the ban count increases when a pagefault occurs.
Signed-off-by: Jonathan Cavitt
---
tests/intel/xe_query.c | 202 +
1 file changed, 202 insertions(+)
diff --git a/tests/intel
Add tests that exercise the xe reset stats query. The current tests
simply output the result of the tests and assert that the reset and ban
counters properly increment.
Signed-off-by: Jonathan Cavitt
Jonathan Cavitt (4):
drm-uapi/xe: Declare reset stats query
tests/intel/xe_query
Align with 20250220203832.130430-1-jonathan.cav...@intel.com
Add initial declarations for the reset stats query, including necessary
structures and IOCTL macros.
Signed-off-by: Jonathan Cavitt
---
include/drm-uapi/xe_drm.h | 50 +++
1 file changed, 50
Extend the reset stats query tests to exercise the reset count value.
Assert that the reset count increases when an engine reset occurs.
Signed-off-by: Jonathan Cavitt
---
tests/intel/xe_query.c | 52 ++
1 file changed, 52 insertions(+)
diff --git a
Pass the drm file to the query funcs in xe_query.c. This will be
necessary for a future query.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_query.c | 39 ---
1 file changed, 27 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/xe
were not caused by said
pagefault after the reset.
v2: Remove exec queue from blame list on destroy and recreate (Joonas)
v3: Do not print as part of xe_drm_client_fdinfo (Joonas)
v4: Fix formatting and kzalloc during lock warnings
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe
Migrate the pagefault struct from xe_gt_pagefault.c to the
xe_gt_pagefault.h header file, along with the associated enum values.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_gt_pagefault.c | 27 ---
drivers/gpu/drm/xe/xe_gt_pagefault.h | 28
Add a counter to xe_drm_client that tracks the number of times the
engine has been reset since the drm client was created.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_drm_client.h | 2 ++
drivers/gpu/drm/xe/xe_guc_submit.c | 4 +++-
2 files changed, 5 insertions(+), 1 deletion
Add the exec queue id to the exec queue struct. This is useful for
performing a reverse lookup into the xef->exec_queue xarray.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_exec_queue.c | 1 +
drivers/gpu/drm/xe/xe_exec_queue_types.h | 2 ++
2 files changed, 3 inserti
if CONFIG_PROC_FS is not set in the kernel
config, as it is required to trace the reset count and exec
queue bans.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_query.c | 70 +++
include/uapi/drm/xe_drm.h | 50 +
2
: 20250220203747.130371-1-jonathan.cav...@intel.com
Signed-off-by: Jonathan Cavitt
Suggested-by: Joonas Lahtinen
CC: Tvrtko Ursulin
CC: Lucas de Marchi
CC: Matthew Brost
CC: Simona Vetter
Jonathan Cavitt (6):
drm/xe/xe_exec_queue: Add ID param to exec queue struct
drm/xe/xe_gt_pagefault: Migrate
Add tests that exercise the xe reset stats query. The current tests
simply output the result of the tests and assert that the reset and ban
counters properly increment.
Signed-off-by: Jonathan Cavitt
---
include/drm-uapi/xe_drm.h | 50 ++
tests/intel/xe_query.c| 339
Migrate the pagefault struct from xe_gt_pagefault.c to the
xe_gt_pagefault.h header file, along with the associated enum values.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_gt_pagefault.c | 27 ---
drivers/gpu/drm/xe/xe_gt_pagefault.h | 28
Pass the drm file to the query funcs in xe_query.c. This will be
necessary for a future query.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_query.c | 39 ---
1 file changed, 27 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/xe
were not caused by said
pagefault after the reset.
v2: Remove exec queue from blame list on destroy and recreate (Joonas)
v3: Do not print as part of xe_drm_client_fdinfo (Joonas)
v4: Fix formatting and kzalloc during lock warnings
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe
Cavitt
Suggested-by: Joonas Lahtinen
CC: Tvrtko Ursulin
CC: Lucas de Marchi
CC: Matthew Brost
CC: Simona Vetter
Jonathan Cavitt (6):
drm/xe/xe_exec_queue: Add ID param to exec queue struct
drm/xe/xe_gt_pagefault: Migrate pagefault struct to header
drm/xe/xe_drm_client: Add per drm
Add a counter to xe_drm_client that tracks the number of times the
engine has been reset since the drm client was created.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_drm_client.h | 2 ++
drivers/gpu/drm/xe/xe_guc_submit.c | 4 +++-
2 files changed, 5 insertions(+), 1 deletion
Add the exec queue id to the exec queue struct. This is useful for
performing a reverse lookup into the xef->exec_queue xarray.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_exec_queue.c | 1 +
drivers/gpu/drm/xe/xe_exec_queue_types.h | 2 ++
2 files changed, 3 inserti
if CONFIG_PROC_FS is not set in the kernel
config, as it is required to trace the reset count and exec
queue bans.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_query.c | 70 +++
include/uapi/drm/xe_drm.h | 50 +
2
query, rather than
coopting xe_drm_client_fdinfo (Joonas)
v3: Report EOPNOTSUPP during the reset stats query if CONFIG_PROC_FS
is not set in the kernel config, as it is required to trace the
reset count and exec queue bans.
Signed-off-by: Jonathan Cavitt
Suggested-by: Joonas Lahtinen
CC
if CONFIG_PROC_FS is not set in the kernel
config, as it is required to trace the reset count and exec
queue bans.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_query.c | 70 +++
include/uapi/drm/xe_drm.h | 50 +
2
Add the exec queue id to the exec queue struct. This is useful for
performing a reverse lookup into the xef->exec_queue xarray.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_exec_queue.c | 1 +
drivers/gpu/drm/xe/xe_exec_queue_types.h | 2 ++
2 files changed, 3 inserti
were not caused by said
pagefault after the reset.
v2: Remove exec queue from blame list on destroy and recreate (Joonas)
v3: Do not print as part of xe_drm_client_fdinfo (Joonas)
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_drm_client.c | 66 +
drivers
Add a counter to xe_drm_client that tracks the number of times the
engine has been reset since the drm client was created.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_drm_client.h | 2 ++
drivers/gpu/drm/xe/xe_guc_submit.c | 4 +++-
2 files changed, 5 insertions(+), 1 deletion
Pass the drm file to the query funcs in xe_query.c. This will be
necessary for a future query.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_query.c | 39 ---
1 file changed, 27 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/xe
Migrate the pagefault struct from xe_gt_pagefault.c to the
xe_gt_pagefault.h header file, along with the associated enum values.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_gt_pagefault.c | 27 ---
drivers/gpu/drm/xe/xe_gt_pagefault.h | 28
Add the exec queue id to the exec queue struct. This is useful for
performing a reverse lookup into the xef->exec_queue xarray.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_exec_queue.c | 1 +
drivers/gpu/drm/xe/xe_exec_queue_types.h | 2 ++
2 files changed, 3 inserti
were not caused by said
pagefault after the reset.
v2: Remove exec queue from blame list on destroy and recreate (Joonas)
v3: Do not print as part of xe_drm_client_fdinfo (Joonas)
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_drm_client.c | 66 +
drivers
: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_query.c | 66 +++
include/uapi/drm/xe_drm.h | 50 ++
2 files changed, 116 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
index 3aad4737bfec..934ff0f4f992
Pass the drm file to the query funcs in xe_query.c. This will be
necessary for a future query.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_query.c | 39 ---
1 file changed, 27 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/xe
, rather than
coopting xe_drm_client_fdinfo (Joonas)
Signed-off-by: Jonathan Cavitt
Suggested-by: Joonas Lahtinen
CC: Tvrtko Ursulin
CC: Lucas de Marchi
CC: Matthew Brost
CC: Simona Vetter
Jonathan Cavitt (6):
drm/xe/xe_exec_queue: Add ID param to exec queue struct
drm/xe/xe_gt_pagefault
Add a counter to xe_drm_client that tracks the number of times the
engine has been reset since the drm client was created.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_drm_client.h | 2 ++
drivers/gpu/drm/xe/xe_guc_submit.c | 4 +++-
2 files changed, 5 insertions(+), 1 deletion
Migrate the pagefault struct from xe_gt_pagefault.c to the
xe_gt_pagefault.h header file, along with the associated enum values.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_gt_pagefault.c | 27 ---
drivers/gpu/drm/xe/xe_gt_pagefault.h | 28
Add a counter to xe_drm_client that tracks the number of times the
engine has been reset since the drm client was created.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_drm_client.c | 2 ++
drivers/gpu/drm/xe/xe_drm_client.h | 2 ++
drivers/gpu/drm/xe/xe_guc_submit.c | 4 +++-
3
Add the exec queue id to the exec queue struct. This is useful for
performing a reverse lookup into the xef->exec_queue xarray.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_exec_queue.c | 1 +
drivers/gpu/drm/xe/xe_exec_queue_types.h | 2 ++
2 files changed, 3 inserti
variants will be useful for debugging later.
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_gt_pagefault.c | 27 ---
drivers/gpu/drm/xe/xe_gt_pagefault.h | 51
2 files changed, 51 insertions(+), 27 deletions(-)
diff --git a/drivers/gpu/drm/xe
caused by said
pagefault after the reset.
Also add a tracker that counts the number of times the drm client has
experienced an engine reset.
Signed-off-by: Jonathan Cavitt
Jonathan Cavitt (4):
drm/xe/xe_exec_queue: Add ID param to exec queue struct
drm/xe/xe_gt_pagefault: Migrate pagefault
not caused by said
pagefault after the reset.
v2: Remove exec queue from blame list on destroy and recreate (Joonas)
Signed-off-by: Jonathan Cavitt
---
drivers/gpu/drm/xe/xe_drm_client.c | 128
drivers/gpu/drm/xe/xe_drm_client.h | 36 +++
drivers/gpu/drm/xe
39 matches
Mail list logo