drm/xe/uapi: Remove reset uevent for now
Subsystems (3)
PATCH 1/1 drm/xe/uapi: Remove reset uevent for now
From: Rodrigo Vivi <[email protected]>
This kernel uevent is getting removed for now. It will come back later with a better future proof name.
v2: Rebase (Francois Dugast)
--- drivers/gpu/drm/xe/xe_gt.c | 18 ------------------ include/uapi/drm/xe_drm.h | 11 ----------- 2 files changed, 29 deletions(-)
drivers/gpu/drm/xe/xe_gt.c +0 -18
@@ -589,20 +589,6 @@ static int do_gt_restart(struct xe_gt *gt)return 0 ; } -static void xe_uevent_gt_reset_failure (struct pci_dev *pdev,u8 tile_id,u8 gt_id) -{ -char *reset_event[4 ]; - - reset_event[0 ] =DRM_XE_RESET_FAILED_UEVENT "=NEEDS_RESET" ; - reset_event[1 ] =kasprintf (GFP_KERNEL ,"TILE_ID=%d" , tile_id); - reset_event[2 ] =kasprintf (GFP_KERNEL ,"GT_ID=%d" , gt_id); - reset_event[3 ] =NULL ; -kobject_uevent_env (&pdev->dev.kobj,KOBJ_CHANGE , reset_event); - -kfree (reset_event[1 ]); -kfree (reset_event[2 ]); -} -static int gt_reset (struct xe_gt *gt) {int err;
@@ -659,10 +645,6 @@ static int gt_reset(struct xe_gt *gt) err_fail:xe_gt_err (gt,"reset failed (%pe)\n" ,ERR_PTR (err)); -/* Notify userspace about gt reset failure */ -xe_uevent_gt_reset_failure (to_pci_dev (gt_to_xe (gt)->drm.dev), -gt_to_tile (gt)->id, gt->info.id); -gt_to_xe (gt)->needs_flr_on_fini = true;return err;
include/uapi/drm/xe_drm.h +0 -11
@@ -20,7 +20,6 @@ extern "C" {* 2. Extension definition and helper structs * 3. IOCTL's Query structs in the order of the Query's entries. * 4. The rest of IOCTL structs in the order of IOCTL declaration. -* 5. uEvents */ /**
@@ -1341,16 +1340,6 @@ struct drm_xe_wait_user_fence {__u64 reserved[2 ]; }; -/** -* DOC: uevent generated by xe on it's pci node. -* -* DRM_XE_RESET_FAILED_UEVENT - Event is generated when attempt to reset gt -* fails. The value supplied with the event is always "NEEDS_RESET". -* Additional information supplied is tile id and gt id of the gt unit for -* which reset has failed. -*/ -#define DRM_XE_RESET_FAILED_UEVENT "DEVICE_STATUS" -#if defined(__cplusplus) }#endif
Signature · 1 line
2.34.1
Patchwork
CI✗ CI.Patch_applied: failure for drm/xe/uapi: Remove reset uevent for now
== Series Details ==
== Series Details ==
Series: drm/xe/uapi: Remove reset uevent for now
URL : https://patchwork.freedesktop.org/series/127865/
State : failure
== Summary ==
=== Applying kernel patches on branch 'drm-xe-next' with base: === Base commit: 6154a8abd drm/xe: Drop some unnecessary header includes === git am output follows ===
error: patch failed: include/uapi/drm/xe_drm.h:20
error: include/uapi/drm/xe_drm.h: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch
Applying: drm/xe/uapi: Remove reset uevent for now
Patch failed at 0001 drm/xe/uapi: Remove reset uevent for now When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".
Quoted 6 lines · Francois Dugast
From: Rodrigo Vivi <[email protected]>
This kernel uevent is getting removed for now. It will come back later with a better future proof name.
v2: Rebase (Francois Dugast)
as mentioned in IGT series we need to drop this commit as well
14a663d83da2 drm/xe: Introduce fault injection for gt reset.
Thanks,
Aravind.
Quoted 77 lines
Cc Himal Prasad Ghimiray <[email protected]>Cc Lucas De Marchi <[email protected]>Cc Francois Dugast <[email protected]>Cc Aravind Iddamsetty <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- drivers/gpu/drm/xe/xe_gt.c | 18 ------------------ include/uapi/drm/xe_drm.h | 11 ----------- 2 files changed, 29 deletions(-)drivers/gpu/drm/xe/xe_gt.c +0
-18@@ -589,20 +589,6 @@ static int do_gt_restart(struct xe_gt *gt)return 0 ; } -static void xe_uevent_gt_reset_failure (struct pci_dev *pdev,u8 tile_id,u8 gt_id) -{ -char *reset_event[4 ]; - - reset_event[0 ] =DRM_XE_RESET_FAILED_UEVENT "=NEEDS_RESET" ; - reset_event[1 ] =kasprintf (GFP_KERNEL ,"TILE_ID=%d" , tile_id); - reset_event[2 ] =kasprintf (GFP_KERNEL ,"GT_ID=%d" , gt_id); - reset_event[3 ] =NULL ; -kobject_uevent_env (&pdev->dev.kobj,KOBJ_CHANGE , reset_event); - -kfree (reset_event[1 ]); -kfree (reset_event[2 ]); -} -static int gt_reset (struct xe_gt *gt) {int err;@@ -659,10 +645,6 @@ static int gt_reset(struct xe_gt *gt) err_fail:xe_gt_err (gt,"reset failed (%pe)\n" ,ERR_PTR (err)); -/* Notify userspace about gt reset failure */ -xe_uevent_gt_reset_failure (to_pci_dev (gt_to_xe (gt)->drm.dev), -gt_to_tile (gt)->id, gt->info.id); -gt_to_xe (gt)->needs_flr_on_fini = true;return err;include/uapi/drm/xe_drm.h +0
-11@@ -20,7 +20,6 @@ extern "C" {* 2. Extension definition and helper structs * 3. IOCTL's Query structs in the order of the Query's entries. * 4. The rest of IOCTL structs in the order of IOCTL declaration. -* 5. uEvents */ /** @@ -1341,16 +1340,6 @@ struct drm_xe_wait_user_fence {__u64 reserved[2 ]; }; -/** -* DOC: uevent generated by xe on it's pci node. -* -* DRM_XE_RESET_FAILED_UEVENT - Event is generated when attempt to reset gt -* fails. The value supplied with the event is always "NEEDS_RESET". -* Additional information supplied is tile id and gt id of the gt unit for -* which reset has failed. -*/ -#define DRM_XE_RESET_FAILED_UEVENT "DEVICE_STATUS" -#if defined(__cplusplus) }#endif
Quoted 4 lines · Aravind Iddamsetty
Quoted 2 lines · Francois Dugast
From: Rodrigo Vivi <[email protected]>
Quoted 8 lines
Quoted 4 lines
This kernel uevent is getting removed for now. It will come back later with a better future proof name.
v2: Rebase (Francois Dugast)
as mentioned in IGT series we need to drop this commit as well
14a663d83da2drm/xe: Introduce fault injection for gt reset.
No need for dropping that. We are going to restore the uevent soon. But with the proper final name.
The problem is only with the uapi because we won’t be able to rename or change when we are in-tree.
Quoted 84 lines
Thanks,
Aravind.Quoted 17 lines
Cc Himal Prasad Ghimiray <[email protected]>Cc Lucas De Marchi <[email protected]>Cc Francois Dugast <[email protected]>Cc Aravind Iddamsetty <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- drivers/gpu/drm/xe/xe_gt.c | 18 ------------------ include/uapi/drm/xe_drm.h | 11 ----------- 2 files changed, 29 deletions(-)drivers/gpu/drm/xe/xe_gt.c +0
-0drivers/gpu/drm/xe/xe_gt.c static int do_gt_restart(struct xe_gt *gt) · line 592
Quoted 4 lines
drivers/gpu/drm/xe/xe_gt.c +0
-1@@ -589,20 +589,6 @@ static int do_gt_restart(struct xe_gt *gt)return 0 ; } -static void xe_uevent_gt_reset_failure(struct pci_dev *pdev, u8
tile_id, u8gt_id)Quoted 40 lines
drivers/gpu/drm/xe/xe_gt.c +0
-17-{ -char *reset_event[4 ]; - - reset_event[0 ] =DRM_XE_RESET_FAILED_UEVENT "=NEEDS_RESET" ; - reset_event[1 ] =kasprintf (GFP_KERNEL ,"TILE_ID=%d" , tile_id); - reset_event[2 ] =kasprintf (GFP_KERNEL ,"GT_ID=%d" , gt_id); - reset_event[3 ] =NULL ; -kobject_uevent_env (&pdev->dev.kobj,KOBJ_CHANGE , reset_event); - -kfree (reset_event[1 ]); -kfree (reset_event[2 ]); -} -static int gt_reset (struct xe_gt *gt) {int err;@@ -659,10 +645,6 @@ static int gt_reset(struct xe_gt *gt) err_fail:xe_gt_err (gt,"reset failed (%pe)\n" ,ERR_PTR (err)); -/* Notify userspace about gt reset failure */ -xe_uevent_gt_reset_failure (to_pci_dev (gt_to_xe (gt)->drm.dev), -gt_to_tile (gt)->id, gt->info.id); -gt_to_xe (gt)->needs_flr_on_fini = true;return err;include/uapi/drm/xe_drm.h +0
-1@@ -20,7 +20,6 @@ extern "C" {* 2. Extension definition and helper structs * 3. IOCTL's Query structs in the order of the Query's entries. * 4. The rest of IOCTL structs in the order of IOCTL declaration. -* 5. uEvents */ /** include/uapi/drm/xe_drm.h struct drm_xe_wait_user_fence { · line 1347
Quoted 7 lines
include/uapi/drm/xe_drm.h +0
-4@@ -1341,16 +1340,6 @@ struct drm_xe_wait_user_fence {__u64 reserved[2 ]; }; -/** -* DOC: uevent generated by xe on it's pci node. -* -* DRM_XE_RESET_FAILED_UEVENT - Event is generated when attempt to reset gt
include/uapi/drm/xe_drm.h struct drm_xe_wait_user_fence { · line 1349
Quoted 2 lines
include/uapi/drm/xe_drm.h +0
-2-* fails. The value supplied with the event is always "NEEDS_RESET". -* Additional information supplied is tile id and gt id of the gt unit for
Quoted 7 lines
include/uapi/drm/xe_drm.h +0
-4-* which reset has failed. -*/ -#define DRM_XE_RESET_FAILED_UEVENT "DEVICE_STATUS" -#if defined(__cplusplus) }#endif