diff mbox series

[16/22] xive/p9: remove XIVE_INT_SAFETY_GAP

Message ID 20190903170413.4373-17-clg@kaod.org
State Superseded
Headers show
Series xive: new interfaces, fixes and cleanups in a new driver | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (7b12d5489fcfd73ef7ec0cb27eff7f8a5f13b238)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Cédric Le Goater Sept. 3, 2019, 5:04 p.m. UTC
It was used by bringup code only.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 hw/xive-p9.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/hw/xive-p9.c b/hw/xive-p9.c
index d61df6a5e973..dd923c51eda9 100644
--- a/hw/xive-p9.c
+++ b/hw/xive-p9.c
@@ -43,7 +43,6 @@ 
 #define XIVE_EXTRA_CHECK_INIT_CACHE
 #undef XIVE_CHECK_MISROUTED_IPI
 #define XIVE_CHECK_LOCKS
-#define XIVE_INT_SAFETY_GAP 0x1000
 #else
 #undef  XIVE_DEBUG_DUPLICATES
 #undef  XIVE_PERCPU_LOG
@@ -51,7 +50,6 @@ 
 #undef  XIVE_EXTRA_CHECK_INIT_CACHE
 #undef  XIVE_CHECK_MISROUTED_IPI
 #undef  XIVE_CHECK_LOCKS
-#define XIVE_INT_SAFETY_GAP 0x10
 #endif
 
 /*
@@ -157,6 +155,7 @@ 
  * overlap the HW interrupts.
  */
 #define MAX_INT_ENTRIES		(1 * 1024 * 1024)
+#define XIVE_INT_FIRST		0x10
 
 /* Corresponding direct table sizes */
 #define SBE_SIZE	(MAX_INT_ENTRIES / 4)
@@ -2597,8 +2596,8 @@  static struct xive *init_one_xive(struct dt_node *np)
 	/* Make sure we never hand out "2" as it's reserved for XICS emulation
 	 * IPI returns. Generally start handing out at 0x10
 	 */
-	if (x->int_ipi_top < XIVE_INT_SAFETY_GAP)
-		x->int_ipi_top = XIVE_INT_SAFETY_GAP;
+	if (x->int_ipi_top < XIVE_INT_FIRST)
+		x->int_ipi_top = XIVE_INT_FIRST;
 
 	/* Allocate a few bitmaps */
 	x->eq_map = zalloc(BITMAP_BYTES(MAX_EQ_COUNT >> 3));
@@ -3497,7 +3496,7 @@  static int64_t opal_xive_get_xirr(uint32_t *out_xirr, bool just_poll)
 		/* XXX Use "p" to select queue */
 		val = xive_read_eq(xs, just_poll);
 
-		if (val && val < XIVE_INT_SAFETY_GAP)
+		if (val && val < XIVE_INT_FIRST)
 			xive_cpu_err(c, "Bogus interrupt 0x%x received !\n", val);
 
 		/* Convert to magic IPI if needed */