ref_tracker: add ability to register a debugfs file for a ref_tracker_dir
Subsystems (6)
v13 cover ref_tracker: add ability to register a debugfs file for a ref_tracker_dir
For those just joining in, this series adds a new top-level "ref_tracker" debugfs directory, and has each ref_tracker_dir register a file in there as part of its initialization. It also adds the ability to register a symlink with a more human-usable name that points to the file, and does some general cleanup of how the ref_tracker object names are handled.
This reposting is mostly to address Krzysztof's comments. I've dropped the i915 patch, and rebased the rest of the series on top.
Note that I still see debugfs: warnings in the i915 driver even when we gate the registration of the debugfs file on the classname pointer being NULL. Here is a CI report from v12:
https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v8/bat-arls-6/igt@i915_selftest@[email protected]
I think the i915 driver is doing something it shouldn't with these objects. They seem to be initialized more than once, which could lead to leaked ref_tracker objects. It would be good for one of the i915 maintainers to comment on whether this is a real problem.
---
Changes in v13:
- drop i915 patch
- Link to v12: https://lore.kernel.org/r/[email protected]
Changes in v12:
- drop redundant pr_warn() calls. Debugfs already warns when these ops fail
- Link to v11: https://lore.kernel.org/r/[email protected]
Changes in v11:
- don't call ref_tracker_dir_init() more than once for same i915 objects
- use %llx in format for net_cookie in symlink name
- Link to v10: https://lore.kernel.org/r/[email protected]
Changes in v10:
- drop the i915 symlink patch
- Link to v9: https://lore.kernel.org/r/[email protected]
Changes in v9:
- fix typo in ref_tracker_dir_init() kerneldoc header
- Link to v8: https://lore.kernel.org/r/[email protected]
Changes in v8:
- fix up compiler warnings that the KTR warned about
- ensure builds with CONFIG_DEBUG_FS=n and CONFIG_REF_TRACKER=y work
- Link to v7: https://lore.kernel.org/r/[email protected]
Changes in v7:
- include net->net_cookie in netns symlink name
- add __ostream_printf to ref_tracker_dir_symlink() stub function
- remove unneeded #include of seq_file.h
- Link to v6: https://lore.kernel.org/r/[email protected]
Changes in v6:
- clean up kerneldoc comment for ref_tracker_dir_debugfs()
- add missing stub function for ref_tracker_dir_symlink()
- temporary __maybe_unused on ref_tracker_dir_seq_print() to silence compiler warning
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- add class string to each ref_tracker_dir
- auto-register debugfs file for every tracker in ref_tracker_dir_init
- add function to allow adding a symlink for each tracker
- add patches to create symlinks for netns's and i915 entries
- change output format to print class@%p instead of name@%p
- eliminate the name field in ref_tracker_dir
- fix off-by-one bug when NULL terminating name string
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Drop patch to widen ref_tracker_dir_.name, use NAME_MAX+1 (256) instead since this only affects dentry name
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- don't overwrite dir->name in ref_tracker_dir_debugfs
- define REF_TRACKER_NAMESZ and use it when setting name
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Add patch to do %pK -> %p conversion in ref_tracker.c
- Pass in output function to pr_ostream() instead of if statement
- Widen ref_tracker_dir.name to 64 bytes to accomodate unique names
- Eliminate error handling with debugfs manipulation
- Incorporate pointer value into netdev name
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Jeff Layton (9):
ref_tracker: don't use %pK in pr_ostream() output
ref_tracker: add a top level debugfs directory for ref_tracker
ref_tracker: have callers pass output function to pr_ostream()
ref_tracker: add a static classname string to each ref_tracker_dir
ref_tracker: allow pr_ostream() to print directly to a seq_file
ref_tracker: automatically register a file in debugfs for a ref_tracker_dir
ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file
net: add symlinks to ref_tracker_dir for netns
ref_tracker: eliminate the ref_tracker_dir name field
drivers/gpu/drm/display/drm_dp_tunnel.c | 2 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +- drivers/gpu/drm/i915/intel_wakeref.c | 3 +- include/linux/ref_tracker.h | 58 ++++++++++- lib/ref_tracker.c | 176 +++++++++++++++++++++++++++++--- net/core/dev.c | 2 +- net/core/net_namespace.c | 34 +++++- 7 files changed, 253 insertions(+), 26 deletions(-)
---
base-commit: 90b83efa6701656e02c86e7df2cb1765ea602d07
change-id: 20250413-reftrack-dbgfs-3767b303e2fa
Best regards,
Signature · 1 line
Jeff Layton <[email protected]>
PATCH v13 1/9 ref_tracker: don't use %pK in pr_ostream() output
As Thomas Weißschuh points out [1], it is now preferable to use %p instead of hashed pointers with printk(), since raw pointers should no longer be leaked into the kernel log. Change the ref_tracker infrastructure to use %p instead of %pK in its formats.
[1]: https://lore.kernel.org/netdev/[email protected]/
--- lib/ref_tracker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
lib/ref_tracker.c +3 -3
@@ -96,7 +96,7 @@ __ref_tracker_dir_pr_ostream(struct ref_tracker_dir *dir, stats =ref_tracker_get_stats (dir, display_limit);if (IS_ERR (stats)) { -pr_ostream (s,"%s@%pK: couldn't get stats, error %pe\n" , +pr_ostream (s,"%s@%p: couldn't get stats, error %pe\n" , dir->name, dir, stats);return ; }
@@ -107,13 +107,13 @@ __ref_tracker_dir_pr_ostream(struct ref_tracker_dir *dir, stack = stats->stacks[i].stack_handle;if (sbuf && !stack_depot_snprint (stack, sbuf,STACK_BUF_SIZE ,4 )) sbuf[0 ] =0 ; -pr_ostream (s,"%s@%pK has %d/%d users at\n%s\n" , dir->name, dir, +pr_ostream (s,"%s@%p has %d/%d users at\n%s\n" , dir->name, dir, stats->stacks[i].count, stats->total, sbuf); skipped -= stats->stacks[i].count; }if (skipped) -pr_ostream (s,"%s@%pK skipped reports about %d/%d users.\n" , +pr_ostream (s,"%s@%p skipped reports about %d/%d users.\n" , dir->name, dir, skipped, stats->total);kfree (sbuf);
Signature · 1 line
2.49.0
PATCH v13 2/9 ref_tracker: add a top level debugfs directory for ref_tracker
In reply to Jeff LaytonAdd a new "ref_tracker" directory in debugfs. Each individual refcount tracker can register files under there to display info about currently-held references.
--- lib/ref_tracker.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
lib/ref_tracker.c +13 -0
@@ -273,3 +273,16 @@ int ref_tracker_free(struct ref_tracker_dir *dir,return 0 ; }EXPORT_SYMBOL_GPL (ref_tracker_free); + +#ifdef CONFIG_DEBUG_FS +#include <linux/debugfs.h> + +static struct dentry *ref_tracker_debug_dir = (struct dentry *)-ENOENT ; + +static int __init ref_tracker_debugfs_init (void ) +{ + ref_tracker_debug_dir =debugfs_create_dir ("ref_tracker" ,NULL ); +return 0 ; +} +late_initcall (ref_tracker_debugfs_init); +#endif /* CONFIG_DEBUG_FS */
Signature · 1 line
2.49.0
PATCH v13 3/9 ref_tracker: have callers pass output function to pr_ostream()
In reply to Jeff LaytonIn a later patch, we'll be adding a 3rd mechanism for outputting ref_tracker info via seq_file. Instead of a conditional, have the caller set a pointer to an output function in struct ostream. As part of this, the log prefix must be explicitly passed in, as it's too late for the pr_fmt macro.
--- include/linux/ref_tracker.h | 2 ++ lib/ref_tracker.c | 52 ++++++++++++++++++++++++++++++++------------- 2 files changed, 39 insertions(+), 15 deletions(-)
include/linux/ref_tracker.h +2 -0
@@ -6,6 +6,8 @@#include <linux/spinlock.h> #include <linux/stackdepot.h> +#define __ostream_printf __printf(2, 3) +struct ref_tracker ;struct ref_tracker_dir {
lib/ref_tracker.c +37 -15
94 lines not on this page · raw message
Signature · 1 line
2.49.0
PATCH v13 4/9 ref_tracker: add a static classname string to each ref_tracker_dir
In reply to Jeff LaytonA later patch in the series will be adding debugfs files for each ref_tracker that get created in ref_tracker_dir_init(). The format will be "class@%px". The current "name" string can vary between ref_tracker_dir objects of the same type, so it's not suitable for this purpose.
Add a new "class" string to the ref_tracker dir that describes the the type of object (sans any individual info for that object).
Also, in the i915 driver, gate the creation of debugfs files on whether the dentry pointer is still set to NULL. CI has shown that the ref_tracker_dir can be initialized more than once.
--- drivers/gpu/drm/display/drm_dp_tunnel.c | 2 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++- drivers/gpu/drm/i915/intel_wakeref.c | 3 ++- include/linux/ref_tracker.h | 4 ++++ lib/test_ref_tracker.c | 2 +- net/core/dev.c | 2 +- net/core/net_namespace.c | 4 ++-- 7 files changed, 14 insertions(+), 7 deletions(-)
drivers/gpu/drm/display/drm_dp_tunnel.c +1 -1
@@ -1920,7 +1920,7 @@ drm_dp_tunnel_mgr_create(struct drm_device *dev, int max_group_count) }#ifdef CONFIG_DRM_DISPLAY_DP_TUNNEL_STATE_DEBUG -ref_tracker_dir_init (&mgr->ref_tracker,16 ,"dptun" ); +ref_tracker_dir_init (&mgr->ref_tracker,16 ,"drm_dptun" ,"dptun" );#endif for (i =0 ; i < max_group_count; i++) {
drivers/gpu/drm/i915/intel_runtime_pm.c +3 -1
@@ -59,7 +59,9 @@ static struct drm_i915_private *rpm_to_i915(struct intel_runtime_pm *rpm)static void init_intel_runtime_pm_wakeref (struct intel_runtime_pm *rpm) { -ref_tracker_dir_init (&rpm->debug,INTEL_REFTRACK_DEAD_COUNT ,dev_name (rpm->kdev)); +if (!rpm->debug.class) +ref_tracker_dir_init (&rpm->debug,INTEL_REFTRACK_DEAD_COUNT , +"intel_runtime_pm" ,dev_name (rpm->kdev)); } static intel_wakeref_t
drivers/gpu/drm/i915/intel_wakeref.c +2 -1
@@ -114,7 +114,8 @@ void __intel_wakeref_init(struct intel_wakeref *wf, "wakeref.work", &key->work, 0);#if IS_ENABLED (CONFIG_DRM_I915_DEBUG_WAKEREF ) -ref_tracker_dir_init (&wf->debug,INTEL_REFTRACK_DEAD_COUNT , name); +if (!wf->debug.class) +ref_tracker_dir_init (&wf->debug,INTEL_REFTRACK_DEAD_COUNT ,"intel_wakeref" , name);#endif }
include/linux/ref_tracker.h +4 -0
@@ -19,6 +19,7 @@ struct ref_tracker_dir {bool dead;struct list_head list;/* List of active trackers */ struct list_head quarantine;/* List of dead trackers */ +const char *class;/* object classname */ char name[32 ];#endif };
@@ -27,6 +28,7 @@ struct ref_tracker_dir {static inline void ref_tracker_dir_init (struct ref_tracker_dir *dir,unsigned int quarantine_count, +const char *class,const char *name) {INIT_LIST_HEAD (&dir->list);
@@ -36,6 +38,7 @@ static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir, dir->dead = false;refcount_set (&dir->untracked,1 );refcount_set (&dir->no_tracker,1 ); + dir->class = class;strscpy (dir->name, name,sizeof (dir->name));stack_depot_init (); }
@@ -60,6 +63,7 @@ int ref_tracker_free(struct ref_tracker_dir *dir,static inline void ref_tracker_dir_init (struct ref_tracker_dir *dir,unsigned int quarantine_count, +const char *class,const char *name) { }
lib/test_ref_tracker.c +1 -1
@@ -64,7 +64,7 @@ static int __init test_ref_tracker_init(void) {int i; -ref_tracker_dir_init (&ref_dir,100 ,"selftest" ); +ref_tracker_dir_init (&ref_dir,100 ,"selftest" ,"selftest" );timer_setup (&test_ref_tracker_timer, test_ref_tracker_timer_func,0 );mod_timer (&test_ref_tracker_timer, jiffies +1 );
net/core/dev.c +1 -1
@@ -11714,7 +11714,7 @@ struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name, dev->priv_len = sizeof_priv; -ref_tracker_dir_init (&dev->refcnt_tracker,128 , name); +ref_tracker_dir_init (&dev->refcnt_tracker,128 ,"netdev" , name);#ifdef CONFIG_PCPU_DEV_REFCNT dev->pcpu_refcnt =alloc_percpu (int);if (!dev->pcpu_refcnt)
net/core/net_namespace.c +2 -2
@@ -403,8 +403,8 @@ static __net_init void preinit_net(struct net *net, struct user_namespace *user_ {refcount_set (&net->passive,1 );refcount_set (&net->ns.count,1 ); -ref_tracker_dir_init (&net->refcnt_tracker,128 ,"net refcnt" ); -ref_tracker_dir_init (&net->notrefcnt_tracker,128 ,"net notrefcnt" ); +ref_tracker_dir_init (&net->refcnt_tracker,128 ,"net_refcnt" ,"net_refcnt" ); +ref_tracker_dir_init (&net->notrefcnt_tracker,128 ,"net_notrefcnt" ,"net_notrefcnt" );get_random_bytes (&net->hash_mix,sizeof (u32)); net->dev_base_seq =1 ;
Signature · 1 line
2.49.0
PATCH v13 5/9 ref_tracker: allow pr_ostream() to print directly to a seq_file
In reply to Jeff LaytonAllow pr_ostream to also output directly to a seq_file without an intermediate buffer. The first caller of +ref_tracker_dir_seq_print() will come in a later patch, so mark that __maybe_unused for now. That designation will be removed once it is used.
--- lib/ref_tracker.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
lib/ref_tracker.c +26 -0
@@ -8,6 +8,7 @@#include <linux/slab.h> #include <linux/stacktrace.h> #include <linux/stackdepot.h> +#include <linux/seq_file.h> #define REF_TRACKER_STACK_ENTRIES 16#define STACK_BUF_SIZE 1024
@@ -66,6 +67,7 @@ struct ostream { void __ostream_printf (*func)(struct ostream *stream, char *fmt, ...);char *prefix;char *buf; +struct seq_file *seq;int size, used; };
@@ -301,6 +303,30 @@ EXPORT_SYMBOL_GPL(ref_tracker_free);static struct dentry *ref_tracker_debug_dir = (struct dentry *)-ENOENT ; +static void __ostream_printf pr_ostream_seq(struct ostream *stream, char *fmt, ...) +{ +va_list args; + +va_start (args, fmt); +seq_vprintf (stream->seq, fmt, args); +va_end (args); +} + +static __maybe_unused int +ref_tracker_dir_seq_print (struct ref_tracker_dir *dir,struct seq_file *seq) +{ +struct ostream os = { .func = pr_ostream_seq, + .prefix ="" , + .seq = seq }; +unsigned long flags; + +spin_lock_irqsave (&dir->lock, flags); +__ref_tracker_dir_pr_ostream (dir,16 , &os); +spin_unlock_irqrestore (&dir->lock, flags); + +return os.used; +} +static int __init ref_tracker_debugfs_init (void ) { ref_tracker_debug_dir =debugfs_create_dir ("ref_tracker" ,NULL );
Signature · 1 line
2.49.0
PATCH v13 6/9 ref_tracker: automatically register a file in debugfs for a ref_tracker_dir
In reply to Jeff LaytonCurrently, there is no convenient way to see the info that the ref_tracking infrastructure collects. Attempt to create a file in debugfs when called from ref_tracker_dir_init().
The file is given the name "class@%px", as having the unmodified address is helpful for debugging. This should be safe since this directory is only accessible by root
If debugfs file creation fails, a pr_warn will be isssued.
--- include/linux/ref_tracker.h | 23 ++++++++++++++++ lib/ref_tracker.c | 67 +++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 88 insertions(+), 2 deletions(-)
include/linux/ref_tracker.h +23 -0
@@ -20,12 +20,27 @@ struct ref_tracker_dir {struct list_head list;/* List of active trackers */ struct list_head quarantine;/* List of dead trackers */ const char *class;/* object classname */ +#ifdef CONFIG_DEBUG_FS +struct dentry *dentry; +#endif char name[32 ];#endif };#ifdef CONFIG_REF_TRACKER +#ifdef CONFIG_DEBUG_FS + +void ref_tracker_dir_debugfs (struct ref_tracker_dir *dir); + +#else /* CONFIG_DEBUG_FS */ + +static inline void ref_tracker_dir_debugfs (struct ref_tracker_dir *dir) +{ +} + +#endif /* CONFIG_DEBUG_FS */ + static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir, unsigned int quarantine_count, const char *class,
@@ -39,7 +54,11 @@ static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir,refcount_set (&dir->untracked,1 );refcount_set (&dir->no_tracker,1 ); dir->class = class; +#ifdef CONFIG_DEBUG_FS + dir->dentry =NULL ; +#endif strscpy (dir->name, name,sizeof (dir->name)); +ref_tracker_dir_debugfs (dir);stack_depot_init (); }
@@ -68,6 +87,10 @@ static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir, { } +static inline void ref_tracker_dir_debugfs (struct ref_tracker_dir *dir) +{ +} +static inline void ref_tracker_dir_exit (struct ref_tracker_dir *dir) { }
lib/ref_tracker.c +65 -2
91 lines not on this page · raw message
Signature · 1 line
2.49.0
PATCH v13 7/9 ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file
In reply to Jeff LaytonAdd the ability for a subsystem to add a user-friendly symlink that points to a ref_tracker_dir's debugfs file.
--- include/linux/ref_tracker.h | 13 +++++++++++++ lib/ref_tracker.c | 22 ++++++++++++++++++++++ 2 files changed, 35 insertions(+)
include/linux/ref_tracker.h +13 -0
@@ -22,6 +22,7 @@ struct ref_tracker_dir {const char *class;/* object classname */ #ifdef CONFIG_DEBUG_FS struct dentry *dentry; +struct dentry *symlink;#endif char name[32 ];#endif
@@ -32,6 +33,7 @@ struct ref_tracker_dir {#ifdef CONFIG_DEBUG_FS void ref_tracker_dir_debugfs (struct ref_tracker_dir *dir); +void ref_tracker_dir_symlink (struct ref_tracker_dir *dir,const char *fmt, ...);#else /* CONFIG_DEBUG_FS */
@@ -39,6 +41,11 @@ static inline void ref_tracker_dir_debugfs(struct ref_tracker_dir *dir) { } +static inline __ostream_printf +void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...) +{ +} +#endif /* CONFIG_DEBUG_FS */ static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir,
@@ -56,6 +63,7 @@ static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir, dir->class = class;#ifdef CONFIG_DEBUG_FS dir->dentry =NULL ; + dir->symlink =NULL ;#endif strscpy (dir->name, name,sizeof (dir->name));ref_tracker_dir_debugfs (dir);
@@ -91,6 +99,11 @@ static inline void ref_tracker_dir_debugfs(struct ref_tracker_dir *dir) { } +static inline __ostream_printf +void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...) +{ +} +static inline void ref_tracker_dir_exit (struct ref_tracker_dir *dir) { }
lib/ref_tracker.c +22 -0
@@ -385,8 +385,30 @@ void ref_tracker_dir_debugfs(struct ref_tracker_dir *dir) }EXPORT_SYMBOL (ref_tracker_dir_debugfs); +void __ostream_printf ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...) +{ +char name[NAME_MAX +1 ]; +va_list args; +int ret; + +/* Already created, or dentry doesn't exist? Do nothing */ +if (!IS_ERR_OR_NULL (dir->symlink) ||IS_ERR_OR_NULL (dir->dentry)) +return ; + +va_start (args, fmt); + ret =vsnprintf (name,sizeof (name), fmt, args); +va_end (args); + name[sizeof (name) -1 ] ='\0' ; + +if (ret <sizeof (name)) + dir->symlink =debugfs_create_symlink (name, ref_tracker_debug_dir, + dir->dentry->d_name.name); +} +EXPORT_SYMBOL (ref_tracker_dir_symlink); +static void ref_tracker_debugfs_remove (struct ref_tracker_dir *dir) { +debugfs_remove (dir->symlink);debugfs_remove (dir->dentry); }
Signature · 1 line
2.49.0
PATCH v13 8/9 net: add symlinks to ref_tracker_dir for netns
In reply to Jeff LaytonAfter assigning the inode number to the namespace, use it to create a unique name for each netns refcount tracker with the ns.inum and net_cookie values in it, and register a symlink to the debugfs file for it.
init_net is registered before the ref_tracker dir is created, so add a late_initcall() to register its files and symlinks.
--- net/core/net_namespace.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-)
net/core/net_namespace.c +29 -1
@@ -791,12 +791,40 @@ struct net *get_net_ns_by_pid(pid_t pid) }EXPORT_SYMBOL_GPL (get_net_ns_by_pid); +#ifdef CONFIG_NET_NS_REFCNT_TRACKER +static void net_ns_net_debugfs (struct net *net) +{ +ref_tracker_dir_symlink (&net->refcnt_tracker,"netns-%llx-%u-refcnt" , + net->net_cookie, net->ns.inum); +ref_tracker_dir_symlink (&net->notrefcnt_tracker,"netns-%llx-%u-notrefcnt" , + net->net_cookie, net->ns.inum); +} + +static int __init init_net_debugfs (void ) +{ +ref_tracker_dir_debugfs (&init_net.refcnt_tracker); +ref_tracker_dir_debugfs (&init_net.notrefcnt_tracker); +net_ns_net_debugfs (&init_net); +return 0 ; +} +late_initcall (init_net_debugfs); +#else +static void net_ns_net_debugfs (struct net *net) +{ +} +#endif +static __net_init int net_ns_net_init (struct net *net) { +int ret; +#ifdef CONFIG_NET_NS net->ns.ops = &netns_operations;#endif -return ns_alloc_inum (&net->ns); + ret =ns_alloc_inum (&net->ns); +if (!ret) +net_ns_net_debugfs (net); +return ret; } static __net_exit void net_ns_net_exit(struct net *net)
Signature · 1 line
2.49.0
PATCH v13 9/9 ref_tracker: eliminate the ref_tracker_dir name field
In reply to Jeff LaytonNow that we have dentries and the ability to create meaningful symlinks to them, don't keep a name string in each tracker. Switch the output format to print "class@address", and drop the name field.
Also, add a kerneldoc header for ref_tracker_dir_init().
--- drivers/gpu/drm/display/drm_dp_tunnel.c | 2 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 2 +- drivers/gpu/drm/i915/intel_wakeref.c | 2 +- include/linux/ref_tracker.h | 20 ++++++++++++++------ lib/ref_tracker.c | 6 +++--- lib/test_ref_tracker.c | 2 +- net/core/dev.c | 2 +- net/core/net_namespace.c | 4 ++-- 8 files changed, 24 insertions(+), 16 deletions(-)
drivers/gpu/drm/display/drm_dp_tunnel.c +1 -1
@@ -1920,7 +1920,7 @@ drm_dp_tunnel_mgr_create(struct drm_device *dev, int max_group_count) }#ifdef CONFIG_DRM_DISPLAY_DP_TUNNEL_STATE_DEBUG -ref_tracker_dir_init (&mgr->ref_tracker,16 ,"drm_dptun" ,"dptun" ); +ref_tracker_dir_init (&mgr->ref_tracker,16 ,"drm_dptun" );#endif for (i =0 ; i < max_group_count; i++) {
drivers/gpu/drm/i915/intel_runtime_pm.c +1 -1
@@ -61,7 +61,7 @@ static void init_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) {if (!rpm->debug.class)ref_tracker_dir_init (&rpm->debug,INTEL_REFTRACK_DEAD_COUNT , -"intel_runtime_pm" ,dev_name (rpm->kdev)); +"intel_runtime_pm" ); } static intel_wakeref_t
drivers/gpu/drm/i915/intel_wakeref.c +1 -1
@@ -115,7 +115,7 @@ void __intel_wakeref_init(struct intel_wakeref *wf,#if IS_ENABLED (CONFIG_DRM_I915_DEBUG_WAKEREF )if (!wf->debug.class) -ref_tracker_dir_init (&wf->debug,INTEL_REFTRACK_DEAD_COUNT ,"intel_wakeref" , name); +ref_tracker_dir_init (&wf->debug,INTEL_REFTRACK_DEAD_COUNT ,"intel_wakeref" );#endif }
include/linux/ref_tracker.h +14 -6
@@ -24,7 +24,6 @@ struct ref_tracker_dir {struct dentry *dentry;struct dentry *symlink;#endif -char name[32 ];#endif };
@@ -48,10 +47,21 @@ void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)#endif /* CONFIG_DEBUG_FS */ +/** +* ref_tracker_dir_init - initialize a ref_tracker dir +* @dir: ref_tracker_dir to be initialized +* @quarantine_count: max number of entries to be tracked +* @class: pointer to static string that describes object type +* +* Initialize a ref_tracker_dir. If debugfs is configured, then a file +* will also be created for it under the top-level ref_tracker debugfs +* directory. +* +* Note that @class must point to a static string. +*/ static inline void ref_tracker_dir_init (struct ref_tracker_dir *dir,unsigned int quarantine_count, -const char *class, -const char *name) +const char *class) {INIT_LIST_HEAD (&dir->list);INIT_LIST_HEAD (&dir->quarantine);
@@ -65,7 +75,6 @@ static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir, dir->dentry =NULL ; dir->symlink =NULL ;#endif -strscpy (dir->name, name,sizeof (dir->name));ref_tracker_dir_debugfs (dir);stack_depot_init (); }
@@ -90,8 +99,7 @@ int ref_tracker_free(struct ref_tracker_dir *dir,static inline void ref_tracker_dir_init (struct ref_tracker_dir *dir,unsigned int quarantine_count, -const char *class, -const char *name) +const char *class) { }
lib/ref_tracker.c +3 -3
@@ -124,7 +124,7 @@ __ref_tracker_dir_pr_ostream(struct ref_tracker_dir *dir, stats =ref_tracker_get_stats (dir, display_limit);if (IS_ERR (stats)) {pr_ostream (s,"%s%s@%p: couldn't get stats, error %pe\n" , - s->prefix, dir->name, dir, stats); + s->prefix, dir->class, dir, stats);return ; }
@@ -135,14 +135,14 @@ __ref_tracker_dir_pr_ostream(struct ref_tracker_dir *dir,if (sbuf && !stack_depot_snprint (stack, sbuf,STACK_BUF_SIZE ,4 )) sbuf[0 ] =0 ;pr_ostream (s,"%s%s@%p has %d/%d users at\n%s\n" , s->prefix, - dir->name, dir, stats->stacks[i].count, + dir->class, dir, stats->stacks[i].count, stats->total, sbuf); skipped -= stats->stacks[i].count; }if (skipped)pr_ostream (s,"%s%s@%p skipped reports about %d/%d users.\n" , - s->prefix, dir->name, dir, skipped, stats->total); + s->prefix, dir->class, dir, skipped, stats->total);kfree (sbuf);
lib/test_ref_tracker.c +1 -1
@@ -64,7 +64,7 @@ static int __init test_ref_tracker_init(void) {int i; -ref_tracker_dir_init (&ref_dir,100 ,"selftest" ,"selftest" ); +ref_tracker_dir_init (&ref_dir,100 ,"selftest" );timer_setup (&test_ref_tracker_timer, test_ref_tracker_timer_func,0 );mod_timer (&test_ref_tracker_timer, jiffies +1 );
net/core/dev.c +1 -1
@@ -11714,7 +11714,7 @@ struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name, dev->priv_len = sizeof_priv; -ref_tracker_dir_init (&dev->refcnt_tracker,128 ,"netdev" , name); +ref_tracker_dir_init (&dev->refcnt_tracker,128 ,"netdev" );#ifdef CONFIG_PCPU_DEV_REFCNT dev->pcpu_refcnt =alloc_percpu (int);if (!dev->pcpu_refcnt)
net/core/net_namespace.c +2 -2
@@ -403,8 +403,8 @@ static __net_init void preinit_net(struct net *net, struct user_namespace *user_ {refcount_set (&net->passive,1 );refcount_set (&net->ns.count,1 ); -ref_tracker_dir_init (&net->refcnt_tracker,128 ,"net_refcnt" ,"net_refcnt" ); -ref_tracker_dir_init (&net->notrefcnt_tracker,128 ,"net_notrefcnt" ,"net_notrefcnt" ); +ref_tracker_dir_init (&net->refcnt_tracker,128 ,"net_refcnt" ); +ref_tracker_dir_init (&net->notrefcnt_tracker,128 ,"net_notrefcnt" );get_random_bytes (&net->hash_mix,sizeof (u32)); net->dev_base_seq =1 ;
Signature · 1 line
2.49.0
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev9)
In reply to Jeff Layton== Series Details ==
== Series Details ==
Series: ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev9)
URL : https://patchwork.freedesktop.org/series/148490/
State : warning
== Summary ==
Error: dim checkpatch failed00c8ac947842 ref_tracker: don't use %pK in pr_ostream() output
-:14: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?) #14:
[1]: https://lore.kernel.org/netdev/[email protected]/
total: 0 errors, 1 warnings, 0 checks, 23 lines checkedce02b70c482b ref_tracker: add a top level debugfs directory for ref_tracker 55d40ca1f391 ref_tracker: have callers pass output function to pr_ostream() -:37: WARNING:SPACING: space prohibited between function name and open parenthesis '(' #37: FILE: lib/ref_tracker.c:66:
+ void __ostream_printf (*func)(struct ostream *stream, char *fmt, ...);
total: 0 errors, 1 warnings, 0 checks, 102 lines checked0da660830e6a ref_tracker: add a static classname string to each ref_tracker_dir9ba29b28520a ref_tracker: allow pr_ostream() to print directly to a seq_file4ffff1cb354b ref_tracker: automatically register a file in debugfs for a ref_tracker_dir
-:155: WARNING:VSPRINTF_SPECIFIER_PX: Using vsprintf specifier '%px' potentially exposes the kernel memory layout, if you don't really need the address please consider using '%p'. #155: FILE: lib/ref_tracker.c:378:
+ ret = snprintf(name, sizeof(name), "%s@%px", dir->class, dir);
total: 0 errors, 1 warnings, 0 checks, 139 lines checkedc7a9738cff5c ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file dd204f2841dd net: add symlinks to ref_tracker_dir for netns6b0358c379f9 ref_tracker: eliminate the ref_tracker_dir name field
Patchwork
CI✗ Fi.CI.SPARSE: warning for ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev9)
In reply to Jeff Layton== Series Details ==
== Series Details ==
Series: ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev9)
URL : https://patchwork.freedesktop.org/series/148490/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.
Patchwork
CI✗ i915.CI.BAT: failure for ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev9)
In reply to Jeff Layton== Series Details ==
== Series Details ==
Series: ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev9)
URL : https://patchwork.freedesktop.org/series/148490/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_16637 -> Patchwork_148490v9
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_148490v9 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_148490v9, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/index.html
Participating hosts (42 -> 42)
------------------------------
Additional (1): bat-arlh-2
Missing (1): fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_148490v9:
### IGT changes ###
#### Possible regressions ####
* igt@i915_pm_rpm@module-reload:
- bat-dg2-14: [PASS][1] -> [DMESG-WARN][2] +44 other tests dmesg-warn
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-dg2-14/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-dg2-14/igt@[email protected]
- fi-bsw-nick: [PASS][3] -> [DMESG-WARN][4] +40 other tests dmesg-warn
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-bsw-nick/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-bsw-nick/igt@[email protected]
- bat-kbl-2: [PASS][5] -> [DMESG-WARN][6] +40 other tests dmesg-warn
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-kbl-2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-kbl-2/igt@[email protected]
- bat-adlp-6: [PASS][7] -> [DMESG-WARN][8] +40 other tests dmesg-warn
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-adlp-6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-adlp-6/igt@[email protected]
* igt@i915_selftest@live@client:
- fi-elk-e7500: [PASS][9] -> [DMESG-WARN][10] +39 other tests dmesg-warn
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-elk-e7500/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-elk-e7500/igt@i915_selftest@[email protected]
- fi-kbl-guc: [PASS][11] -> [DMESG-WARN][12] +39 other tests dmesg-warn
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-kbl-guc/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-kbl-guc/igt@i915_selftest@[email protected]
- bat-adls-6: [PASS][13] -> [DMESG-WARN][14] +40 other tests dmesg-warn
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-adls-6/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-adls-6/igt@i915_selftest@[email protected]
- bat-dg1-7: [PASS][15] -> [DMESG-WARN][16] +15 other tests dmesg-warn
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-dg1-7/igt@i915_selftest@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-dg1-7/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@coherency:
- fi-kbl-x1275: [PASS][17] -> [DMESG-WARN][18] +39 other tests dmesg-warn
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-kbl-x1275/igt@i915_selftest@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-kbl-x1275/igt@i915_selftest@[email protected]
- bat-adlp-11: [PASS][19] -> [DMESG-WARN][20] +40 other tests dmesg-warn
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-adlp-11/igt@i915_selftest@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-adlp-11/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@evict:
- fi-pnv-d510: [PASS][21] -> [DMESG-WARN][22] +39 other tests dmesg-warn
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-pnv-d510/igt@i915_selftest@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-pnv-d510/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gem:
- fi-rkl-11600: [PASS][23] -> [DMESG-WARN][24] +40 other tests dmesg-warn
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-rkl-11600/igt@i915_selftest@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-rkl-11600/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gem_contexts:
- bat-arls-6: [PASS][25] -> [DMESG-WARN][26] +38 other tests dmesg-warn
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-arls-6/igt@i915_selftest@live@gem_contexts.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arls-6/igt@i915_selftest@live@gem_contexts.html
- bat-arlh-3: [PASS][27] -> [DMESG-WARN][28] +38 other tests dmesg-warn
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-arlh-3/igt@i915_selftest@live@gem_contexts.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-3/igt@i915_selftest@live@gem_contexts.html
* igt@i915_selftest@live@gt_engines:
- bat-dg1-6: [PASS][29] -> [DMESG-WARN][30] +44 other tests dmesg-warn
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-dg1-6/igt@i915_selftest@live@gt_engines.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-dg1-6/igt@i915_selftest@live@gt_engines.html
- fi-ilk-650: [PASS][31] -> [DMESG-WARN][32] +38 other tests dmesg-warn
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-ilk-650/igt@i915_selftest@live@gt_engines.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-ilk-650/igt@i915_selftest@live@gt_engines.html
* igt@i915_selftest@live@gt_mocs:
- bat-twl-2: [PASS][33] -> [DMESG-WARN][34] +38 other tests dmesg-warn
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-twl-2/igt@i915_selftest@live@gt_mocs.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-twl-2/igt@i915_selftest@live@gt_mocs.html
* igt@i915_selftest@live@gt_pm:
- fi-tgl-1115g4: [PASS][35] -> [DMESG-WARN][36] +40 other tests dmesg-warn
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-tgl-1115g4/igt@i915_selftest@live@gt_pm.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-tgl-1115g4/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@gt_tlb:
- bat-adlp-9: [PASS][37] -> [DMESG-WARN][38] +40 other tests dmesg-warn
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-adlp-9/igt@i915_selftest@live@gt_tlb.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-adlp-9/igt@i915_selftest@live@gt_tlb.html
* igt@i915_selftest@live@guc_hang:
- bat-dg2-9: [PASS][39] -> [DMESG-WARN][40] +15 other tests dmesg-warn
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-dg2-9/igt@i915_selftest@live@guc_hang.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-dg2-9/igt@i915_selftest@live@guc_hang.html
* igt@i915_selftest@live@guc_multi_lrc:
- bat-mtlp-8: [PASS][41] -> [DMESG-WARN][42] +38 other tests dmesg-warn
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-mtlp-8/igt@i915_selftest@live@guc_multi_lrc.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-mtlp-8/igt@i915_selftest@live@guc_multi_lrc.html
* igt@i915_selftest@live@hangcheck:
- bat-atsm-1: [PASS][43] -> [DMESG-WARN][44] +41 other tests dmesg-warn
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-atsm-1/igt@i915_selftest@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-atsm-1/igt@i915_selftest@[email protected]
- bat-mtlp-9: [PASS][45] -> [DMESG-WARN][46] +20 other tests dmesg-warn
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-mtlp-9/igt@i915_selftest@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-mtlp-9/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@late_gt_pm:
- fi-cfl-8109u: [PASS][47] -> [DMESG-WARN][48] +38 other tests dmesg-warn
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
- fi-kbl-8809g: [PASS][49] -> [DMESG-WARN][50] +40 other tests dmesg-warn
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-kbl-8809g/igt@i915_selftest@live@late_gt_pm.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-kbl-8809g/igt@i915_selftest@live@late_gt_pm.html
* igt@i915_selftest@live@objects:
- fi-blb-e6850: [PASS][51] -> [DMESG-WARN][52] +38 other tests dmesg-warn
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-blb-e6850/igt@i915_selftest@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-blb-e6850/igt@i915_selftest@[email protected]
- fi-skl-6600u: [PASS][53] -> [DMESG-WARN][54] +40 other tests dmesg-warn
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-skl-6600u/igt@i915_selftest@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-skl-6600u/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@perf:
- bat-dg2-11: [PASS][55] -> [DMESG-WARN][56] +42 other tests dmesg-warn
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-dg2-11/igt@i915_selftest@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-dg2-11/igt@i915_selftest@[email protected]
- fi-hsw-4770: [PASS][57] -> [DMESG-WARN][58] +39 other tests dmesg-warn
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-hsw-4770/igt@i915_selftest@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-hsw-4770/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@ring_submission:
- fi-ivb-3770: [PASS][59] -> [DMESG-WARN][60] +39 other tests dmesg-warn
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-ivb-3770/igt@i915_selftest@live@ring_submission.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-ivb-3770/igt@i915_selftest@live@ring_submission.html
- bat-dg2-8: [PASS][61] -> [DMESG-WARN][62] +15 other tests dmesg-warn
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-dg2-8/igt@i915_selftest@live@ring_submission.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-dg2-8/igt@i915_selftest@live@ring_submission.html
* igt@i915_selftest@live@sanitycheck:
- fi-kbl-7567u: [PASS][63] -> [DMESG-WARN][64] +40 other tests dmesg-warn
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-kbl-7567u/igt@i915_selftest@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-kbl-7567u/igt@i915_selftest@[email protected]
- bat-twl-1: [PASS][65] -> [DMESG-WARN][66] +39 other tests dmesg-warn
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-twl-1/igt@i915_selftest@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-twl-1/igt@i915_selftest@[email protected]
- bat-apl-1: [PASS][67] -> [DMESG-WARN][68] +39 other tests dmesg-warn
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-apl-1/igt@i915_selftest@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-apl-1/igt@i915_selftest@[email protected]
- bat-arls-5: [PASS][69] -> [DMESG-WARN][70] +38 other tests dmesg-warn
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-arls-5/igt@i915_selftest@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arls-5/igt@i915_selftest@[email protected]
- bat-rplp-1: [PASS][71] -> [DMESG-WARN][72] +40 other tests dmesg-warn
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-rplp-1/igt@i915_selftest@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-rplp-1/igt@i915_selftest@[email protected]
- bat-arlh-2: NOTRUN -> [DMESG-WARN][73] +22 other tests dmesg-warn
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@slpc:
- fi-cfl-guc: [PASS][74] -> [DMESG-WARN][75] +40 other tests dmesg-warn
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-cfl-guc/igt@i915_selftest@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-cfl-guc/igt@i915_selftest@[email protected]
- bat-mtlp-6: [PASS][76] -> [DMESG-WARN][77] +38 other tests dmesg-warn
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-mtlp-6/igt@i915_selftest@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-mtlp-6/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@vma:
- fi-cfl-8700k: [PASS][78] -> [DMESG-WARN][79] +40 other tests dmesg-warn
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-cfl-8700k/igt@i915_selftest@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-cfl-8700k/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@workarounds:
- fi-bsw-n3050: [PASS][80] -> [DMESG-WARN][81] +40 other tests dmesg-warn
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/fi-bsw-n3050/igt@i915_selftest@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/fi-bsw-n3050/igt@i915_selftest@[email protected]
#### Warnings ####
* igt@i915_module_load@reload:
- bat-twl-1: [DMESG-WARN][82] ([i915#13736]) -> [DMESG-WARN][83]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-twl-1/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-twl-1/igt@[email protected]
* igt@i915_selftest@live:
- bat-arlh-3: [DMESG-FAIL][84] ([i915#14243]) -> [DMESG-WARN][85] +1 other test dmesg-warn
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-arlh-3/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-3/igt@[email protected]
- bat-mtlp-9: [DMESG-FAIL][86] ([i915#12061]) -> [DMESG-WARN][87]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-mtlp-9/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-mtlp-9/igt@[email protected]
* igt@i915_selftest@live@late_gt_pm:
- bat-twl-2: [ABORT][88] ([i915#14357]) -> [DMESG-WARN][89] +1 other test dmesg-warn
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-twl-2/igt@i915_selftest@live@late_gt_pm.html
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-twl-2/igt@i915_selftest@live@late_gt_pm.html
* igt@i915_selftest@live@workarounds:
- bat-arls-5: [DMESG-FAIL][90] ([i915#12061]) -> [DMESG-WARN][91] +1 other test dmesg-warn
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-arls-5/igt@i915_selftest@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arls-5/igt@i915_selftest@[email protected]
- bat-mtlp-6: [DMESG-FAIL][92] ([i915#12061]) -> [DMESG-WARN][93] +1 other test dmesg-warn
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-mtlp-6/igt@i915_selftest@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-mtlp-6/igt@i915_selftest@[email protected]
- bat-dg2-11: [DMESG-FAIL][94] ([i915#12061]) -> [DMESG-WARN][95] +1 other test dmesg-warn
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-dg2-11/igt@i915_selftest@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-dg2-11/igt@i915_selftest@[email protected]
- bat-arls-6: [DMESG-FAIL][96] ([i915#12061]) -> [DMESG-WARN][97] +1 other test dmesg-warn
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-arls-6/igt@i915_selftest@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arls-6/igt@i915_selftest@[email protected]
Known issues
------------
Here are the changes found in Patchwork_148490v9 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@fbdev@eof:
- bat-arlh-2: NOTRUN -> [SKIP][98] ([i915#11345] / [i915#11346]) +3 other tests skip
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@fbdev@info:
- bat-arlh-2: NOTRUN -> [SKIP][99] ([i915#11346] / [i915#1849])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- bat-arlh-2: NOTRUN -> [SKIP][100] ([i915#10213] / [i915#11346] / [i915#11671]) +3 other tests skip
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@gem_mmap@basic:
- bat-arlh-2: NOTRUN -> [SKIP][101] ([i915#11343] / [i915#11346])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@gem_render_tiled_blits@basic:
- bat-arlh-2: NOTRUN -> [SKIP][102] ([i915#10197] / [i915#10211] / [i915#11346] / [i915#11725])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@gem_tiled_blits@basic:
- bat-arlh-2: NOTRUN -> [SKIP][103] ([i915#11346] / [i915#12637]) +4 other tests skip
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@gem_tiled_pread_basic:
- bat-arlh-2: NOTRUN -> [SKIP][104] ([i915#10206] / [i915#11346] / [i915#11724])
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@gem_tiled_pread_basic.html
* igt@i915_pm_rps@basic-api:
- bat-arlh-2: NOTRUN -> [SKIP][105] ([i915#10209] / [i915#11346] / [i915#11681])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@i915_selftest@live:
- bat-arlh-2: NOTRUN -> [ABORT][106] ([i915#13723]) +1 other test abort
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@intel_hwmon@hwmon-read:
- bat-arlh-2: NOTRUN -> [SKIP][107] ([i915#11346] / [i915#11680] / [i915#7707]) +1 other test skip
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-arlh-2: NOTRUN -> [SKIP][108] ([i915#10200] / [i915#11346] / [i915#11666] / [i915#12203])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@kms_addfb_basic@basic-x-tiled-legacy:
- bat-arlh-2: NOTRUN -> [SKIP][109] ([i915#10200] / [i915#11346] / [i915#11666]) +8 other tests skip
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@kms_hdmi_inject@inject-audio:
- bat-arls-6: [PASS][110] -> [FAIL][111] ([i915#13930])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-arls-6/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arls-6/igt@[email protected]
* igt@kms_psr@psr-primary-page-flip:
- bat-arlh-2: NOTRUN -> [SKIP][112] ([i915#11346]) +32 other tests skip
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- bat-arlh-2: NOTRUN -> [SKIP][113] ([i915#10208] / [i915#11346] / [i915#8809])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@prime_vgem@basic-fence-read:
- bat-arlh-2: NOTRUN -> [SKIP][114] ([i915#10212] / [i915#11346] / [i915#11726])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@prime_vgem@basic-read:
- bat-arlh-2: NOTRUN -> [SKIP][115] ([i915#10214] / [i915#11346] / [i915#11726])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
* igt@prime_vgem@basic-write:
- bat-arlh-2: NOTRUN -> [SKIP][116] ([i915#10216] / [i915#11346] / [i915#11723])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-arlh-2/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@workarounds:
- bat-mtlp-9: [DMESG-FAIL][117] ([i915#12061]) -> [PASS][118]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16637/bat-mtlp-9/igt@i915_selftest@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/bat-mtlp-9/igt@i915_selftest@[email protected]
[i915#10197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10197
[i915#10200]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10200
[i915#10206]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10206
[i915#10208]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10208
[i915#10209]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10209
[i915#10211]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10211
[i915#10212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10212
[i915#10213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10213
[i915#10214]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10214
[i915#10216]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10216
[i915#11343]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11343
[i915#11345]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11345
[i915#11346]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11346
[i915#11666]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11666
[i915#11671]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11671
[i915#11680]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11680
[i915#11681]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11681
[i915#11723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11723
[i915#11724]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11724
[i915#11725]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11725
[i915#11726]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11726
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12203]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12203
[i915#12637]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12637
[i915#13723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13723
[i915#13736]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13736
[i915#13930]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13930
[i915#14243]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14243
[i915#14357]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14357
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#7707]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7707
[i915#8809]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8809
Build changes
-------------
* Linux: CI_DRM_16637 -> Patchwork_148490v9
CI-20190529: 20190529
CI_DRM_16637: bea2a0d35dc29d6ae8a4e44506af9b563f012211 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8392: 8392
Patchwork_148490v9: bea2a0d35dc29d6ae8a4e44506af9b563f012211 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/index.html
Re: ✗ i915.CI.BAT: failure for ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev9)
Quoted 56 lines · Patchwork
Patch Details
Series:ref_tracker: add ability to register a debugfs file for aref_tracker_dir(rev9)
URL: https://patchwork.freedesktop.org/series/148490/
State: failure
Details: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/index.htmlCI Bug Log - changes from
CI_DRM_16637->Patchwork_148490v9SummaryFAILURE
Serious unknown changes coming withPatchwork_148490v9absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced inPatchwork_148490v9, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v9/index.html
Participating hosts (42 -> 42)Additional (1): bat-arlh-2
Missing (1): fi-snb-2520m
Possible new issuesHere are the unknown changes that may have been introduced inPatchwork_148490v9:
IGT changesPossible regressions *
igt@i915_pm_rpm@module-reload:bat-dg2-14: PASS -> DMESG-WARN +44 other tests dmesg-warnfi-bsw-nick: PASS -> DMESG-WARN +40 other tests dmesg-warnbat-kbl-2: PASS -> DMESG-WARN +40 other tests dmesg-warnbat-adlp-6: PASS -> DMESG-WARN +40 other tests dmesg-warn
*
igt@i915_selftest@live@client:fi-elk-e7500: PASS -> DMESG-WARN +39 other tests dmesg-warnfi-kbl-guc: PASS -> DMESG-WARN +39 other tests dmesg-warnbat-adls-6: PASS -> DMESG-WARN +40 other tests dmesg-warnbat-dg1-7: PASS -> DMESG-WARN +15 other tests dmesg-warn
*
igt@i915_selftest@live@coherency:fi-kbl-x1275: PASS -> DMESG-WARN +39 other tests dmesg-warnbat-adlp-11: PASS -> DMESG-WARN +40 other tests dmesg-warn
*
igt@i915_selftest@live@evict:fi-pnv-d510: PASS -> DMESG-WARN +39 other tests dmesg-warn
*
igt@i915_selftest@live@gem:fi-rkl-11600: PASS -> DMESG-WARN +40 other tests dmesg-warn
*
igt@i915_selftest@live@gem_contexts:bat-arls-6: PASS -> DMESG-WARN +38 other tests dmesg-warnbat-arlh-3: PASS -> DMESG-WARN +38 other tests dmesg-warn
*
igt@i915_selftest@live@gt_engines:bat-dg1-6: PASS -> DMESG-WARN +44 other tests dmesg-warnfi-ilk-650: PASS -> DMESG-WARN +38 other tests dmesg-warn
*
igt@i915_selftest@live@gt_mocs:bat-twl-2: PASS -> DMESG-WARN +38 other tests dmesg-warn
*
igt@i915_selftest@live@gt_pm:fi-tgl-1115g4: PASS -> DMESG-WARN +40 other tests dmesg-warn
*
igt@i915_selftest@live@gt_tlb:bat-adlp-9: PASS -> DMESG-WARN +40 other tests dmesg-warn
*
igt@i915_selftest@live@guc_hang:bat-dg2-9: PASS -> DMESG-WARN +15 other tests dmesg-warn
*
igt@i915_selftest@live@guc_multi_lrc:bat-mtlp-8: PASS -> DMESG-WARN +38 other tests dmesg-warn
*
igt@i915_selftest@live@hangcheck:bat-atsm-1: PASS -> DMESG-WARN +41 other tests dmesg-warnbat-mtlp-9: PASS -> DMESG-WARN +20 other tests dmesg-warn
*
igt@i915_selftest@live@late_gt_pm:fi-cfl-8109u: PASS -> DMESG-WARN +38 other tests dmesg-warnfi-kbl-8809g: PASS -> DMESG-WARN +40 other tests dmesg-warn
*
igt@i915_selftest@live@objects:fi-blb-e6850: PASS -> DMESG-WARN +38 other tests dmesg-warnfi-skl-6600u: PASS -> DMESG-WARN +40 other tests dmesg-warn
*
igt@i915_selftest@live@perf:bat-dg2-11: PASS -> DMESG-WARN +42 other tests dmesg-warnfi-hsw-4770: PASS -> DMESG-WARN +39 other tests dmesg-warn
*
igt@i915_selftest@live@ring_submission:fi-ivb-3770: PASS -> DMESG-WARN +39 other tests dmesg-warnbat-dg2-8: PASS -> DMESG-WARN +15 other tests dmesg-warn
*
igt@i915_selftest@live@sanitycheck:fi-kbl-7567u: PASS -> DMESG-WARN +40 other tests dmesg-warnbat-twl-1: PASS -> DMESG-WARN +39 other tests dmesg-warnbat-apl-1: PASS -> DMESG-WARN +39 other tests dmesg-warnbat-arls-5: PASS -> DMESG-WARN +38 other tests dmesg-warnbat-rplp-1: PASS -> DMESG-WARN +40 other tests dmesg-warnbat-arlh-2: NOTRUN -> DMESG-WARN +22 other tests dmesg-warn
Quoted 8 lines
*
igt@i915_selftest@live@slpc:fi-cfl-guc: PASS -> DMESG-WARN +40 other tests dmesg-warnbat-mtlp-6: PASS -> DMESG-WARN +38 other tests dmesg-warn
*
igt@i915_selftest@live@vma:fi-cfl-8700k: PASS -> DMESG-WARN +40 other tests dmesg-warn
*
igt@i915_selftest@live@workarounds:fi-bsw-n3050: PASS -> DMESG-WARN +40 other tests dmesg-warn
Warnings *
igt@i915_module_load@reload:bat-twl-1: DMESG-WARN (i915#13736) -> DMESG-WARN
I'm very confused by this CI report, and I suspect that this may be a bug in the i915 driver. The log above shows several instances of messages like this:
<3> [414.085231] debugfs: File 'intel_wakeref@ffff88810f9c2308' in directory 'ref_tracker' already present!
...but if you look at the patch, it changes the code to only call ref_tracker_dir_init() when the "class" pointer isn't set. Since the containing object is zalloced, that should ensure that it only does this once:
if (!wf->debug.class)
ref_tracker_dir_init(&wf->debug,INTEL_REFTRACK_DEAD_COUNT, "intel_wakeref");
I think that the only way this could be happening is if the driver is doing something like zeroing out the object that contains the struct ref_tracker_dir and reinitializing it.
Does the i915 driver do that? Can we make it call ref_tracker_dir_exit() before doing so? I don't think that practice is safe if there are outstanding references at the time it occurs.
Quoted 49 lines
*
igt@i915_selftest@live:bat-arlh-3: DMESG-FAIL (i915#14243) -> DMESG-WARN +1 other test dmesg-warnbat-mtlp-9: DMESG-FAIL (i915#12061) -> DMESG-WARN
*
igt@i915_selftest@live@late_gt_pm:bat-twl-2: ABORT (i915#14357) -> DMESG-WARN +1 other test dmesg-warn
*
igt@i915_selftest@live@workarounds:bat-arls-5: DMESG-FAIL (i915#12061) -> DMESG-WARN +1 other test dmesg-warnbat-mtlp-6: DMESG-FAIL (i915#12061) -> DMESG-WARN +1 other test dmesg-warnbat-dg2-11: DMESG-FAIL (i915#12061) -> DMESG-WARN +1 other test dmesg-warnbat-arls-6: DMESG-FAIL (i915#12061) -> DMESG-WARN +1 other test dmesg-warn
Known issuesHere are the changes found inPatchwork_148490v9that come from known issues:
IGT changesIssues hit *
igt@fbdev@eof:bat-arlh-2: NOTRUN -> SKIP (i915#11345 / i915#11346) +3 other tests skip
*
igt@fbdev@info:bat-arlh-2: NOTRUN -> SKIP (i915#11346 / i915#1849)
*
igt@gem_lmem_swapping@basic:bat-arlh-2: NOTRUN -> SKIP (i915#10213 / i915#11346 / i915#11671) +3 other tests skip
*
igt@gem_mmap@basic:bat-arlh-2: NOTRUN -> SKIP (i915#11343 / i915#11346)
*
igt@gem_render_tiled_blits@basic:bat-arlh-2: NOTRUN -> SKIP (i915#10197 / i915#10211 / i915#11346 / i915#11725)
*
igt@gem_tiled_blits@basic:bat-arlh-2: NOTRUN -> SKIP (i915#11346 / i915#12637) +4 other tests skip
*
igt@gem_tiled_pread_basic:bat-arlh-2: NOTRUN -> SKIP (i915#10206 / i915#11346 / i915#11724)
*
igt@i915_pm_rps@basic-api:bat-arlh-2: NOTRUN -> SKIP (i915#10209 / i915#11346 / i915#11681)
*
igt@i915_selftest@live:bat-arlh-2: NOTRUN -> ABORT (i915#13723) +1 other test abort
*
igt@intel_hwmon@hwmon-read:bat-arlh-2: NOTRUN -> SKIP (i915#11346 / i915#11680 / i915#7707) +1 other test skip
*
igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:bat-arlh-2: NOTRUN -> SKIP (i915#10200 / i915#11346 / i915#11666 / i915#12203)
*
igt@kms_addfb_basic@basic-x-tiled-legacy:bat-arlh-2: NOTRUN -> SKIP (i915#10200 / i915#11346 / i915#11666) +8 other tests skip
*
igt@kms_hdmi_inject@inject-audio:bat-arls-6: PASS -> FAIL (i915#13930)
*
igt@kms_psr@psr-primary-page-flip:bat-arlh-2: NOTRUN -> SKIP (i915#11346) +32 other tests skip
*
igt@kms_setmode@basic-clone-single-crtc:bat-arlh-2: NOTRUN -> SKIP (i915#10208 / i915#11346 / i915#8809)
*
igt@prime_vgem@basic-fence-read:bat-arlh-2: NOTRUN -> SKIP (i915#10212 / i915#11346 / i915#11726)
*
igt@prime_vgem@basic-read:bat-arlh-2: NOTRUN -> SKIP (i915#10214 / i915#11346 / i915#11726)
*
igt@prime_vgem@basic-write:bat-arlh-2: NOTRUN -> SKIP (i915#10216 / i915#11346 / i915#11723)
Possible fixes * igt@i915_selftest@live@workarounds:bat-mtlp-9: DMESG-FAIL (i915#12061) -> PASS
Build changes * Linux:CI_DRM_16637->Patchwork_148490v9
CI-20190529: 20190529
CI_DRM_16637:bea2a0d35dc29d6ae8a4e44506af9b563f012211@git://anongit.freedesktop.org/gfx-ci/linux
IGT_8392: 8392
Patchwork_148490v9:bea2a0d35dc29d6ae8a4e44506af9b563f012211@git://anongit.freedesktop.org/gfx-ci/linux
Signature · 1 line
Jeff Layton <[email protected]>
Jakub Kicinski
maintainerQuoted 14 lines · On Tue, 03 Jun 2025 07:27:11 -0400 Jeff Layton wrote:
For those just joining in, this series adds a new top-level "
ref_tracker" debugfs directory, and has eachref_tracker_dirregister a file in there as part of its initialization. It also adds the ability to register a symlink with a more human-usable name that points to the file, and does some general cleanup of how theref_trackerobject names are handled.This reposting is mostly to address Krzysztof's comments. I've dropped the i915 patch, and rebased the rest of the series on top.
Note that I still see debugfs: warnings in the i915 driver even when we gate the registration of the debugfs file on the classname pointer being NULL. Here is a CI report from v12:
Quoted 6 lines
https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v8/bat-arls-6/igt@i915_selftest@[email protected]I think the i915 driver is doing something it shouldn't with these objects. They seem to be initialized more than once, which could lead to leaked
ref_trackerobjects. It would be good for one of the i915 maintainers to comment on whether this is a real problem.
I still see the fs crashes:
https://netdev-3.bots.linux.dev/vmksft-packetdrill-dbg/results/149560/2-tcp-slow-start-slow-start-app-limited-pkt/stderr
I'll hide this series from patchwork for now. We will pull from Linus on Thu, I'll reactivate it and let's see if the problem was already fixed.
Andrew Morton
maintainerQuoted 10 lines · On Tue, 3 Jun 2025 19:29:49 -0700 Jakub Kicinski <[email protected]> wrote:
Quoted 4 lines
I think the i915 driver is doing something it shouldn't with these objects. They seem to be initialized more than once, which could lead to leaked
ref_trackerobjects. It would be good for one of the i915 maintainers to comment on whether this is a real problem.I still see the fs crashes:
https://netdev-3.bots.linux.dev/vmksft-packetdrill-dbg/results/149560/2-tcp-slow-start-slow-start-app-limited-pkt/stderr
I'll hide this series from patchwork for now. We will pull from Linus on Thu, I'll reactivate it and let's see if the problem was already fixed.
Ah. I dropped the copy from mm.git.
Quoted 22 lines · Jakub Kicinski
Quoted 14 lines · On Tue, 03 Jun 2025 07:27:11 -0400 Jeff Layton wrote:
For those just joining in, this series adds a new top-level "
ref_tracker" debugfs directory, and has eachref_tracker_dirregister a file in there as part of its initialization. It also adds the ability to register a symlink with a more human-usable name that points to the file, and does some general cleanup of how theref_trackerobject names are handled.This reposting is mostly to address Krzysztof's comments. I've dropped the i915 patch, and rebased the rest of the series on top.
Note that I still see debugfs: warnings in the i915 driver even when we gate the registration of the debugfs file on the classname pointer being NULL. Here is a CI report from v12:
Quoted 6 lines
https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_148490v8/bat-arls-6/igt@i915_selftest@[email protected]I think the i915 driver is doing something it shouldn't with these objects. They seem to be initialized more than once, which could lead to leaked
ref_trackerobjects. It would be good for one of the i915 maintainers to comment on whether this is a real problem.
Quoted 5 lines
I still see the fs crashes:
https://netdev-3.bots.linux.dev/vmksft-packetdrill-dbg/results/149560/2-tcp-slow-start-slow-start-app-limited-pkt/stderr
I'll hide this series from patchwork for now. We will pull from Linus on Thu, I'll reactivate it and let's see if the problem was already fixed.
Sorry, I never got any mail about those failures. I would have looked at that sooner. It looks like the last netns reference can be put in a rcu callback? That makes sense.
I think ref_tracker_dir_exit() has to remain safe to call from any context. Perhaps we can defer the dentry deletion to the system_wq?
We can drop this series for now. I'll have to think about this.
Thanks,
Signature · 1 line
Jeff Layton <[email protected]>