dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH drm-misc-next] drm/xe: Fix a missing argument to drm_err_printer
@ 2024-02-12 10:38 Thomas Hellström
  2024-02-12 10:50 ` Maxime Ripard
  2024-02-12 10:53 ` Jani Nikula
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Hellström @ 2024-02-12 10:38 UTC (permalink / raw)
  To: dri-devel
  Cc: intel-xe, Thomas Hellström, Jani Nikula, Luca Coelho,
	Maxime Ripard

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 <jani.nikula@intel.com>
Cc: Luca Coelho <luciano.coelho@intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
index 7eef23a00d77..d42645fdfc02 100644
--- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
+++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
@@ -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;
 
 	/*
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH drm-misc-next] drm/xe: Fix a missing argument to drm_err_printer
  2024-02-12 10:38 [PATCH drm-misc-next] drm/xe: Fix a missing argument to drm_err_printer Thomas Hellström
@ 2024-02-12 10:50 ` Maxime Ripard
  2024-02-12 10:53 ` Jani Nikula
  1 sibling, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2024-02-12 10:50 UTC (permalink / raw)
  To: Thomas Hellström; +Cc: dri-devel, intel-xe, Jani Nikula, Luca Coelho

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

On Mon, Feb 12, 2024 at 11:38:33AM +0100, Thomas Hellström wrote:
> 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 <jani.nikula@intel.com>
> Cc: Luca Coelho <luciano.coelho@intel.com>
> Cc: Maxime Ripard <mripard@kernel.org>
> Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>

Acked-by: Maxime Ripard <mripard@kernel.org>

Maxime

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH drm-misc-next] drm/xe: Fix a missing argument to drm_err_printer
  2024-02-12 10:38 [PATCH drm-misc-next] drm/xe: Fix a missing argument to drm_err_printer Thomas Hellström
  2024-02-12 10:50 ` Maxime Ripard
@ 2024-02-12 10:53 ` Jani Nikula
  2024-02-13 14:26   ` Maxime Ripard
  1 sibling, 1 reply; 6+ messages in thread
From: Jani Nikula @ 2024-02-12 10:53 UTC (permalink / raw)
  To: Thomas Hellström, dri-devel
  Cc: intel-xe, Thomas Hellström, Luca Coelho, Maxime Ripard

On Mon, 12 Feb 2024, Thomas Hellström <thomas.hellstrom@linux.intel.com> wrote:
> 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.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> Fixes: 5e0c04c8c40b ("drm/print: make drm_err_printer() device specific by using drm_err()")
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Luca Coelho <luciano.coelho@intel.com>
> Cc: Maxime Ripard <mripard@kernel.org>
> Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> ---
>  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> index 7eef23a00d77..d42645fdfc02 100644
> --- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> +++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> @@ -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;
>  
>  	/*

-- 
Jani Nikula, Intel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [PATCH drm-misc-next] drm/xe: Fix a missing argument to drm_err_printer
  2024-02-12 10:53 ` Jani Nikula
@ 2024-02-13 14:26   ` Maxime Ripard
  2024-02-13 14:40     ` Jani Nikula
  0 siblings, 1 reply; 6+ messages in thread
From: Maxime Ripard @ 2024-02-13 14:26 UTC (permalink / raw)
  To: Jani Nikula; +Cc: Thomas Hellström, dri-devel, intel-xe, Luca Coelho

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]

On Mon, Feb 12, 2024 at 12:53:05PM +0200, Jani Nikula wrote:
> On Mon, 12 Feb 2024, Thomas Hellström <thomas.hellstrom@linux.intel.com> wrote:
> > 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [PATCH drm-misc-next] drm/xe: Fix a missing argument to drm_err_printer
  2024-02-13 14:26   ` Maxime Ripard
@ 2024-02-13 14:40     ` Jani Nikula
  2024-02-14  9:38       ` Maxime Ripard
  0 siblings, 1 reply; 6+ messages in thread
From: Jani Nikula @ 2024-02-13 14:40 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: Thomas Hellström, dri-devel, intel-xe, Luca Coelho

On Tue, 13 Feb 2024, Maxime Ripard <mripard@kernel.org> wrote:
> On Mon, Feb 12, 2024 at 12:53:05PM +0200, Jani Nikula wrote:
>> On Mon, 12 Feb 2024, Thomas Hellström <thomas.hellstrom@linux.intel.com> wrote:
>> > 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.

-- 
Jani Nikula, Intel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Re: [PATCH drm-misc-next] drm/xe: Fix a missing argument to drm_err_printer
  2024-02-13 14:40     ` Jani Nikula
@ 2024-02-14  9:38       ` Maxime Ripard
  0 siblings, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2024-02-14  9:38 UTC (permalink / raw)
  To: Jani Nikula; +Cc: Thomas Hellström, dri-devel, intel-xe, Luca Coelho

[-- Attachment #1: Type: text/plain, Size: 880 bytes --]

On Tue, Feb 13, 2024 at 04:40:19PM +0200, Jani Nikula wrote:
> On Tue, 13 Feb 2024, Maxime Ripard <mripard@kernel.org> wrote:
> > On Mon, Feb 12, 2024 at 12:53:05PM +0200, Jani Nikula wrote:
> >> On Mon, 12 Feb 2024, Thomas Hellström <thomas.hellstrom@linux.intel.com> wrote:
> >> > 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?

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

Maxime

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-14  9:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-12 10:38 [PATCH drm-misc-next] drm/xe: Fix a missing argument to drm_err_printer Thomas Hellström
2024-02-12 10:50 ` Maxime Ripard
2024-02-12 10:53 ` Jani Nikula
2024-02-13 14:26   ` Maxime Ripard
2024-02-13 14:40     ` Jani Nikula
2024-02-14  9:38       ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).