Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
@ 2018-11-16 13:55 Joonas Lahtinen
  2018-11-16 13:55 ` [PATCH 2/2] Revert "drm/i915/perf: Fix warning in documentation" Joonas Lahtinen
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Joonas Lahtinen @ 2018-11-16 13:55 UTC (permalink / raw)
  To: Intel graphics driver community testing & development; +Cc: Matthew Auld

Userspace portion is still missing.

This reverts commit cd956bfcd0f58d20485ac0a785415f7d9327a95f.

Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_drv.h  |  1 -
 drivers/gpu/drm/i915/i915_perf.c | 99 +++++++++++---------------------
 drivers/gpu/drm/i915/i915_reg.h  |  2 -
 include/uapi/drm/i915_drm.h      |  7 ---
 4 files changed, 33 insertions(+), 76 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index d69b71d368d3..017f851a586a 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -2004,7 +2004,6 @@ struct drm_i915_private {
 				u32 last_ctx_id;
 				int format;
 				int format_size;
-				int size_exponent;
 
 				/**
 				 * Locks reads and writes to all head/tail state
diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 2c2b63be7a6c..c762418d3b01 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -212,7 +212,13 @@
 #include "i915_oa_icl.h"
 #include "intel_lrc_reg.h"
 
-#define OA_TAKEN(tail, head)	(((tail) - (head)) & (dev_priv->perf.oa.oa_buffer.vma->size - 1))
+/* HW requires this to be a power of two, between 128k and 16M, though driver
+ * is currently generally designed assuming the largest 16M size is used such
+ * that the overflow cases are unlikely in normal operation.
+ */
+#define OA_BUFFER_SIZE		SZ_16M
+
+#define OA_TAKEN(tail, head)	((tail - head) & (OA_BUFFER_SIZE - 1))
 
 /**
  * DOC: OA Tail Pointer Race
@@ -356,7 +362,6 @@ struct perf_open_properties {
 	int oa_format;
 	bool oa_periodic;
 	int oa_period_exponent;
-	u32 oa_buffer_size_exponent;
 };
 
 static void free_oa_config(struct drm_i915_private *dev_priv,
@@ -519,7 +524,7 @@ static bool oa_buffer_check_unlocked(struct drm_i915_private *dev_priv)
 		 * could put the tail out of bounds...
 		 */
 		if (hw_tail >= gtt_offset &&
-		    hw_tail < (gtt_offset + dev_priv->perf.oa.oa_buffer.vma->size)) {
+		    hw_tail < (gtt_offset + OA_BUFFER_SIZE)) {
 			dev_priv->perf.oa.oa_buffer.tails[!aged_idx].offset =
 				aging_tail = hw_tail;
 			dev_priv->perf.oa.oa_buffer.aging_timestamp = now;
@@ -648,7 +653,7 @@ static int gen8_append_oa_reports(struct i915_perf_stream *stream,
 	int report_size = dev_priv->perf.oa.oa_buffer.format_size;
 	u8 *oa_buf_base = dev_priv->perf.oa.oa_buffer.vaddr;
 	u32 gtt_offset = i915_ggtt_offset(dev_priv->perf.oa.oa_buffer.vma);
-	u32 mask = (dev_priv->perf.oa.oa_buffer.vma->size - 1);
+	u32 mask = (OA_BUFFER_SIZE - 1);
 	size_t start_offset = *offset;
 	unsigned long flags;
 	unsigned int aged_tail_idx;
@@ -688,8 +693,8 @@ static int gen8_append_oa_reports(struct i915_perf_stream *stream,
 	 * only be incremented by multiples of the report size (notably also
 	 * all a power of two).
 	 */
-	if (WARN_ONCE(head > dev_priv->perf.oa.oa_buffer.vma->size || head % report_size ||
-		      tail > dev_priv->perf.oa.oa_buffer.vma->size || tail % report_size,
+	if (WARN_ONCE(head > OA_BUFFER_SIZE || head % report_size ||
+		      tail > OA_BUFFER_SIZE || tail % report_size,
 		      "Inconsistent OA buffer pointers: head = %u, tail = %u\n",
 		      head, tail))
 		return -EIO;
@@ -712,7 +717,7 @@ static int gen8_append_oa_reports(struct i915_perf_stream *stream,
 		 * here would imply a driver bug that would result
 		 * in an overrun.
 		 */
-		if (WARN_ON((dev_priv->perf.oa.oa_buffer.vma->size - head) < report_size)) {
+		if (WARN_ON((OA_BUFFER_SIZE - head) < report_size)) {
 			DRM_ERROR("Spurious OA head ptr: non-integral report offset\n");
 			break;
 		}
@@ -871,6 +876,11 @@ static int gen8_oa_read(struct i915_perf_stream *stream,
 	 * automatically triggered reports in this condition and so we
 	 * have to assume that old reports are now being trampled
 	 * over.
+	 *
+	 * Considering how we don't currently give userspace control
+	 * over the OA buffer size and always configure a large 16MB
+	 * buffer, then a buffer overflow does anyway likely indicate
+	 * that something has gone quite badly wrong.
 	 */
 	if (oastatus & GEN8_OASTATUS_OABUFFER_OVERFLOW) {
 		ret = append_oa_status(stream, buf, count, offset,
@@ -932,7 +942,7 @@ static int gen7_append_oa_reports(struct i915_perf_stream *stream,
 	int report_size = dev_priv->perf.oa.oa_buffer.format_size;
 	u8 *oa_buf_base = dev_priv->perf.oa.oa_buffer.vaddr;
 	u32 gtt_offset = i915_ggtt_offset(dev_priv->perf.oa.oa_buffer.vma);
-	u32 mask = (dev_priv->perf.oa.oa_buffer.vma->size - 1);
+	u32 mask = (OA_BUFFER_SIZE - 1);
 	size_t start_offset = *offset;
 	unsigned long flags;
 	unsigned int aged_tail_idx;
@@ -969,8 +979,8 @@ static int gen7_append_oa_reports(struct i915_perf_stream *stream,
 	 * only be incremented by multiples of the report size (notably also
 	 * all a power of two).
 	 */
-	if (WARN_ONCE(head > dev_priv->perf.oa.oa_buffer.vma->size || head % report_size ||
-		      tail > dev_priv->perf.oa.oa_buffer.vma->size || tail % report_size,
+	if (WARN_ONCE(head > OA_BUFFER_SIZE || head % report_size ||
+		      tail > OA_BUFFER_SIZE || tail % report_size,
 		      "Inconsistent OA buffer pointers: head = %u, tail = %u\n",
 		      head, tail))
 		return -EIO;
@@ -990,7 +1000,7 @@ static int gen7_append_oa_reports(struct i915_perf_stream *stream,
 		 * here would imply a driver bug that would result
 		 * in an overrun.
 		 */
-		if (WARN_ON((dev_priv->perf.oa.oa_buffer.vma->size - head) < report_size)) {
+		if (WARN_ON((OA_BUFFER_SIZE - head) < report_size)) {
 			DRM_ERROR("Spurious OA head ptr: non-integral report offset\n");
 			break;
 		}
@@ -1385,9 +1395,7 @@ static void gen7_init_oa_buffer(struct drm_i915_private *dev_priv)
 
 	I915_WRITE(GEN7_OABUFFER, gtt_offset);
 
-	I915_WRITE(GEN7_OASTATUS1, gtt_offset |
-		   ((dev_priv->perf.oa.oa_buffer.size_exponent - 17) <<
-		    GEN7_OASTATUS1_BUFFER_SIZE_SHIFT)); /* tail */
+	I915_WRITE(GEN7_OASTATUS1, gtt_offset | OABUFFER_SIZE_16M); /* tail */
 
 	/* Mark that we need updated tail pointers to read from... */
 	dev_priv->perf.oa.oa_buffer.tails[0].offset = INVALID_TAIL_PTR;
@@ -1412,8 +1420,7 @@ static void gen7_init_oa_buffer(struct drm_i915_private *dev_priv)
 	 * the assumption that new reports are being written to zeroed
 	 * memory...
 	 */
-	memset(dev_priv->perf.oa.oa_buffer.vaddr, 0,
-	       dev_priv->perf.oa.oa_buffer.vma->size);
+	memset(dev_priv->perf.oa.oa_buffer.vaddr, 0, OA_BUFFER_SIZE);
 
 	/* Maybe make ->pollin per-stream state if we support multiple
 	 * concurrent streams in the future.
@@ -1443,9 +1450,7 @@ static void gen8_init_oa_buffer(struct drm_i915_private *dev_priv)
 	 *  bit."
 	 */
 	I915_WRITE(GEN8_OABUFFER, gtt_offset |
-		   ((dev_priv->perf.oa.oa_buffer.size_exponent - 17) <<
-		    GEN8_OABUFFER_BUFFER_SIZE_SHIFT) |
-		   GEN8_OABUFFER_MEM_SELECT_GGTT);
+		   OABUFFER_SIZE_16M | GEN8_OABUFFER_MEM_SELECT_GGTT);
 	I915_WRITE(GEN8_OATAILPTR, gtt_offset & GEN8_OATAILPTR_MASK);
 
 	/* Mark that we need updated tail pointers to read from... */
@@ -1473,8 +1478,7 @@ static void gen8_init_oa_buffer(struct drm_i915_private *dev_priv)
 	 * the assumption that new reports are being written to zeroed
 	 * memory...
 	 */
-	memset(dev_priv->perf.oa.oa_buffer.vaddr, 0,
-	       dev_priv->perf.oa.oa_buffer.vma->size);
+	memset(dev_priv->perf.oa.oa_buffer.vaddr, 0, OA_BUFFER_SIZE);
 
 	/*
 	 * Maybe make ->pollin per-stream state if we support multiple
@@ -1483,24 +1487,23 @@ static void gen8_init_oa_buffer(struct drm_i915_private *dev_priv)
 	dev_priv->perf.oa.pollin = false;
 }
 
-static int alloc_oa_buffer(struct drm_i915_private *dev_priv, int size_exponent)
+static int alloc_oa_buffer(struct drm_i915_private *dev_priv)
 {
 	struct drm_i915_gem_object *bo;
 	struct i915_vma *vma;
-	size_t size = 1U << size_exponent;
 	int ret;
 
 	if (WARN_ON(dev_priv->perf.oa.oa_buffer.vma))
 		return -ENODEV;
 
-	if (WARN_ON(size < SZ_128K || size > SZ_16M))
-		return -EINVAL;
-
 	ret = i915_mutex_lock_interruptible(&dev_priv->drm);
 	if (ret)
 		return ret;
 
-	bo = i915_gem_object_create(dev_priv, size);
+	BUILD_BUG_ON_NOT_POWER_OF_2(OA_BUFFER_SIZE);
+	BUILD_BUG_ON(OA_BUFFER_SIZE < SZ_128K || OA_BUFFER_SIZE > SZ_16M);
+
+	bo = i915_gem_object_create(dev_priv, OA_BUFFER_SIZE);
 	if (IS_ERR(bo)) {
 		DRM_ERROR("Failed to allocate OA buffer\n");
 		ret = PTR_ERR(bo);
@@ -1518,7 +1521,6 @@ static int alloc_oa_buffer(struct drm_i915_private *dev_priv, int size_exponent)
 		goto err_unref;
 	}
 	dev_priv->perf.oa.oa_buffer.vma = vma;
-	dev_priv->perf.oa.oa_buffer.size_exponent = size_exponent;
 
 	dev_priv->perf.oa.oa_buffer.vaddr =
 		i915_gem_object_pin_map(bo, I915_MAP_WB);
@@ -1527,10 +1529,9 @@ static int alloc_oa_buffer(struct drm_i915_private *dev_priv, int size_exponent)
 		goto err_unpin;
 	}
 
-	DRM_DEBUG_DRIVER("OA Buffer initialized, gtt offset = 0x%x, vaddr = %p, size = %llu\n",
+	DRM_DEBUG_DRIVER("OA Buffer initialized, gtt offset = 0x%x, vaddr = %p\n",
 			 i915_ggtt_offset(dev_priv->perf.oa.oa_buffer.vma),
-			 dev_priv->perf.oa.oa_buffer.vaddr,
-			 dev_priv->perf.oa.oa_buffer.vma->size);
+			 dev_priv->perf.oa.oa_buffer.vaddr);
 
 	goto unlock;
 
@@ -2090,7 +2091,7 @@ static int i915_oa_stream_init(struct i915_perf_stream *stream,
 	intel_runtime_pm_get(dev_priv);
 	intel_uncore_forcewake_get(dev_priv, FORCEWAKE_ALL);
 
-	ret = alloc_oa_buffer(dev_priv, props->oa_buffer_size_exponent);
+	ret = alloc_oa_buffer(dev_priv);
 	if (ret)
 		goto err_oa_buf_alloc;
 
@@ -2649,26 +2650,6 @@ static u64 oa_exponent_to_ns(struct drm_i915_private *dev_priv, int exponent)
 			 1000ULL * INTEL_INFO(dev_priv)->cs_timestamp_frequency_khz);
 }
 
-static int
-select_oa_buffer_exponent(struct drm_i915_private *i915,
-			  u64 requested_size)
-{
-	int order;
-
-	/*
-	 * When no size is specified, use the largest size supported by all
-	 * generations.
-	 */
-	if (!requested_size)
-		return order_base_2(SZ_16M);
-
-	order = order_base_2(clamp_t(u64, requested_size, SZ_128K, SZ_16M));
-	if (requested_size != (1UL << order))
-		return -EINVAL;
-
-	return order;
-}
-
 /**
  * read_properties_unlocked - validate + copy userspace stream open properties
  * @dev_priv: i915 device instance
@@ -2796,14 +2777,6 @@ static int read_properties_unlocked(struct drm_i915_private *dev_priv,
 			props->oa_periodic = true;
 			props->oa_period_exponent = value;
 			break;
-		case DRM_I915_PERF_PROP_OA_BUFFER_SIZE:
-			ret = select_oa_buffer_exponent(dev_priv, value);
-			if (ret < 0) {
-				DRM_DEBUG("OA buffer size invalid %llu\n", value);
-				return ret;
-			}
-			props->oa_buffer_size_exponent = ret;
-			break;
 		case DRM_I915_PERF_PROP_MAX:
 			MISSING_CASE(id);
 			return -EINVAL;
@@ -2812,12 +2785,6 @@ static int read_properties_unlocked(struct drm_i915_private *dev_priv,
 		uprop += 2;
 	}
 
-	/* If no buffer size was requested, select the default one. */
-	if (!props->oa_buffer_size_exponent) {
-		props->oa_buffer_size_exponent =
-			select_oa_buffer_exponent(dev_priv, 0);
-	}
-
 	return 0;
 }
 
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 94ba86018a4f..edb58af1e903 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -586,14 +586,12 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
 #define GEN8_OABUFFER_UDW _MMIO(0x23b4)
 #define GEN8_OABUFFER _MMIO(0x2b14)
 #define  GEN8_OABUFFER_MEM_SELECT_GGTT      (1 << 0)  /* 0: PPGTT, 1: GGTT */
-#define  GEN8_OABUFFER_BUFFER_SIZE_SHIFT    3
 
 #define GEN7_OASTATUS1 _MMIO(0x2364)
 #define  GEN7_OASTATUS1_TAIL_MASK	    0xffffffc0
 #define  GEN7_OASTATUS1_COUNTER_OVERFLOW    (1 << 2)
 #define  GEN7_OASTATUS1_OABUFFER_OVERFLOW   (1 << 1)
 #define  GEN7_OASTATUS1_REPORT_LOST	    (1 << 0)
-#define  GEN7_OASTATUS1_BUFFER_SIZE_SHIFT   3
 
 #define GEN7_OASTATUS2 _MMIO(0x2368)
 #define  GEN7_OASTATUS2_HEAD_MASK           0xffffffc0
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
index e477ef8c644e..298b2e197744 100644
--- a/include/uapi/drm/i915_drm.h
+++ b/include/uapi/drm/i915_drm.h
@@ -1540,13 +1540,6 @@ enum drm_i915_perf_property_id {
 	 */
 	DRM_I915_PERF_PROP_OA_EXPONENT,
 
-	/**
-	 * Specify a global OA buffer size to be allocated in bytes. The size
-	 * specified must be supported by HW (currently supported sizes are
-	 * powers of 2 ranging from 128Kb to 16Mb).
-	 */
-	DRM_I915_PERF_PROP_OA_BUFFER_SIZE,
-
 	DRM_I915_PERF_PROP_MAX /* non-ABI */
 };
 
-- 
2.17.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] Revert "drm/i915/perf: Fix warning in documentation"
  2018-11-16 13:55 [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer" Joonas Lahtinen
@ 2018-11-16 13:55 ` Joonas Lahtinen
  2018-11-16 14:00 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer" Patchwork
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Joonas Lahtinen @ 2018-11-16 13:55 UTC (permalink / raw)
  To: Intel graphics driver community testing & development; +Cc: Matthew Auld

