Skip to contentSkip to conversation

Add hwmon energy support for dgfx

PATCH In review Riana Tauro 4 participants 15 messages Oct 17, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover Add hwmon energy support for dgfx

Introduce igt_power library that reads energy from hwmon & rapl interfaces. Replace igt_rapl with igt_power.

Modify the existing tests that use igt_rapl to igt_power.

Rev2: Re-order patches to fix compilation
Rev3: Add tests temporarily to BAT to test hwmon kernel series
Rev4: Identical to v3, sending again in order to "Test-with" kernel
hwmon series
Rev5: Add license to igt_hwmon files

Riana Tauro (8):
lib/igt_hwmon: Introduce library igt_hwmon lib/igt_power: Rename lib igt_rapl with igt_power lib/igt_power: Add hwmon interface to igt_power i915/i915_pm_rc6_residency: Add energy support for dgfx i915/gem_exec_schedule: Add energy support for dgfx i915/gem_exec_whisper: Add energy support for dgfx lib/igt_power: clean-up igt_power library
HAX: run i915_pm_rc6_residency tests in BAT

 lib/igt_hwmon.c                       |  74 +++++++++
 lib/igt_hwmon.h                       |  13 ++
 lib/igt_power.c                       | 211 ++++++++++++++++++++++++++
 lib/{igt_rapl.h => igt_power.h}       |  78 +++-------
 lib/igt_rapl.c                        |  69 ---------
 lib/meson.build                       |   3 +-
 tests/i915/gem_exec_fair.c            |   1 -
 tests/i915/gem_exec_schedule.c        |  51 +++----
 tests/i915/gem_exec_whisper.c         |  16 +-
 tests/i915/i915_pm_rc6_residency.c    |  65 ++++----
 tests/intel-ci/fast-feedback.testlist |   2 +
 11 files changed, 394 insertions(+), 189 deletions(-)
 create mode 100644 lib/igt_hwmon.c
 create mode 100644 lib/igt_hwmon.h
 create mode 100644 lib/igt_power.c
 rename lib/{igt_rapl.h => igt_power.h} (51%)
 delete mode 100644 lib/igt_rapl.c
Signature · 1 line
2.25.1
#1 lore raw

PATCH v3 1/8 lib/igt_hwmon: Introduce library igt_hwmon

igt_hwmon exposes methods to open hwmon directories identified by name

v2: Add license(Petri)

---
 lib/igt_hwmon.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++
 lib/igt_hwmon.h | 13 +++++++++
 lib/meson.build |  1 +
 3 files changed, 88 insertions(+)
 create mode 100644 lib/igt_hwmon.c
 create mode 100644 lib/igt_hwmon.h
lib/igt_hwmon.c new file +74 -0
new file mode 100644
index 00000000..309019d6
@@ -0,0 +1,74 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2022 Intel Corporation
+ */
+#include <sys/stat.h>
+#include <sys/sysmacros.h>
+#include <dirent.h>
+#include <fcntl.h>
+#include <inttypes.h>
+#include <unistd.h>
+
+#include "drmtest.h"
+#include "igt_core.h"
+#include "igt_hwmon.h"
+#include "igt_sysfs.h"
+
+static char *igt_hwmon_path(int device, char *path, const char *name)
+{
+	char buf[80];
+	int path_offset;
+	struct dirent *entry;
+	struct stat st;
+	DIR *dir;
+
+	if (igt_debug_on(device < 0))
+		return NULL;
+
+	if (igt_debug_on(fstat(device, &st)) || igt_debug_on(!S_ISCHR(st.st_mode)))
+		return NULL;
+
+	path_offset = snprintf(path, PATH_MAX, "/sys/dev/char/%d:%d/device/hwmon",
+			       major(st.st_rdev), minor(st.st_rdev));
+
+	dir = opendir(path);
+	if (!dir)
+		return NULL;
+
+	while ((entry = readdir(dir))) {
+		if (entry->d_name[0] == '.')
+			continue;
+
+		snprintf(path + path_offset, PATH_MAX - path_offset, "/%s/name", entry->d_name);
+		igt_sysfs_scanf(dirfd(dir), path, "%s", buf);
+
+		if (strncmp(buf, name, strlen(name)) == 0) {
+			snprintf(path + path_offset, PATH_MAX - path_offset, "/%s", entry->d_name);
+			closedir(dir);
+			return path;
+		}
+	}
+
+	closedir(dir);
+	return NULL;
+}
+
+/**
+ * igt_hwmon_open:
+ * @device: fd of the device
+ *
+ * Opens the hwmon directory corresponding to device
+ *
+ * Returns:
+ * The directory fd, or -1 on failure.
+ */
+int igt_hwmon_open(int device)
+{
+	char path[PATH_MAX];
+
+	if (!is_i915_device(device) || !igt_hwmon_path(device, path, "i915"))
+		return -1;
+
+	return open(path, O_RDONLY);
+}
+
lib/igt_hwmon.h new file +13 -0
new file mode 100644
index 00000000..e50c0938
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2022 Intel Corporation
+ */
+
+#ifndef IGT_HWMON_H
+#define IGT_HWMON_H
+
+#include <stdbool.h>
+
+int igt_hwmon_open(int device);
+
+#endif /* IGT_HWMON_H */
lib/meson.build +1 -0
index c665bd25..b1b8e80c 100644
@@ -24,6 +24,7 @@ lib_sources = [
 	'igt_aux.c',
 	'igt_gt.c',
 	'igt_halffloat.c',
+	'igt_hwmon.c',
 	'igt_io.c',
 	'igt_matrix.c',
 	'igt_os.c',
Signature · 1 line
2.25.1
#2 lore raw

PATCH v3 2/8 lib/igt_power: Rename lib igt_rapl with igt_power

In reply to Riana Tauro

Rename igt_rapl library to igt_power.
No functional changes

---
 lib/{igt_rapl.c => igt_power.c}    | 2 +-
 lib/{igt_rapl.h => igt_power.h}    | 6 +++---
 lib/meson.build                    | 2 +-
 tests/i915/gem_exec_fair.c         | 1 -
 tests/i915/gem_exec_schedule.c     | 2 +-
 tests/i915/gem_exec_whisper.c      | 2 +-
 tests/i915/i915_pm_rc6_residency.c | 2 +-
 7 files changed, 8 insertions(+), 9 deletions(-)
 rename lib/{igt_rapl.c => igt_power.c} (98%)
 rename lib/{igt_rapl.h => igt_power.h} (97%)
lib/igt_power.c renamed from lib/igt_rapl.c +1 -1
similarity index 98%
rename from lib/igt_rapl.c
rename to lib/igt_power.c
index 03e49226..814ad556 100644
@@ -7,7 +7,7 @@
 #include <inttypes.h>
 
 #include "igt_perf.h"
-#include "igt_rapl.h"
+#include "igt_power.h"
 #include "igt_sysfs.h"
 
 static int rapl_parse(struct rapl *r, const char *str)
lib/igt_power.h renamed from lib/igt_rapl.h +3 -3
similarity index 97%
rename from lib/igt_rapl.h
rename to lib/igt_power.h
index 13f4f88a..11ddcdee 100644
@@ -22,8 +22,8 @@
  *
  */
 
-#ifndef IGT_RAPL_H
-#define IGT_RAPL_H
+#ifndef IGT_POWER_H
+#define IGT_POWER_H
 
 #include <stdbool.h>
 #include <stdint.h>
@@ -98,4 +98,4 @@ static inline double power_W(const struct rapl *r,
 	return power_J(r, p0, p1) / power_s(r, p0, p1);
 }
 
-#endif /* IGT_RAPL_H */
+#endif /* IGT_POWER_H */
lib/meson.build +1 -1
index b1b8e80c..8d6c8a24 100644
@@ -30,9 +30,9 @@ lib_sources = [
 	'igt_os.c',
 	'igt_params.c',
 	'igt_perf.c',
+	'igt_power.c',
 	'igt_primes.c',
 	'igt_rand.c',
-	'igt_rapl.c',
 	'igt_stats.c',
 	'igt_syncobj.c',
 	'igt_sysfs.c',
tests/i915/gem_exec_fair.c +0 -1
index 89921697..93a138ba 100644
@@ -21,7 +21,6 @@
 #include "i915/gem_create.h"
 #include "igt.h"
 #include "igt_rand.h"
-#include "igt_rapl.h"
 #include "igt_sysfs.h"
 #include "igt_syncobj.h"
 #include "igt_vgem.h"
tests/i915/gem_exec_schedule.c +1 -1
index 5ddf39bf..4693894f 100644
@@ -38,8 +38,8 @@
 #include "i915/gem_create.h"
 #include "i915/gem_vm.h"
 #include "igt.h"
+#include "igt_power.h"
 #include "igt_rand.h"
-#include "igt_rapl.h"
 #include "igt_sysfs.h"
 #include "igt_vgem.h"
 #include "intel_ctx.h"
tests/i915/gem_exec_whisper.c +1 -1
index c93134db..c763cc8e 100644
@@ -32,8 +32,8 @@
 #include "i915/gem_vm.h"
 #include "igt.h"
 #include "igt_debugfs.h"
-#include "igt_rapl.h"
 #include "igt_gt.h"
+#include "igt_power.h"
 #include "igt_rand.h"
 #include "igt_sysfs.h"
 #include "intel_ctx.h"
tests/i915/i915_pm_rc6_residency.c +1 -1
index cf7a92b9..670461c8 100644
@@ -37,7 +37,7 @@
 #include "i915/gem_create.h"
 #include "igt.h"
 #include "igt_perf.h"
-#include "igt_rapl.h"
+#include "igt_power.h"
 #include "igt_sysfs.h"
 #include "sw_sync.h"
 
Signature · 1 line
2.25.1
#3 lore raw

PATCH v3 3/8 lib/igt_power: Add hwmon interface to igt_power

In reply to Riana Tauro

Modify igt_power to expose functions to read energy, power using hwmon and rapl interface

---
 lib/igt_power.c | 131 ++++++++++++++++++++++++++++++++++++++++++++++++
 lib/igt_power.h |  22 ++++++++
 2 files changed, 153 insertions(+)
lib/igt_power.c +131 -0
index 814ad556..3f3633eb 100644
@@ -6,10 +6,14 @@
 #include <unistd.h>
 #include <inttypes.h>
 
+#include "igt.h"
+#include "igt_hwmon.h"
 #include "igt_perf.h"
 #include "igt_power.h"
 #include "igt_sysfs.h"
 
+static const char *rapl_domains[] = { "cpu", "gpu", "pkg", "ram" };
+
 static int rapl_parse(struct rapl *r, const char *str)
 {
 	locale_t locale, oldlocale;
@@ -67,3 +71,130 @@ err:
 	errno = 0;
 	return r->fd;
 }
+
+/**
+ * igt_power_open:
+ * @fd : device fd
+ * @igt_power : power struct
+ * @domain: rapl domain
+ *
+ * opens the hwmon/rapl fd based on domain
+ * hwmon fd - domain gpu -dgfx
+ * rapl fd - all domains - igfx
+ *
+ * Returns
+ * 0 on success, errno otherwise
+ */
+int igt_power_open(int fd, struct igt_power *p, const char *domain)
+{
+	int i;
+
+	p->hwmon_fd = -1;
+	p->rapl.fd = -1;
+
+	if (gem_has_lmem(fd)) {
+		if (strncmp(domain, "gpu", strlen("gpu")) == 0) {
+			p->hwmon_fd = igt_hwmon_open(fd);
+			if (p->hwmon_fd >= 0)
+				return 0;
+		}
+	} else {
+		for (i = 0; i < ARRAY_SIZE(rapl_domains); i++)
+			if (strncmp(domain, rapl_domains[i], strlen(rapl_domains[i])) == 0)
+				return rapl_open(&p->rapl, domain);
+	}
+
+	return -EINVAL;
+}
+
+/**
+ * igt_power_get_energy:
+ * @igt_power : power struct
+ * @power_sample: sample of energy and time
+ *
+ * Reads energy from hwmon if energy1_input file is present, else read
+ * from rapl interface
+ *
+ */
+void igt_power_get_energy(struct igt_power *power, struct power_sample *s)
+{
+	struct timespec ts;
+
+	s->energy = 0;
+	igt_assert(!clock_gettime(CLOCK_MONOTONIC, &ts));
+	s->time =  ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec;
+
+	if (power->hwmon_fd >= 0) {
+		if (igt_sysfs_has_attr(power->hwmon_fd, "energy1_input"))
+			s->energy = igt_sysfs_get_u64(power->hwmon_fd, "energy1_input");
+	} else if (power->rapl.fd >= 0) {
+		rapl_read(&power->rapl, s);
+	}
+}
+
+/**
+ * igt_power_get_mJ:
+ * @igt_power : power struct
+ * @power_sample: sample of energy and time
+ *
+ * Calculates energy difference between two power samples
+ *
+ * Returns
+ * energy in mJ from hwmon/rapl
+ */
+double igt_power_get_mJ(const struct igt_power *power,
+			const struct power_sample *p0, const struct power_sample *p1)
+{
+	if (power->hwmon_fd >= 0)
+		return (p1->energy - p0->energy) * 1e-3;
+	else if (power->rapl.fd >= 0)
+		return ((p1->energy - p0->energy) *  power->rapl.scale) * 1e3;
+
+	return 0;
+}
+
+/**
+ * igt_power_get_mW:
+ * @igt_power : power struct
+ * @power_sample: sample of energy and time
+ *
+ * Calculates power
+ *
+ * Returns
+ * power in milliWatts
+ */
+double igt_power_get_mW(const struct igt_power *power,
+			const struct power_sample *p0, const struct power_sample *p1)
+{
+	return igt_power_get_mJ(power, p0, p1) / igt_power_get_s(p0, p1);
+}
+
+/**
+ * igt_power_get_s:
+ * @power_sample: sample of energy and time
+ *
+ * Returns
+ * time differnce in seconds
+ */
+double igt_power_get_s(const struct power_sample *p0,
+		       const struct power_sample *p1)
+{
+	return (p1->time - p0->time) * 1e-9;
+}
+
+/**
+ * igt_power_close:
+ * @igt_power : power struct
+ *
+ * closes hwmon/rapl fd
+ *
+ */
+void igt_power_close(struct igt_power *power)
+{
+	if (power->hwmon_fd >= 0) {
+		close(power->hwmon_fd);
+		power->hwmon_fd = -1;
+	} else if (power->rapl.fd >= 0) {
+		rapl_close(&power->rapl);
+	}
+}
lib/igt_power.h +22 -0
index 11ddcdee..0984c2df 100644
@@ -39,7 +39,14 @@ struct power_sample {
 	uint64_t time;
 };
 
+struct igt_power {
+	struct rapl rapl;
+	int hwmon_fd;
+};
+
 int rapl_open(struct rapl *r, const char *domain);
+int igt_power_open(int i915, struct igt_power *p, const char *domain);
+void igt_power_close(struct igt_power *p);
 
 static inline int cpu_power_open(struct rapl *r)
 {
@@ -77,6 +84,11 @@ static inline void rapl_close(struct rapl *r)
 	r->fd = -1;
 }
 
+static inline bool igt_power_valid(struct igt_power *p)
+{
+	return (p->rapl.fd >= 0) || (p->hwmon_fd >= 0);
+}
+
 static inline double power_J(const struct rapl *r,
 			     const struct power_sample *p0,
 			     const struct power_sample *p1)
@@ -98,4 +110,14 @@ static inline double power_W(const struct rapl *r,
 	return power_J(r, p0, p1) / power_s(r, p0, p1);
 }
 
+void igt_power_get_energy(struct igt_power *p, struct power_sample *s);
+
+double igt_power_get_mJ(const struct igt_power *power,
+			const struct power_sample *p0,
+			const struct power_sample *p1);
+double igt_power_get_mW(const struct igt_power *power,
+			const struct power_sample *p0,
+			const struct power_sample *p1);
+double igt_power_get_s(const struct power_sample *p0,
+		       const struct power_sample *p1);
 #endif /* IGT_POWER_H */
Signature · 1 line
2.25.1
#4 lore raw

PATCH v3 4/8 i915/i915_pm_rc6_residency: Add energy support for dgfx

In reply to Riana Tauro

igt_power library reads energy using hwmon interface for dgfx and rapl otherwise. Modify rc6-idle and rc6-fence to use igt_power interface.

---
 tests/i915/i915_pm_rc6_residency.c | 63 +++++++++++++++++-------------
 1 file changed, 36 insertions(+), 27 deletions(-)
tests/i915/i915_pm_rc6_residency.c +36 -27
index 670461c8..3554f5d7 100644
@@ -378,26 +378,29 @@ static void rc6_idle(int i915, uint32_t ctx_id, uint64_t flags)
 	unsigned long slept, cycles;
 	unsigned long *done;
 	uint64_t rc6, ts[2];
-	struct rapl rapl;
+	struct igt_power gpu;
 	int fd;
 
 	fd = open_pmu(i915, I915_PMU_RC6_RESIDENCY);
 	igt_drop_caches_set(i915, DROP_IDLE);
 	igt_require(__pmu_wait_for_rc6(fd));
-	gpu_power_open(&rapl);
+	igt_power_open(i915, &gpu, "gpu");
 
 	/* While idle check full RC6. */
-	rapl_read(&rapl, &sample[0]);
+	igt_power_get_energy(&gpu, &sample[0]);
 	rc6 = -__pmu_read_single(fd, &ts[0]);
 	slept = measured_usleep(duration_ns / 1000);
 	rc6 += __pmu_read_single(fd, &ts[1]);
 	igt_debug("slept=%lu perf=%"PRIu64", rc6=%"PRIu64"\n",
 		  slept, ts[1] - ts[0], rc6);
-	if (rapl_read(&rapl, &sample[1]))  {
-		double idle = power_J(&rapl, &sample[0], &sample[1]);
+	igt_power_get_energy(&gpu, &sample[1]);
+	if (sample[1].energy) {
+		double idle = igt_power_get_mJ(&gpu, &sample[0], &sample[1]);
+
 		igt_log(IGT_LOG_DOMAIN,
-                        idle > 1e-3 && gen > 6 ? IGT_LOG_WARN : IGT_LOG_INFO,
-                        "Total energy used while idle: %.1fmJ\n", idle * 1e3);
+			!gem_has_lmem(i915) && idle > 1e-3 && gen > 6 ? IGT_LOG_WARN : IGT_LOG_INFO,
+			"Total energy used while idle: %.1fmJ (%.1fmW)\n",
+			idle, (idle * 1e9) / slept);
 	}
 	assert_within_epsilon(rc6, ts[1] - ts[0], 5);
 
@@ -408,7 +411,7 @@ static void rc6_idle(int i915, uint32_t ctx_id, uint64_t flags)
 		igt_fork(child, 1) /* Setup up a very light load */
 			bg_load(i915, ctx_id, flags, phases[p].flags, done);
 
-		rapl_read(&rapl, &sample[0]);
+		igt_power_get_energy(&gpu, &sample[0]);
 		cycles = -READ_ONCE(done[1]);
 		rc6 = -__pmu_read_single(fd, &ts[0]);
 		slept = measured_usleep(duration_ns / 1000);
@@ -416,14 +419,15 @@ static void rc6_idle(int i915, uint32_t ctx_id, uint64_t flags)
 		cycles += READ_ONCE(done[1]);
 		igt_debug("%s: slept=%lu perf=%"PRIu64", cycles=%lu, rc6=%"PRIu64"\n",
 			  phases[p].name, slept, ts[1] - ts[0], cycles, rc6);
-		if (rapl_read(&rapl, &sample[1]))  {
-			phases[p].power = power_J(&rapl, &sample[0], &sample[1]);
+		igt_power_get_energy(&gpu, &sample[1]);
+		if (sample[1].energy) {
+			phases[p].power = igt_power_get_mJ(&gpu, &sample[0], &sample[1]);
 			igt_info("Total energy used for %s: %.1fmJ (%.1fmW)\n",
 				 phases[p].name,
-				 phases[p].power * 1e3,
-				 phases[p].power * 1e12 / slept);
+				 phases[p].power,
+				 phases[p].power * 1e9 / slept);
 			phases[p].power /= slept; /* normalize */
-			phases[p].power *= 1e12; /* => mW */
+			phases[p].power *= 1e9; /* => mW */
 		}
 
 		*done = 1;
@@ -440,7 +444,7 @@ static void rc6_idle(int i915, uint32_t ctx_id, uint64_t flags)
 	munmap(done, 4096);
 	close(fd);
 
-	rapl_close(&rapl);
+	igt_power_close(&gpu);
 
 	if (phases[1].power - phases[0].power > 10) {
 		igt_assert_f(2 * phases[2].power - phases[0].power <= phases[1].power,
@@ -460,7 +464,7 @@ static void rc6_fence(int i915, const intel_ctx_t *ctx)
 	struct power_sample sample[2];
 	unsigned long slept;
 	uint64_t rc6, ts[2], ahnd;
-	struct rapl rapl;
+	struct igt_power gpu;
 	int fd;
 
 	igt_require_sw_sync();
@@ -468,20 +472,23 @@ static void rc6_fence(int i915, const intel_ctx_t *ctx)
 	fd = open_pmu(i915, I915_PMU_RC6_RESIDENCY);
 	igt_drop_caches_set(i915, DROP_IDLE);
 	igt_require(__pmu_wait_for_rc6(fd));
-	gpu_power_open(&rapl);
+	igt_power_open(i915, &gpu, "gpu");
 
 	/* While idle check full RC6. */
-	rapl_read(&rapl, &sample[0]);
+	igt_power_get_energy(&gpu, &sample[0]);
 	rc6 = -__pmu_read_single(fd, &ts[0]);
 	slept = measured_usleep(duration_ns / 1000);
 	rc6 += __pmu_read_single(fd, &ts[1]);
 	igt_debug("slept=%lu perf=%"PRIu64", rc6=%"PRIu64"\n",
 		  slept, ts[1] - ts[0], rc6);
-	if (rapl_read(&rapl, &sample[1]))  {
-		double idle = power_J(&rapl, &sample[0], &sample[1]);
+
+	igt_power_get_energy(&gpu, &sample[1]);
+	if (sample[1].energy) {
+		double idle = igt_power_get_mJ(&gpu, &sample[0], &sample[1]);
 		igt_log(IGT_LOG_DOMAIN,
-			idle > 1e-3 && gen > 6 ? IGT_LOG_WARN : IGT_LOG_INFO,
-			"Total energy used while idle: %.1fmJ\n", idle * 1e3);
+			!gem_has_lmem(i915) && idle > 1e-3 && gen > 6 ? IGT_LOG_WARN : IGT_LOG_INFO,
+			"Total energy used while idle: %.1fmJ (%.1fmW)\n",
+			idle, (idle * 1e9) / slept);
 	}
 	assert_within_epsilon(rc6, ts[1] - ts[0], 5);
 
@@ -502,18 +509,20 @@ static void rc6_fence(int i915, const intel_ctx_t *ctx)
 				    .flags = IGT_SPIN_FENCE_IN);
 		close(fence);
 
-		rapl_read(&rapl, &sample[0]);
+		igt_power_get_energy(&gpu, &sample[0]);
 		rc6 = -__pmu_read_single(fd, &ts[0]);
 		slept = measured_usleep(duration_ns / 1000);
 		rc6 += __pmu_read_single(fd, &ts[1]);
 		igt_debug("%s: slept=%lu perf=%"PRIu64", rc6=%"PRIu64"\n",
 			  e->name, slept, ts[1] - ts[0], rc6);
-		if (rapl_read(&rapl, &sample[1]))  {
-			double power = power_J(&rapl, &sample[0], &sample[1]);
+
+		igt_power_get_energy(&gpu, &sample[1]);
+		if (sample[1].energy) {
+			double power = igt_power_get_mJ(&gpu, &sample[0], &sample[1]);
 			igt_info("Total energy used for %s: %.1fmJ (%.1fmW)\n",
 				 e->name,
-				 power * 1e3,
-				 power * 1e12 / slept);
+				 power,
+				 power * 1e9 / slept);
 		}
 
 		igt_assert(gem_bo_busy(i915, spin->handle));
@@ -526,7 +535,7 @@ static void rc6_fence(int i915, const intel_ctx_t *ctx)
 	}
 	put_ahnd(ahnd);
 
-	rapl_close(&rapl);
+	igt_power_close(&gpu);
 	close(fd);
 }
 
Signature · 1 line
2.25.1
#5 lore raw

PATCH v3 5/8 i915/gem_exec_schedule: Add energy support for dgfx

In reply to Riana Tauro

igt_power library reads energy using hwmon interface for dgfx and rapl otherwise. Modify semaphore-power test to use igt_power interface.

---
 tests/i915/gem_exec_schedule.c | 49 +++++++++++++++++-----------------
 1 file changed, 24 insertions(+), 25 deletions(-)
tests/i915/gem_exec_schedule.c +24 -25
index 4693894f..58b118c7 100644
@@ -2844,11 +2844,11 @@ static void test_pi_iova(int i915, const intel_ctx_cfg_t *cfg,
 static void measure_semaphore_power(int i915, const intel_ctx_t *ctx)
 {
 	const struct intel_execution_engine2 *signaler, *e;
-	struct rapl gpu, pkg;
+	struct igt_power gpu, pkg;
 	uint64_t ahnd = get_simple_l2h_ahnd(i915, ctx->id);
 
-	igt_require(gpu_power_open(&gpu) == 0);
-	pkg_power_open(&pkg);
+	igt_require(igt_power_open(i915, &gpu, "gpu") == 0);
+	igt_power_open(i915, &pkg, "pkg");
 
 	for_each_ctx_engine(i915, ctx, signaler) {
 		struct {
@@ -2870,11 +2870,11 @@ static void measure_semaphore_power(int i915, const intel_ctx_t *ctx)
 		gem_wait(i915, spin->handle, &jiffie); /* waitboost */
 		igt_spin_busywait_until_started(spin);
 
-		rapl_read(&pkg, &s_spin[0].pkg);
-		rapl_read(&gpu, &s_spin[0].gpu);
+		igt_power_get_energy(&pkg, &s_spin[0].pkg);
+		igt_power_get_energy(&gpu, &s_spin[0].gpu);
 		usleep(100*1000);
-		rapl_read(&gpu, &s_spin[1].gpu);
-		rapl_read(&pkg, &s_spin[1].pkg);
+		igt_power_get_energy(&gpu, &s_spin[1].gpu);
+		igt_power_get_energy(&pkg, &s_spin[1].pkg);
 
 		/* Add a waiter to each engine */
 		i = 0;
@@ -2905,34 +2905,33 @@ static void measure_semaphore_power(int i915, const intel_ctx_t *ctx)
 				igt_spin_free(i915, sema[i]);
 		usleep(10); /* just give the tasklets a chance to run */
 
-		rapl_read(&pkg, &s_sema[0].pkg);
-		rapl_read(&gpu, &s_sema[0].gpu);
+		igt_power_get_energy(&pkg, &s_sema[0].pkg);
+		igt_power_get_energy(&gpu, &s_sema[0].gpu);
 		usleep(100*1000);
-		rapl_read(&gpu, &s_sema[1].gpu);
-		rapl_read(&pkg, &s_sema[1].pkg);
+		igt_power_get_energy(&gpu, &s_sema[1].gpu);
+		igt_power_get_energy(&pkg, &s_sema[1].pkg);
 
 		igt_spin_free(i915, spin);
 
-		baseline = power_W(&gpu, &s_spin[0].gpu, &s_spin[1].gpu);
-		total = power_W(&gpu, &s_sema[0].gpu, &s_sema[1].gpu);
+		baseline = igt_power_get_mW(&gpu, &s_spin[0].gpu, &s_spin[1].gpu);
+		total = igt_power_get_mW(&gpu, &s_sema[0].gpu, &s_sema[1].gpu);
 		igt_info("%s: %.1fmW + %.1fmW (total %1.fmW)\n",
 			 signaler->name,
-			 1e3 * baseline,
-			 1e3 * (total - baseline),
-			 1e3 * total);
+			 baseline,
+			 (total - baseline),
+			 total);
 
-		if (rapl_valid(&pkg)) {
-			baseline = power_W(&pkg, &s_spin[0].pkg, &s_spin[1].pkg);
-			total = power_W(&pkg, &s_sema[0].pkg, &s_sema[1].pkg);
+		if (igt_power_valid(&pkg)) {
+			baseline = igt_power_get_mW(&pkg, &s_spin[0].pkg, &s_spin[1].pkg);
+			total = igt_power_get_mW(&pkg, &s_sema[0].pkg, &s_sema[1].pkg);
 			igt_info("pkg: %.1fmW + %.1fmW (total %1.fmW)\n",
-				 1e3 * baseline,
-				 1e3 * (total - baseline),
-				 1e3 * total);
+				 baseline,
+				 (total - baseline),
+				 total);
 		}
 	}
-
-	rapl_close(&gpu);
-	rapl_close(&pkg);
+	igt_power_close(&gpu);
+	igt_power_close(&pkg);
 	put_ahnd(ahnd);
 }
 
Signature · 1 line
2.25.1
#6 lore raw

PATCH v3 6/8 i915/gem_exec_whisper: Add energy support for dgfx

In reply to Riana Tauro

igt_power library reads energy using hwmon interface for dgfx and rapl otherwise. Modify gem_exec_whisper test to use igt_power interface.

---
 tests/i915/gem_exec_whisper.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
tests/i915/gem_exec_whisper.c +8 -6
index c763cc8e..c3fc5ba8 100644
@@ -210,7 +210,7 @@ static void whisper(int fd, const intel_ctx_t *ctx,
 	unsigned int reloc_interruptions = 0;
 	unsigned int eb_migrations = 0;
 	struct power_sample sample[2];
-	struct rapl rapl;
+	struct igt_power gpu;
 	uint64_t old_offset;
 	int i, n, loc;
 	int debugfs;
@@ -223,7 +223,7 @@ static void whisper(int fd, const intel_ctx_t *ctx,
 	}
 
 	debugfs = igt_debugfs_dir(fd);
-	gpu_power_open(&rapl);
+	igt_power_open(fd, &gpu, "gpu");
 
 	nengine = 0;
 	if (engine == ALL_ENGINES) {
@@ -258,7 +258,7 @@ static void whisper(int fd, const intel_ctx_t *ctx,
 		nchild *= nengine;
 
 	intel_detect_and_clear_missed_interrupts(fd);
-	rapl_read(&rapl, &sample[0]);
+	igt_power_get_energy(&gpu, &sample[0]);
 	igt_fork(child, nchild) {
 		unsigned int pass;
 
@@ -559,12 +559,14 @@ static void whisper(int fd, const intel_ctx_t *ctx,
 		fini_hang(&hang);
 	else
 		igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
-	if (rapl_read(&rapl, &sample[1]))  {
+
+	igt_power_get_energy(&gpu, &sample[1]);
+	if (sample[1].energy) {
 		igt_info("Total energy used: %.1fmJ\n",
-			 power_J(&rapl, &sample[0], &sample[1]) * 1e3);
+			 igt_power_get_mJ(&gpu, &sample[0], &sample[1]));
 	}
 
-	rapl_close(&rapl);
+	igt_power_close(&gpu);
 	close(debugfs);
 }
 
Signature · 1 line
2.25.1
#7 lore raw

PATCH v3 7/8 lib/igt_power: clean-up igt_power library

In reply to Riana Tauro

Remove unused rapl functions from igt_power.
No functional changes

---
 lib/igt_power.c | 13 ++++++++++-
 lib/igt_power.h | 58 -------------------------------------------------
 2 files changed, 12 insertions(+), 59 deletions(-)
lib/igt_power.c +12 -1
index 3f3633eb..3b34be40 100644
@@ -53,7 +53,7 @@ static int rapl_parse(struct rapl *r, const char *str)
 	return 0;
 }
 
-int rapl_open(struct rapl *r, const char *domain)
+static int rapl_open(struct rapl *r, const char *domain)
 {
 	r->fd = rapl_parse(r, domain);
 	if (r->fd < 0)
@@ -72,6 +72,17 @@ err:
 	return r->fd;
 }
 
+static inline bool rapl_read(struct rapl *r, struct power_sample *s)
+{
+	return read(r->fd, s, sizeof(*s)) == sizeof(*s);
+}
+
+static inline void rapl_close(struct rapl *r)
+{
+	close(r->fd);
+	r->fd = -1;
+}
+
 /**
  * igt_power_open:
  * @fd : device fd
lib/igt_power.h +0 -58

72 lines not on this page · raw message

Signature · 1 line
2.25.1
#8 lore raw

PATCH v3 8/8 HAX: run i915_pm_rc6_residency tests in BAT

In reply to Riana Tauro

Add i915_pm_rc6_residency tests to test hwmon
interface

---
 tests/intel-ci/fast-feedback.testlist | 2 ++
 1 file changed, 2 insertions(+)
tests/intel-ci/fast-feedback.testlist +2 -0
index bd5538a0..57c6e618 100644
@@ -124,6 +124,8 @@ igt@kms_psr@sprite_plane_onoff
 igt@kms_psr@primary_mmap_gtt
 igt@kms_setmode@basic-clone-single-crtc
 igt@i915_pm_backlight@basic-brightness
+igt@i915_pm_rc6_residency@rc6-fence
+igt@i915_pm_rc6_residency@rc6-idle
 igt@i915_pm_rpm@basic-pci-d3-state
 igt@i915_pm_rpm@basic-rte
 igt@i915_pm_rps@basic-api
Signature · 1 line
2.25.1
#9 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for Add hwmon energy support for dgfx (rev5)

In reply to Riana Tauro
== Series Details ==

== Series Details ==

Series: Add hwmon energy support for dgfx (rev5)
URL : https://patchwork.freedesktop.org/series/108185/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_12250 -> IGTPW_7968
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_7968 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_7968, 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/IGTPW_7968/index.html

Participating hosts (45 -> 42)
------------------------------

Additional (1): fi-rkl-guc
Missing (4): fi-bdw-samus fi-icl-u2 fi-skl-6700k2 fi-pnv-d510

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_7968:

### IGT changes ###

#### Possible regressions ####

* igt@runner@aborted:
- fi-rkl-guc: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-rkl-guc/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_pm_rpm@module-reload:
- {fi-tgl-dsi}: [INCOMPLETE][2] ([i915#7190]) -> [INCOMPLETE][3]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/fi-tgl-dsi/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-tgl-dsi/igt@[email protected]

Known issues
------------

Here are the changes found in IGTPW_7968 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@i915_pm_rc6_residency@rc6-idle@rcs0:
- fi-elk-e7500: NOTRUN -> [SKIP][4] ([fdo#109271]) +2 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-elk-e7500/igt@i915_pm_rc6_residency@[email protected]
- fi-blb-e6850: NOTRUN -> [SKIP][5] ([fdo#109271]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-blb-e6850/igt@i915_pm_rc6_residency@[email protected]

* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
- fi-ilk-650: NOTRUN -> [SKIP][6] ([fdo#109271]) +2 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-ilk-650/igt@i915_pm_rc6_residency@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-a-hdmi-a-1:
- fi-snb-2600: NOTRUN -> [FAIL][7] ([fdo#103375])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-snb-2600/igt@kms_pipe_crc_basic@[email protected]

#### Warnings ####

* igt@i915_suspend@basic-s3-without-i915:
- fi-bdw-gvtdvm: [FAIL][8] ([fdo#103375]) -> [INCOMPLETE][9] ([i915#146])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/fi-bdw-gvtdvm/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-bdw-gvtdvm/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#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#7190]: https://gitlab.freedesktop.org/drm/intel/issues/7190

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_7016 -> IGTPW_7968

CI-20190529: 20190529
CI_DRM_12250: 9b84132c9b266a89e2865cbe8b586dd0b14cc2a4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7968: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html
IGT_7016: 642f4bf44e2b42791b4d1684936a1bfbe2d099ee @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html

#10 lore raw

Re: [igt-dev] ✗ Fi.CI.BAT: failure for Add hwmon energy support for dgfx (rev5)

Hi @Vudum, Lakshminarayana<mailto:[email protected]> Possible regressions

* igt@runner@aborted:
* fi-rkl-guc: NOTRUN -> FAIL<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-rkl-guc/igt@[email protected]>
This is not related to the patch . Could you please repost the results?

Thanks
Riana Tauro

From: Patchwork <[email protected]>
Sent: Monday, October 17, 2022 11:39 AM
To: Tauro, Riana <[email protected]>
Cc: [email protected]
Subject: ✗ Fi.CI.BAT: failure for Add hwmon energy support for dgfx (rev5)

Patch Details
Series:
Add hwmon energy support for dgfx (rev5) URL:
https://patchwork.freedesktop.org/series/108185/
State:
failure
Details:
https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html
CI Bug Log - changes from CI_DRM_12250 -> IGTPW_7968 Summary

FAILURE

Serious unknown changes coming with IGTPW_7968 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_7968, 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/IGTPW_7968/index.html

Participating hosts (45 -> 42)

Additional (1): fi-rkl-guc
Missing (4): fi-bdw-samus fi-icl-u2 fi-skl-6700k2 fi-pnv-d510

Possible new issues

Here are the unknown changes that may have been introduced in IGTPW_7968:

IGT changes
Possible regressions

* igt@runner@aborted:
* fi-rkl-guc: NOTRUN -> FAIL<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-rkl-guc/igt@[email protected]>

Suppressed

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_pm_rpm@module-reload:
* {fi-tgl-dsi}: INCOMPLETE<https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/fi-tgl-dsi/igt@[email protected]> (i915#7190<https://gitlab.freedesktop.org/drm/intel/issues/7190>) -> INCOMPLETE<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-tgl-dsi/igt@[email protected]>

Known issues

Here are the changes found in IGTPW_7968 that come from known issues:

IGT changes
Issues hit

* igt@i915_pm_rc6_residency@rc6-idle@rcs0:
* fi-elk-e7500: NOTRUN -> SKIP<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-elk-e7500/igt@i915_pm_rc6_residency@[email protected]> (fdo#109271<https://bugs.freedesktop.org/show_bug.cgi?id=109271>) +2 similar issues
* fi-blb-e6850: NOTRUN -> SKIP<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-blb-e6850/igt@i915_pm_rc6_residency@[email protected]> (fdo#109271<https://bugs.freedesktop.org/show_bug.cgi?id=109271>) +1 similar issue
* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
* fi-ilk-650: NOTRUN -> SKIP<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-ilk-650/igt@i915_pm_rc6_residency@[email protected]> (fdo#109271<https://bugs.freedesktop.org/show_bug.cgi?id=109271>) +2 similar issues
* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-a-hdmi-a-1:
* fi-snb-2600: NOTRUN -> FAIL<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-snb-2600/igt@kms_pipe_crc_basic@[email protected]> (fdo#103375<https://bugs.freedesktop.org/show_bug.cgi?id=103375>)

Warnings

* igt@i915_suspend@basic-s3-without-i915:
* fi-bdw-gvtdvm: FAIL<https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/fi-bdw-gvtdvm/igt@[email protected]> (fdo#103375<https://bugs.freedesktop.org/show_bug.cgi?id=103375>) -> INCOMPLETE<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-bdw-gvtdvm/igt@[email protected]> (i915#146<https://gitlab.freedesktop.org/drm/intel/issues/146>)

{name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE).

Build changes

* CI: CI-20190529 -> None
* IGT: IGT_7016 -> IGTPW_7968

CI-20190529: 20190529
CI_DRM_12250: 9b84132c9b266a89e2865cbe8b586dd0b14cc2a4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7968: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html
IGT_7016: 642f4bf44e2b42791b4d1684936a1bfbe2d099ee @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

#11 lore raw

Re: [igt-dev] ✗ Fi.CI.BAT: failure for Add hwmon energy support for dgfx (rev5)

That’s related to https://gitlab.freedesktop.org/drm/intel/-/issues/7220
Re-reported.

Lakshmi.

From: Tauro, Riana <[email protected]>
Sent: Sunday, October 16, 2022 11:13 PM
To: [email protected]; Vudum, Lakshminarayana <[email protected]>
Subject: RE: ✗ Fi.CI.BAT: failure for Add hwmon energy support for dgfx (rev5)

Hi @Vudum, Lakshminarayana<mailto:[email protected]> Possible regressions

* igt@runner@aborted:
* fi-rkl-guc: NOTRUN -> FAIL<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-rkl-guc/igt@[email protected]>
This is not related to the patch . Could you please repost the results?

Thanks
Riana Tauro

From: Patchwork <[email protected]<mailto:[email protected]>>
Sent: Monday, October 17, 2022 11:39 AM
To: Tauro, Riana <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: ✗ Fi.CI.BAT: failure for Add hwmon energy support for dgfx (rev5)

Patch Details
Series:
Add hwmon energy support for dgfx (rev5) URL:
https://patchwork.freedesktop.org/series/108185/
State:
failure
Details:
https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html
CI Bug Log - changes from CI_DRM_12250 -> IGTPW_7968 Summary

FAILURE

Serious unknown changes coming with IGTPW_7968 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_7968, 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/IGTPW_7968/index.html

Participating hosts (45 -> 42)

Additional (1): fi-rkl-guc
Missing (4): fi-bdw-samus fi-icl-u2 fi-skl-6700k2 fi-pnv-d510

Possible new issues

Here are the unknown changes that may have been introduced in IGTPW_7968:

IGT changes
Possible regressions

* igt@runner@aborted:
* fi-rkl-guc: NOTRUN -> FAIL<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-rkl-guc/igt@[email protected]>

Suppressed

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_pm_rpm@module-reload:
* {fi-tgl-dsi}: INCOMPLETE<https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/fi-tgl-dsi/igt@[email protected]> (i915#7190<https://gitlab.freedesktop.org/drm/intel/issues/7190>) -> INCOMPLETE<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-tgl-dsi/igt@[email protected]>

Known issues

Here are the changes found in IGTPW_7968 that come from known issues:

IGT changes
Issues hit

* igt@i915_pm_rc6_residency@rc6-idle@rcs0:
* fi-elk-e7500: NOTRUN -> SKIP<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-elk-e7500/igt@i915_pm_rc6_residency@[email protected]> (fdo#109271<https://bugs.freedesktop.org/show_bug.cgi?id=109271>) +2 similar issues
* fi-blb-e6850: NOTRUN -> SKIP<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-blb-e6850/igt@i915_pm_rc6_residency@[email protected]> (fdo#109271<https://bugs.freedesktop.org/show_bug.cgi?id=109271>) +1 similar issue
* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
* fi-ilk-650: NOTRUN -> SKIP<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-ilk-650/igt@i915_pm_rc6_residency@[email protected]> (fdo#109271<https://bugs.freedesktop.org/show_bug.cgi?id=109271>) +2 similar issues
* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-a-hdmi-a-1:
* fi-snb-2600: NOTRUN -> FAIL<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-snb-2600/igt@kms_pipe_crc_basic@[email protected]> (fdo#103375<https://bugs.freedesktop.org/show_bug.cgi?id=103375>)

Warnings

* igt@i915_suspend@basic-s3-without-i915:
* fi-bdw-gvtdvm: FAIL<https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/fi-bdw-gvtdvm/igt@[email protected]> (fdo#103375<https://bugs.freedesktop.org/show_bug.cgi?id=103375>) -> INCOMPLETE<https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-bdw-gvtdvm/igt@[email protected]> (i915#146<https://gitlab.freedesktop.org/drm/intel/issues/146>)

{name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE).

Build changes

* CI: CI-20190529 -> None
* IGT: IGT_7016 -> IGTPW_7968

CI-20190529: 20190529
CI_DRM_12250: 9b84132c9b266a89e2865cbe8b586dd0b14cc2a4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7968: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html
IGT_7016: 642f4bf44e2b42791b4d1684936a1bfbe2d099ee @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

#12 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for Add hwmon energy support for dgfx (rev5)

In reply to Riana Tauro
== Series Details ==

== Series Details ==

Series: Add hwmon energy support for dgfx (rev5)
URL : https://patchwork.freedesktop.org/series/108185/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_12250 -> IGTPW_7968
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html

Participating hosts (45 -> 42)
------------------------------

Additional (1): fi-rkl-guc
Missing (4): fi-bdw-samus fi-icl-u2 fi-skl-6700k2 fi-pnv-d510

Known issues
------------

Here are the changes found in IGTPW_7968 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@i915_pm_rc6_residency@rc6-idle@rcs0:
- fi-elk-e7500: NOTRUN -> [SKIP][1] ([fdo#109271]) +2 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-elk-e7500/igt@i915_pm_rc6_residency@[email protected]
- fi-blb-e6850: NOTRUN -> [SKIP][2] ([fdo#109271]) +1 similar issue
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-blb-e6850/igt@i915_pm_rc6_residency@[email protected]

* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
- fi-ilk-650: NOTRUN -> [SKIP][3] ([fdo#109271]) +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-ilk-650/igt@i915_pm_rc6_residency@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-a-hdmi-a-1:
- fi-snb-2600: NOTRUN -> [FAIL][4] ([fdo#103375])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-snb-2600/igt@kms_pipe_crc_basic@[email protected]

* igt@runner@aborted:
- fi-rkl-guc: NOTRUN -> [FAIL][5] ([i915#7220])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-rkl-guc/igt@[email protected]

#### Warnings ####

* igt@i915_suspend@basic-s3-without-i915:
- fi-bdw-gvtdvm: [FAIL][6] ([fdo#103375]) -> [INCOMPLETE][7] ([i915#146])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/fi-bdw-gvtdvm/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/fi-bdw-gvtdvm/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#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#7190]: https://gitlab.freedesktop.org/drm/intel/issues/7190
[i915#7220]: https://gitlab.freedesktop.org/drm/intel/issues/7220
[i915#7221]: https://gitlab.freedesktop.org/drm/intel/issues/7221

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_7016 -> IGTPW_7968

CI-20190529: 20190529
CI_DRM_12250: 9b84132c9b266a89e2865cbe8b586dd0b14cc2a4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7968: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html
IGT_7016: 642f4bf44e2b42791b4d1684936a1bfbe2d099ee @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html

#13 lore raw

[igt-dev] ✗ Fi.CI.IGT: failure for Add hwmon energy support for dgfx (rev5)

In reply to Riana Tauro
== Series Details ==

== Series Details ==

Series: Add hwmon energy support for dgfx (rev5)
URL : https://patchwork.freedesktop.org/series/108185/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_12250_full -> IGTPW_7968_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_7968_full absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_7968_full, 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/IGTPW_7968/index.html

Participating hosts (9 -> 8)
------------------------------

Additional (2): shard-rkl shard-dg1
Missing (3): pig-skl-6260u pig-kbl-iris pig-glk-j5005

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_7968_full:

### IGT changes ###

#### Possible regressions ####

* igt@api_intel_bb@object-noreloc-purge-cache-simple:
- shard-tglb: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-tglb1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl1/igt@[email protected]

* igt@gem_exec_whisper@basic-contexts-priority-all:
- shard-tglb: [PASS][4] -> [INCOMPLETE][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-tglb1/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@gem_workarounds@suspend-resume:
- shard-apl: NOTRUN -> [INCOMPLETE][6] +7 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl2/igt@[email protected]

#### Warnings ####

* igt@gem_eio@in-flight-suspend:
- shard-apl: [INCOMPLETE][7] ([i915#7112]) -> [INCOMPLETE][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-apl2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl7/igt@[email protected]

* igt@gem_pwrite@basic-exhaustion:
- shard-apl: [INCOMPLETE][9] ([i915#7227]) -> [INCOMPLETE][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-apl7/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl3/igt@[email protected]
- shard-tglb: [WARN][11] ([i915#2658]) -> [INCOMPLETE][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-tglb2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@i915_suspend@fence-restore-untiled:
- shard-apl: [INCOMPLETE][13] ([i915#4939]) -> [INCOMPLETE][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-apl2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl6/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@runner@aborted:
- {shard-dg1}: NOTRUN -> ([FAIL][15], [FAIL][16], [FAIL][17], [FAIL][18], [FAIL][19], [FAIL][20], [FAIL][21], [FAIL][22], [FAIL][23], [FAIL][24], [FAIL][25], [FAIL][26], [FAIL][27], [FAIL][28], [FAIL][29], [FAIL][30], [FAIL][31], [FAIL][32], [FAIL][33], [FAIL][34], [FAIL][35])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-19/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-19/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-19/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-16/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-16/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-18/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-15/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-16/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-15/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-17/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-17/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-15/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-17/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-13/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-18/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-13/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-12/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-18/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-12/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-13/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-dg1-12/igt@[email protected]

Known issues
------------

Here are the changes found in IGTPW_7968_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@drm_mm@all:
- shard-tglb: NOTRUN -> [SKIP][36] ([i915#6433])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]

* igt@feature_discovery@display-2x:
- shard-tglb: NOTRUN -> [SKIP][37] ([i915#1839]) +1 similar issue
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@[email protected]

* igt@gem_ccs@ctrl-surf-copy:
- shard-tglb: NOTRUN -> [SKIP][38] ([i915#3555] / [i915#5325])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@[email protected]

* igt@gem_ccs@suspend-resume:
- shard-tglb: NOTRUN -> [SKIP][39] ([i915#5325]) +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]

* igt@gem_create@create-ext-cpu-access-sanity-check:
- shard-tglb: NOTRUN -> [SKIP][40] ([i915#6335])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@[email protected]

* igt@gem_create@create-massive:
- shard-tglb: NOTRUN -> [DMESG-WARN][41] ([i915#4991])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]

* igt@gem_ctx_persistence@legacy-engines-cleanup:
- shard-snb: NOTRUN -> [SKIP][42] ([fdo#109271] / [i915#1099]) +3 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-snb4/igt@[email protected]

* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-tglb: NOTRUN -> [FAIL][43] ([i915#2842]) +4 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_params@secure-non-master:
- shard-tglb: NOTRUN -> [SKIP][44] ([fdo#112283])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@[email protected]

* igt@gem_lmem_swapping@heavy-random:
- shard-tglb: NOTRUN -> [SKIP][45] ([i915#4613]) +7 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@gem_lmem_swapping@heavy-verify-random-ccs:
- shard-apl: NOTRUN -> [SKIP][46] ([fdo#109271] / [i915#4613]) +4 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl8/igt@[email protected]

* igt@gem_pxp@protected-encrypted-src-copy-not-readible:
- shard-tglb: NOTRUN -> [SKIP][47] ([i915#4270]) +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]

* igt@gem_render_copy@x-tiled-to-vebox-yf-tiled:
- shard-apl: NOTRUN -> [SKIP][48] ([fdo#109271]) +322 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl2/igt@[email protected]

* igt@gem_softpin@evict-snoop:
- shard-tglb: NOTRUN -> [SKIP][49] ([fdo#109312]) +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]

* igt@gem_userptr_blits@input-checking:
- shard-apl: NOTRUN -> [DMESG-WARN][50] ([i915#4991])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl7/igt@[email protected]

* igt@gem_userptr_blits@unsync-unmap-cycles:
- shard-tglb: NOTRUN -> [SKIP][51] ([i915#3297]) +2 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@gem_userptr_blits@vma-merge:
- shard-apl: NOTRUN -> [FAIL][52] ([i915#3318])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl3/igt@[email protected]
- shard-tglb: NOTRUN -> [FAIL][53] ([i915#3318])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@gen7_exec_parse@load-register-reg:
- shard-tglb: NOTRUN -> [SKIP][54] ([fdo#109289]) +6 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@[email protected]

* igt@gen9_exec_parse@basic-rejected-ctx-param:
- shard-tglb: NOTRUN -> [SKIP][55] ([i915#2527] / [i915#2856]) +6 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@[email protected]

* igt@i915_pipe_stress@stress-xrgb8888-ytiled:
- shard-apl: NOTRUN -> [FAIL][56] ([i915#7036])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl2/igt@[email protected]

* igt@i915_pm_dc@dc6-dpms:
- shard-tglb: NOTRUN -> [FAIL][57] ([i915#3989] / [i915#454]) +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@i915_pm_lpsp@screens-disabled:
- shard-tglb: NOTRUN -> [SKIP][58] ([i915#1902])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]

* igt@i915_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-tglb: NOTRUN -> [SKIP][59] ([fdo#111644] / [i915#1397]) +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@i915_pm_sseu@full-enable:
- shard-tglb: NOTRUN -> [SKIP][60] ([i915#4387])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@kms_atomic_transition@plane-all-modeset-transition:
- shard-tglb: NOTRUN -> [SKIP][61] ([i915#1769])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0:
- shard-tglb: NOTRUN -> [SKIP][62] ([i915#5286]) +8 similar issues
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@kms_big_fb@x-tiled-32bpp-rotate-270:
- shard-tglb: NOTRUN -> [SKIP][63] ([fdo#111614]) +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-apl: NOTRUN -> [SKIP][64] ([fdo#109271] / [i915#7206])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl7/igt@[email protected]

* igt@kms_big_fb@yf-tiled-8bpp-rotate-270:
- shard-tglb: NOTRUN -> [SKIP][65] ([fdo#111615]) +8 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]

* igt@kms_big_joiner@basic:
- shard-tglb: NOTRUN -> [SKIP][66] ([i915#2705])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@[email protected]

* igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][67] ([fdo#109271] / [i915#3886]) +19 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl3/igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-b-bad-pixel-format-4_tiled_dg2_rc_ccs_cc:
- shard-tglb: NOTRUN -> [SKIP][68] ([i915#3689] / [i915#6095]) +4 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@kms_ccs@pipe-b-bad-pixel-format-4_tiled_dg2_rc_ccs_cc.html

* igt@kms_ccs@pipe-b-bad-pixel-format-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][69] ([i915#3689] / [i915#3886]) +7 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@kms_ccs@pipe-b-bad-pixel-format-y_tiled_gen12_mc_ccs.html

* igt@kms_ccs@pipe-c-bad-pixel-format-4_tiled_dg2_rc_ccs:
- shard-tglb: NOTRUN -> [SKIP][70] ([i915#6095]) +9 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@kms_ccs@pipe-c-bad-pixel-format-4_tiled_dg2_rc_ccs.html

* igt@kms_ccs@pipe-c-ccs-on-another-bo-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][71] ([fdo#111615] / [i915#3689]) +6 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@kms_ccs@pipe-c-ccs-on-another-bo-yf_tiled_ccs.html

* igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][72] ([i915#3689]) +14 similar issues
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_gen12_mc_ccs.html

* igt@kms_cdclk@mode-transition-all-outputs:
- shard-tglb: NOTRUN -> [SKIP][73] ([i915#3742])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@kms_chamelium@hdmi-audio-edid:
- shard-tglb: NOTRUN -> [SKIP][74] ([fdo#109284] / [fdo#111827]) +16 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]

* igt@kms_chamelium@hdmi-edid-change-during-suspend:
- shard-snb: NOTRUN -> [SKIP][75] ([fdo#109271] / [fdo#111827]) +8 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-snb4/igt@[email protected]

* igt@kms_chamelium@vga-hpd-after-suspend:
- shard-apl: NOTRUN -> [SKIP][76] ([fdo#109271] / [fdo#111827]) +19 similar issues
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl2/igt@[email protected]

* igt@kms_color@ctm-0-25@pipe-c-edp-1:
- shard-tglb: NOTRUN -> [FAIL][77] ([i915#315] / [i915#6946]) +3 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@kms_color@[email protected]

* igt@kms_content_protection@atomic-dpms:
- shard-tglb: NOTRUN -> [SKIP][78] ([i915#7118]) +2 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@kms_content_protection@uevent@pipe-a-dp-1:
- shard-apl: NOTRUN -> [FAIL][79] ([i915#1339] / [i915#7144])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl1/igt@kms_content_protection@[email protected]

* igt@kms_cursor_crc@cursor-rapid-movement-512x512:
- shard-tglb: NOTRUN -> [SKIP][80] ([i915#3359]) +1 similar issue
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@[email protected]

* igt@kms_flip@2x-flip-vs-panning-interruptible:
- shard-tglb: NOTRUN -> [SKIP][81] ([fdo#109274] / [fdo#111825] / [i915#3637]) +6 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-downscaling@pipe-a-valid-mode:
- shard-tglb: NOTRUN -> [SKIP][82] ([i915#2587] / [i915#2672]) +4 similar issues
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-downscaling@pipe-a-valid-mode.html

* igt@kms_force_connector_basic@force-load-detect:
- shard-tglb: NOTRUN -> [SKIP][83] ([fdo#109285])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-snb: NOTRUN -> [FAIL][84] ([fdo#103375]) +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-snb7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-blt:
- shard-snb: NOTRUN -> [SKIP][85] ([fdo#109271]) +184 similar issues
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-snb6/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-blt.html

* igt@kms_frontbuffer_tracking@fbcpsr-indfb-scaledprimary:
- shard-tglb: NOTRUN -> [SKIP][86] ([i915#6497]) +15 similar issues
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-draw-mmap-gtt:
- shard-tglb: NOTRUN -> [SKIP][87] ([fdo#109280] / [fdo#111825]) +49 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-draw-mmap-gtt.html

* igt@kms_hdmi_inject@inject-audio:
- shard-tglb: [PASS][88] -> [SKIP][89] ([i915#433])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-tglb2/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@kms_hdr@bpc-switch-suspend:
- shard-tglb: NOTRUN -> [SKIP][90] ([i915#3555]) +8 similar issues
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@kms_invalid_mode@clock-too-high@edp-1-pipe-d:
- shard-tglb: NOTRUN -> [SKIP][91] ([i915#6403]) +3 similar issues
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@kms_invalid_mode@[email protected]

* igt@kms_plane_lowres@tiling-none@pipe-c-edp-1:
- shard-tglb: NOTRUN -> [SKIP][92] ([i915#3536]) +3 similar issues
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@kms_plane_lowres@[email protected]

* igt@kms_plane_lowres@tiling-yf:
- shard-tglb: NOTRUN -> [SKIP][93] ([fdo#112054] / [i915#5288])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@kms_plane_scaling@2x-scaler-multi-pipe:
- shard-tglb: NOTRUN -> [SKIP][94] ([fdo#109274] / [fdo#111825]) +11 similar issues
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@kms_plane_scaling@plane-scaler-with-rotation-unity-scaling@pipe-b-edp-1:
- shard-tglb: NOTRUN -> [SKIP][95] ([i915#5176]) +19 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-25@pipe-c-edp-1:
- shard-tglb: NOTRUN -> [SKIP][96] ([i915#5235]) +3 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@kms_plane_scaling@[email protected]

* igt@kms_psr2_sf@cursor-plane-move-continuous-sf:
- shard-apl: NOTRUN -> [SKIP][97] ([fdo#109271] / [i915#658]) +3 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl1/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][98] ([i915#2920])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@[email protected]

* igt@kms_psr2_su@page_flip-xrgb8888:
- shard-tglb: NOTRUN -> [SKIP][99] ([i915#7037])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@kms_psr2_su@page_flip-xrgb8888.html

* igt@kms_psr@psr2_cursor_mmap_gtt:
- shard-tglb: NOTRUN -> [FAIL][100] ([i915#132] / [i915#3467]) +4 similar issues
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@kms_psr@psr2_cursor_mmap_gtt.html

* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-90:
- shard-tglb: NOTRUN -> [SKIP][101] ([fdo#111615] / [i915#5289])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@kms_scaling_modes@scaling-mode-none@edp-1-pipe-d:
- shard-tglb: NOTRUN -> [SKIP][102] ([i915#5030]) +3 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@kms_scaling_modes@[email protected]

* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-apl: NOTRUN -> [INCOMPLETE][103] ([i915#4939]) +2 similar issues
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl7/igt@[email protected]

* igt@kms_writeback@writeback-pixel-formats:
- shard-apl: NOTRUN -> [SKIP][104] ([fdo#109271] / [i915#2437]) +1 similar issue
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl6/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][105] ([i915#2437])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@sysfs_clients@fair-0:
- shard-tglb: NOTRUN -> [SKIP][106] ([i915#2994]) +3 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb2/igt@[email protected]

* igt@sysfs_clients@pidname:
- shard-apl: NOTRUN -> [SKIP][107] ([fdo#109271] / [i915#2994]) +5 similar issues
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl8/igt@[email protected]

#### Possible fixes ####

* igt@gem_eio@reset-stress:
- shard-tglb: [FAIL][108] ([i915#5784]) -> [PASS][109]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-tglb2/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb5/igt@[email protected]

* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-async-flip:
- shard-tglb: [FAIL][110] ([i915#3743]) -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-tglb5/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb1/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html

#### Warnings ####

* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-render:
- shard-tglb: [FAIL][112] ([i915#7225]) -> [SKIP][113] ([fdo#109280] / [fdo#111825])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-tglb1/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-render.html
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-tglb7/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-render.html

* igt@runner@aborted:
- shard-apl: ([FAIL][114], [FAIL][115], [FAIL][116], [FAIL][117]) ([fdo#109271] / [i915#3002] / [i915#4312]) -> ([FAIL][118], [FAIL][119], [FAIL][120]) ([i915#3002] / [i915#4312])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-apl1/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-apl3/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-apl3/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/shard-apl1/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl1/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl7/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/shard-apl2/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#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1099]: https://gitlab.freedesktop.org/drm/intel/issues/1099
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1339]: https://gitlab.freedesktop.org/drm/intel/issues/1339
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1769]: https://gitlab.freedesktop.org/drm/intel/issues/1769
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1902]: https://gitlab.freedesktop.org/drm/intel/issues/1902
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3002]: https://gitlab.freedesktop.org/drm/intel/issues/3002
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3467]: https://gitlab.freedesktop.org/drm/intel/issues/3467
[i915#3536]: https://gitlab.freedesktop.org/drm/intel/issues/3536
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3989]: https://gitlab.freedesktop.org/drm/intel/issues/3989
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#433]: https://gitlab.freedesktop.org/drm/intel/issues/433
[i915#4387]: https://gitlab.freedesktop.org/drm/intel/issues/4387
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4939]: https://gitlab.freedesktop.org/drm/intel/issues/4939
[i915#4991]: https://gitlab.freedesktop.org/drm/intel/issues/4991
[i915#5030]: https://gitlab.freedesktop.org/drm/intel/issues/5030
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6403]: https://gitlab.freedesktop.org/drm/intel/issues/6403
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#7036]: https://gitlab.freedesktop.org/drm/intel/issues/7036
[i915#7037]: https://gitlab.freedesktop.org/drm/intel/issues/7037
[i915#7112]: https://gitlab.freedesktop.org/drm/intel/issues/7112
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7144]: https://gitlab.freedesktop.org/drm/intel/issues/7144
[i915#7206]: https://gitlab.freedesktop.org/drm/intel/issues/7206
[i915#7220]: https://gitlab.freedesktop.org/drm/intel/issues/7220
[i915#7225]: https://gitlab.freedesktop.org/drm/intel/issues/7225
[i915#7227]: https://gitlab.freedesktop.org/drm/intel/issues/7227

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_7016 -> IGTPW_7968
* Piglit: piglit_4509 -> None

CI-20190529: 20190529
CI_DRM_12250: 9b84132c9b266a89e2865cbe8b586dd0b14cc2a4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7968: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html
IGT_7016: 642f4bf44e2b42791b4d1684936a1bfbe2d099ee @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7968/index.html

#14 lore raw
In reply to Riana Tauro
Quoted 1 line · Riana Tauro

Hi Riana,

Quoted 10 lines

Introduce igt_power library that reads energy from hwmon & rapl interfaces. Replace igt_rapl with igt_power.

Modify the existing tests that use igt_rapl to igt_power.

Rev2: Re-order patches to fix compilation
Rev3: Add tests temporarily to BAT to test hwmon kernel series
Rev4: Identical to v3, sending again in order to "Test-with" kernel
hwmon series
Rev5: Add license to igt_hwmon files

Thanks for the patches. The series is merged now (since the kernel series is also merged) except for the last HAX patch.

Thanks.
--
Ashutosh

Quoted 31 lines

Riana Tauro (8):
lib/igt_hwmon: Introduce library igt_hwmon lib/igt_power: Rename lib igt_rapl with igt_power lib/igt_power: Add hwmon interface to igt_power i915/i915_pm_rc6_residency: Add energy support for dgfx i915/gem_exec_schedule: Add energy support for dgfx i915/gem_exec_whisper: Add energy support for dgfx lib/igt_power: clean-up igt_power library
HAX: run i915_pm_rc6_residency tests in BAT

 lib/igt_hwmon.c                       |  74 +++++++++
 lib/igt_hwmon.h                       |  13 ++
 lib/igt_power.c                       | 211 ++++++++++++++++++++++++++
 lib/{igt_rapl.h => igt_power.h}       |  78 +++-------
 lib/igt_rapl.c                        |  69 ---------
 lib/meson.build                       |   3 +-
 tests/i915/gem_exec_fair.c            |   1 -
 tests/i915/gem_exec_schedule.c        |  51 +++----
 tests/i915/gem_exec_whisper.c         |  16 +-
 tests/i915/i915_pm_rc6_residency.c    |  65 ++++----
 tests/intel-ci/fast-feedback.testlist |   2 +
 11 files changed, 394 insertions(+), 189 deletions(-)
 create mode 100644 lib/igt_hwmon.c
 create mode 100644 lib/igt_hwmon.h
 create mode 100644 lib/igt_power.c
 rename lib/{igt_rapl.h => igt_power.h} (51%)
 delete mode 100644 lib/igt_rapl.c

--
2.25.1