All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patchwork <patchwork@emeril.freedesktop.org>
To: "Andrzej Hajda" <andrzej.hajda@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: use ref_tracker library for tracking wakerefs (rev7)
Date: Wed, 29 Mar 2023 14:03:24 -0000	[thread overview]
Message-ID: <168009860407.23905.7590948848543310839@emeril.freedesktop.org> (raw)
In-Reply-To: <20230224-track_gt-v6-0-0dc8601fd02f@intel.com>

== Series Details ==

Series: drm/i915: use ref_tracker library for tracking wakerefs (rev7)
URL   : https://patchwork.freedesktop.org/series/100327/
State : warning

== Summary ==

Error: dim checkpatch failed
a48ff8d4bbf3 lib/ref_tracker: add unlocked leak print helper
-:6: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#6: 
To have reliable detection of leaks, caller must be able to check under the same

total: 0 errors, 1 warnings, 0 checks, 105 lines checked
996793d734ce lib/ref_tracker: improve printing stats
-:40: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#40: FILE: include/linux/ref_tracker.h:31:
+static inline void __ref_tracker_dir_init(struct ref_tracker_dir *dir,
+					unsigned int quarantine_count,

-:49: WARNING:STRLCPY: Prefer strscpy over strlcpy - see: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
#49: FILE: include/linux/ref_tracker.h:41:
+	strlcpy(dir->name, name, sizeof(dir->name));

total: 0 errors, 1 warnings, 1 checks, 151 lines checked
56912d5da2d2 lib/ref_tracker: add printing to memory buffer
-:54: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'fmt' - possible side-effects?
#54: FILE: lib/ref_tracker.c:70:
+#define pr_ostream(stream, fmt, args...) \
+({ \
+	struct ostream *_s = (stream); \
+\
+	if (!_s->buf) { \
+		pr_err(fmt, ##args); \
+	} else { \
+		int ret, len = _s->size - _s->used; \
+		ret = snprintf(_s->buf + _s->used, len, pr_fmt(fmt), ##args); \
+		_s->used += min(ret, len); \
+	} \
+})

total: 0 errors, 0 warnings, 1 checks, 109 lines checked
8a5c4020d1b0 lib/ref_tracker: remove warnings in case of allocation failure
da506567d133 drm/i915: Correct type of wakeref variable
fe7edc6eb029 drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library
-:404: WARNING:NEW_TYPEDEFS: do not add new typedefs
#404: FILE: drivers/gpu/drm/i915/intel_wakeref.h:24:
+typedef unsigned long intel_wakeref_t;

total: 0 errors, 1 warnings, 0 checks, 426 lines checked
28b072da3355 drm/i915: track gt pm wakerefs
-:464: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'gt' - possible side-effects?
#464: FILE: drivers/gpu/drm/i915/gt/intel_gt_pm.h:75:
+#define with_intel_gt_pm(gt, wf) \
+	for (wf = intel_gt_pm_get(gt); wf; intel_gt_pm_put(gt, wf), wf = 0)

-:464: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'wf' - possible side-effects?
#464: FILE: drivers/gpu/drm/i915/gt/intel_gt_pm.h:75:
+#define with_intel_gt_pm(gt, wf) \
+	for (wf = intel_gt_pm_get(gt); wf; intel_gt_pm_put(gt, wf), wf = 0)

-:795: ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#795: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:1328:
+	if (!in_reset && (wakeref = intel_gt_pm_get_if_awake(gt))) {

total: 1 errors, 0 warnings, 2 checks, 789 lines checked
d3633524d9af drm/i915/gt: Hold a wakeref for the active VM
-:81: WARNING:AVOID_BUG: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants
#81: FILE: drivers/gpu/drm/i915/gt/intel_engine_pm.c:117:
+	GEM_BUG_ON(rq->context->active_count != 1);

total: 0 errors, 1 warnings, 0 checks, 57 lines checked



  parent reply	other threads:[~2023-03-29 14:03 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-29  7:24 [PATCH v6 0/8] drm/i915: use ref_tracker library for tracking wakerefs Andrzej Hajda
2023-03-29  7:24 ` Andrzej Hajda
2023-03-29  7:24 ` [Intel-gfx] " Andrzej Hajda
2023-03-29  7:24 ` [PATCH v6 1/8] lib/ref_tracker: add unlocked leak print helper Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24   ` [Intel-gfx] " Andrzej Hajda
2023-03-29 12:35   ` Andi Shyti
2023-03-29 12:35     ` [Intel-gfx] " Andi Shyti
2023-03-29 12:35     ` Andi Shyti
2023-03-29  7:24 ` [PATCH v6 2/8] lib/ref_tracker: improve printing stats Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24   ` [Intel-gfx] " Andrzej Hajda
2023-03-29 12:51   ` Andi Shyti
2023-03-29 12:51     ` [Intel-gfx] " Andi Shyti
2023-03-29 12:51     ` Andi Shyti
2023-03-29  7:24 ` [PATCH v6 3/8] lib/ref_tracker: add printing to memory buffer Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24   ` [Intel-gfx] " Andrzej Hajda
2023-03-29 12:56   ` Andi Shyti
2023-03-29 12:56     ` [Intel-gfx] " Andi Shyti
2023-03-29 12:56     ` Andi Shyti
2023-03-29  7:24 ` [PATCH v6 4/8] lib/ref_tracker: remove warnings in case of allocation failure Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24   ` [Intel-gfx] " Andrzej Hajda
2023-03-29  7:24 ` [Intel-gfx] [PATCH v6 5/8] drm/i915: Correct type of wakeref variable Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24 ` [Intel-gfx] [PATCH v6 6/8] drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24 ` [PATCH v6 7/8] drm/i915: track gt pm wakerefs Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24   ` [Intel-gfx] " Andrzej Hajda
2023-03-29  7:24 ` [PATCH v6 8/8] drm/i915/gt: Hold a wakeref for the active VM Andrzej Hajda
2023-03-29  7:24   ` Andrzej Hajda
2023-03-29  7:24   ` [Intel-gfx] " Andrzej Hajda
2023-03-29 13:01 ` [PATCH v6 0/8] drm/i915: use ref_tracker library for tracking wakerefs Andi Shyti
2023-03-29 13:01   ` [Intel-gfx] " Andi Shyti
2023-03-29 13:01   ` Andi Shyti
2023-03-29 14:03 ` Patchwork [this message]
2023-03-29 14:03 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: use ref_tracker library for tracking wakerefs (rev7) Patchwork
2023-03-29 14:29 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=168009860407.23905.7590948848543310839@emeril.freedesktop.org \
    --to=patchwork@emeril.freedesktop.org \
    --cc=andrzej.hajda@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.