Userspace portion is still missing.

This reverts commit 9fa6e2f7609fdbb7d6f86be86371a5719bec0376.

Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_perf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index c762418d3b01..4529edfdcfc8 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -345,7 +345,6 @@ static const struct i915_oa_format gen8_plus_oa_formats[I915_OA_FORMAT_MAX] = {
  * @oa_format: An OA unit HW report format
  * @oa_periodic: Whether to enable periodic OA unit sampling
  * @oa_period_exponent: The OA unit sampling period is derived from this
- * @oa_buffer_size_exponent: The OA buffer size is derived from this
  *
  * As read_properties_unlocked() enumerates and validates the properties given
  * to open a stream of metrics the configuration is built up in the structure
-- 
2.17.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
  2018-11-16 13:55 [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer" Joonas Lahtinen
  2018-11-16 13:55 ` [PATCH 2/2] Revert "drm/i915/perf: Fix warning in documentation" Joonas Lahtinen
@ 2018-11-16 14:00 ` Patchwork
  2018-11-16 14:01 ` ✗ Fi.CI.SPARSE: " Patchwork
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Patchwork @ 2018-11-16 14:00 UTC (permalink / raw)
  To: Joonas Lahtinen; +Cc: intel-gfx

== Series Details ==

Series: series starting with [1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
URL   : https://patchwork.freedesktop.org/series/52612/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
b808c374682f Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
-:42: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'tail' may be better as '(tail)' to avoid precedence issues
#42: FILE: drivers/gpu/drm/i915/i915_perf.c:221:
+#define OA_TAKEN(tail, head)	((tail - head) & (OA_BUFFER_SIZE - 1))

-:42: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'head' may be better as '(head)' to avoid precedence issues
#42: FILE: drivers/gpu/drm/i915/i915_perf.c:221:
+#define OA_TAKEN(tail, head)	((tail - head) & (OA_BUFFER_SIZE - 1))

total: 0 errors, 0 warnings, 2 checks, 272 lines checked
11e9d279512d Revert "drm/i915/perf: Fix warning in documentation"

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* ✗ Fi.CI.SPARSE: warning for series starting with [1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
  2018-11-16 13:55 [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer" Joonas Lahtinen
  2018-11-16 13:55 ` [PATCH 2/2] Revert "drm/i915/perf: Fix warning in documentation" Joonas Lahtinen
  2018-11-16 14:00 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer" Patchwork
@ 2018-11-16 14:01 ` Patchwork
  2018-11-16 14:17 ` ✗ Fi.CI.BAT: failure " Patchwork
  2018-11-19 10:36 ` [PATCH 1/2] " Matthew Auld
  4 siblings, 0 replies; 7+ messages in thread
From: Patchwork @ 2018-11-16 14:01 UTC (permalink / raw)
  To: Joonas Lahtinen; +Cc: intel-gfx

== Series Details ==

Series: series starting with [1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
URL   : https://patchwork.freedesktop.org/series/52612/
State : warning

== Summary ==

$ dim sparse origin/drm-tip
Sparse version: v0.5.2
Commit: Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: expression using sizeof(void)
-O:drivers/gpu/drm/i915/i915_perf.c:2665:17: warning: too many warnings
+drivers/gpu/drm/i915/i915_perf.c:1423:15: warning: memset with byte count of 16777216
+drivers/gpu/drm/i915/i915_perf.c:1481:15: warning: memset with byte count of 16777216
-drivers/gpu/drm/i915/selftests/../i915_drv.h:3705:16: warning: expression using sizeof(void)
+drivers/gpu/drm/i915/selftests/../i915_drv.h:3704:16: warning: expression using sizeof(void)
+./include/linux/slab.h:332:43: warning: dubious: x & !y
+./include/linux/slab.h:665:13: warning: call with no type!

Commit: Revert "drm/i915/perf: Fix warning in documentation"
Okay!

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* ✗ Fi.CI.BAT: failure for series starting with [1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
  2018-11-16 13:55 [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer" Joonas Lahtinen
                   ` (2 preceding siblings ...)
  2018-11-16 14:01 ` ✗ Fi.CI.SPARSE: " Patchwork
@ 2018-11-16 14:17 ` Patchwork
  2018-11-19 10:36 ` [PATCH 1/2] " Matthew Auld
  4 siblings, 0 replies; 7+ messages in thread
From: Patchwork @ 2018-11-16 14:17 UTC (permalink / raw)
  To: Joonas Lahtinen; +Cc: intel-gfx

== Series Details ==

Series: series starting with [1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
URL   : https://patchwork.freedesktop.org/series/52612/
State : failure

== Summary ==

= CI Bug Log - changes from CI_DRM_5150 -> Patchwork_10840 =

== Summary - FAILURE ==

  Serious unknown changes coming with Patchwork_10840 absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in Patchwork_10840, please notify your bug team to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://patchwork.freedesktop.org/api/1.0/series/52612/revisions/1/mbox/

== Possible new issues ==

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

  === IGT changes ===

    ==== Possible regressions ====

    igt@drv_selftest@live_contexts:
      fi-kbl-7560u:       PASS -> INCOMPLETE

    igt@kms_chamelium@hdmi-hpd-fast:
      {fi-kbl-7500u}:     SKIP -> FAIL +2

    
    ==== Warnings ====

    igt@kms_chamelium@common-hpd-after-suspend:
      {fi-kbl-7500u}:     DMESG-WARN (fdo#102505, fdo#105079, fdo#105602) -> FAIL

    
== Known issues ==

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

  === IGT changes ===

    ==== Issues hit ====

    igt@gem_ctx_create@basic-files:
      fi-bsw-n3050:       PASS -> FAIL (fdo#108656)

    igt@gem_ctx_switch@basic-default:
      fi-icl-u2:          PASS -> DMESG-WARN (fdo#107724)

    igt@kms_frontbuffer_tracking@basic:
      fi-byt-clapper:     PASS -> FAIL (fdo#103167)

    igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
      fi-byt-clapper:     PASS -> FAIL (fdo#103191, fdo#107362) +1

    igt@prime_vgem@basic-fence-flip:
      fi-gdg-551:         PASS -> DMESG-FAIL (fdo#103182)

    
    ==== Possible fixes ====

    igt@drv_selftest@live_coherency:
      fi-gdg-551:         DMESG-FAIL (fdo#107164) -> PASS

    igt@kms_pipe_crc_basic@hang-read-crc-pipe-a:
      fi-snb-2520m:       DMESG-FAIL (fdo#103713) -> PASS

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

  fdo#102505 https://bugs.freedesktop.org/show_bug.cgi?id=102505
  fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
  fdo#103182 https://bugs.freedesktop.org/show_bug.cgi?id=103182
  fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
  fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
  fdo#105079 https://bugs.freedesktop.org/show_bug.cgi?id=105079
  fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
  fdo#107164 https://bugs.freedesktop.org/show_bug.cgi?id=107164
  fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
  fdo#107724 https://bugs.freedesktop.org/show_bug.cgi?id=107724
  fdo#108656 https://bugs.freedesktop.org/show_bug.cgi?id=108656


== Participating hosts (50 -> 46) ==

  Missing    (4): fi-ilk-m540 fi-byt-squawks fi-hsw-4200u fi-pnv-d510 


== Build changes ==

    * Linux: CI_DRM_5150 -> Patchwork_10840

  CI_DRM_5150: ab97324c7fb98fc8cadbe5ae4e50f36fb0137308 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGT_4716: 111593c49d812a4f4ff9ab0ef053a3ab88a6f73f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
  Patchwork_10840: 11e9d279512d627d39c256358323ee8b32eab5e7 @ git://anongit.freedesktop.org/gfx-ci/linux


== Linux commits ==

11e9d279512d Revert "drm/i915/perf: Fix warning in documentation"
b808c374682f Revert "drm/i915/perf: add a parameter to control the size of OA buffer"

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10840/issues.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
  2018-11-16 13:55 [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer" Joonas Lahtinen
                   ` (3 preceding siblings ...)
  2018-11-16 14:17 ` ✗ Fi.CI.BAT: failure " Patchwork
@ 2018-11-19 10:36 ` Matthew Auld
  2018-11-19 11:16   ` Joonas Lahtinen
  4 siblings, 1 reply; 7+ messages in thread
From: Matthew Auld @ 2018-11-19 10:36 UTC (permalink / raw)
  To: Joonas Lahtinen; +Cc: Intel Graphics Development, Matthew Auld

On Fri, 16 Nov 2018 at 13:55, Joonas Lahtinen
<joonas.lahtinen@linux.intel.com> wrote:
>
> Userspace portion is still missing.
>
> This reverts commit cd956bfcd0f58d20485ac0a785415f7d9327a95f.
>
> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> Cc: Matthew Auld <matthew.auld@intel.com>
> Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

For both patches:
Acked-by: Matthew Auld <matthew.auld@intel.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer"
  2018-11-19 10:36 ` [PATCH 1/2] " Matthew Auld
@ 2018-11-19 11:16   ` Joonas Lahtinen
  0 siblings, 0 replies; 7+ messages in thread
From: Joonas Lahtinen @ 2018-11-19 11:16 UTC (permalink / raw)
  To: Matthew Auld; +Cc: Intel Graphics Development, Matthew Auld

Quoting Matthew Auld (2018-11-19 12:36:00)
> On Fri, 16 Nov 2018 at 13:55, Joonas Lahtinen
> <joonas.lahtinen@linux.intel.com> wrote:
> >
> > Userspace portion is still missing.
> >
> > This reverts commit cd956bfcd0f58d20485ac0a785415f7d9327a95f.
> >
> > Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> > Cc: Matthew Auld <matthew.auld@intel.com>
> > Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> 
> For both patches:
> Acked-by: Matthew Auld <matthew.auld@intel.com>

Thanks, pushed now.

Regards, Joonas
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-19 11:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-16 13:55 [PATCH 1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer" Joonas Lahtinen
2018-11-16 13:55 ` [PATCH 2/2] Revert "drm/i915/perf: Fix warning in documentation" Joonas Lahtinen
2018-11-16 14:00 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] Revert "drm/i915/perf: add a parameter to control the size of OA buffer" Patchwork
2018-11-16 14:01 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-11-16 14:17 ` ✗ Fi.CI.BAT: failure " Patchwork
2018-11-19 10:36 ` [PATCH 1/2] " Matthew Auld
2018-11-19 11:16   ` Joonas Lahtinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox