drm/i915/dg1: Add HWMON power sensor support
Subsystems (2)
PATCH 1/1 drm/i915/dg1: Add HWMON power sensor support
As part of the System Managemenent Interface (SMI), use the HWMON subsystem to display power utilization.
The following standard HWMON power sensors are currently supported (and appropriately scaled):
/sys/class/drm/card0/device/hwmon/hwmon<i>
- energy1_input
- power1_cap
- power1_max
Some non-standard HWMON power information is also provided, such as enable bits and intervals.
--- drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.c | 8 + drivers/gpu/drm/i915/i915_drv.h | 3 + drivers/gpu/drm/i915/i915_hwmon.c | 785 ++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/i915_hwmon.h | 41 ++ drivers/gpu/drm/i915/i915_reg.h | 53 ++ 7 files changed, 892 insertions(+) create mode 100644 drivers/gpu/drm/i915/i915_hwmon.c create mode 100644 drivers/gpu/drm/i915/i915_hwmon.h
drivers/gpu/drm/i915/Kconfig +1 -0
@@ -14,6 +14,7 @@ config DRM_I915 select DRM_MIPI_DSI select RELAY select IRQ_WORK + select HWMON # i915 depends on ACPI_VIDEO when ACPI is enabled # but for select to work, need to select ACPI_VIDEO's dependencies, ick select BACKLIGHT_CLASS_DEVICE if ACPI
drivers/gpu/drm/i915/Makefile +1 -0
@@ -37,6 +37,7 @@ i915-y += i915_drv.o \ i915_config.o \ i915_irq.o \ i915_getparam.o \ + i915_hwmon.o \ i915_mitigations.o \ i915_params.o \ i915_pci.o \
drivers/gpu/drm/i915/i915_drv.c +8 -0
@@ -69,6 +69,7 @@#include "i915_debugfs.h" #include "i915_drv.h" +#include "i915_hwmon.h" #include "i915_ioc32.h" #include "i915_irq.h" #include "i915_memcpy.h"
@@ -671,6 +672,10 @@ static void i915_driver_register(struct drm_i915_private *dev_priv)return ; } +/* Register with hwmon */ +if (i915_hwmon_init (&dev_priv->drm)) +drm_err (&dev_priv->drm,"Failed to register driver hwmon!\n" ); +i915_debugfs_register (dev_priv);i915_setup_sysfs (dev_priv);
@@ -711,6 +716,9 @@ static void i915_driver_unregister(struct drm_i915_private *dev_priv)i915_pmu_unregister (dev_priv);i915_teardown_sysfs (dev_priv); + +i915_hwmon_fini (&dev_priv->drm); +drm_dev_unplug (&dev_priv->drm);i915_gem_driver_unregister (dev_priv);
drivers/gpu/drm/i915/i915_drv.h +3 -0
@@ -61,6 +61,7 @@#include <drm/drm_connector.h> #include <drm/i915_mei_hdcp_interface.h> +#include "i915_hwmon.h" #include "i915_params.h" #include "i915_reg.h" #include "i915_utils.h"
@@ -1108,6 +1109,8 @@ struct drm_i915_private {struct i915_perf perf; +struct i915_hwmon hwmon; +/* Abstract the submission mechanism (legacy ringbuffer or execlists) away */ struct intel_gt gt;
drivers/gpu/drm/i915/i915_hwmon.c new file +785 -0
785 lines not on this page · raw message
drivers/gpu/drm/i915/i915_hwmon.h new file +41 -0
41 lines not on this page · raw message
drivers/gpu/drm/i915/i915_reg.h +53 -0
59 lines not on this page · raw message
Signature · 6 lines
2.31.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
kernel test robot
build botThank you for the patch! Perhaps something to improve:
Hi Dale,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip next-20210325] [cannot apply to v5.12-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dale-B-Stimson/drm-i915-dg1-Add-HWMON-power-sensor-support/20210326-035458 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: x86_64-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/a4d0cd77d477a9f1389f4af775878deea0749632 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Dale-B-Stimson/drm-i915-dg1-Add-HWMON-power-sensor-support/20210326-035458 git checkout a4d0cd77d477a9f1389f4af775878deea0749632 # save the attached .config to linux build tree make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_hwmon.c:19: warning: wrong kernel-doc identifier on line:
* SF_* - scale factors for particular quantities.
vim +19 drivers/gpu/drm/i915/i915_hwmon.c
17
18 /**
> 19 * SF_* - scale factors for particular quantities. 20 * The hwmon standard says that quantities of the given types are specified
21 * in the given units:
22 * - time - milliseconds
23 * - power - microwatts
24 * - energy - microjoules
25 */
26
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
kernel test robot
build botThank you for the patch! Perhaps something to improve:
Hi Dale,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip next-20210325] [cannot apply to v5.12-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dale-B-Stimson/drm-i915-dg1-Add-HWMON-power-sensor-support/20210326-035458 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: x86_64-randconfig-s022-20210325 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-277-gc089cd2d-dirty # https://github.com/0day-ci/linux/commit/a4d0cd77d477a9f1389f4af775878deea0749632 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Dale-B-Stimson/drm-i915-dg1-Add-HWMON-power-sensor-support/20210326-035458 git checkout a4d0cd77d477a9f1389f4af775878deea0749632 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/i915_hwmon.c:720:48: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 [usertype] v @@ got unsigned int [assigned] [usertype] val_sku_unit @@ drivers/gpu/drm/i915/i915_hwmon.c:720:48: sparse: expected restricted __le32 [usertype] v drivers/gpu/drm/i915/i915_hwmon.c:720:48: sparse: got unsigned int [assigned] [usertype] val_sku_unit drivers/gpu/drm/i915/i915_hwmon.c:721:49: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 [usertype] v @@ got unsigned int [assigned] [usertype] val_sku_unit @@ drivers/gpu/drm/i915/i915_hwmon.c:721:49: sparse: expected restricted __le32 [usertype] v drivers/gpu/drm/i915/i915_hwmon.c:721:49: sparse: got unsigned int [assigned] [usertype] val_sku_unit drivers/gpu/drm/i915/i915_hwmon.c:722:47: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 [usertype] v @@ got unsigned int [assigned] [usertype] val_sku_unit @@ drivers/gpu/drm/i915/i915_hwmon.c:722:47: sparse: expected restricted __le32 [usertype] v drivers/gpu/drm/i915/i915_hwmon.c:722:47: sparse: got unsigned int [assigned] [usertype] val_sku_unit >> drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 [usertype] v @@ got unsigned int [assigned] [usertype] reg_value @@ drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: expected restricted __le32 [usertype] v drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: got unsigned int [assigned] [usertype] reg_value >> drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] bits_to_set @@ got restricted __le32 @@ drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: expected unsigned int [usertype] bits_to_set drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: got restricted __le32 >> drivers/gpu/drm/i915/i915_hwmon.c:87:35: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le64 [usertype] v @@ got unsigned long long [assigned] [usertype] reg_value @@ drivers/gpu/drm/i915/i915_hwmon.c:87:35: sparse: expected restricted __le64 [usertype] v drivers/gpu/drm/i915/i915_hwmon.c:87:35: sparse: got unsigned long long [assigned] [usertype] reg_value >> drivers/gpu/drm/i915/i915_hwmon.c:87:35: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le64 [usertype] v @@ got unsigned long long [assigned] [usertype] reg_value @@ drivers/gpu/drm/i915/i915_hwmon.c:87:35: sparse: expected restricted __le64 [usertype] v drivers/gpu/drm/i915/i915_hwmon.c:87:35: sparse: got unsigned long long [assigned] [usertype] reg_value >> drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 [usertype] v @@ got unsigned int [assigned] [usertype] reg_value @@ drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: expected restricted __le32 [usertype] v drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: got unsigned int [assigned] [usertype] reg_value >> drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 [usertype] v @@ got unsigned int [assigned] [usertype] reg_value @@ drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: expected restricted __le32 [usertype] v drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: got unsigned int [assigned] [usertype] reg_value >> drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] bits_to_set @@ got restricted __le32 @@ drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: expected unsigned int [usertype] bits_to_set drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: got restricted __le32 >> drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] bits_to_set @@ got restricted __le32 @@ drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: expected unsigned int [usertype] bits_to_set drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: got restricted __le32 >> drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 [usertype] v @@ got unsigned int [assigned] [usertype] reg_value @@ drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: expected restricted __le32 [usertype] v drivers/gpu/drm/i915/i915_hwmon.c:63:35: sparse: got unsigned int [assigned] [usertype] reg_value >> drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] bits_to_set @@ got restricted __le32 @@
drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: expected unsigned int [usertype] bits_to_set
drivers/gpu/drm/i915/i915_hwmon.c:114:21: sparse: got restricted __le32
vim +720 drivers/gpu/drm/i915/i915_hwmon.c
664
665 static void
666 i915_hwmon_get_preregistration_info(struct drm_i915_private *i915)
667 {
668 struct i915_hwmon *hwmon = &i915->hwmon;
669 struct intel_uncore *uncore = &i915->uncore;
670 intel_wakeref_t wakeref;
671 u32 val_sku_unit;
672
673 if (IS_DG1(i915)) {
674 hwmon->rg.pkg_power_sku_unit = PCU_PACKAGE_POWER_SKU_UNIT;
675 hwmon->rg.pkg_power_sku = PCU_PACKAGE_POWER_SKU;
676 hwmon->rg.pkg_energy_status = PCU_PACKAGE_ENERGY_STATUS;
677 hwmon->rg.pkg_rapl_limit = PCU_PACKAGE_RAPL_LIMIT;
678 hwmon->rg.pkg_rapl_limit_udw = PCU_PACKAGE_RAPL_LIMIT_UDW;
679 hwmon->rg.plt_energy_status = PCU_PLATFORM_ENERGY_STATUS;
680 } else {
681 hwmon->rg.pkg_power_sku_unit = INVALID_MMIO_REG;
682 hwmon->rg.pkg_power_sku = INVALID_MMIO_REG;
683 hwmon->rg.pkg_energy_status = INVALID_MMIO_REG;
684 hwmon->rg.pkg_rapl_limit = INVALID_MMIO_REG;
685 hwmon->rg.pkg_rapl_limit_udw = INVALID_MMIO_REG;
686 hwmon->rg.plt_energy_status = INVALID_MMIO_REG;
687 }
688
689 /*
690 * If a platform does not support *_PLATFORM_ENERGY_STATUS,
691 * try *PACKAGE_ENERGY_STATUS.
692 */
693 if (i915_mmio_reg_valid(hwmon->rg.plt_energy_status))
694 hwmon->rg.reg_energy_status = hwmon->rg.plt_energy_status;
695 else
696 hwmon->rg.reg_energy_status = hwmon->rg.pkg_energy_status;
697
698 wakeref = intel_runtime_pm_get(uncore->rpm);
699
700 /*
701 * The contents of register hwmon->rg.pkg_power_sku_unit do not change,
702 * so read it once and store the shift values.
703 */
704 if (i915_mmio_reg_valid(hwmon->rg.pkg_power_sku_unit))
705 val_sku_unit = intel_uncore_read(uncore,
706 hwmon->rg.pkg_power_sku_unit);
707 else
708 val_sku_unit = 0;
709
710 hwmon->energy_counter_overflow = 0;
711
712 if (i915_mmio_reg_valid(hwmon->rg.reg_energy_status))
713 hwmon->energy_counter_prev =
714 intel_uncore_read(uncore, hwmon->rg.reg_energy_status);
715 else
716 hwmon->energy_counter_prev = 0;
717
718 intel_runtime_pm_put(uncore->rpm, wakeref);
719
> 720 hwmon->scl_shift_power = le32_get_bits(val_sku_unit, PKG_PWR_UNIT); 721 hwmon->scl_shift_energy = le32_get_bits(val_sku_unit, PKG_ENERGY_UNIT); 722 hwmon->scl_shift_time = le32_get_bits(val_sku_unit, PKG_TIME_UNIT); 723 724 /* 725 * There is no direct way to obtain the power default_limit. 726 * The best known workaround is to use the initial value of power1_max. 727 * 728 * The value of power1_max is reset to the default on reboot, but is 729 * not reset by a module unload/load sequence. To allow proper 730 * functioning after a module reload, the value for power1_max is 731 * restored to its original value at module unload time in 732 * i915_hwmon_fini(). 733 */ 734 hwmon->power_max_initial_value = 735 (u32)_field_read_and_scale(uncore, 736 hwmon->rg.pkg_rapl_limit, 737 PKG_PWR_LIM_1, 738 hwmon->scl_shift_power, SF_POWER);
739 }
740
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dg1: Add HWMON power sensor support
In reply to Dale B Stimson== Series Details ==
== Series Details ==
Series: drm/i915/dg1: Add HWMON power sensor support
URL : https://patchwork.freedesktop.org/series/88459/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 254f99a0cef7 drm/i915/dg1: Add HWMON power sensor support -:21: WARNING:BAD_SIGN_OFF: Duplicate signature #21: Reported-by: kernel test robot <[email protected]>
-:102: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #102:
new file mode 100644
total: 0 errors, 2 warnings, 0 checks, 940 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/dg1: Add HWMON power sensor support
In reply to Dale B Stimson== Series Details ==
== Series Details ==
Series: drm/i915/dg1: Add HWMON power sensor support
URL : https://patchwork.freedesktop.org/series/88459/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. +drivers/gpu/drm/i915/i915_hwmon.c:114:21: expected unsigned int [usertype] bits_to_set +drivers/gpu/drm/i915/i915_hwmon.c:114:21: expected unsigned int [usertype] bits_to_set +drivers/gpu/drm/i915/i915_hwmon.c:114:21: expected unsigned int [usertype] bits_to_set +drivers/gpu/drm/i915/i915_hwmon.c:114:21: expected unsigned int [usertype] bits_to_set +drivers/gpu/drm/i915/i915_hwmon.c:114:21: got restricted __le32 +drivers/gpu/drm/i915/i915_hwmon.c:114:21: got restricted __le32 +drivers/gpu/drm/i915/i915_hwmon.c:114:21: got restricted __le32 +drivers/gpu/drm/i915/i915_hwmon.c:114:21: got restricted __le32 +drivers/gpu/drm/i915/i915_hwmon.c:114:21: warning: incorrect type in assignment (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:114:21: warning: incorrect type in assignment (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:114:21: warning: incorrect type in assignment (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:114:21: warning: incorrect type in assignment (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:63:35: expected restricted __le32 [usertype] v +drivers/gpu/drm/i915/i915_hwmon.c:63:35: expected restricted __le32 [usertype] v +drivers/gpu/drm/i915/i915_hwmon.c:63:35: expected restricted __le32 [usertype] v +drivers/gpu/drm/i915/i915_hwmon.c:63:35: expected restricted __le32 [usertype] v +drivers/gpu/drm/i915/i915_hwmon.c:63:35: got unsigned int [assigned] [usertype] reg_value +drivers/gpu/drm/i915/i915_hwmon.c:63:35: got unsigned int [assigned] [usertype] reg_value +drivers/gpu/drm/i915/i915_hwmon.c:63:35: got unsigned int [assigned] [usertype] reg_value +drivers/gpu/drm/i915/i915_hwmon.c:63:35: got unsigned int [assigned] [usertype] reg_value +drivers/gpu/drm/i915/i915_hwmon.c:63:35: warning: incorrect type in argument 1 (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:63:35: warning: incorrect type in argument 1 (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:63:35: warning: incorrect type in argument 1 (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:63:35: warning: incorrect type in argument 1 (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:720:48: expected restricted __le32 [usertype] v +drivers/gpu/drm/i915/i915_hwmon.c:720:48: got unsigned int [assigned] [usertype] val_sku_unit +drivers/gpu/drm/i915/i915_hwmon.c:720:48: warning: incorrect type in argument 1 (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:721:49: expected restricted __le32 [usertype] v +drivers/gpu/drm/i915/i915_hwmon.c:721:49: got unsigned int [assigned] [usertype] val_sku_unit +drivers/gpu/drm/i915/i915_hwmon.c:721:49: warning: incorrect type in argument 1 (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:722:47: expected restricted __le32 [usertype] v +drivers/gpu/drm/i915/i915_hwmon.c:722:47: got unsigned int [assigned] [usertype] val_sku_unit +drivers/gpu/drm/i915/i915_hwmon.c:722:47: warning: incorrect type in argument 1 (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:87:35: expected restricted __le64 [usertype] v +drivers/gpu/drm/i915/i915_hwmon.c:87:35: expected restricted __le64 [usertype] v +drivers/gpu/drm/i915/i915_hwmon.c:87:35: got unsigned long long [assigned] [usertype] reg_value +drivers/gpu/drm/i915/i915_hwmon.c:87:35: got unsigned long long [assigned] [usertype] reg_value +drivers/gpu/drm/i915/i915_hwmon.c:87:35: warning: incorrect type in argument 1 (different base types) +drivers/gpu/drm/i915/i915_hwmon.c:87:35: warning: incorrect type in argument 1 (different base types)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915/dg1: Add HWMON power sensor support
In reply to Dale B Stimson== Series Details ==
== Series Details ==
Series: drm/i915/dg1: Add HWMON power sensor support
URL : https://patchwork.freedesktop.org/series/88459/
State : warning
== Summary ==
$ make htmldocs 2>&1 > /dev/null | grep i915 ./drivers/gpu/drm/i915/gem/i915_gem_shrinker.c:102: warning: Function parameter or member 'ww' not described in 'i915_gem_shrink' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Excess function parameter 'trampoline' description in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Function parameter or member 'jump_whitelist' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Function parameter or member 'shadow_map' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Function parameter or member 'batch_map' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Excess function parameter 'trampoline' description in 'intel_engine_cmd_parser' /home/cidrm/kernel/Documentation/gpu/i915:22: ./drivers/gpu/drm/i915/intel_runtime_pm.c:423: WARNING: Inline strong start-string without end-string.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/dg1: Add HWMON power sensor support
In reply to Dale B Stimson== Series Details ==
== Series Details ==
Series: drm/i915/dg1: Add HWMON power sensor support
URL : https://patchwork.freedesktop.org/series/88459/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_9895 -> Patchwork_19859
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_19859 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_19859, please notify your bug team 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_19859/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_19859:
### IGT changes ###
#### Possible regressions ####
* igt@core_hotunplug@unbind-rebind:
- fi-bsw-nick: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9895/fi-bsw-nick/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19859/fi-bsw-nick/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_19859 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@fbdev@read:
- fi-tgl-y: [PASS][3] -> [DMESG-WARN][4] ([i915#402])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9895/fi-tgl-y/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19859/fi-tgl-y/igt@[email protected]
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-kbl-soraka: NOTRUN -> [SKIP][5] ([fdo#109271]) +24 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19859/fi-kbl-soraka/igt@gem_exec_fence@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#2190])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19859/fi-kbl-soraka/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][7] ([i915#1886] / [i915#2291])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19859/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-soraka: NOTRUN -> [SKIP][8] ([fdo#109271] / [fdo#111827]) +8 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19859/fi-kbl-soraka/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-soraka: NOTRUN -> [SKIP][9] ([fdo#109271] / [i915#533])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19859/fi-kbl-soraka/igt@[email protected]
#### Possible fixes ####
* igt@i915_getparams_basic@basic-subslice-total:
- fi-tgl-y: [DMESG-WARN][10] ([i915#402]) -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9895/fi-tgl-y/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19859/fi-tgl-y/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#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1222]: https://gitlab.freedesktop.org/drm/intel/issues/1222
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#3180]: https://gitlab.freedesktop.org/drm/intel/issues/3180
[i915#3278]: https://gitlab.freedesktop.org/drm/intel/issues/3278
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Participating hosts (46 -> 40)
------------------------------
Additional (1): fi-kbl-soraka
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-bsw-n3050 fi-bsw-cyan fi-icl-y fi-bsw-kefka fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_9895 -> Patchwork_19859
CI-20190529: 20190529
CI_DRM_9895: bb187b1b292c637c3ef195f46d6e5c74f60df8f4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6046: e76039273b1524147c43dba061756f06003d56ae @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19859: 254f99a0cef713056dc5c5b47b5c1bba94a1f234 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
254f99a0cef7 drm/i915/dg1: Add HWMON power sensor support
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19859/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
kernel test robot
build botThank you for the patch! Perhaps something to improve:
Hi Dale,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip next-20210325] [cannot apply to v5.12-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dale-B-Stimson/drm-i915-dg1-Add-HWMON-power-sensor-support/20210326-035458 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: x86_64-randconfig-a014-20210325 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d6b4aa80d6df62b924a12af030c5ded868ee4f1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/a4d0cd77d477a9f1389f4af775878deea0749632
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dale-B-Stimson/drm-i915-dg1-Add-HWMON-power-sensor-support/20210326-035458 git checkout a4d0cd77d477a9f1389f4af775878deea0749632
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_hwmon.c:19: warning: wrong kernel-doc identifier on line:
* SF_* - scale factors for particular quantities.
vim +19 drivers/gpu/drm/i915/i915_hwmon.c
17
18 /**
> 19 * SF_* - scale factors for particular quantities. 20 * The hwmon standard says that quantities of the given types are specified
21 * in the given units:
22 * - time - milliseconds
23 * - power - microwatts
24 * - energy - microjoules
25 */
26
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org