Some debugfs enhancements
Subsystems (2)
v3 cover Some debugfs enhancements
From: Andi Shyti <[email protected]>
Hi,
this two patches are few debugfs improvements. The first adds some helpers for reading the GT frequency, while the second patch moves all the power management debufs functions into gt/
Thanks Chris for the reviews.
Thanks,
Andi
Changelog:
==========
v2-v3: (v2: https://lists.freedesktop.org/archives/intel-gfx/2019-December/223277.html)
Fixed the three reviews from Chris
- removed the 'i915' prefix from the gt pm debugfs files
- fixed my laziness and made the debugfs pm files more gt
oriented. Now the only dependency remaining from the 'drm_i915_private' structure is for platform generation check.
- restored the 'node_to_i915' to its original position, as it's
not needed anymore.
v1-v2: (v1: https://lists.freedesktop.org/archives/intel-gfx/2019-December/222758.html)
- renamed functions from
intel_cagf_freq_read to intel_rps_read_actual_frequency intel_cagf_read to intel_rps_read_cagf
- created an independent gt/ directory in debugfs
Andi Shyti (2):
drm/i915/rps: Add frequency translation helpers drm/i915/gt: Move power management debug files into a gt aware debugfs
drivers/gpu/drm/i915/Makefile | 2 + drivers/gpu/drm/i915/gt/debugfs_gt.c | 19 + drivers/gpu/drm/i915/gt/debugfs_gt.h | 26 + drivers/gpu/drm/i915/gt/debugfs_pm.c | 626 +++++++++++++++++++++++ drivers/gpu/drm/i915/gt/debugfs_pm.h | 16 + drivers/gpu/drm/i915/gt/intel_gt_types.h | 3 + drivers/gpu/drm/i915/gt/intel_rps.c | 22 + drivers/gpu/drm/i915/gt/intel_rps.h | 2 + drivers/gpu/drm/i915/i915_debugfs.c | 590 +-------------------- drivers/gpu/drm/i915/i915_sysfs.c | 14 +- 10 files changed, 727 insertions(+), 593 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/debugfs_gt.c create mode 100644 drivers/gpu/drm/i915/gt/debugfs_gt.h create mode 100644 drivers/gpu/drm/i915/gt/debugfs_pm.c create mode 100644 drivers/gpu/drm/i915/gt/debugfs_pm.h
Signature · 6 lines
2.24.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Some debugfs enhancements (rev3)
== Series Details ==
== Series Details ==
Series: Some debugfs enhancements (rev3)
URL : https://patchwork.freedesktop.org/series/70658/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.6.0 Commit: drm/i915/rps: Add frequency translation helpers Okay!
Commit: drm/i915/gt: Move power management debug files into a gt aware debugfs +drivers/gpu/drm/i915/gt/debugfs_gt.c:9:5: warning: symbol 'debugfs_gt_init' was not declared. Should it be static?
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 1/2 drm/i915/rps: Add frequency translation helpers
In reply to Andi ShytiFrom: Andi Shyti <[email protected]>
Add two helpers that for reading the actual GT's frequency. The two helpers are:
- intel_rps_read_cagf: reads the frequency and returns it not normalized
- intel_rps_read_actual_frequency: provides the frequency in Hz.
Use the above helpers in sysfs and debugfs.
--- drivers/gpu/drm/i915/gt/intel_rps.c | 22 ++++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_rps.h | 2 ++ drivers/gpu/drm/i915/i915_debugfs.c | 21 +++++---------------- drivers/gpu/drm/i915/i915_sysfs.c | 14 ++------------ 4 files changed, 31 insertions(+), 28 deletions(-)
drivers/gpu/drm/i915/gt/intel_rps.c +22 -0
@@ -1682,6 +1682,28 @@ u32 intel_get_cagf(struct intel_rps *rps, u32 rpstat)return cagf; } +u32 intel_rps_read_cagf (struct intel_rps *rps) +{ +struct drm_i915_private *i915 =rps_to_i915 (rps); +u32 freq; + +if (IS_VALLEYVIEW (i915) ||IS_CHERRYVIEW (i915)) { +vlv_punit_get (i915); + freq =vlv_punit_read (i915,PUNIT_REG_GPU_FREQ_STS ); +vlv_punit_put (i915); + +return (freq >>8 ) &0xff ; + } + +return intel_get_cagf (rps,intel_uncore_read (rps_to_gt (rps)->uncore, +GEN6_RPSTAT1 )); +} + +u32 intel_rps_read_actual_frequency (struct intel_rps *rps) +{ +return intel_gpu_freq (rps,intel_rps_read_cagf (rps)); +} +/* External interface for intel_ips.ko */ static struct drm_i915_private __rcu *ips_mchdev;
drivers/gpu/drm/i915/gt/intel_rps.h +2 -0
@@ -30,6 +30,8 @@ void intel_rps_mark_interactive(struct intel_rps *rps, bool interactive);int intel_gpu_freq (struct intel_rps *rps,int val);int intel_freq_opcode (struct intel_rps *rps,int val);u32 intel_get_cagf (struct intel_rps *rps,u32 rpstat1); +u32 intel_rps_read_cagf (struct intel_rps *rps); +u32 intel_rps_read_actual_frequency (struct intel_rps *rps);void gen5_rps_irq_handler (struct intel_rps *rps);void gen6_rps_irq_handler (struct intel_rps *rps,u32 pm_iir);
drivers/gpu/drm/i915/i915_debugfs.c +5 -16
@@ -881,7 +881,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused) rpdownei =I915_READ (GEN6_RP_CUR_DOWN_EI ) &GEN6_CURIAVG_MASK ; rpcurdown =I915_READ (GEN6_RP_CUR_DOWN ) &GEN6_CURBSYTAVG_MASK ; rpprevdown =I915_READ (GEN6_RP_PREV_DOWN ) &GEN6_CURBSYTAVG_MASK ; - cagf =intel_gpu_freq (rps,intel_get_cagf (rps, rpstat)); + cagf =intel_rps_read_actual_frequency (rps);intel_uncore_forcewake_put (&dev_priv->uncore,FORCEWAKE_ALL );
@@ -1623,21 +1623,11 @@ static int i915_rps_boost_info(struct seq_file *m, void *data) {struct drm_i915_private *dev_priv =node_to_i915 (m->private);struct intel_rps *rps = &dev_priv->gt.rps; -u32 act_freq = rps->cur_freq; +u32 act_freq;intel_wakeref_t wakeref; - with_intel_runtime_pm_if_in_use(&dev_priv->runtime_pm, wakeref) { -if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv)) { -vlv_punit_get (dev_priv); - act_freq =vlv_punit_read (dev_priv, -PUNIT_REG_GPU_FREQ_STS ); -vlv_punit_put (dev_priv); - act_freq = (act_freq >>8 ) &0xff ; - }else { - act_freq =intel_get_cagf (rps, -I915_READ (GEN6_RPSTAT1 )); - } - } +with_intel_runtime_pm_if_in_use (&dev_priv->runtime_pm, wakeref) + act_freq = intel_rps_read_actual_frequency(rps);seq_printf (m,"RPS enabled? %d\n" , rps->enabled);seq_printf (m,"GPU busy? %s\n" ,yesno (dev_priv->gt.awake));
@@ -1645,8 +1635,7 @@ static int i915_rps_boost_info(struct seq_file *m, void *data) atomic_read(&rps->num_waiters));seq_printf (m,"Interactive? %d\n" ,READ_ONCE (rps->power.interactive));seq_printf (m,"Frequency requested %d, actual %d\n" , -intel_gpu_freq (rps, rps->cur_freq), -intel_gpu_freq (rps, act_freq)); +intel_gpu_freq (rps, rps->cur_freq), act_freq); seq_printf(m, " min hard:%d, soft:%d; max soft:%d, hard:%d\n", intel_gpu_freq(rps, rps->min_freq), intel_gpu_freq(rps, rps->min_freq_softlimit),
drivers/gpu/drm/i915/i915_sysfs.c +2 -12
@@ -265,20 +265,10 @@ static ssize_t gt_act_freq_mhz_show(struct device *kdev,u32 freq; wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm); - -if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv)) { -vlv_punit_get (dev_priv); - freq =vlv_punit_read (dev_priv,PUNIT_REG_GPU_FREQ_STS ); -vlv_punit_put (dev_priv); - - freq = (freq >>8 ) &0xff ; - }else { - freq =intel_get_cagf (rps,I915_READ (GEN6_RPSTAT1 )); - } - + freq =intel_rps_read_actual_frequency (rps);intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref); -return snprintf (buf,PAGE_SIZE ,"%d\n" ,intel_gpu_freq (rps, freq)); +return snprintf (buf,PAGE_SIZE ,"%d\n" , freq); } static ssize_t gt_cur_freq_mhz_show(struct device *kdev,
Signature · 6 lines
2.24.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v3 1/2] drm/i915/rps: Add frequency translation helpers
Quoting Andi Shyti (2019-12-13 12:45:48)
Quoted 37 lines
From: Andi Shyti <[email protected]>
Add two helpers that for reading the actual GT's frequency. The two helpers are:
-
intel_rps_read_cagf: reads the frequency and returns it not normalized-
intel_rps_read_actual_frequency: provides the frequency in Hz.Use the above helpers in sysfs and debugfs.
Signed-off-by Andi Shyti <[email protected]>--- drivers/gpu/drm/i915/gt/intel_rps.c | 22 ++++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_rps.h | 2 ++ drivers/gpu/drm/i915/i915_debugfs.c | 21 +++++---------------- drivers/gpu/drm/i915/i915_sysfs.c | 14 ++------------ 4 files changed, 31 insertions(+), 28 deletions(-)drivers/gpu/drm/i915/gt/intel_rps.c +9
-0@@ -1682,6 +1682,28 @@ u32 intel_get_cagf(struct intel_rps *rps, u32 rpstat)return cagf; } +u32 intel_rps_read_cagf (struct intel_rps *rps) +{ +struct drm_i915_private *i915 =rps_to_i915 (rps); +u32 freq; + +if (IS_VALLEYVIEW (i915) ||IS_CHERRYVIEW (i915)) { +vlv_punit_get (i915); + freq =vlv_punit_read (i915,PUNIT_REG_GPU_FREQ_STS ); +vlv_punit_put (i915);
drivers/gpu/drm/i915/gt/intel_rps.c u32 intel_get_cagf(struct intel_rps *rps, u32 rpstat) · line 1703
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_rps.c +10
-0+ +return (freq >>8 ) &0xff ; + } + +return intel_get_cagf (rps,intel_uncore_read (rps_to_gt (rps)->uncore, +GEN6_RPSTAT1 )); +} + +u32 intel_rps_read_actual_frequency (struct intel_rps *rps) +{
I'd go one step further and put the wakeref in here as well? (Grabbing a wakeref we already have isn't much of a cost, and this is debug so not critical.)
drivers/gpu/drm/i915/gt/intel_rps.c u32 intel_get_cagf(struct intel_rps *rps, u32 rpstat) · line 1704
Quoted 1 line
drivers/gpu/drm/i915/gt/intel_rps.c +1
-0+return intel_gpu_freq (rps,intel_rps_read_cagf (rps));
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 2/2 drm/i915/gt: Move power management debug files into a gt aware debugfs
In reply to Andi ShytiFrom: Andi Shyti <[email protected]>
The GT system is becoming more and more a stand-alone system in i915 and it's fair to assign it its own debugfs directory.
rc6, rps and llc debugfs files are gt related, move them into the gt debugfs directory.
--- drivers/gpu/drm/i915/Makefile | 2 + drivers/gpu/drm/i915/gt/debugfs_gt.c | 19 + drivers/gpu/drm/i915/gt/debugfs_gt.h | 26 + drivers/gpu/drm/i915/gt/debugfs_pm.c | 626 +++++++++++++++++++++++ drivers/gpu/drm/i915/gt/debugfs_pm.h | 16 + drivers/gpu/drm/i915/gt/intel_gt_types.h | 3 + drivers/gpu/drm/i915/i915_debugfs.c | 579 +-------------------- 7 files changed, 701 insertions(+), 570 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/debugfs_gt.c create mode 100644 drivers/gpu/drm/i915/gt/debugfs_gt.h create mode 100644 drivers/gpu/drm/i915/gt/debugfs_pm.c create mode 100644 drivers/gpu/drm/i915/gt/debugfs_pm.h
drivers/gpu/drm/i915/Makefile +2 -0
@@ -75,6 +75,8 @@ i915-$(CONFIG_PERF_EVENTS) += i915_pmu.o # "Graphics Technology" (aka we talk to the gpu) obj-y += gt/ gt-y += \ + gt/debugfs_gt.o \ + gt/debugfs_pm.o \ gt/intel_breadcrumbs.o \ gt/intel_context.o \ gt/intel_engine_cs.o \
drivers/gpu/drm/i915/gt/debugfs_gt.c new file +19 -0
@@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#include "debugfs_pm.h" +#include "i915_trace.h" + +int debugfs_gt_init (struct intel_gt *gt) +{ +struct drm_minor *minor = gt->i915->drm.primary; + +if (!minor->debugfs_root) +return -ENODEV ; + + gt->debugfs_entry =debugfs_create_dir ("gt" , minor->debugfs_root); + +return intel_gt_pm_debugfs_register (gt); +}
drivers/gpu/drm/i915/gt/debugfs_gt.h new file +26 -0
@@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef DEBUGFS_GT +#define DEBUGFS_GT + +#include "intel_gt_types.h" + +#define DEFINE_GT_DEBUGFS_ATTRIBUTE (__name) \ +static int __name ## _open(struct inode *inode, struct file *file) \ +{ \ + return single_open(file, __name ## _show, inode->i_private); \ +} \ +static const struct file_operations __name ## _fops = { \ + .owner = THIS_MODULE, \ + .open = __name ## _open, \ + .read = seq_read, \ + .llseek = seq_lseek, \ + .release = single_release, \ +} + +int debugfs_gt_init (struct intel_gt *gt); + +#endif /* DEBUGFS_GT */
drivers/gpu/drm/i915/gt/debugfs_pm.c new file +626 -0
626 lines not on this page · raw message
drivers/gpu/drm/i915/gt/debugfs_pm.h new file +16 -0
@@ -0,0 +1,16 @@ +/* +* SPDX-License-Identifier: MIT +* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef DEBUGFS_PM +#define DEBUGFS_PM + +#include <linux/seq_file.h> + +#include "intel_gt_types.h" + +int intel_gt_pm_debugfs_register (struct intel_gt *gt); + +#endif /* DEBUGFS_PM */
drivers/gpu/drm/i915/gt/intel_gt_types.h +3 -0
@@ -90,6 +90,9 @@ struct intel_gt {struct intel_engine_cs *engine[I915_NUM_ENGINES ];struct intel_engine_cs *engine_class[MAX_ENGINE_CLASS +1 ] [MAX_ENGINE_INSTANCE +1 ]; + +/** @debugfs_entry: debugfs directory for this GT */ +struct dentry *debugfs_entry; };enum intel_gt_scratch_field {
drivers/gpu/drm/i915/i915_debugfs.c +9 -570
637 lines not on this page · raw message
Signature · 6 lines
2.24.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v3 2/2] drm/i915/gt: Move power management debug files into a gt aware debugfs
Quoting Andi Shyti (2019-12-13 12:45:49)
Quoted 13 lines
(quoted diff) +12
-0+int debugfs_gt_init(struct intel_gt *gt) +{ + struct drm_minor *minor = gt->i915->drm.primary; + + if (!minor->debugfs_root) + return -ENODEV; + + gt->debugfs_entry = debugfs_create_dir("gt", minor->debugfs_root); + + return intel_gt_pm_debugfs_register(gt); +} +static const struct gt_pm_debugfs_files {
Review
Quoted 10 lines
(quoted diff) +10
-0+ const char *name; + const struct file_operations *fops; + bool (*eval)(struct intel_gt *gt); +} gt_pm_debugfs_files[] = { + { "frequency_info", &frequency_info_fops, NULL }, + { "ring_freq_table", &ring_freq_table_fops, ring_freq_table_eval }, + { "rps_boost_info", &rps_boost_info_fops, NULL }, + { "forcewake_domains", &forcewake_domains_fops, NULL }, + { "drpc_info", &drpc_info_fops, NULL }, + { "llc", &llc_fops, NULL },
Resort into alphabetical. We should probably cull a few. (Thinking rps_info, rc6_info, llc_info, with a few other debug knobs for specific use cases.)
Quoted 12 lines
drivers/gpu/drm/i915/gt/debugfs_pm.c new file +12
-0+}; + +int intel_gt_pm_debugfs_register (struct intel_gt *gt) +{ +struct dentry *root = gt->debugfs_entry; +int i; + +pr_info ("ANDIII function start\n" ); +if (unlikely (!root)) +return -ENODEV ; + +for (i =0 ; i <ARRAY_SIZE (gt_pm_debugfs_files); i++) {
drivers/gpu/drm/i915/gt/debugfs_pm.c line 625
Quoted 10 lines
drivers/gpu/drm/i915/gt/debugfs_pm.c new file +10
-0+const struct gt_pm_debugfs_files *f = >_pm_debugfs_files[i]; + +if (f->eval && !f->eval (gt)) +continue ; + +debugfs_create_file (f->name,0444 , root, gt, f->fops); + } +pr_info ("ANDIII function end\n" ); + +return 0 ;
Looking better!
Do we even need to keep the gt->debugfs_entry around? We are not going to ever do hotplug are we and so only need to populate once? -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v3 2/2] drm/i915/gt: Move power management debug files into a gt aware debugfs
Hi Chris,
Quoted 14 lines
Quoted 14 lines
drivers/gpu/drm/i915/gt/debugfs_pm.c new file +14
-0+int intel_gt_pm_debugfs_register (struct intel_gt *gt) +{ +struct dentry *root = gt->debugfs_entry; +int i; + +pr_info ("ANDIII function start\n" ); +if (unlikely (!root)) +return -ENODEV ; + +for (i =0 ; i <ARRAY_SIZE (gt_pm_debugfs_files); i++) { +const struct gt_pm_debugfs_files *f = >_pm_debugfs_files[i]; + +if (f->eval && !f->eval (gt)) +continue ;
Quoted 8 lines
drivers/gpu/drm/i915/gt/debugfs_pm.c line 625
Quoted 6 lines
drivers/gpu/drm/i915/gt/debugfs_pm.c new file +6
-0+ +debugfs_create_file (f->name,0444 , root, gt, f->fops); + } +pr_info ("ANDIII function end\n" ); + +return 0 ;Looking better!
you liked my wonderful debugging printouts? :D
Quoted 1 line
Do we even need to keep the
gt->debugfs_entryaround?
Yes, that can be removed, indeed, I was thinking that perhaps in the future we might need that pointer, but yes, definitely not necessary.
Quoted 2 lines
We are not going to ever do hotplug are we and so only need to populate once?
for example? do you mean something like files generated in certain conditions, like during interrupts or files generated and destroyed depending on the power state?
If so, you might want an interface for generating/destroying files, but do we have such case now to really care about?
Andi
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v3 2/2] drm/i915/gt: Move power management debug files into a gt aware debugfs
Quoting Andi Shyti (2019-12-13 14:44:04)
Quoted 36 lines
Hi Chris,
Quoted 14 lines
Quoted 14 lines
drivers/gpu/drm/i915/gt/debugfs_pm.c new file +14
-0+int intel_gt_pm_debugfs_register (struct intel_gt *gt) +{ +struct dentry *root = gt->debugfs_entry; +int i; + +pr_info ("ANDIII function start\n" ); +if (unlikely (!root)) +return -ENODEV ; + +for (i =0 ; i <ARRAY_SIZE (gt_pm_debugfs_files); i++) { +const struct gt_pm_debugfs_files *f = >_pm_debugfs_files[i]; + +if (f->eval && !f->eval (gt)) +continue ;Quoted 8 lines
drivers/gpu/drm/i915/gt/debugfs_pm.c line 625
Quoted 6 lines
drivers/gpu/drm/i915/gt/debugfs_pm.c new file +6
-0+ +debugfs_create_file (f->name,0444 , root, gt, f->fops); + } +pr_info ("ANDIII function end\n" ); + +return 0 ;Looking better!
you liked my wonderful debugging printouts? :D
Quoted 1 line
Do we even need to keep the
gt->debugfs_entryaround?Yes, that can be removed, indeed, I was thinking that perhaps in the future we might need that pointer, but yes, definitely not necessary.
Quoted 2 lines
We are not going to ever do hotplug are we and so only need to populate once?
Quoted 6 lines
for example? do you mean something like files generated in certain conditions, like during interrupts or files generated and destroyed depending on the power state?
If so, you might want an interface for generating/destroying files, but do we have such case now to really care about?
No, I was trying to highlight that such a dynamic interface is hard to deal with, so we don't bother unless it inherent in the HW and we can't avoid it. i.e. we only need to populate the debugfs once on boot and then can throw away our dentry pointers.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Some debugfs enhancements (rev3)
In reply to Andi Shyti== Series Details ==
== Series Details ==
Series: Some debugfs enhancements (rev3)
URL : https://patchwork.freedesktop.org/series/70658/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 459c6bf64d8f drm/i915/rps: Add frequency translation helpers 9bbd26a433a3 drm/i915/gt: Move power management debug files into a gt aware debugfs -:29: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #29: new file mode 100644
-:34: WARNING:SPDX_LICENSE_TAG: Improper SPDX comment style for 'drivers/gpu/drm/i915/gt/debugfs_gt.c', please use '//' instead #34: FILE: drivers/gpu/drm/i915/gt/debugfs_gt.c:1:
+/* SPDX-License-Identifier: MIT */
-:34: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #34: FILE: drivers/gpu/drm/i915/gt/debugfs_gt.c:1:
+/* SPDX-License-Identifier: MIT */
-:91: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #91: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:1:
+/*
-:92: WARNING:SPDX_LICENSE_TAG: Misplaced SPDX-License-Identifier tag - use line 1 instead #92: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:2:
+ * SPDX-License-Identifier: MIT
-:185: CHECK:BRACES: braces {} should be used on all arms of this statement #185: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:95:
+ if (INTEL_GEN(i915) >= 9)
[...]
+ else {
[...]
-:187: CHECK:BRACES: Unbalanced braces around else statement #187: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:97:
+ else {
-:516: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #516: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:426:
+ gen9_powergate_enable = intel_uncore_read(uncore,
+ GEN9_PG_ENABLE);
-:518: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #518: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:428:
+ gen9_powergate_status = intel_uncore_read(uncore,
+ GEN9_PWRGT_DOMAIN_STATUS);
-:531: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #531: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:441:
+ seq_printf(m, "Render Well Gating Enabled: %s\n",
+ yesno(gen9_powergate_enable & GEN9_RENDER_PG_ENABLE));
-:533: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #533: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:443:
+ seq_printf(m, "Media Well Gating Enabled: %s\n",
+ yesno(gen9_powergate_enable & GEN9_MEDIA_PG_ENABLE));
-:540: CHECK:CAMELCASE: Avoid CamelCase: <GEN6_RCn_MASK> #540: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:450:
+ switch (gt_core_status & GEN6_RCn_MASK) {
-:565: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #565: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:475:
+ seq_printf(m, "Render Power Well: %s\n",
+ (gen9_powergate_status &
-:568: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #568: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.c:478:
+ seq_printf(m, "Media Power Well: %s\n",
+ (gen9_powergate_status &
-:723: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #723: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.h:1:
+/*
-:724: WARNING:SPDX_LICENSE_TAG: Misplaced SPDX-License-Identifier tag - use line 1 instead #724: FILE: drivers/gpu/drm/i915/gt/debugfs_pm.h:2:
+ * SPDX-License-Identifier: MIT
total: 0 errors, 7 warnings, 9 checks, 1341 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for Some debugfs enhancements (rev3)
In reply to Andi Shyti== Series Details ==
== Series Details ==
Series: Some debugfs enhancements (rev3)
URL : https://patchwork.freedesktop.org/series/70658/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_7559 -> Patchwork_15746
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/index.html
Known issues
------------
Here are the changes found in Patchwork_15746 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_close_race@basic-threads:
- fi-byt-j1900: [PASS][1] -> [TIMEOUT][2] ([i915#816])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7559/fi-byt-j1900/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/fi-byt-j1900/igt@[email protected]
* igt@i915_selftest@live_requests:
- fi-hsw-4770: [PASS][3] -> [INCOMPLETE][4] ([i915#773])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7559/fi-hsw-4770/igt@i915_selftest@live_requests.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/fi-hsw-4770/igt@i915_selftest@live_requests.html
#### Possible fixes ####
* igt@gem_exec_gttfill@basic:
- {fi-tgl-guc}: [INCOMPLETE][5] ([fdo#111593]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7559/fi-tgl-guc/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/fi-tgl-guc/igt@[email protected]
- {fi-tgl-u}: [INCOMPLETE][7] ([fdo#111593]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7559/fi-tgl-u/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/fi-tgl-u/igt@[email protected]
* igt@i915_selftest@live_requests:
- fi-ivb-3770: [INCOMPLETE][9] ([i915#773]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7559/fi-ivb-3770/igt@i915_selftest@live_requests.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/fi-ivb-3770/igt@i915_selftest@live_requests.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][11] ([fdo#111407]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7559/fi-kbl-7500u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/fi-kbl-7500u/igt@[email protected]
#### Warnings ####
* igt@i915_selftest@live_gem_contexts:
- fi-byt-n2820: [DMESG-FAIL][13] -> [DMESG-FAIL][14] ([i915#722])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7559/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-kbl-x1275: [DMESG-WARN][15] ([i915#62] / [i915#92]) -> [DMESG-WARN][16] ([i915#62] / [i915#92] / [i915#95]) +8 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7559/fi-kbl-x1275/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/fi-kbl-x1275/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-before-cursor-varying-size:
- fi-kbl-x1275: [DMESG-WARN][17] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][18] ([i915#62] / [i915#92])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7559/fi-kbl-x1275/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/fi-kbl-x1275/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[fdo#111593]: https://bugs.freedesktop.org/show_bug.cgi?id=111593
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#722]: https://gitlab.freedesktop.org/drm/intel/issues/722
[i915#773]: https://gitlab.freedesktop.org/drm/intel/issues/773
[i915#816]: https://gitlab.freedesktop.org/drm/intel/issues/816
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (54 -> 46)
------------------------------
Additional (1): fi-whl-u
Missing (9): fi-icl-1065g7 fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-tgl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7559 -> Patchwork_15746
CI-20190529: 20190529
CI_DRM_7559: 20e59a24767007b53544c05d51ebeb874dbf194d @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5349: 048f58513d8b8ec6bb307a939f0ac959bc0f0e10 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15746: 9bbd26a433a319f361e5e71874acc7ca736aa33d @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
9bbd26a433a3 drm/i915/gt: Move power management debug files into a gt aware debugfs 459c6bf64d8f drm/i915/rps: Add frequency translation helpers
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15746/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx