Skip to contentSkip to conversation

drm/xe: Fix a missing argument to drm_err_printer

PATCH In review Thomas Hellström 3 participants 6 messages Feb 12, 2024 – Feb 14, 2024

Subsystems (2)
lore
Share & tools
lore

Thomas Hellström

author maintainer
#0 lore raw

PATCH 1/1 drm/xe: Fix a missing argument to drm_err_printer

The indicated commit below added a device argument to the function, but there was a call in the xe driver that was not properly changed.

Fixes 5e0c04c8c40b ("drm/print: make drm_err_printer() device specific by using drm_err()")
Cc Jani Nikula <[email protected]>
Cc Luca Coelho <[email protected]>
Cc Maxime Ripard <[email protected]>
---
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c +1 -1
index 7eef23a00d77..d42645fdfc02 100644
@@ -314,7 +314,7 @@ int xe_gt_tlb_invalidation_wait(struct xe_gt *gt, int seqno)
 {
 	struct xe_device *xe = gt_to_xe(gt);
 	struct xe_guc *guc = &gt->uc.guc;
-	struct drm_printer p = drm_err_printer(__func__);
+	struct drm_printer p = drm_err_printer(&xe->drm, __func__);
 	int ret;
 
 	/*
Signature · 1 line
2.43.0
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Thomas Hellström

The indicated commit below added a device argument to the function, but there was a call in the xe driver that was not properly changed.

Fixes 5e0c04c8c40b ("drm/print: make drm_err_printer() device specific by using drm_err()")
Cc Jani Nikula <[email protected]>
Cc Luca Coelho <[email protected]>
Cc Maxime Ripard <[email protected]>

Maxime

Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Hellström
Quoted 3 lines · Thomas Hellström

The indicated commit below added a device argument to the function, but there was a call in the xe driver that was not properly changed.

Aww, crap. Looks like my drm-misc-next configs don't have xe enabled.

Quoted 22 lines
Fixes 5e0c04c8c40b ("drm/print: make drm_err_printer() device specific by using drm_err()")
Cc Jani Nikula <[email protected]>
Cc Luca Coelho <[email protected]>
Cc Maxime Ripard <[email protected]>
---
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c +1 -1
index 7eef23a00d77..d42645fdfc02 100644
@@ -314,7 +314,7 @@ int xe_gt_tlb_invalidation_wait(struct xe_gt *gt, int seqno)
 {
 	struct xe_device *xe = gt_to_xe(gt);
 	struct xe_guc *guc = &gt->uc.guc;
-	struct drm_printer p = drm_err_printer(__func__);
+	struct drm_printer p = drm_err_printer(&xe->drm, __func__);
 	int ret;
 
 	/*
Signature · 1 line
Jani Nikula, Intel
#3 lore raw
Quoted 6 lines · Jani Nikula
Quoted 3 lines · Thomas Hellström

The indicated commit below added a device argument to the function, but there was a call in the xe driver that was not properly changed.

Aww, crap. Looks like my drm-misc-next configs don't have xe enabled.

FTR, there's defconfigs in the drm-rerere repo that are fairly well maintained.

Maxime

#4 lore raw
Quoted 9 lines · Maxime Ripard
Quoted 6 lines · Jani Nikula
Quoted 3 lines · Thomas Hellström

The indicated commit below added a device argument to the function, but there was a call in the xe driver that was not properly changed.

Aww, crap. Looks like my drm-misc-next configs don't have xe enabled.

FTR, there's defconfigs in the drm-rerere repo that are fairly well maintained.

None of them have CONFIG_DRM_XE enabled.

What's the procedure for updating the defconfigs? Do we have it documented somewhere?

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel
#5 lore raw
Quoted 7 lines · Jani Nikula
Quoted 6 lines · Maxime Ripard
Quoted 5 lines · Jani Nikula
Quoted 3 lines · Thomas Hellström

The indicated commit below added a device argument to the function, but there was a call in the xe driver that was not properly changed.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Aww, crap. Looks like my drm-misc-next configs don't have xe enabled.

FTR, there's defconfigs in the drm-rerere repo that are fairly well maintained.

None of them have CONFIG_DRM_XE enabled.

What's the procedure for updating the defconfigs? Do we have it documented somewhere?

I'm not sure there's a procedure, everytime I needed it I just changed the defconfig, committed and pushed.

Maxime