GuC oriented print macros
Subsystems (2)
cover GuC oriented print macros
This is a follow up series for existing commit 67804e48b494 ("drm/i915/gt: Start adding module oriented dmesg output") that was focusing just on the GT.
Now extend changes to uc/ folder and focus on the GuC.
Michal Wajdeczko (8):
drm/i915/guc: Add GuC oriented print macros drm/i915/guc: Update GuC messages in intel_guc.c drm/i915/guc: Update GuC messages in intel_guc_ads.c drm/i915/guc: Update GuC messages in intel_guc_ct.c drm/i915/guc: Update GuC messages in intel_guc_fw.c drm/i915/guc: Update GuC messages in intel_guc_log.c drm/i915/guc: Update GuC messages in intel_guc_submission.c drm/i915/guc: Update GT/GuC messages in intel_uc.c
drivers/gpu/drm/i915/gt/uc/intel_guc.c | 31 ++++---- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 8 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 12 +-- drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 17 +++-- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 35 ++++----- drivers/gpu/drm/i915/gt/uc/intel_guc_print.h | 48 ++++++++++++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 60 +++++++-------- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 74 +++++++++---------- 8 files changed, 160 insertions(+), 125 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/uc/intel_guc_print.h
Signature · 1 line
2.25.1
PATCH 1/8 drm/i915/guc: Add GuC oriented print macros
While we do have GT oriented print macros, add few more GuC specific to have common look and feel across all messages related to the GuC and to avoid chasing the gt pointer.
We will use these macros shortly in upcoming patches.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_print.h | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 drivers/gpu/drm/i915/gt/uc/intel_guc_print.h
drivers/gpu/drm/i915/gt/uc/intel_guc_print.h new file +48 -0
@@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +*/ + +#ifndef __INTEL_GUC_PRINT__ +#define __INTEL_GUC_PRINT__ + +#include "gt/intel_gt.h" +#include "gt/intel_gt_print.h" + +#define guc_printk (_guc, _level, _fmt, ...) \ + gt_##_level(guc_to_gt(_guc), "GUC: " _fmt, ##__VA_ARGS__) + +#define guc_err (_guc, _fmt, ...) \ + guc_printk((_guc), err, _fmt, ##__VA_ARGS__) + +#define guc_warn (_guc, _fmt, ...) \ + guc_printk((_guc), warn, _fmt, ##__VA_ARGS__) + +#define guc_notice (_guc, _fmt, ...) \ + guc_printk((_guc), notice, _fmt, ##__VA_ARGS__) + +#define guc_info (_guc, _fmt, ...) \ + guc_printk((_guc), info, _fmt, ##__VA_ARGS__) + +#define guc_dbg (_guc, _fmt, ...) \ + guc_printk((_guc), dbg, _fmt, ##__VA_ARGS__) + +#define guc_err_ratelimited (_guc, _fmt, ...) \ + guc_printk((_guc), err_ratelimited, _fmt, ##__VA_ARGS__) + +#define guc_probe_error (_guc, _fmt, ...) \ + guc_printk((_guc), probe_error, _fmt, ##__VA_ARGS__) + +#define guc_WARN (_guc, _cond, _fmt, ...) \ + gt_WARN(guc_to_gt(_guc), _cond, "GUC: " _fmt, ##__VA_ARGS__) + +#define guc_WARN_ONCE (_guc, _cond, _fmt, ...) \ + gt_WARN_ONCE(guc_to_gt(_guc), _cond, "GUC: " _fmt, ##__VA_ARGS__) + +#define guc_WARN_ON (_guc, _cond) \ + gt_WARN(guc_to_gt(_guc), _cond, "%s(%s)", "guc_WARN_ON", __stringify(_cond)) + +#define guc_WARN_ON_ONCE (_guc, _cond) \ + gt_WARN_ONCE(guc_to_gt(_guc), _cond, "%s(%s)", "guc_WARN_ON_ONCE", __stringify(_cond)) + +#endif /* __INTEL_GUC_PRINT__ */
Signature · 1 line
2.25.1
Re: [PATCH 1/8] drm/i915/guc: Add GuC oriented print macros
Quoted 20 lines · Michal Wajdeczko
While we do have GT oriented print macros, add few more GuC specific to have common look and feel across all messages related to the GuC and to avoid chasing the gt pointer.
We will use these macros shortly in upcoming patches.
Signed-off-by Michal Wajdeczko <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc John Harrison <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc_print.h | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+)create mode 100644
drivers/gpu/drm/i915/gt/uc/intel_guc_print.hdrivers/gpu/drm/i915/gt/uc/intel_guc_print.h new file +0
-0
drivers/gpu/drm/i915/gt/uc/intel_guc_print.h line 9
Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_print.h new file +9
-0@@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +*/ + +#ifndef __INTEL_GUC_PRINT__ +#define __INTEL_GUC_PRINT__ + +#include "gt/intel_gt.h"
This necessary only for the guc_to_gt() accessor? Hmm. Maybe it is worth moving that to intel_guc.h? I know Jani for one would like to see all of that cleaned up. But maybe that's a follow up patch.
John.
Quoted 39 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_print.h new file +39
-0+#include "gt/intel_gt_print.h" + +#define guc_printk (_guc, _level, _fmt, ...) \ + gt_##_level(guc_to_gt(_guc), "GUC: " _fmt, ##__VA_ARGS__) + +#define guc_err (_guc, _fmt, ...) \ + guc_printk((_guc), err, _fmt, ##__VA_ARGS__) + +#define guc_warn (_guc, _fmt, ...) \ + guc_printk((_guc), warn, _fmt, ##__VA_ARGS__) + +#define guc_notice (_guc, _fmt, ...) \ + guc_printk((_guc), notice, _fmt, ##__VA_ARGS__) + +#define guc_info (_guc, _fmt, ...) \ + guc_printk((_guc), info, _fmt, ##__VA_ARGS__) + +#define guc_dbg (_guc, _fmt, ...) \ + guc_printk((_guc), dbg, _fmt, ##__VA_ARGS__) + +#define guc_err_ratelimited (_guc, _fmt, ...) \ + guc_printk((_guc), err_ratelimited, _fmt, ##__VA_ARGS__) + +#define guc_probe_error (_guc, _fmt, ...) \ + guc_printk((_guc), probe_error, _fmt, ##__VA_ARGS__) + +#define guc_WARN (_guc, _cond, _fmt, ...) \ + gt_WARN(guc_to_gt(_guc), _cond, "GUC: " _fmt, ##__VA_ARGS__) + +#define guc_WARN_ONCE (_guc, _cond, _fmt, ...) \ + gt_WARN_ONCE(guc_to_gt(_guc), _cond, "GUC: " _fmt, ##__VA_ARGS__) + +#define guc_WARN_ON (_guc, _cond) \ + gt_WARN(guc_to_gt(_guc), _cond, "%s(%s)", "guc_WARN_ON", __stringify(_cond)) + +#define guc_WARN_ON_ONCE (_guc, _cond) \ + gt_WARN_ONCE(guc_to_gt(_guc), _cond, "%s(%s)", "guc_WARN_ON_ONCE", __stringify(_cond)) + +#endif /* __INTEL_GUC_PRINT__ */
Re: [PATCH 1/8] drm/i915/guc: Add GuC oriented print macros
Quoted 26 lines · John Harrison
Quoted 25 lines · Michal Wajdeczko
While we do have GT oriented print macros, add few more GuC specific to have common look and feel across all messages related to the GuC and to avoid chasing the gt pointer.
We will use these macros shortly in upcoming patches.
Signed-off-by Michal Wajdeczko <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc John Harrison <[email protected]>---
drivers/gpu/drm/i915/gt/uc/intel_guc_print.h| 48 ++++++++++++++++++++1 file changed, 48 insertions(+)create mode 100644
drivers/gpu/drm/i915/gt/uc/intel_guc_print.hdrivers/gpu/drm/i915/gt/uc/intel_guc_print.h new file +4
-0@@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +*/
Quoted 8 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_print.h line 9
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_print.h new file +5
-0+ +#ifndef __INTEL_GUC_PRINT__ +#define __INTEL_GUC_PRINT__ + +#include "gt/intel_gt.h" This necessary only for the
guc_to_gt()accessor? Hmm. Maybe it is worth moving that tointel_guc.h? I know Jani for one would like to see all of that cleaned up. But maybe that's a follow up patch.
we can't move it easily without creating new intel_guc_types.h file for all struct definitions, so definitely separate follow up series would be needed
Michal
Quoted 45 lines
John.
Quoted 41 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_print.h new file +34
-0+#include "gt/intel_gt_print.h" + +#define guc_printk (_guc, _level, _fmt, ...) \ + gt_##_level(guc_to_gt(_guc), "GUC: " _fmt, ##__VA_ARGS__) + +#define guc_err (_guc, _fmt, ...) \ + guc_printk((_guc), err, _fmt, ##__VA_ARGS__) + +#define guc_warn (_guc, _fmt, ...) \ + guc_printk((_guc), warn, _fmt, ##__VA_ARGS__) + +#define guc_notice (_guc, _fmt, ...) \ + guc_printk((_guc), notice, _fmt, ##__VA_ARGS__) + +#define guc_info (_guc, _fmt, ...) \ + guc_printk((_guc), info, _fmt, ##__VA_ARGS__) + +#define guc_dbg (_guc, _fmt, ...) \ + guc_printk((_guc), dbg, _fmt, ##__VA_ARGS__) + +#define guc_err_ratelimited (_guc, _fmt, ...) \ + guc_printk((_guc), err_ratelimited, _fmt, ##__VA_ARGS__) + +#define guc_probe_error (_guc, _fmt, ...) \ + guc_printk((_guc), probe_error, _fmt, ##__VA_ARGS__) + +#define guc_WARN (_guc, _cond, _fmt, ...) \ + gt_WARN(guc_to_gt(_guc), _cond, "GUC: " _fmt, ##__VA_ARGS__) + +#define guc_WARN_ONCE (_guc, _cond, _fmt, ...) \ + gt_WARN_ONCE(guc_to_gt(_guc), _cond, "GUC: " _fmt, ##__VA_ARGS__) + +#define guc_WARN_ON (_guc, _cond) \ + gt_WARN(guc_to_gt(_guc), _cond, "%s(%s)", "guc_WARN_ON",
__stringify(_cond))drivers/gpu/drm/i915/gt/uc/intel_guc_print.h new file +3
-0+ +#define guc_WARN_ON_ONCE (_guc, _cond) \ + gt_WARN_ONCE(guc_to_gt(_guc), _cond, "%s(%s)","
guc_WARN_ON_ONCE",__stringify(_cond))drivers/gpu/drm/i915/gt/uc/intel_guc_print.h new file +2
-0+ +#endif /* __INTEL_GUC_PRINT__ */
PATCH 2/8 drm/i915/guc: Update GuC messages in intel_guc.c
In reply to Michal WajdeczkoUse new macros to have common prefix that also include GT#.
--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 31 +++++++++++++------------- 1 file changed, 15 insertions(+), 16 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +15 -16
@@ -11,6 +11,7 @@#include "intel_guc.h" #include "intel_guc_ads.h" #include "intel_guc_capture.h" +#include "intel_guc_print.h" #include "intel_guc_slpc.h" #include "intel_guc_submission.h" #include "i915_drv.h"
@@ -94,8 +95,8 @@ static void gen9_enable_guc_interrupts(struct intel_guc *guc)assert_rpm_wakelock_held (>->i915->runtime_pm);spin_lock_irq (gt->irq_lock); -WARN_ON_ONCE (intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & - gt->pm_guc_events); +guc_WARN_ON_ONCE (guc,intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & + gt->pm_guc_events);gen6_gt_pm_enable_irq (gt, gt->pm_guc_events);spin_unlock_irq (gt->irq_lock);
@@ -342,7 +343,7 @@ static void guc_init_params(struct intel_guc *guc) params[GUC_CTL_DEVID ] =guc_ctl_devid (guc);for (i =0 ; i <GUC_CTL_MAX_DWORDS ; i++) -DRM_DEBUG_DRIVER ("param[%2d] = %#x\n" , i, params[i]); +guc_dbg (guc,"param[%2d] = %#x\n" , i, params[i]); }/*
@@ -389,7 +390,6 @@ void intel_guc_dump_time_info(struct intel_guc *guc, struct drm_printer *p)int intel_guc_init (struct intel_guc *guc) { -struct intel_gt *gt =guc_to_gt (guc);int ret; ret =intel_uc_fw_init (&guc->fw);
@@ -451,7 +451,7 @@ int intel_guc_init(struct intel_guc *guc)intel_uc_fw_fini (&guc->fw); out:intel_uc_fw_change_status (&guc->fw,INTEL_UC_FIRMWARE_INIT_FAIL ); -i915_probe_error (gt->i915,"failed with %d\n" , ret); +guc_probe_error (guc,"failed with %pe\n" ,ERR_PTR (ret));return ret; }
@@ -480,7 +480,6 @@ void intel_guc_fini(struct intel_guc *guc)int intel_guc_send_mmio (struct intel_guc *guc,const u32 *request,u32 len,u32 *response_buf,u32 response_buf_size) { -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;struct intel_uncore *uncore =guc_to_gt (guc)->uncore;u32 header;int i;
@@ -515,7 +514,7 @@ int intel_guc_send_mmio(struct intel_guc *guc, const u32 *request, u32 len, 10, 10, &header);if (unlikely (ret)) { timeout: -drm_err (&i915->drm,"mmio request %#x: no reply %x\n" , +guc_err (guc,"mmio request %#x: no reply %x\n" , request[0 ], header); goto out; }
@@ -537,7 +536,7 @@ int intel_guc_send_mmio(struct intel_guc *guc, const u32 *request, u32 len,if (FIELD_GET (GUC_HXG_MSG_0_TYPE , header) ==GUC_HXG_TYPE_NO_RESPONSE_RETRY ) {u32 reason =FIELD_GET (GUC_HXG_RETRY_MSG_0_REASON , header); -drm_dbg (&i915->drm,"mmio request %#x: retrying, reason %u\n" , +guc_dbg (guc,"mmio request %#x: retrying, reason %u\n" , request[0 ], reason); goto retry; }
@@ -546,7 +545,7 @@ int intel_guc_send_mmio(struct intel_guc *guc, const u32 *request, u32 len,u32 hint =FIELD_GET (GUC_HXG_FAILURE_MSG_0_HINT , header);u32 error =FIELD_GET (GUC_HXG_FAILURE_MSG_0_ERROR , header); -drm_err (&i915->drm,"mmio request %#x: failure %x/%u\n" , +guc_err (guc,"mmio request %#x: failure %x/%u\n" , request[0 ], error, hint); ret = -ENXIO ; goto out;
@@ -554,7 +553,7 @@ int intel_guc_send_mmio(struct intel_guc *guc, const u32 *request, u32 len,if (FIELD_GET (GUC_HXG_MSG_0_TYPE , header) !=GUC_HXG_TYPE_RESPONSE_SUCCESS ) { proto: -drm_err (&i915->drm,"mmio request %#x: unexpected reply %#x\n" , +guc_err (guc,"mmio request %#x: unexpected reply %#x\n" , request[0 ], header); ret = -EPROTO ; goto out;
@@ -597,9 +596,9 @@ int intel_guc_to_host_process_recv_msg(struct intel_guc *guc, msg = payload[0 ] & guc->msg_enabled_mask;if (msg &INTEL_GUC_RECV_MSG_CRASH_DUMP_POSTED ) -drm_err (&guc_to_gt (guc)->i915->drm,"Received early GuC crash dump notification!\n" ); +guc_err (guc,"Received early GuC crash dump notification!\n" );if (msg &INTEL_GUC_RECV_MSG_EXCEPTION ) -drm_err (&guc_to_gt (guc)->i915->drm,"Received early GuC exception notification!\n" ); +guc_err (guc,"Received early GuC exception notification!\n" );return 0 ; }
@@ -653,7 +652,8 @@ int intel_guc_suspend(struct intel_guc *guc)*/ ret =intel_guc_send_mmio (guc, action,ARRAY_SIZE (action),NULL ,0 );if (ret) -DRM_ERROR ("GuC suspend: RESET_CLIENT action failed with error %d!\n" , ret); +guc_err (guc,"suspend: RESET_CLIENT action failed with %pe\n" , +ERR_PTR (ret)); }/* Signal that the GuC isn't running. */
@@ -828,12 +828,11 @@ static int __guc_action_self_cfg(struct intel_guc *guc, u16 key, u16 len, u64 vastatic int __guc_self_cfg (struct intel_guc *guc,u16 key,u16 len,u64 value) { -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;int err =__guc_action_self_cfg (guc, key, len, value);if (unlikely (err)) -i915_probe_error (i915,"Unsuccessful self-config (%pe) key %#hx value %#llx\n" , -ERR_PTR (err), key, value); +guc_probe_error (guc,"Unsuccessful self-config (%pe) key %#hx value %#llx\n" , +ERR_PTR (err), key, value);return err; }
Signature · 1 line
2.25.1
Re: [PATCH 2/8] drm/i915/guc: Update GuC messages in intel_guc.c
Quoted 102 lines · Michal Wajdeczko
Use new macros to have common prefix that also include GT#.
Signed-off-by Michal Wajdeczko <[email protected]>Cc John Harrison <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 31 +++++++++++++------------- 1 file changed, 15 insertions(+), 16 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc.c +9
-10@@ -11,6 +11,7 @@#include "intel_guc.h" #include "intel_guc_ads.h" #include "intel_guc_capture.h" +#include "intel_guc_print.h" #include "intel_guc_slpc.h" #include "intel_guc_submission.h" #include "i915_drv.h" @@ -94,8 +95,8 @@ static void gen9_enable_guc_interrupts(struct intel_guc *guc)assert_rpm_wakelock_held (>->i915->runtime_pm);spin_lock_irq (gt->irq_lock); -WARN_ON_ONCE (intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & - gt->pm_guc_events); +guc_WARN_ON_ONCE (guc,intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & + gt->pm_guc_events);gen6_gt_pm_enable_irq (gt, gt->pm_guc_events);spin_unlock_irq (gt->irq_lock);@@ -342,7 +343,7 @@ static void guc_init_params(struct intel_guc *guc) params[GUC_CTL_DEVID ] =guc_ctl_devid (guc);for (i =0 ; i <GUC_CTL_MAX_DWORDS ; i++) -DRM_DEBUG_DRIVER ("param[%2d] = %#x\n" , i, params[i]); +guc_dbg (guc,"param[%2d] = %#x\n" , i, params[i]); }/* @@ -389,7 +390,6 @@ void intel_guc_dump_time_info(struct intel_guc *guc, struct drm_printer *p)int intel_guc_init (struct intel_guc *guc) { -struct intel_gt *gt =guc_to_gt (guc);int ret; ret =intel_uc_fw_init (&guc->fw);@@ -451,7 +451,7 @@ int intel_guc_init(struct intel_guc *guc)intel_uc_fw_fini (&guc->fw); out:intel_uc_fw_change_status (&guc->fw,INTEL_UC_FIRMWARE_INIT_FAIL ); -i915_probe_error (gt->i915,"failed with %d\n" , ret); +guc_probe_error (guc,"failed with %pe\n" ,ERR_PTR (ret));return ret; }@@ -480,7 +480,6 @@ void intel_guc_fini(struct intel_guc *guc)int intel_guc_send_mmio (struct intel_guc *guc,const u32 *request,u32 len,u32 *response_buf,u32 response_buf_size) { -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;struct intel_uncore *uncore =guc_to_gt (guc)->uncore;u32 header;int i;@@ -515,7 +514,7 @@ int intel_guc_send_mmio(struct intel_guc *guc, const u32 *request, u32 len, 10, 10, &header);if (unlikely (ret)) { timeout: -drm_err (&i915->drm,"mmio request %#x: no reply %x\n" , +guc_err (guc,"mmio request %#x: no reply %x\n" , request[0 ], header); goto out; }@@ -537,7 +536,7 @@ int intel_guc_send_mmio(struct intel_guc *guc, const u32 *request, u32 len,if (FIELD_GET (GUC_HXG_MSG_0_TYPE , header) ==GUC_HXG_TYPE_NO_RESPONSE_RETRY ) {u32 reason =FIELD_GET (GUC_HXG_RETRY_MSG_0_REASON , header); -drm_dbg (&i915->drm,"mmio request %#x: retrying, reason %u\n" , +guc_dbg (guc,"mmio request %#x: retrying, reason %u\n" , request[0 ], reason); goto retry; }@@ -546,7 +545,7 @@ int intel_guc_send_mmio(struct intel_guc *guc, const u32 *request, u32 len,u32 hint =FIELD_GET (GUC_HXG_FAILURE_MSG_0_HINT , header);u32 error =FIELD_GET (GUC_HXG_FAILURE_MSG_0_ERROR , header); -drm_err (&i915->drm,"mmio request %#x: failure %x/%u\n" , +guc_err (guc,"mmio request %#x: failure %x/%u\n" , request[0 ], error, hint); ret = -ENXIO ; goto out;@@ -554,7 +553,7 @@ int intel_guc_send_mmio(struct intel_guc *guc, const u32 *request, u32 len,if (FIELD_GET (GUC_HXG_MSG_0_TYPE , header) !=GUC_HXG_TYPE_RESPONSE_SUCCESS ) { proto: -drm_err (&i915->drm,"mmio request %#x: unexpected reply %#x\n" , +guc_err (guc,"mmio request %#x: unexpected reply %#x\n" , request[0 ], header); ret = -EPROTO ; goto out;
drivers/gpu/drm/i915/gt/uc/intel_guc.c int intel_guc_to_host_process_recv_msg(struct intel_guc *guc, · line 601
Quoted 8 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +2
-2@@ -597,9 +596,9 @@ int intel_guc_to_host_process_recv_msg(struct intel_guc *guc, msg = payload[0 ] & guc->msg_enabled_mask;if (msg &INTEL_GUC_RECV_MSG_CRASH_DUMP_POSTED ) -drm_err (&guc_to_gt (guc)->i915->drm,"Received early GuC crash dump notification!\n" ); +guc_err (guc,"Received early GuC crash dump notification!\n" );if (msg &INTEL_GUC_RECV_MSG_EXCEPTION ) -drm_err (&guc_to_gt (guc)->i915->drm,"Received early GuC exception notification!\n" ); +guc_err (guc,"Received early GuC exception notification!\n" );
These two should drop the 'GUC' string from the message given that it is now a prefix.
John.
Quoted 28 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +4
-4return 0 ; }@@ -653,7 +652,8 @@ int intel_guc_suspend(struct intel_guc *guc)*/ ret =intel_guc_send_mmio (guc, action,ARRAY_SIZE (action),NULL ,0 );if (ret) -DRM_ERROR ("GuC suspend: RESET_CLIENT action failed with error %d!\n" , ret); +guc_err (guc,"suspend: RESET_CLIENT action failed with %pe\n" , +ERR_PTR (ret)); }/* Signal that the GuC isn't running. */ @@ -828,12 +828,11 @@ static int __guc_action_self_cfg(struct intel_guc *guc, u16 key, u16 len, u64 vastatic int __guc_self_cfg (struct intel_guc *guc,u16 key,u16 len,u64 value) { -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;int err =__guc_action_self_cfg (guc, key, len, value);if (unlikely (err)) -i915_probe_error (i915,"Unsuccessful self-config (%pe) key %#hx value %#llx\n" , -ERR_PTR (err), key, value); +guc_probe_error (guc,"Unsuccessful self-config (%pe) key %#hx value %#llx\n" , +ERR_PTR (err), key, value);return err; }
PATCH 3/8 drm/i915/guc: Update GuC messages in intel_guc_ads.c
In reply to Michal WajdeczkoUse new macros to have common prefix that also include GT#.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +4 -4
@@ -15,6 +15,7 @@#include "intel_guc_ads.h" #include "intel_guc_capture.h" #include "intel_guc_fwif.h" +#include "intel_guc_print.h" #include "intel_uc.h" #include "i915_drv.h"
@@ -427,7 +428,7 @@ static long guc_mmio_reg_state_create(struct intel_guc *guc) guc->ads_regset = temp_set.storage; -drm_dbg (&guc_to_gt (guc)->i915->drm,"Used %zu KB for temporary ADS regset\n" , +guc_dbg (guc,"Used %zu KB for temporary ADS regset\n" , (temp_set.storage_max *sizeof (struct guc_mmio_reg )) >>10 );return total *sizeof (struct guc_mmio_reg );
@@ -621,7 +622,7 @@ static void guc_init_golden_context(struct intel_guc *guc) engine =find_engine_state (gt, engine_class);if (!engine) { -drm_err (>->i915->drm,"No engine state recorded for class %d!\n" , +guc_err (guc,"No engine state recorded for class %d!\n" , engine_class);ads_blob_write (guc, ads.eng_state_size[guc_class],0 );ads_blob_write (guc, ads.golden_context_lrca[guc_class],0 );
@@ -646,7 +647,6 @@ static int guc_capture_prep_lists(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;u32 ads_ggtt, capture_offset, null_ggtt, total_size =0 ;struct guc_gt_system_info local_info;struct iosys_map info_map;
@@ -751,7 +751,7 @@ guc_capture_prep_lists(struct intel_guc *guc) }if (guc->ads_capture_size && guc->ads_capture_size !=PAGE_ALIGN (total_size)) -drm_warn (&i915->drm,"GuC->ADS->Capture alloc size changed from %d to %d\n" , +guc_warn (guc,"ADS capture alloc size changed from %d to %d\n" , guc->ads_capture_size,PAGE_ALIGN (total_size));return PAGE_ALIGN (total_size);
Signature · 1 line
2.25.1
Re: [PATCH 3/8] drm/i915/guc: Update GuC messages in intel_guc_ads.c
Quoted 4 lines · Michal Wajdeczko
Use new macros to have common prefix that also include GT#.
Signed-off-by Michal Wajdeczko <[email protected]>Cc John Harrison <[email protected]>
Quoted 51 lines
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +4
-4@@ -15,6 +15,7 @@#include "intel_guc_ads.h" #include "intel_guc_capture.h" #include "intel_guc_fwif.h" +#include "intel_guc_print.h" #include "intel_uc.h" #include "i915_drv.h" @@ -427,7 +428,7 @@ static long guc_mmio_reg_state_create(struct intel_guc *guc) guc->ads_regset = temp_set.storage; -drm_dbg (&guc_to_gt (guc)->i915->drm,"Used %zu KB for temporary ADS regset\n" , +guc_dbg (guc,"Used %zu KB for temporary ADS regset\n" , (temp_set.storage_max *sizeof (struct guc_mmio_reg )) >>10 );return total *sizeof (struct guc_mmio_reg );@@ -621,7 +622,7 @@ static void guc_init_golden_context(struct intel_guc *guc) engine =find_engine_state (gt, engine_class);if (!engine) { -drm_err (>->i915->drm,"No engine state recorded for class %d!\n" , +guc_err (guc,"No engine state recorded for class %d!\n" , engine_class);ads_blob_write (guc, ads.eng_state_size[guc_class],0 );ads_blob_write (guc, ads.golden_context_lrca[guc_class],0 );@@ -646,7 +647,6 @@ static int guc_capture_prep_lists(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;u32 ads_ggtt, capture_offset, null_ggtt, total_size =0 ;struct guc_gt_system_info local_info;struct iosys_map info_map;@@ -751,7 +751,7 @@ guc_capture_prep_lists(struct intel_guc *guc) }if (guc->ads_capture_size && guc->ads_capture_size !=PAGE_ALIGN (total_size)) -drm_warn (&i915->drm,"GuC->ADS->Capture alloc size changed from %d to %d\n" , +guc_warn (guc,"ADS capture alloc size changed from %d to %d\n" , guc->ads_capture_size,PAGE_ALIGN (total_size));return PAGE_ALIGN (total_size);
PATCH 4/8 drm/i915/guc: Update GuC messages in intel_guc_ct.c
In reply to Michal WajdeczkoUse new macros to have common prefix that also include GT#.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +4 -8
@@ -11,6 +11,7 @@#include "i915_drv.h" #include "intel_guc_ct.h" +#include "intel_guc_print.h" #include "gt/intel_gt.h" static inline struct intel_guc *ct_to_guc (struct intel_guc_ct *ct)
@@ -28,21 +29,16 @@ static inline struct drm_i915_private *ct_to_i915(struct intel_guc_ct *ct)return ct_to_gt (ct)->i915; } -static inline struct drm_device *ct_to_drm (struct intel_guc_ct *ct) -{ -return &ct_to_i915 (ct)->drm; -} -#define CT_ERROR (_ct, _fmt, ...) \ - drm_err(ct_to_drm(_ct), "CT: " _fmt, ##__VA_ARGS__) + guc_err(ct_to_guc(_ct), "CT: " _fmt, ##__VA_ARGS__)#ifdef CONFIG_DRM_I915_DEBUG_GUC #define CT_DEBUG (_ct, _fmt, ...) \ - drm_dbg(ct_to_drm(_ct), "CT: " _fmt, ##__VA_ARGS__) + guc_dbg(ct_to_guc(_ct), "CT: " _fmt, ##__VA_ARGS__)#else #define CT_DEBUG (...) do { } while (0)#endif #define CT_PROBE_ERROR (_ct, _fmt, ...) \ - i915_probe_error(ct_to_i915(ct), "CT: " _fmt, ##__VA_ARGS__) + guc_probe_error(ct_to_guc(ct), "CT: " _fmt, ##__VA_ARGS__)/** * DOC: CTB Blob
Signature · 1 line
2.25.1
kernel test robot
build botRe: [PATCH 4/8] drm/i915/guc: Update GuC messages in intel_guc_ct.c
Thank you for the patch! Perhaps something to improve:
Hi Michal,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
url: https://github.com/intel-lab-lkp/linux/commits/Michal-Wajdeczko/drm-i915-guc-Add-GuC-oriented-print-macros/20230121-004232 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip patch link: https://lore.kernel.org/r/20230120164050.1765-5-michal.wajdeczko%40intel.com patch subject: [PATCH 4/8] drm/i915/guc: Update GuC messages in intel_guc_ct.c config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20230121/[email protected]/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/e3ee219e703a4153b750288ac3e28cd2ea4130c1
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Michal-Wajdeczko/drm-i915-guc-Add-GuC-oriented-print-macros/20230121-004232 git checkout e3ee219e703a4153b750288ac3e28cd2ea4130c1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:27:40: warning: unused function 'ct_to_i915' [-Wunused-function]
static inline struct drm_i915_private *ct_to_i915(struct intel_guc_ct *ct)
^1 warning generated.
vim +/ct_to_i915 +27 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
6fb086e5e6ba82d Daniele Ceraolo Spurio 2021-06-02 26
6fb086e5e6ba82d Daniele Ceraolo Spurio 2021-06-02 @27 static inline struct drm_i915_private *ct_to_i915(struct intel_guc_ct *ct)
6fb086e5e6ba82d Daniele Ceraolo Spurio 2021-06-02 28 {
6fb086e5e6ba82d Daniele Ceraolo Spurio 2021-06-02 29 return ct_to_gt(ct)->i915;
6fb086e5e6ba82d Daniele Ceraolo Spurio 2021-06-02 30 }6fb086e5e6ba82d Daniele Ceraolo Spurio 2021-06-02 31
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
Re: [PATCH 4/8] drm/i915/guc: Update GuC messages in intel_guc_ct.c
In reply to Michal WajdeczkoQuoted 32 lines · Michal Wajdeczko
Use new macros to have common prefix that also include GT#.
Signed-off-by Michal Wajdeczko <[email protected]>Cc John Harrison <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +2
-6@@ -11,6 +11,7 @@#include "i915_drv.h" #include "intel_guc_ct.h" +#include "intel_guc_print.h" #include "gt/intel_gt.h" static inline struct intel_guc *ct_to_guc (struct intel_guc_ct *ct)@@ -28,21 +29,16 @@ static inline struct drm_i915_private *ct_to_i915(struct intel_guc_ct *ct)return ct_to_gt (ct)->i915; } -static inline struct drm_device *ct_to_drm (struct intel_guc_ct *ct) -{ -return &ct_to_i915 (ct)->drm; -} -#define CT_ERROR (_ct, _fmt, ...) \ - drm_err(ct_to_drm(_ct), "CT: " _fmt, ##__VA_ARGS__) + guc_err(ct_to_guc(_ct), "CT: " _fmt, ##__VA_ARGS__)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static inline struct drm_i915_private *ct_to_i915(struct intel_guc_ct *ct) · line 41
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +2
-2#ifdef CONFIG_DRM_I915_DEBUG_GUC #define CT_DEBUG (_ct, _fmt, ...) \ - drm_dbg(ct_to_drm(_ct), "CT: " _fmt, ##__VA_ARGS__) + guc_dbg(ct_to_guc(_ct), "CT: " _fmt, ##__VA_ARGS__)#else #define CT_DEBUG (...) do { } while (0)#endif #define CT_PROBE_ERROR (_ct, _fmt, ...) \ - i915_probe_error(ct_to_i915(ct), "CT: " _fmt, ##__VA_ARGS__) + guc_probe_error(ct_to_guc(ct), "CT: " _fmt, ##__VA_ARGS__)
ct_to_i915 is also now redundant and can be removed?
John.
Quoted 3 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +0
-0/** * DOC: CTB Blob
PATCH 5/8 drm/i915/guc: Update GuC messages in intel_guc_fw.c
In reply to Michal WajdeczkoUse new macros to have common prefix that also include GT#.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c +9 -8
@@ -13,6 +13,7 @@#include "gt/intel_gt_mcr.h" #include "gt/intel_gt_regs.h" #include "intel_guc_fw.h" +#include "intel_guc_print.h" #include "i915_drv.h" static void guc_prepare_xfer (struct intel_gt *gt)
@@ -103,8 +104,10 @@ static inline bool guc_ready(struct intel_uncore *uncore, u32 *status)return uk_val ==INTEL_GUC_LOAD_STATUS_READY ; } -static int guc_wait_ucode (struct intel_uncore *uncore) +static int guc_wait_ucode (struct intel_guc *guc) { +struct intel_gt *gt =guc_to_gt (guc); +struct intel_uncore *uncore = gt->uncore;u32 status;int ret;
@@ -127,10 +130,8 @@ static int guc_wait_ucode(struct intel_uncore *uncore)*/ ret =wait_for (guc_ready (uncore, &status),200 );if (ret) { -struct drm_device *drm = &uncore->i915->drm; - -drm_info (drm,"GuC load failed: status = 0x%08X\n" , status); - drm_info(drm, "GuC load failed: status: Reset = %d, " +guc_info (guc,"load failed: status = 0x%08X\n" , status); + guc_info(guc, "load failed: status: Reset = %d, " "BootROM = 0x%02X, UKernel = 0x%02X, " "MIA = 0x%02X, Auth = 0x%02X\n", REG_FIELD_GET(GS_MIA_IN_RESET, status),
@@ -140,12 +141,12 @@ static int guc_wait_ucode(struct intel_uncore *uncore) REG_FIELD_GET(GS_AUTH_STATUS_MASK, status));if ((status &GS_BOOTROM_MASK ) ==GS_BOOTROM_RSA_FAILED ) { -drm_info (drm,"GuC firmware signature verification failed\n" ); +guc_info (guc,"firmware signature verification failed\n" ); ret = -ENOEXEC ; }if (REG_FIELD_GET (GS_UKERNEL_MASK , status) ==INTEL_GUC_LOAD_STATUS_EXCEPTION ) { -drm_info (drm,"GuC firmware exception. EIP: %#x\n" , +guc_info (guc,"firmware exception. EIP: %#x\n" ,intel_uncore_read (uncore,SOFT_SCRATCH (13 ))); ret = -ENXIO ; }
@@ -194,7 +195,7 @@ int intel_guc_fw_upload(struct intel_guc *guc)if (ret) goto out; - ret =guc_wait_ucode (uncore); + ret =guc_wait_ucode (guc);if (ret) goto out;
Signature · 1 line
2.25.1
Re: [PATCH 5/8] drm/i915/guc: Update GuC messages in intel_guc_fw.c
Quoted 4 lines · Michal Wajdeczko
Use new macros to have common prefix that also include GT#.
Signed-off-by Michal Wajdeczko <[email protected]>Cc John Harrison <[email protected]>
Quoted 65 lines
--- drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c +9
-8@@ -13,6 +13,7 @@#include "gt/intel_gt_mcr.h" #include "gt/intel_gt_regs.h" #include "intel_guc_fw.h" +#include "intel_guc_print.h" #include "i915_drv.h" static void guc_prepare_xfer (struct intel_gt *gt)@@ -103,8 +104,10 @@ static inline bool guc_ready(struct intel_uncore *uncore, u32 *status)return uk_val ==INTEL_GUC_LOAD_STATUS_READY ; } -static int guc_wait_ucode (struct intel_uncore *uncore) +static int guc_wait_ucode (struct intel_guc *guc) { +struct intel_gt *gt =guc_to_gt (guc); +struct intel_uncore *uncore = gt->uncore;u32 status;int ret;@@ -127,10 +130,8 @@ static int guc_wait_ucode(struct intel_uncore *uncore)*/ ret =wait_for (guc_ready (uncore, &status),200 );if (ret) { -struct drm_device *drm = &uncore->i915->drm; - -drm_info (drm,"GuC load failed: status = 0x%08X\n" , status); - drm_info(drm, "GuC load failed: status: Reset = %d, " +guc_info (guc,"load failed: status = 0x%08X\n" , status); + guc_info(guc, "load failed: status: Reset = %d, " "BootROM = 0x%02X, UKernel = 0x%02X, " "MIA = 0x%02X, Auth = 0x%02X\n", REG_FIELD_GET(GS_MIA_IN_RESET, status),@@ -140,12 +141,12 @@ static int guc_wait_ucode(struct intel_uncore *uncore) REG_FIELD_GET(GS_AUTH_STATUS_MASK, status));if ((status &GS_BOOTROM_MASK ) ==GS_BOOTROM_RSA_FAILED ) { -drm_info (drm,"GuC firmware signature verification failed\n" ); +guc_info (guc,"firmware signature verification failed\n" ); ret = -ENOEXEC ; }if (REG_FIELD_GET (GS_UKERNEL_MASK , status) ==INTEL_GUC_LOAD_STATUS_EXCEPTION ) { -drm_info (drm,"GuC firmware exception. EIP: %#x\n" , +guc_info (guc,"firmware exception. EIP: %#x\n" ,intel_uncore_read (uncore,SOFT_SCRATCH (13 ))); ret = -ENXIO ; }@@ -194,7 +195,7 @@ int intel_guc_fw_upload(struct intel_guc *guc)if (ret) goto out; - ret =guc_wait_ucode (uncore); + ret =guc_wait_ucode (guc);if (ret) goto out;
PATCH 6/8 drm/i915/guc: Update GuC messages in intel_guc_log.c
In reply to Michal WajdeczkoUse new macros to have common prefix that also include GT#.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 35 +++++++++++----------- 1 file changed, 18 insertions(+), 17 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +18 -17
@@ -12,6 +12,7 @@#include "i915_memcpy.h" #include "intel_guc_capture.h" #include "intel_guc_log.h" +#include "intel_guc_print.h" #if defined(CONFIG_DRM_I915_DEBUG_GUC )#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE SZ_2M
@@ -39,7 +40,6 @@ struct guc_log_section {static void _guc_log_init_sizes (struct intel_guc_log *log) {struct intel_guc *guc =log_to_guc (log); -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;static const struct guc_log_section sections[GUC_LOG_SECTIONS_LIMIT ] = { {GUC_LOG_CRASH_MASK >>GUC_LOG_CRASH_SHIFT ,
@@ -82,12 +82,12 @@ static void _guc_log_init_sizes(struct intel_guc_log *log) }if (!IS_ALIGNED (log->sizes[i].bytes, log->sizes[i].units)) -drm_err (&i915->drm,"Mis-aligned GuC log %s size: 0x%X vs 0x%X!" , +guc_err (guc,"Mis-aligned log %s size: 0x%X vs 0x%X!" , sections[i].name, log->sizes[i].bytes, log->sizes[i].units); log->sizes[i].count = log->sizes[i].bytes / log->sizes[i].units;if (!log->sizes[i].count) { -drm_err (&i915->drm,"Zero GuC log %s size!" , sections[i].name); +guc_err (guc,"Zero log %s size!" , sections[i].name); }else {/* Size is +1 unit */ log->sizes[i].count--;
@@ -95,14 +95,14 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)/* Clip to field size */ if (log->sizes[i].count > sections[i].max) { -drm_err (&i915->drm,"GuC log %s size too large: %d vs %d!" , +guc_err (guc,"log %s size too large: %d vs %d!" , sections[i].name, log->sizes[i].count +1 , sections[i].max +1 ); log->sizes[i].count = sections[i].max; } }if (log->sizes[GUC_LOG_SECTIONS_CRASH ].units != log->sizes[GUC_LOG_SECTIONS_DEBUG ].units) { -drm_err (&i915->drm,"Unit mis-match for GuC log crash and debug sections: %d vs %d!" , +guc_err (guc,"Unit mis-match for GuC log crash and debug sections: %d vs %d!" , log->sizes[GUC_LOG_SECTIONS_CRASH ].units, log->sizes[GUC_LOG_SECTIONS_DEBUG ].units); log->sizes[GUC_LOG_SECTIONS_CRASH ].units = log->sizes[GUC_LOG_SECTIONS_DEBUG ].units;
@@ -374,6 +374,7 @@ size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log,static void _guc_log_copy_debuglogs_for_relay (struct intel_guc_log *log) { +struct intel_guc *guc =log_to_guc (log);unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt;struct guc_log_buffer_state *log_buf_state, *log_buf_snapshot_state;struct guc_log_buffer_state log_buf_state_local;
@@ -383,7 +384,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)mutex_lock (&log->relay.lock); -if (WARN_ON (!intel_guc_log_relay_created (log))) +if (guc_WARN_ON (guc, !intel_guc_log_relay_created (log))) goto out_unlock;/* Get the pointer to shared GuC log buffer */
@@ -398,7 +399,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)* Used rate limited to avoid deluge of messages, logs might be * getting consumed by User at a slow rate. */ -DRM_ERROR_RATELIMITED ("no sub-buffer to copy general logs\n" ); +guc_err_ratelimited (guc,"no sub-buffer to copy general logs\n" ); log->relay.full_count++; goto out_unlock;
@@ -451,7 +452,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log) write_offset = buffer_size; }else if (unlikely ((read_offset > buffer_size) || (write_offset > buffer_size))) { -DRM_ERROR ("invalid log buffer state\n" ); +guc_err (guc,"invalid log buffer state\n" );/* copy whole buffer as offsets are unreliable */ read_offset =0 ; write_offset = buffer_size;
@@ -547,7 +548,7 @@ static int guc_log_relay_create(struct intel_guc_log *log) subbuf_size, n_subbufs, &relay_callbacks, dev_priv);if (!guc_log_relay_chan) { -DRM_ERROR ("Couldn't create relay chan for GuC logging\n" ); +guc_err (guc,"Couldn't create relay channel for GuC logging\n" ); ret = -ENOMEM ;return ret;
@@ -596,7 +597,7 @@ static u32 __get_default_log_level(struct intel_guc_log *log) }if (i915->params.guc_log_level >GUC_LOG_LEVEL_MAX ) { -DRM_WARN ("Incompatible option detected: %s=%d, %s!\n" , +guc_warn (guc,"Incompatible option detected: %s=%d, %s!\n" ,"guc_log_level" , i915->params.guc_log_level,"verbosity too high" ); return (IS_ENABLED(CONFIG_DRM_I915_DEBUG) ||
@@ -641,15 +642,15 @@ int intel_guc_log_create(struct intel_guc_log *log) log->buf_addr = vaddr; log->level =__get_default_log_level (log); -DRM_DEBUG_DRIVER ("guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n" , - log->level,str_enabled_disabled (log->level), -str_yes_no (GUC_LOG_LEVEL_IS_VERBOSE (log->level)), -GUC_LOG_LEVEL_TO_VERBOSITY (log->level)); +guc_dbg (guc,"guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n" , + log->level,str_enabled_disabled (log->level), +str_yes_no (GUC_LOG_LEVEL_IS_VERBOSE (log->level)), +GUC_LOG_LEVEL_TO_VERBOSITY (log->level));return 0 ; err: -DRM_ERROR ("Failed to allocate or map GuC log buffer. %d\n" , ret); +guc_err (guc,"Failed to allocate or map GuC log buffer %pe\n" ,ERR_PTR (ret));return ret; }
@@ -687,7 +688,7 @@ int intel_guc_log_set_level(struct intel_guc_log *log, u32 level)GUC_LOG_LEVEL_IS_ENABLED (level), GUC_LOG_LEVEL_TO_VERBOSITY(level));if (ret) { -DRM_DEBUG_DRIVER ("guc_log_control action failed %d\n" , ret); +guc_dbg (guc,"guc_log_control action failed %pe\n" ,ERR_PTR (ret)); goto out_unlock; }
@@ -905,7 +906,7 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p, map =i915_gem_object_pin_map_unlocked (obj,I915_MAP_WC );if (IS_ERR (map)) { -DRM_DEBUG ("Failed to pin object\n" ); +guc_dbg (guc,"Failed to pin object\n" );drm_puts (p,"(log data unaccessible)\n" );free_page ((unsigned long )page);return PTR_ERR (map);
Signature · 1 line
2.25.1
Re: [PATCH 6/8] drm/i915/guc: Update GuC messages in intel_guc_log.c
Quoted 47 lines · Michal Wajdeczko
Use new macros to have common prefix that also include GT#.
Signed-off-by Michal Wajdeczko <[email protected]>Cc John Harrison <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 35 +++++++++++----------- 1 file changed, 18 insertions(+), 17 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +3
-3@@ -12,6 +12,7 @@#include "i915_memcpy.h" #include "intel_guc_capture.h" #include "intel_guc_log.h" +#include "intel_guc_print.h" #if defined(CONFIG_DRM_I915_DEBUG_GUC )#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE SZ_2M@@ -39,7 +40,6 @@ struct guc_log_section {static void _guc_log_init_sizes (struct intel_guc_log *log) {struct intel_guc *guc =log_to_guc (log); -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;static const struct guc_log_section sections[GUC_LOG_SECTIONS_LIMIT ] = { {GUC_LOG_CRASH_MASK >>GUC_LOG_CRASH_SHIFT ,@@ -82,12 +82,12 @@ static void _guc_log_init_sizes(struct intel_guc_log *log) }if (!IS_ALIGNED (log->sizes[i].bytes, log->sizes[i].units)) -drm_err (&i915->drm,"Mis-aligned GuC log %s size: 0x%X vs 0x%X!" , +guc_err (guc,"Mis-aligned log %s size: 0x%X vs 0x%X!" , sections[i].name, log->sizes[i].bytes, log->sizes[i].units); log->sizes[i].count = log->sizes[i].bytes / log->sizes[i].units;if (!log->sizes[i].count) { -drm_err (&i915->drm,"Zero GuC log %s size!" , sections[i].name); +guc_err (guc,"Zero log %s size!" , sections[i].name); }else {/* Size is +1 unit */ log->sizes[i].count--;@@ -95,14 +95,14 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)/* Clip to field size */ if (log->sizes[i].count > sections[i].max) {
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c static void _guc_log_init_sizes(struct intel_guc_log *log) · line 105
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +2
-2-drm_err (&i915->drm,"GuC log %s size too large: %d vs %d!" , +guc_err (guc,"log %s size too large: %d vs %d!" , sections[i].name, log->sizes[i].count +1 , sections[i].max +1 ); log->sizes[i].count = sections[i].max; } }if (log->sizes[GUC_LOG_SECTIONS_CRASH ].units != log->sizes[GUC_LOG_SECTIONS_DEBUG ].units) { - drm_err(&i915->drm, "Unit mis-match for GuC log crash and debug sections: %d vs %d!", + guc_err(guc, "Unit mis-match for GuC log crash and debug sections: %d vs %d!",
-> "for log, crash and debug sections"
Quoted 39 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +4
-3log->sizes[GUC_LOG_SECTIONS_CRASH ].units, log->sizes[GUC_LOG_SECTIONS_DEBUG].units); log->sizes[GUC_LOG_SECTIONS_CRASH ].units = log->sizes[GUC_LOG_SECTIONS_DEBUG ].units;@@ -374,6 +374,7 @@ size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log,static void _guc_log_copy_debuglogs_for_relay (struct intel_guc_log *log) { +struct intel_guc *guc =log_to_guc (log);unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt;struct guc_log_buffer_state *log_buf_state, *log_buf_snapshot_state;struct guc_log_buffer_state log_buf_state_local;@@ -383,7 +384,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)mutex_lock (&log->relay.lock); -if (WARN_ON (!intel_guc_log_relay_created (log))) +if (guc_WARN_ON (guc, !intel_guc_log_relay_created (log))) goto out_unlock;/* Get the pointer to shared GuC log buffer */ @@ -398,7 +399,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)* Used rate limited to avoid deluge of messages, logs might be * getting consumed by User at a slow rate. */ -DRM_ERROR_RATELIMITED ("no sub-buffer to copy general logs\n" ); +guc_err_ratelimited (guc,"no sub-buffer to copy general logs\n" ); log->relay.full_count++; goto out_unlock;@@ -451,7 +452,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log) write_offset = buffer_size; }else if (unlikely ((read_offset > buffer_size) || (write_offset > buffer_size))) { -DRM_ERROR ("invalid log buffer state\n" ); +guc_err (guc,"invalid log buffer state\n" );/* copy whole buffer as offsets are unreliable */ read_offset =0 ; write_offset = buffer_size;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c static int guc_log_relay_create(struct intel_guc_log *log) · line 551
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-1@@ -547,7 +548,7 @@ static int guc_log_relay_create(struct intel_guc_log *log) subbuf_size, n_subbufs, &relay_callbacks, dev_priv);if (!guc_log_relay_chan) { -DRM_ERROR ("Couldn't create relay chan for GuC logging\n" ); +guc_err (guc,"Couldn't create relay channel for GuC logging\n" );
Again, no need for 'GuC' string.
Quoted 20 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-5ret = -ENOMEM ;return ret;@@ -596,7 +597,7 @@ static u32 __get_default_log_level(struct intel_guc_log *log) }if (i915->params.guc_log_level >GUC_LOG_LEVEL_MAX ) { -DRM_WARN ("Incompatible option detected: %s=%d, %s!\n" , +guc_warn (guc,"Incompatible option detected: %s=%d, %s!\n" ,"guc_log_level" , i915->params.guc_log_level,"verbosity too high" ); return (IS_ENABLED(CONFIG_DRM_I915_DEBUG) ||@@ -641,15 +642,15 @@ int intel_guc_log_create(struct intel_guc_log *log) log->buf_addr = vaddr; log->level =__get_default_log_level (log); -DRM_DEBUG_DRIVER ("guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n" , - log->level,str_enabled_disabled (log->level), -str_yes_no (GUC_LOG_LEVEL_IS_VERBOSE (log->level)), -GUC_LOG_LEVEL_TO_VERBOSITY (log->level));
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c int intel_guc_log_create(struct intel_guc_log *log) · line 653
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +5
-1+guc_dbg (guc,"guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n" , + log->level,str_enabled_disabled (log->level), +str_yes_no (GUC_LOG_LEVEL_IS_VERBOSE (log->level)), +GUC_LOG_LEVEL_TO_VERBOSITY (log->level));return 0 ; err: -DRM_ERROR ("Failed to allocate or map GuC log buffer. %d\n" , ret); +guc_err (guc,"Failed to allocate or map GuC log buffer %pe\n" ,ERR_PTR (ret));
Redundant 'GuC' again.
Quoted 13 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-1return ret; }@@ -687,7 +688,7 @@ int intel_guc_log_set_level(struct intel_guc_log *log, u32 level)GUC_LOG_LEVEL_IS_ENABLED (level), GUC_LOG_LEVEL_TO_VERBOSITY(level));if (ret) { -DRM_DEBUG_DRIVER ("guc_log_control action failed %d\n" , ret); +guc_dbg (guc,"guc_log_control action failed %pe\n" ,ERR_PTR (ret)); goto out_unlock; }
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p, · line 909
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-1@@ -905,7 +906,7 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p, map =i915_gem_object_pin_map_unlocked (obj,I915_MAP_WC );if (IS_ERR (map)) { -DRM_DEBUG ("Failed to pin object\n" ); +guc_dbg (guc,"Failed to pin object\n" );
Would be useful to say which object! Maybe change to "Failed to pin log object"?
John.
Quoted 3 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +0
-0drm_puts (p,"(log data unaccessible)\n" );free_page ((unsigned long )page);return PTR_ERR (map);
Re: [PATCH 6/8] drm/i915/guc: Update GuC messages in intel_guc_log.c
Quoted 58 lines · John Harrison
Quoted 57 lines · Michal Wajdeczko
Use new macros to have common prefix that also include GT#.
Signed-off-by Michal Wajdeczko <[email protected]>Cc John Harrison <[email protected]>---
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c| 35 +++++++++++-----------1 file changed, 18 insertions(+), 17 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-1@@ -12,6 +12,7 @@ #include "i915_memcpy.h" #include "intel_guc_capture.h" #include "intel_guc_log.h" +#include "intel_guc_print.h" #if defined(CONFIG_DRM_I915_DEBUG_GUC) #define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE SZ_2M@@ -39,7 +40,6 @@ struct guc_log_section { static void _guc_log_init_sizes(struct intel_guc_log *log) { struct intel_guc *guc = log_to_guc(log); - struct drm_i915_private *i915 = guc_to_gt(guc)->i915;static const struct
guc_log_sectionsections[GUC_LOG_SECTIONS_LIMIT] = {
{
GUC_LOG_CRASH_MASK>>GUC_LOG_CRASH_SHIFT,drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-1@@ -82,12 +82,12 @@ static void _guc_log_init_sizes(struct intel_guc_log *log) } if (!IS_ALIGNED(log->sizes[i].bytes, log->sizes[i].units)) - drm_err(&i915->drm, "Mis-aligned GuC log %s size: 0x%X vs 0x%X!", + guc_err(guc, "Mis-aligned log %s size: 0x%X vs 0x%X!", sections[i].name, log->sizes[i].bytes, log->sizes[i].units);log->sizes[i].count = log->sizes[i].bytes / log->sizes[i].units;
if (!log->sizes[i].count) {
-drm_err(&i915->drm, "Zero GuC log %s size!", sections[i].name);
+guc_err(guc, "Zero log %s size!", sections[i].name); } else {
/* Size is +1 unit */ log->sizes[i].count--;drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-1@@ -95,14 +95,14 @@ static void _guc_log_init_sizes(struct intel_guc_log *log) /* Clip to field size */ if (log->sizes[i].count > sections[i].max) { - drm_err(&i915->drm, "GuC log %s size too large: %d vs %d!", + guc_err(guc, "log %s size too large: %d vs %d!", sections[i].name, log->sizes[i].count + 1, sections[i].max +1 ); log->sizes[i].count = sections[i].max; }
Quoted 8 lines
Quoted 7 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +0
-0}if (log->sizes[GUC_LOG_SECTIONS_CRASH].units != log->sizes[GUC_LOG_SECTIONS_DEBUG].units) {
- drm_err(&i915->drm, "Unit mis-match for GuC log crash and debug sections: %d vs %d!",
+ guc_err(guc, "Unit mis-match for GuC log crash and debug
sections: %d vs %d!",-> "for log, crash and debug sections"
hmm, not sure, message seems to be about mismatch between just two buffers/sections, so maybe better to rephrase and use section names:
guc_err("Unit mis-match between log sections: %s = %d vs %s = %d\n",
log->sizes[GUC_LOG_SECTIONS_CRASH].name, log->sizes[GUC_LOG_SECTIONS_CRASH].units, log->sizes[GUC_LOG_SECTIONS_DEBUG].name, log->sizes[GUC_LOG_SECTIONS_DEBUG].units);
Quoted 100 lines
Quoted 44 lines
log->sizes[GUC_LOG_SECTIONS_CRASH].units, log->sizes[GUC_LOG_SECTIONS_DEBUG].units); log->sizes[GUC_LOG_SECTIONS_CRASH].units = log->sizes[GUC_LOG_SECTIONS_DEBUG].units;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +0
-0@@ -374,6 +374,7 @@ size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log,static void
_guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)
{
+ structintel_guc*guc =log_to_guc(log);
unsigned intbuffer_size,read_offset,write_offset,bytes_to_copy,full_cnt;
structguc_log_buffer_state*log_buf_state,*log_buf_snapshot_state;
structguc_log_buffer_statelog_buf_state_local;drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +2
-1@@ -383,7 +384,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log) mutex_lock(&log->relay.lock); - if (WARN_ON(!intel_guc_log_relay_created(log))) + if (guc_WARN_ON(guc, !intel_guc_log_relay_created(log))) goto out_unlock; /* Get the pointer to shared GuC log buffer */@@ -398,7 +399,7 @@ static void_guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log) * Used rate limited to avoid deluge of messages, logs might be * getting consumed by User at a slow rate. */ - DRM_ERROR_RATELIMITED("no sub-buffer to copy general logs\n"); + guc_err_ratelimited(guc, "no sub-buffer to copy general logs\n"); log->relay.full_count++;goto
out_unlock;drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-1@@ -451,7 +452,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log) write_offset = buffer_size; } else if (unlikely((read_offset > buffer_size) || (write_offset > buffer_size))) { - DRM_ERROR("invalid log buffer state\n"); + guc_err(guc, "invalid log buffer state\n"); /* copy whole buffer as offsets are unreliable */ read_offset = 0;
write_offset=buffer_size;drivers/gpu/drm/i915/gt/uc/intel_guc_log.c static int guc_log_relay_create(struct · line 552
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-1@@ -547,7 +548,7 @@ static int guc_log_relay_create(struct intel_guc_log *log) subbuf_size, n_subbufs, &relay_callbacks, dev_priv); if (!guc_log_relay_chan) { - DRM_ERROR("Couldn't create relay chan for GuC logging\n"); + guc_err(guc, "Couldn't create relay channel for GuC logging\n");Again, no need for 'GuC' string.
Quoted 24 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-1ret = -ENOMEM; return ret;@@ -596,7 +597,7 @@ static u32 __get_default_log_level(struct intel_guc_log *log) } if (i915->params.guc_log_level > GUC_LOG_LEVEL_MAX) { - DRM_WARN("Incompatible option detected: %s=%d, %s!\n", + guc_warn(guc, "Incompatible option detected: %s=%d, %s!\n", "guc_log_level", i915->params.guc_log_level, "verbosity too high");return (
IS_ENABLED(CONFIG_DRM_I915_DEBUG)||drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +4
-4@@ -641,15 +642,15 @@ int intel_guc_log_create(struct intel_guc_log *log) log->buf_addr = vaddr; log->level = __get_default_log_level(log); - DRM_DEBUG_DRIVER("guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n", - log->level, str_enabled_disabled(log->level), - str_yes_no(GUC_LOG_LEVEL_IS_VERBOSE(log->level)), - GUC_LOG_LEVEL_TO_VERBOSITY(log->level)); + guc_dbg(guc, "guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n", + log->level, str_enabled_disabled(log->level), + str_yes_no(GUC_LOG_LEVEL_IS_VERBOSE(log->level)), + GUC_LOG_LEVEL_TO_VERBOSITY(log->level)); return 0;Quoted 4 lines
err:
- DRM_ERROR("Failed to allocate or map GuC log buffer. %d\n", ret); +guc_err(guc, "Failed to allocate or map GuC log buffer %pe\n", ERR_PTR(ret));Redundant 'GuC' again.
Quoted 10 lines
return ret;
}
@@ -687,7 +688,7 @@ intintel_guc_log_set_level(struct intel_guc_log *log, u32 level)
GUC_LOG_LEVEL_IS_ENABLED(level),GUC_LOG_LEVEL_TO_VERBOSITY(level)); if (ret) {
-DRM_DEBUG_DRIVER("guc_log_control action failed %d\n", ret); +guc_dbg(guc, "guc_log_control action failed %pe\n", ERR_PTR(ret));Quoted 8 lines
goto
out_unlock;
}
@@ -905,7 +906,7 @@ int intel_guc_log_dump(structintel_guc_log*log, structdrm_printer*p,
map =i915_gem_object_pin_map_unlocked(obj, I915_MAP_WC); if (IS_ERR(map)) {
-DRM_DEBUG("Failed to pin object\n");
+guc_dbg(guc, "Failed to pin object\n");
Quoted 2 lines
Would be useful to say which object! Maybe change to "Failed to pin log object"?
ok, will also add %pe to see the actual error
Michal
Quoted 7 lines
John.
Quoted 3 lines
drm_puts(p, "(log data unaccessible)\n");free_page((unsigned long)page); returnPTR_ERR(map);
PATCH 7/8 drm/i915/guc: Update GuC messages in intel_guc_submission.c
In reply to Michal WajdeczkoUse new macros to have common prefix that also include GT#.
--- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 60 ++++++++----------- 1 file changed, 26 insertions(+), 34 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +26 -34
@@ -27,6 +27,7 @@#include "intel_guc_ads.h" #include "intel_guc_capture.h" +#include "intel_guc_print.h" #include "intel_guc_submission.h" #include "i915_drv.h"
@@ -1443,8 +1444,7 @@ static void guc_init_engine_stats(struct intel_guc *guc)int ret =guc_action_enable_usage_stats (guc);if (ret) -drm_err (>->i915->drm, -"Failed to enable usage stats: %d!\n" , ret); +guc_err (guc,"Failed to enable usage stats: %pe\n" ,ERR_PTR (ret)); } }
@@ -3585,8 +3585,7 @@ static int guc_request_alloc(struct i915_request *rq)intel_context_sched_disable_unpin (ce); else if (intel_context_is_closed(ce)) if (wait_for(context_close_done(ce), 1500)) - drm_warn(&guc_to_gt(guc)->i915->drm, - "timed out waiting on context sched close before realloc\n"); + guc_warn(guc, "timed out waiting on context sched close before realloc\n");/* * Call pin_guc_id here rather than in the pinning step as with * dma_resv, contexts can be repeatedly pinned / unpinned trashing the
@@ -4349,11 +4348,14 @@ static int __guc_action_set_scheduling_policies(struct intel_guc *guc, ret =intel_guc_send (guc, (u32 *)&policy->h2g,__guc_scheduling_policy_action_size (policy)); -if (ret <0 ) +if (ret <0 ) { +guc_probe_error (guc,"Failed to configure global scheduling policies: %pe!\n" , +ERR_PTR (ret));return ret; + }if (ret != policy->count) { -drm_warn (&guc_to_gt (guc)->i915->drm,"GuC global scheduler policy processed %d of %d KLVs!" , +guc_warn (guc,"global scheduler policy processed %d of %d KLVs!" , ret, policy->count);if (ret > policy->count)return -EPROTO ;
@@ -4367,7 +4369,7 @@ static int guc_init_global_schedule_policy(struct intel_guc *guc)struct scheduling_policy policy;struct intel_gt *gt =guc_to_gt (guc);intel_wakeref_t wakeref; -int ret =0 ; +int ret;if (GUC_SUBMIT_VER (guc) <MAKE_GUC_VER (1 ,1 ,0 ))return 0 ;
@@ -4385,10 +4387,6 @@ static int guc_init_global_schedule_policy(struct intel_guc *guc) yield, ARRAY_SIZE(yield)); ret =__guc_action_set_scheduling_policies (guc, &policy); -if (ret) -i915_probe_error (gt->i915, -"Failed to configure global scheduling policies: %pe!\n" , -ERR_PTR (ret)); }return ret;
@@ -4487,21 +4485,18 @@ g2h_context_lookup(struct intel_guc *guc, u32 ctx_id)struct intel_context *ce;if (unlikely (ctx_id >=GUC_MAX_CONTEXT_ID )) { -drm_err (&guc_to_gt (guc)->i915->drm, -"Invalid ctx_id %u\n" , ctx_id); +guc_err (guc,"Invalid ctx_id %u\n" , ctx_id);return NULL ; } ce =__get_context (guc, ctx_id);if (unlikely (!ce)) { -drm_err (&guc_to_gt (guc)->i915->drm, -"Context is NULL, ctx_id %u\n" , ctx_id); +guc_err (guc,"Context is NULL, ctx_id %u\n" , ctx_id);return NULL ; }if (unlikely (intel_context_is_child (ce))) { -drm_err (&guc_to_gt (guc)->i915->drm, -"Context is child, ctx_id %u\n" , ctx_id); +guc_err (guc,"Context is child, ctx_id %u\n" , ctx_id);return NULL ; }
@@ -4516,7 +4511,7 @@ int intel_guc_deregister_done_process_msg(struct intel_guc *guc,u32 ctx_id;if (unlikely (len <1 )) { -drm_err (&guc_to_gt (guc)->i915->drm,"Invalid length %u\n" , len); +guc_err (guc,"Invalid length %u\n" , len);return -EPROTO ; } ctx_id = msg[0 ];
@@ -4568,7 +4563,7 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,u32 ctx_id;if (unlikely (len <2 )) { -drm_err (&guc_to_gt (guc)->i915->drm,"Invalid length %u\n" , len); +guc_err (guc,"Invalid length %u\n" , len);return -EPROTO ; } ctx_id = msg[0 ];
@@ -4580,8 +4575,7 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,if (unlikely (context_destroyed (ce) || (!context_pending_enable (ce) && !context_pending_disable (ce)))) { -drm_err (&guc_to_gt (guc)->i915->drm, -"Bad context sched_state 0x%x, ctx_id %u\n" , +guc_err (guc,"Bad context sched_state 0x%x, ctx_id %u\n" , ce->guc_state.sched_state, ctx_id);return -EPROTO ; }
@@ -4669,7 +4663,7 @@ static void guc_handle_context_reset(struct intel_guc *guc,capture_error_state (guc, ce);guc_context_replay (ce); }else { -drm_info (&guc_to_gt (guc)->i915->drm, +guc_info (guc,"Ignoring context reset notification of exiting context 0x%04X on %s" , ce->guc_id.id, ce->engine->name); }
@@ -4683,7 +4677,7 @@ int intel_guc_context_reset_process_msg(struct intel_guc *guc,int ctx_id;if (unlikely (len !=1 )) { -drm_err (&guc_to_gt (guc)->i915->drm,"Invalid length %u" , len); +guc_err (guc,"Invalid length %u" , len);return -EPROTO ; }
@@ -4716,13 +4710,13 @@ int intel_guc_error_capture_process_msg(struct intel_guc *guc,u32 status;if (unlikely (len !=1 )) { -drm_dbg (&guc_to_gt (guc)->i915->drm,"Invalid length %u" , len); +guc_dbg (guc,"Invalid length %u" , len);return -EPROTO ; } status = msg[0 ] &INTEL_GUC_STATE_CAPTURE_EVENT_STATUS_MASK ;if (status ==INTEL_GUC_STATE_CAPTURE_EVENT_STATUS_NOSPACE ) -drm_warn (&guc_to_gt (guc)->i915->drm,"G2H-Error capture no space" ); +guc_warn (guc,"G2H-Error capture no space" );intel_guc_capture_process (guc);
@@ -4765,13 +4759,12 @@ int intel_guc_engine_failure_process_msg(struct intel_guc *guc, const u32 *msg, u32 len) {struct intel_engine_cs *engine; -struct intel_gt *gt =guc_to_gt (guc);u8 guc_class, instance;u32 reason;unsigned long flags;if (unlikely (len !=3 )) { -drm_err (>->i915->drm,"Invalid length %u" , len); +guc_err (guc,"Invalid length %u" , len);return -EPROTO ; }
@@ -4781,8 +4774,7 @@ int intel_guc_engine_failure_process_msg(struct intel_guc *guc, engine =intel_guc_lookup_engine (guc, guc_class, instance);if (unlikely (!engine)) { -drm_err (>->i915->drm, -"Invalid engine %d:%d" , guc_class, instance); +guc_err (guc,"Invalid engine %d:%d" , guc_class, instance);return -EPROTO ; }
@@ -4790,7 +4782,7 @@ int intel_guc_engine_failure_process_msg(struct intel_guc *guc,* This is an unexpected failure of a hardware feature. So, log a real * error message not just the informational that comes with the reset. */ -drm_err (>->i915->drm,"GuC engine reset request failed on %d:%d (%s) because 0x%08X" , +guc_err (guc,"GuC engine reset request failed on %d:%d (%s) because 0x%08X" , guc_class, instance, engine->name, reason);spin_lock_irqsave (&guc->submission_state.lock, flags);
@@ -5342,8 +5334,8 @@ guc_create_virtual(struct intel_engine_cs **siblings, unsigned int count,GEM_BUG_ON (!is_power_of_2 (sibling->mask));if (sibling->mask & ve->base.mask) { -DRM_DEBUG ("duplicate %s entry in load balancer\n" , - sibling->name); +guc_dbg (guc,"duplicate %s entry in load balancer\n" , + sibling->name); err = -EINVAL ; goto err_put; }
@@ -5352,8 +5344,8 @@ guc_create_virtual(struct intel_engine_cs **siblings, unsigned int count, ve->base.logical_mask |= sibling->logical_mask;if (n !=0 && ve->base.class != sibling->class) { -DRM_DEBUG ("invalid mixing of engine class, sibling %d, already %d\n" , - sibling->class, ve->base.class); +guc_dbg (guc,"invalid mixing of engine class, sibling %d, already %d\n" , + sibling->class, ve->base.class); err = -EINVAL ; goto err_put; }else if (n ==0 ) {
Signature · 1 line
2.25.1
Re: [PATCH 7/8] drm/i915/guc: Update GuC messages in intel_guc_submission.c
Quoted 131 lines · Michal Wajdeczko
Use new macros to have common prefix that also include GT#.
Signed-off-by Michal Wajdeczko <[email protected]>Cc John Harrison <[email protected]>--- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 60 ++++++++----------- 1 file changed, 26 insertions(+), 34 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +15
-21@@ -27,6 +27,7 @@#include "intel_guc_ads.h" #include "intel_guc_capture.h" +#include "intel_guc_print.h" #include "intel_guc_submission.h" #include "i915_drv.h" @@ -1443,8 +1444,7 @@ static void guc_init_engine_stats(struct intel_guc *guc)int ret =guc_action_enable_usage_stats (guc);if (ret) -drm_err (>->i915->drm, -"Failed to enable usage stats: %d!\n" , ret); +guc_err (guc,"Failed to enable usage stats: %pe\n" ,ERR_PTR (ret)); } }@@ -3585,8 +3585,7 @@ static int guc_request_alloc(struct i915_request *rq)intel_context_sched_disable_unpin (ce); else if (intel_context_is_closed(ce)) if (wait_for(context_close_done(ce), 1500)) - drm_warn(&guc_to_gt(guc)->i915->drm, - "timed out waiting on context sched close before realloc\n"); + guc_warn(guc, "timed out waiting on context sched close before realloc\n");/* * Call pin_guc_id here rather than in the pinning step as with * dma_resv, contexts can be repeatedly pinned / unpinned trashing the @@ -4349,11 +4348,14 @@ static int __guc_action_set_scheduling_policies(struct intel_guc *guc, ret =intel_guc_send (guc, (u32 *)&policy->h2g,__guc_scheduling_policy_action_size (policy)); -if (ret <0 ) +if (ret <0 ) { +guc_probe_error (guc,"Failed to configure global scheduling policies: %pe!\n" , +ERR_PTR (ret));return ret; + }if (ret != policy->count) { -drm_warn (&guc_to_gt (guc)->i915->drm,"GuC global scheduler policy processed %d of %d KLVs!" , +guc_warn (guc,"global scheduler policy processed %d of %d KLVs!" , ret, policy->count);if (ret > policy->count)return -EPROTO ;@@ -4367,7 +4369,7 @@ static int guc_init_global_schedule_policy(struct intel_guc *guc)struct scheduling_policy policy;struct intel_gt *gt =guc_to_gt (guc);intel_wakeref_t wakeref; -int ret =0 ; +int ret;if (GUC_SUBMIT_VER (guc) <MAKE_GUC_VER (1 ,1 ,0 ))return 0 ;@@ -4385,10 +4387,6 @@ static int guc_init_global_schedule_policy(struct intel_guc *guc) yield, ARRAY_SIZE(yield)); ret =__guc_action_set_scheduling_policies (guc, &policy); -if (ret) -i915_probe_error (gt->i915, -"Failed to configure global scheduling policies: %pe!\n" , -ERR_PTR (ret)); }return ret;@@ -4487,21 +4485,18 @@ g2h_context_lookup(struct intel_guc *guc, u32 ctx_id)struct intel_context *ce;if (unlikely (ctx_id >=GUC_MAX_CONTEXT_ID )) { -drm_err (&guc_to_gt (guc)->i915->drm, -"Invalid ctx_id %u\n" , ctx_id); +guc_err (guc,"Invalid ctx_id %u\n" , ctx_id);return NULL ; } ce =__get_context (guc, ctx_id);if (unlikely (!ce)) { -drm_err (&guc_to_gt (guc)->i915->drm, -"Context is NULL, ctx_id %u\n" , ctx_id); +guc_err (guc,"Context is NULL, ctx_id %u\n" , ctx_id);return NULL ; }if (unlikely (intel_context_is_child (ce))) { -drm_err (&guc_to_gt (guc)->i915->drm, -"Context is child, ctx_id %u\n" , ctx_id); +guc_err (guc,"Context is child, ctx_id %u\n" , ctx_id);return NULL ; }@@ -4516,7 +4511,7 @@ int intel_guc_deregister_done_process_msg(struct intel_guc *guc,u32 ctx_id;if (unlikely (len <1 )) { -drm_err (&guc_to_gt (guc)->i915->drm,"Invalid length %u\n" , len); +guc_err (guc,"Invalid length %u\n" , len);return -EPROTO ; } ctx_id = msg[0 ];@@ -4568,7 +4563,7 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,u32 ctx_id;if (unlikely (len <2 )) { -drm_err (&guc_to_gt (guc)->i915->drm,"Invalid length %u\n" , len); +guc_err (guc,"Invalid length %u\n" , len);return -EPROTO ; } ctx_id = msg[0 ];@@ -4580,8 +4575,7 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,if (unlikely (context_destroyed (ce) || (!context_pending_enable (ce) && !context_pending_disable (ce)))) { -drm_err (&guc_to_gt (guc)->i915->drm, -"Bad context sched_state 0x%x, ctx_id %u\n" , +guc_err (guc,"Bad context sched_state 0x%x, ctx_id %u\n" , ce->guc_state.sched_state, ctx_id);return -EPROTO ; }
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void guc_handle_context_reset(struct intel_guc *guc, · line 4667
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +1
-1@@ -4669,7 +4663,7 @@ static void guc_handle_context_reset(struct intel_guc *guc,capture_error_state (guc, ce);guc_context_replay (ce); }else { - drm_info(&guc_to_gt(guc)->i915->drm, + guc_info(guc, "Ignoring context reset notification of exiting context 0x%04X on %s",
Could unwrap this line now.
Quoted 14 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +1
-1ce->guc_id.id, ce->engine->name); }@@ -4683,7 +4677,7 @@ int intel_guc_context_reset_process_msg(struct intel_guc *guc,int ctx_id;if (unlikely (len !=1 )) { -drm_err (&guc_to_gt (guc)->i915->drm,"Invalid length %u" , len); +guc_err (guc,"Invalid length %u" , len);return -EPROTO ; }@@ -4716,13 +4710,13 @@ int intel_guc_error_capture_process_msg(struct intel_guc *guc,u32 status;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c int intel_guc_error_capture_process_msg(struct intel_guc *guc, · line 4719
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +2
-2if (unlikely (len !=1 )) { -drm_dbg (&guc_to_gt (guc)->i915->drm,"Invalid length %u" , len); +guc_dbg (guc,"Invalid length %u" , len);return -EPROTO ; } status = msg[0 ] &INTEL_GUC_STATE_CAPTURE_EVENT_STATUS_MASK ;if (status ==INTEL_GUC_STATE_CAPTURE_EVENT_STATUS_NOSPACE ) -drm_warn (&guc_to_gt (guc)->i915->drm,"G2H-Error capture no space" ); +guc_warn (guc,"G2H-Error capture no space" );
Maybe improve the English on this one? "Received 'no space for error capture' notification"? Or maybe just "No space for error capture"? I don't think you can get a similar error from anywhere on the i915 side.
Quoted 29 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +2
-4intel_guc_capture_process (guc);@@ -4765,13 +4759,12 @@ int intel_guc_engine_failure_process_msg(struct intel_guc *guc, const u32 *msg, u32 len) {struct intel_engine_cs *engine; -struct intel_gt *gt =guc_to_gt (guc);u8 guc_class, instance;u32 reason;unsigned long flags;if (unlikely (len !=3 )) { -drm_err (>->i915->drm,"Invalid length %u" , len); +guc_err (guc,"Invalid length %u" , len);return -EPROTO ; }@@ -4781,8 +4774,7 @@ int intel_guc_engine_failure_process_msg(struct intel_guc *guc, engine =intel_guc_lookup_engine (guc, guc_class, instance);if (unlikely (!engine)) { -drm_err (>->i915->drm, -"Invalid engine %d:%d" , guc_class, instance); +guc_err (guc,"Invalid engine %d:%d" , guc_class, instance);return -EPROTO ; }
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c int intel_guc_engine_failure_process_msg(struct intel_guc *guc, · line 4786
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +1
-1@@ -4790,7 +4782,7 @@ int intel_guc_engine_failure_process_msg(struct intel_guc *guc,* This is an unexpected failure of a hardware feature. So, log a real * error message not just the informational that comes with the reset. */ -drm_err (>->i915->drm,"GuC engine reset request failed on %d:%d (%s) because 0x%08X" , +guc_err (guc,"GuC engine reset request failed on %d:%d (%s) because 0x%08X" , guc_class, instance, engine->name, reason);
Again, redundant 'GuC' string. Also, maybe drop the 'request' given that this is a GuC generated reset not a reset request from i915. This message has resulted in confused bug reports in the past. So, maybe go with just "Engine reset failed on ...".
John.
Quoted 24 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +4
-4spin_lock_irqsave (&guc->submission_state.lock, flags);@@ -5342,8 +5334,8 @@ guc_create_virtual(struct intel_engine_cs **siblings, unsigned int count,GEM_BUG_ON (!is_power_of_2 (sibling->mask));if (sibling->mask & ve->base.mask) { -DRM_DEBUG ("duplicate %s entry in load balancer\n" , - sibling->name); +guc_dbg (guc,"duplicate %s entry in load balancer\n" , + sibling->name); err = -EINVAL ; goto err_put; }@@ -5352,8 +5344,8 @@ guc_create_virtual(struct intel_engine_cs **siblings, unsigned int count, ve->base.logical_mask |= sibling->logical_mask;if (n !=0 && ve->base.class != sibling->class) { -DRM_DEBUG ("invalid mixing of engine class, sibling %d, already %d\n" , - sibling->class, ve->base.class); +guc_dbg (guc,"invalid mixing of engine class, sibling %d, already %d\n" , + sibling->class, ve->base.class); err = -EINVAL ; goto err_put; }else if (n ==0 ) {
PATCH 8/8 drm/i915/guc: Update GT/GuC messages in intel_uc.c
In reply to Michal WajdeczkoUse new macros to have common prefix that also include GT#.
--- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 74 +++++++++++++-------------- 1 file changed, 36 insertions(+), 38 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_uc.c +36 -38
@@ -6,11 +6,13 @@#include <linux/string_helpers.h> #include "gt/intel_gt.h" +#include "gt/intel_gt_print.h" #include "gt/intel_reset.h" #include "intel_gsc_fw.h" #include "intel_gsc_uc.h" #include "intel_guc.h" #include "intel_guc_ads.h" +#include "intel_guc_print.h" #include "intel_guc_submission.h" #include "gt/intel_rps.h" #include "intel_uc.h"
@@ -67,14 +69,14 @@ static int __intel_uc_reset_hw(struct intel_uc *uc) ret =intel_reset_guc (gt);if (ret) { -DRM_ERROR ("Failed to reset GuC, ret = %d\n" , ret); +gt_err (gt,"Failed to reset GuC, ret = %d\n" , ret);return ret; } guc_status =intel_uncore_read (gt->uncore,GUC_STATUS ); -WARN (!(guc_status &GS_MIA_IN_RESET ), -"GuC status: 0x%x, MIA core expected to be in reset\n" , - guc_status); +gt_WARN (gt, !(guc_status &GS_MIA_IN_RESET ), +"GuC status: 0x%x, MIA core expected to be in reset\n" , + guc_status);return ret; }
@@ -252,15 +254,13 @@ static int guc_enable_communication(struct intel_guc *guc)intel_guc_ct_event_handler (&guc->ct);spin_unlock_irq (gt->irq_lock); -drm_dbg (&i915->drm,"GuC communication enabled\n" ); +guc_dbg (guc,"communication enabled\n" );return 0 ; }static void guc_disable_communication (struct intel_guc *guc) { -struct drm_i915_private *i915 =guc_to_gt (guc)->i915; -/* * Events generated during or after CT disable are logged by guc in * via mmio. Make sure the register is clear before disabling CT since
@@ -280,11 +280,12 @@ static void guc_disable_communication(struct intel_guc *guc)*/ guc_get_mmio_msg (guc); -drm_dbg (&i915->drm,"GuC communication disabled\n" ); +guc_dbg (guc,"communication disabled\n" ); }static void __uc_fetch_firmwares (struct intel_uc *uc) { +struct intel_gt *gt =uc_to_gt (uc);int err;GEM_BUG_ON (!intel_uc_wants_guc (uc));
@@ -293,15 +294,13 @@ static void __uc_fetch_firmwares(struct intel_uc *uc)if (err) {/* Make sure we transition out of transient "SELECTED" state */ if (intel_uc_wants_huc (uc)) { -drm_dbg (&uc_to_gt (uc)->i915->drm, -"Failed to fetch GuC: %d disabling HuC\n" , err); +gt_dbg (gt,"Failed to fetch GuC fw (%pe) disabling HuC\n" ,ERR_PTR (err));intel_uc_fw_change_status (&uc->huc.fw,INTEL_UC_FIRMWARE_ERROR ); }if (intel_uc_wants_gsc_uc (uc)) { -drm_dbg (&uc_to_gt (uc)->i915->drm, -"Failed to fetch GuC: %d disabling GSC\n" , err); +gt_dbg (gt,"Failed to fetch GuC fw (%pe) disabling GSC\n" ,ERR_PTR (err));intel_uc_fw_change_status (&uc->gsc.fw,INTEL_UC_FIRMWARE_ERROR ); }
@@ -382,7 +381,7 @@ static int uc_init_wopcm(struct intel_uc *uc)int err;if (unlikely (!base || !size)) { -i915_probe_error (gt->i915,"Unsuccessful WOPCM partitioning\n" ); +gt_probe_error (gt,"Unsuccessful WOPCM partitioning\n" );return -E2BIG ; }
@@ -413,13 +412,13 @@ static int uc_init_wopcm(struct intel_uc *uc)return 0 ; err_out: -i915_probe_error (gt->i915,"Failed to init uC WOPCM registers!\n" ); -i915_probe_error (gt->i915,"%s(%#x)=%#x\n" ,"DMA_GUC_WOPCM_OFFSET" , -i915_mmio_reg_offset (DMA_GUC_WOPCM_OFFSET ), -intel_uncore_read (uncore,DMA_GUC_WOPCM_OFFSET )); -i915_probe_error (gt->i915,"%s(%#x)=%#x\n" ,"GUC_WOPCM_SIZE" , -i915_mmio_reg_offset (GUC_WOPCM_SIZE ), -intel_uncore_read (uncore,GUC_WOPCM_SIZE )); +gt_probe_error (gt,"Failed to init uC WOPCM registers!\n" ); +gt_probe_error (gt,"%s(%#x)=%#x\n" ,"DMA_GUC_WOPCM_OFFSET" , +i915_mmio_reg_offset (DMA_GUC_WOPCM_OFFSET ), +intel_uncore_read (uncore,DMA_GUC_WOPCM_OFFSET )); +gt_probe_error (gt,"%s(%#x)=%#x\n" ,"GUC_WOPCM_SIZE" , +i915_mmio_reg_offset (GUC_WOPCM_SIZE ), +intel_uncore_read (uncore,GUC_WOPCM_SIZE ));return err; }
@@ -451,18 +450,17 @@ static int __uc_check_hw(struct intel_uc *uc)static void print_fw_ver (struct intel_uc *uc,struct intel_uc_fw *fw) { -struct drm_i915_private *i915 =uc_to_gt (uc)->i915; - -drm_info (&i915->drm,"%s firmware %s version %u.%u.%u\n" , -intel_uc_fw_type_repr (fw->type), fw->file_selected.path, - fw->file_selected.ver.major, - fw->file_selected.ver.minor, - fw->file_selected.ver.patch); +gt_info (uc_to_gt (uc),"%s firmware %s version %u.%u.%u\n" , +intel_uc_fw_type_repr (fw->type), fw->file_selected.path, + fw->file_selected.ver.major, + fw->file_selected.ver.minor, + fw->file_selected.ver.patch); }static int __uc_init_hw (struct intel_uc *uc) { -struct drm_i915_private *i915 =uc_to_gt (uc)->i915; +struct intel_gt *gt =uc_to_gt (uc); +struct drm_i915_private *i915 = gt->i915;struct intel_guc *guc = &uc->guc;struct intel_huc *huc = &uc->huc;int ret, attempts;
@@ -514,8 +512,8 @@ static int __uc_init_hw(struct intel_uc *uc)if (ret ==0 )break ; -DRM_DEBUG_DRIVER ("GuC fw load failed: %d; will reset and " -"retry %d more time(s)\n" , ret, attempts); +gt_dbg (gt,"GuC fw load failed (%pe) will reset and retry %d more time(s)\n" , +ERR_PTR (ret), attempts); }/* Did we succeded or run out of retries? */
@@ -551,10 +549,10 @@ static int __uc_init_hw(struct intel_uc *uc)intel_gsc_uc_load_start (&uc->gsc); -drm_info (&i915->drm,"GuC submission %s\n" , -str_enabled_disabled (intel_uc_uses_guc_submission (uc))); -drm_info (&i915->drm,"GuC SLPC %s\n" , -str_enabled_disabled (intel_uc_uses_guc_slpc (uc))); +gt_info (gt,"GuC submission %s\n" , +str_enabled_disabled (intel_uc_uses_guc_submission (uc))); +gt_info (gt,"GuC SLPC %s\n" , +str_enabled_disabled (intel_uc_uses_guc_slpc (uc)));return 0 ;
@@ -572,12 +570,12 @@ static int __uc_init_hw(struct intel_uc *uc)__uc_sanitize (uc);if (!ret) { -drm_notice (&i915->drm,"GuC is uninitialized\n" ); +gt_notice (gt,"GuC is uninitialized\n" );/* We want to run without GuC submission */ return 0 ; } -i915_probe_error (i915,"GuC initialization failed %d\n" , ret); +gt_probe_error (gt,"GuC initialization failed %pe\n" ,ERR_PTR (ret));/* We want to keep KMS alive */ return -EIO ;
@@ -690,7 +688,7 @@ void intel_uc_suspend(struct intel_uc *uc) with_intel_runtime_pm(&uc_to_gt(uc)->i915->runtime_pm, wakeref) { err =intel_guc_suspend (guc);if (err) -DRM_DEBUG_DRIVER ("Failed to suspend GuC, err=%d" , err); +gt_dbg (uc_to_gt (uc),"Failed to suspend GuC, %pe" ,ERR_PTR (err)); } }
@@ -718,7 +716,7 @@ static int __uc_resume(struct intel_uc *uc, bool enable_communication) err =intel_guc_resume (guc);if (err) { -DRM_DEBUG_DRIVER ("Failed to resume GuC, err=%d" , err); +gt_dbg (gt,"Failed to resume GuC, %pe" ,ERR_PTR (err));return err; }
Signature · 1 line
2.25.1
Re: [PATCH 8/8] drm/i915/guc: Update GT/GuC messages in intel_uc.c
Quoted 126 lines · Michal Wajdeczko
Use new macros to have common prefix that also include GT#.
Signed-off-by Michal Wajdeczko <[email protected]>Cc John Harrison <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 74 +++++++++++++-------------- 1 file changed, 36 insertions(+), 38 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_uc.c +19
-20@@ -6,11 +6,13 @@#include <linux/string_helpers.h> #include "gt/intel_gt.h" +#include "gt/intel_gt_print.h" #include "gt/intel_reset.h" #include "intel_gsc_fw.h" #include "intel_gsc_uc.h" #include "intel_guc.h" #include "intel_guc_ads.h" +#include "intel_guc_print.h" #include "intel_guc_submission.h" #include "gt/intel_rps.h" #include "intel_uc.h" @@ -67,14 +69,14 @@ static int __intel_uc_reset_hw(struct intel_uc *uc) ret =intel_reset_guc (gt);if (ret) { -DRM_ERROR ("Failed to reset GuC, ret = %d\n" , ret); +gt_err (gt,"Failed to reset GuC, ret = %d\n" , ret);return ret; } guc_status =intel_uncore_read (gt->uncore,GUC_STATUS ); -WARN (!(guc_status &GS_MIA_IN_RESET ), -"GuC status: 0x%x, MIA core expected to be in reset\n" , - guc_status); +gt_WARN (gt, !(guc_status &GS_MIA_IN_RESET ), +"GuC status: 0x%x, MIA core expected to be in reset\n" , + guc_status);return ret; }@@ -252,15 +254,13 @@ static int guc_enable_communication(struct intel_guc *guc)intel_guc_ct_event_handler (&guc->ct);spin_unlock_irq (gt->irq_lock); -drm_dbg (&i915->drm,"GuC communication enabled\n" ); +guc_dbg (guc,"communication enabled\n" );return 0 ; }static void guc_disable_communication (struct intel_guc *guc) { -struct drm_i915_private *i915 =guc_to_gt (guc)->i915; -/* * Events generated during or after CT disable are logged by guc in * via mmio. Make sure the register is clear before disabling CT since @@ -280,11 +280,12 @@ static void guc_disable_communication(struct intel_guc *guc)*/ guc_get_mmio_msg (guc); -drm_dbg (&i915->drm,"GuC communication disabled\n" ); +guc_dbg (guc,"communication disabled\n" ); }static void __uc_fetch_firmwares (struct intel_uc *uc) { +struct intel_gt *gt =uc_to_gt (uc);int err;GEM_BUG_ON (!intel_uc_wants_guc (uc));@@ -293,15 +294,13 @@ static void __uc_fetch_firmwares(struct intel_uc *uc)if (err) {/* Make sure we transition out of transient "SELECTED" state */ if (intel_uc_wants_huc (uc)) { -drm_dbg (&uc_to_gt (uc)->i915->drm, -"Failed to fetch GuC: %d disabling HuC\n" , err); +gt_dbg (gt,"Failed to fetch GuC fw (%pe) disabling HuC\n" ,ERR_PTR (err));intel_uc_fw_change_status (&uc->huc.fw,INTEL_UC_FIRMWARE_ERROR ); }if (intel_uc_wants_gsc_uc (uc)) { -drm_dbg (&uc_to_gt (uc)->i915->drm, -"Failed to fetch GuC: %d disabling GSC\n" , err); +gt_dbg (gt,"Failed to fetch GuC fw (%pe) disabling GSC\n" ,ERR_PTR (err));intel_uc_fw_change_status (&uc->gsc.fw,INTEL_UC_FIRMWARE_ERROR ); }@@ -382,7 +381,7 @@ static int uc_init_wopcm(struct intel_uc *uc)int err;if (unlikely (!base || !size)) { -i915_probe_error (gt->i915,"Unsuccessful WOPCM partitioning\n" ); +gt_probe_error (gt,"Unsuccessful WOPCM partitioning\n" );return -E2BIG ; }@@ -413,13 +412,13 @@ static int uc_init_wopcm(struct intel_uc *uc)return 0 ; err_out: -i915_probe_error (gt->i915,"Failed to init uC WOPCM registers!\n" ); -i915_probe_error (gt->i915,"%s(%#x)=%#x\n" ,"DMA_GUC_WOPCM_OFFSET" , -i915_mmio_reg_offset (DMA_GUC_WOPCM_OFFSET ), -intel_uncore_read (uncore,DMA_GUC_WOPCM_OFFSET )); -i915_probe_error (gt->i915,"%s(%#x)=%#x\n" ,"GUC_WOPCM_SIZE" , -i915_mmio_reg_offset (GUC_WOPCM_SIZE ), -intel_uncore_read (uncore,GUC_WOPCM_SIZE )); +gt_probe_error (gt,"Failed to init uC WOPCM registers!\n" ); +gt_probe_error (gt,"%s(%#x)=%#x\n" ,"DMA_GUC_WOPCM_OFFSET" , +i915_mmio_reg_offset (DMA_GUC_WOPCM_OFFSET ), +intel_uncore_read (uncore,DMA_GUC_WOPCM_OFFSET )); +gt_probe_error (gt,"%s(%#x)=%#x\n" ,"GUC_WOPCM_SIZE" , +i915_mmio_reg_offset (GUC_WOPCM_SIZE ), +intel_uncore_read (uncore,GUC_WOPCM_SIZE ));return err; }@@ -451,18 +450,17 @@ static int __uc_check_hw(struct intel_uc *uc)
drivers/gpu/drm/i915/gt/uc/intel_uc.c static int __uc_check_hw(struct intel_uc *uc) · line 453
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_uc.c +1
-7static void print_fw_ver (struct intel_uc *uc,struct intel_uc_fw *fw) { -struct drm_i915_private *i915 =uc_to_gt (uc)->i915; - -drm_info (&i915->drm,"%s firmware %s version %u.%u.%u\n" , -intel_uc_fw_type_repr (fw->type), fw->file_selected.path, - fw->file_selected.ver.major, - fw->file_selected.ver.minor, - fw->file_selected.ver.patch); + gt_info(uc_to_gt(uc), "%s firmware %s version %u.%u.%u\n",
Given that this function does not use 'uc' except to convert to 'gt' and the caller already has a local 'gt', could just pass the gt in directly and avoid the conversion.
Quoted 56 lines
drivers/gpu/drm/i915/gt/uc/intel_uc.c +14
-9+intel_uc_fw_type_repr (fw->type), fw->file_selected.path, + fw->file_selected.ver.major, + fw->file_selected.ver.minor, + fw->file_selected.ver.patch); }static int __uc_init_hw (struct intel_uc *uc) { -struct drm_i915_private *i915 =uc_to_gt (uc)->i915; +struct intel_gt *gt =uc_to_gt (uc); +struct drm_i915_private *i915 = gt->i915;struct intel_guc *guc = &uc->guc;struct intel_huc *huc = &uc->huc;int ret, attempts;@@ -514,8 +512,8 @@ static int __uc_init_hw(struct intel_uc *uc)if (ret ==0 )break ; -DRM_DEBUG_DRIVER ("GuC fw load failed: %d; will reset and " -"retry %d more time(s)\n" , ret, attempts); +gt_dbg (gt,"GuC fw load failed (%pe) will reset and retry %d more time(s)\n" , +ERR_PTR (ret), attempts); }/* Did we succeded or run out of retries? */ @@ -551,10 +549,10 @@ static int __uc_init_hw(struct intel_uc *uc)intel_gsc_uc_load_start (&uc->gsc); -drm_info (&i915->drm,"GuC submission %s\n" , -str_enabled_disabled (intel_uc_uses_guc_submission (uc))); -drm_info (&i915->drm,"GuC SLPC %s\n" , -str_enabled_disabled (intel_uc_uses_guc_slpc (uc))); +gt_info (gt,"GuC submission %s\n" , +str_enabled_disabled (intel_uc_uses_guc_submission (uc))); +gt_info (gt,"GuC SLPC %s\n" , +str_enabled_disabled (intel_uc_uses_guc_slpc (uc)));return 0 ;@@ -572,12 +570,12 @@ static int __uc_init_hw(struct intel_uc *uc)__uc_sanitize (uc);if (!ret) { -drm_notice (&i915->drm,"GuC is uninitialized\n" ); +gt_notice (gt,"GuC is uninitialized\n" );/* We want to run without GuC submission */ return 0 ; } -i915_probe_error (i915,"GuC initialization failed %d\n" , ret); +gt_probe_error (gt,"GuC initialization failed %pe\n" ,ERR_PTR (ret));/* We want to keep KMS alive */ return -EIO ;
drivers/gpu/drm/i915/gt/uc/intel_uc.c void intel_uc_suspend(struct intel_uc *uc) · line 691
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_uc.c +1
-1@@ -690,7 +688,7 @@ void intel_uc_suspend(struct intel_uc *uc) with_intel_runtime_pm(&uc_to_gt(uc)->i915->runtime_pm, wakeref) { err =intel_guc_suspend (guc);if (err) -DRM_DEBUG_DRIVER ("Failed to suspend GuC, err=%d" , err); +gt_dbg (uc_to_gt (uc),"Failed to suspend GuC, %pe" ,ERR_PTR (err));
May be worth adding a local gt given that the above conversion is now being repeated?
drivers/gpu/drm/i915/gt/uc/intel_uc.c static int __uc_resume(struct intel_uc *uc, bool enable_communication) · line 719
Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_uc.c +1
-1} }@@ -718,7 +716,7 @@ static int __uc_resume(struct intel_uc *uc, bool enable_communication) err =intel_guc_resume (guc);if (err) { -DRM_DEBUG_DRIVER ("Failed to resume GuC, err=%d" , err); +gt_dbg (gt,"Failed to resume GuC, %pe" ,ERR_PTR (err));
This could be a guc_dbg("Failed to resume: %pe") given that there is evidently a 'guc' locally available from the function call just above.
John.
Quoted 3 lines
drivers/gpu/drm/i915/gt/uc/intel_uc.c +0
-0return err; }
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for GuC oriented print macros
In reply to Michal Wajdeczko== Series Details ==
== Series Details ==
Series: GuC oriented print macros
URL : https://patchwork.freedesktop.org/series/113162/
State : warning
== Summary ==
Error: dim checkpatch failedb54a9b032bdb drm/i915/guc: Add GuC oriented print macros
Traceback (most recent call last):
File "scripts/spdxcheck.py", line 6, in <module>
from ply import lex, yacc
ModuleNotFoundError: No module named 'ply'
-:17: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #17:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 48 lines checked abf8a7a2bd04 drm/i915/guc: Update GuC messages in intel_guc.c ef22893e1a38 drm/i915/guc: Update GuC messages in intel_guc_ads.c 5bc4c51849e5 drm/i915/guc: Update GuC messages in intel_guc_ct.c 817341aa24e6 drm/i915/guc: Update GuC messages in intel_guc_fw.c 0211cb927751 drm/i915/guc: Update GuC messages in intel_guc_log.c 0643c8385f5b drm/i915/guc: Update GuC messages in intel_guc_submission.c 972bd4630444 drm/i915/guc: Update GT/GuC messages in intel_uc.c
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for GuC oriented print macros
In reply to Michal Wajdeczko== Series Details ==
== Series Details ==
Series: GuC oriented print macros
URL : https://patchwork.freedesktop.org/series/113162/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12618 -> Patchwork_113162v1
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/index.html
Participating hosts (36 -> 34)
------------------------------
Missing (2): fi-rkl-11600 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_113162v1:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_selftest@live@slpc:
- {bat-rpls-2}: [DMESG-FAIL][1] ([i915#6367]) -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/bat-rpls-2/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/bat-rpls-2/igt@i915_selftest@[email protected]
Known issues
------------
Here are the changes found in Patchwork_113162v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [PASS][3] -> [FAIL][4] ([i915#7229])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/fi-pnv-d510/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/fi-pnv-d510/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@gt_heartbeat:
- {bat-jsl-1}: [DMESG-FAIL][5] ([i915#5334]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/bat-jsl-1/igt@i915_selftest@live@gt_heartbeat.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/bat-jsl-1/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@gt_pm:
- {bat-rpls-2}: [DMESG-FAIL][7] ([i915#4258]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/bat-rpls-2/igt@i915_selftest@live@gt_pm.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/bat-rpls-2/igt@i915_selftest@live@gt_pm.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions:
- fi-bsw-n3050: [FAIL][9] ([i915#6298]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/fi-bsw-n3050/igt@kms_cursor_legacy@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/fi-bsw-n3050/igt@kms_cursor_legacy@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4817]: https://gitlab.freedesktop.org/drm/intel/issues/4817
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#7229]: https://gitlab.freedesktop.org/drm/intel/issues/7229
[i915#7443]: https://gitlab.freedesktop.org/drm/intel/issues/7443
Build changes
-------------
* Linux: CI_DRM_12618 -> Patchwork_113162v1
CI-20190529: 20190529
CI_DRM_12618: 7ba8ff20ba23bc940e928ffe3a9054225fff418e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7129: 7816773163a1b0d248dd9dd34d14e632ad8903be @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_113162v1: 7ba8ff20ba23bc940e928ffe3a9054225fff418e @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
1e0a021b4f4b drm/i915/guc: Update GT/GuC messages in intel_uc.c c0af3287ad10 drm/i915/guc: Update GuC messages in intel_guc_submission.c 76ccee051767 drm/i915/guc: Update GuC messages in intel_guc_log.c 5c59fe7a08b5 drm/i915/guc: Update GuC messages in intel_guc_fw.c af4a7054ff93 drm/i915/guc: Update GuC messages in intel_guc_ct.c 0328c8ac122f drm/i915/guc: Update GuC messages in intel_guc_ads.c 2906cad3dfd1 drm/i915/guc: Update GuC messages in intel_guc.c 5dd0fb492de9 drm/i915/guc: Add GuC oriented print macros
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for GuC oriented print macros
In reply to Michal Wajdeczko== Series Details ==
== Series Details ==
Series: GuC oriented print macros
URL : https://patchwork.freedesktop.org/series/113162/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12618_full -> Patchwork_113162v1_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/index.html
Participating hosts (12 -> 10)
------------------------------
Missing (2): pig-skl-6260u pig-kbl-iris
Known issues
------------
Here are the changes found in Patchwork_113162v1_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fair@basic-none@vcs0:
- shard-glk: [PASS][1] -> [FAIL][2] ([i915#2842])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-glk2/igt@gem_exec_fair@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gem_lmem_swapping@heavy-verify-multi:
- shard-glk: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#4613])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk4/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-glk: NOTRUN -> [FAIL][4] ([i915#3318])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk4/igt@[email protected]
* igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#3886]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk4/igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_cdclk@mode-transition:
- shard-glk: NOTRUN -> [SKIP][6] ([fdo#109271]) +46 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk4/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions:
- shard-glk: [PASS][7] -> [FAIL][8] ([i915#2346])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-glk6/igt@kms_cursor_legacy@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk7/igt@kms_cursor_legacy@[email protected]
* igt@kms_dsc@dsc-with-bpc-formats:
- shard-glk: NOTRUN -> [SKIP][9] ([fdo#109271] / [i915#7205])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk4/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-hdmi-a1:
- shard-glk: [PASS][10] -> [FAIL][11] ([i915#79]) +1 similar issue
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-glk4/igt@kms_flip@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk7/igt@kms_flip@[email protected]
* igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-fully-sf:
- shard-glk: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#658])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk4/igt@[email protected]
* igt@perf@stress-open-close:
- shard-glk: [PASS][13] -> [INCOMPLETE][14] ([i915#5213])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-glk1/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk6/igt@[email protected]
* igt@runner@aborted:
- shard-glk: NOTRUN -> [FAIL][15] ([i915#4312])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk6/igt@[email protected]
* igt@sysfs_clients@sema-50:
- shard-glk: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#2994])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk4/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][17] ([i915#2842]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-glk8/igt@gem_exec_fair@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- {shard-rkl}: [FAIL][19] ([i915#2842]) -> [PASS][20] +2 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-1/igt@gem_exec_fair@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_reloc@basic-write-read-active:
- {shard-rkl}: [SKIP][21] ([i915#3281]) -> [PASS][22] +5 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-5/igt@[email protected]
* igt@gem_exec_schedule@semaphore-power:
- {shard-rkl}: [SKIP][23] ([i915#7276]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-1/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-5/igt@[email protected]
* igt@gem_mmap_wc@set-cache-level:
- {shard-tglu}: [SKIP][25] ([i915#1850]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-tglu-6/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-tglu-3/igt@[email protected]
* igt@gem_pwrite_snooped:
- {shard-rkl}: [SKIP][27] ([i915#3282]) -> [PASS][28] +1 similar issue
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-6/igt@gem_pwrite_snooped.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-5/igt@gem_pwrite_snooped.html
* igt@gen9_exec_parse@valid-registers:
- {shard-rkl}: [SKIP][29] ([i915#2527]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-1/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-5/igt@[email protected]
* igt@i915_pm_rpm@dpms-mode-unset-lpsp:
- {shard-dg1}: [SKIP][31] ([i915#1397]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-dg1-15/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-dg1-14/igt@[email protected]
* igt@i915_pm_rpm@i2c:
- {shard-rkl}: [SKIP][33] ([fdo#109308]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-4/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-6/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress-no-wait:
- {shard-rkl}: [SKIP][35] ([i915#1397]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-6/igt@[email protected]
* igt@i915_pm_sseu@full-enable:
- {shard-rkl}: [SKIP][37] ([i915#4387]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-1/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-5/igt@[email protected]
* igt@kms_big_fb@linear-32bpp-rotate-180:
- {shard-rkl}: [SKIP][39] ([i915#1845] / [i915#4098]) -> [PASS][40] +23 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-4/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0:
- {shard-tglu}: [SKIP][41] ([i915#7651]) -> [PASS][42] +8 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-tglu-6/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-tglu-3/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions-varying-size:
- shard-glk: [FAIL][43] ([i915#2346]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-glk6/igt@kms_cursor_legacy@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-glk7/igt@kms_cursor_legacy@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-mmap-cpu:
- {shard-tglu}: [SKIP][45] ([i915#1849]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-tglu-6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-mmap-cpu.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-tglu-3/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-mmap-cpu.html
* igt@kms_frontbuffer_tracking@fbc-badstride:
- {shard-rkl}: [SKIP][47] ([i915#1849] / [i915#4098]) -> [PASS][48] +20 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-4/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-6/igt@[email protected]
* igt@kms_properties@crtc-properties-atomic:
- {shard-rkl}: [SKIP][49] ([i915#1849]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-4/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-6/igt@[email protected]
* igt@kms_psr@sprite_render:
- {shard-rkl}: [SKIP][51] ([i915#1072]) -> [PASS][52] +2 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-4/igt@kms_psr@sprite_render.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-6/igt@kms_psr@sprite_render.html
* igt@kms_universal_plane@cursor-fb-leak-pipe-a:
- {shard-tglu}: [SKIP][53] ([fdo#109274]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-tglu-6/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-tglu-3/igt@[email protected]
* igt@kms_universal_plane@disable-primary-vs-flip-pipe-b:
- {shard-rkl}: [SKIP][55] ([i915#1845] / [i915#4070] / [i915#4098]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-2/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-6/igt@[email protected]
* igt@kms_vblank@pipe-c-wait-forked:
- {shard-tglu}: [SKIP][57] ([i915#1845] / [i915#7651]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-tglu-6/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-tglu-3/igt@[email protected]
* igt@testdisplay:
- {shard-rkl}: [SKIP][59] ([i915#4098]) -> [PASS][60] +2 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12618/shard-rkl-4/[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/shard-rkl-6/[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109303]: https://bugs.freedesktop.org/show_bug.cgi?id=109303
[fdo#109307]: https://bugs.freedesktop.org/show_bug.cgi?id=109307
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110542]: https://bugs.freedesktop.org/show_bug.cgi?id=110542
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#1755]: https://gitlab.freedesktop.org/drm/intel/issues/1755
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1850]: https://gitlab.freedesktop.org/drm/intel/issues/1850
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2433]: https://gitlab.freedesktop.org/drm/intel/issues/2433
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3528]: https://gitlab.freedesktop.org/drm/intel/issues/3528
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743
[i915#3778]: https://gitlab.freedesktop.org/drm/intel/issues/3778
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#3966]: https://gitlab.freedesktop.org/drm/intel/issues/3966
[i915#3989]: https://gitlab.freedesktop.org/drm/intel/issues/3989
[i915#404]: https://gitlab.freedesktop.org/drm/intel/issues/404
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#426]: https://gitlab.freedesktop.org/drm/intel/issues/426
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#433]: https://gitlab.freedesktop.org/drm/intel/issues/433
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4387]: https://gitlab.freedesktop.org/drm/intel/issues/4387
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4767]: https://gitlab.freedesktop.org/drm/intel/issues/4767
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4778]: https://gitlab.freedesktop.org/drm/intel/issues/4778
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4854]: https://gitlab.freedesktop.org/drm/intel/issues/4854
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4877]: https://gitlab.freedesktop.org/drm/intel/issues/4877
[i915#4879]: https://gitlab.freedesktop.org/drm/intel/issues/4879
[i915#4884]: https://gitlab.freedesktop.org/drm/intel/issues/4884
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5213]: https://gitlab.freedesktop.org/drm/intel/issues/5213
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5608]: https://gitlab.freedesktop.org/drm/intel/issues/5608
[i915#5775]: https://gitlab.freedesktop.org/drm/intel/issues/5775
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6227]: https://gitlab.freedesktop.org/drm/intel/issues/6227
[i915#6247]: https://gitlab.freedesktop.org/drm/intel/issues/6247
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6252]: https://gitlab.freedesktop.org/drm/intel/issues/6252
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6334]: https://gitlab.freedesktop.org/drm/intel/issues/6334
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6344]: https://gitlab.freedesktop.org/drm/intel/issues/6344
[i915#6412]: https://gitlab.freedesktop.org/drm/intel/issues/6412
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6944]: https://gitlab.freedesktop.org/drm/intel/issues/6944
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7037]: https://gitlab.freedesktop.org/drm/intel/issues/7037
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7128]: https://gitlab.freedesktop.org/drm/intel/issues/7128
[i915#7178]: https://gitlab.freedesktop.org/drm/intel/issues/7178
[i915#7205]: https://gitlab.freedesktop.org/drm/intel/issues/7205
[i915#7276]: https://gitlab.freedesktop.org/drm/intel/issues/7276
[i915#7294]: https://gitlab.freedesktop.org/drm/intel/issues/7294
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7651]: https://gitlab.freedesktop.org/drm/intel/issues/7651
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7707]: https://gitlab.freedesktop.org/drm/intel/issues/7707
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
Build changes
-------------
* Linux: CI_DRM_12618 -> Patchwork_113162v1
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_12618: 7ba8ff20ba23bc940e928ffe3a9054225fff418e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7129: 7816773163a1b0d248dd9dd34d14e632ad8903be @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_113162v1: 7ba8ff20ba23bc940e928ffe3a9054225fff418e @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113162v1/index.html