Hi Krzysztof,

On 2026-08-28 at 10:03:38 +0000, Krzysztof Karas wrote:
> Move away from generic pr prints to device context aware drm
> versions.
> 
> Assisted-by: GitHub-Copilot:claude-opus-5
> Signed-off-by: Krzysztof Karas <[email protected]>
> ---
>  drivers/gpu/drm/i915/selftests/i915_selftest.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/selftests/i915_selftest.c 
> b/drivers/gpu/drm/i915/selftests/i915_selftest.c
> index 3adcfdab75ae..fa840a7e651e 100644
> --- a/drivers/gpu/drm/i915/selftests/i915_selftest.c
> +++ b/drivers/gpu/drm/i915/selftests/i915_selftest.c
> @@ -23,6 +23,8 @@
>  
>  #include <linux/random.h>
>  
> +#include <drm/drm_print.h>
> +
>  #include "gt/intel_gt.h"
>  #include "gt/intel_gt_pm.h"
>  #include "gt/intel_gt_regs.h"
> @@ -47,7 +49,7 @@ int i915_mock_sanitycheck(void)
>  
>  int i915_live_sanitycheck(struct drm_i915_private *i915)
>  {
> -     pr_info("%s: %s() - ok!\n", i915->drm.driver->name, __func__);
> +     drm_info(&i915->drm, "%s() - ok!\n", __func__);
>       return 0;
>  }
>  
> @@ -154,7 +156,7 @@ __wait_gsc_proxy_completed(struct drm_i915_private *i915)
>  
>       if (need_to_wait && 
> wait_for(!__gsc_proxy_init_progressing(&i915->media_gt->uc.gsc),
>                                    timeout_ms))
> -             pr_warn(DRIVER_NAME "Timed out waiting for 
> gsc_proxy_completion!\n");
> +             drm_warn(&i915->drm, "Timed out waiting for 
> gsc_proxy_completion!\n");
>  }
>  
>  static void
> @@ -178,7 +180,7 @@ __wait_gsc_huc_load_completed(struct drm_i915_private 
> *i915)
>  
>       if (need_to_wait &&
>           wait_for(i915_sw_fence_done(&huc->delayed_load.fence), timeout_ms))
> -             pr_warn(DRIVER_NAME "Timed out waiting for huc load via 
> GSC!\n");
> +             drm_warn(&i915->drm, "Timed out waiting for huc load via 
> GSC!\n");
>  }
>  
>  static struct mm_struct *get_selftest_mm(int u_pid_nr)
> -- 
> 2.34.1
> 

LGTM

Reviewed-by: Krzysztof Niemiec <[email protected]>

Thanks
Krzysztof

Reply via email to