From patchwork Wed Jun 24 09:16:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Le_Goater?= X-Patchwork-Id: 1315991 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49sJ303Ngfz9sRR for ; Wed, 24 Jun 2020 19:37:32 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kaod.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49sJ300pxfzDqkc for ; Wed, 24 Jun 2020 19:37:32 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kaod.org (client-ip=46.105.50.107; helo=6.mo69.mail-out.ovh.net; envelope-from=clg@kaod.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=kaod.org Received: from 6.mo69.mail-out.ovh.net (6.mo69.mail-out.ovh.net [46.105.50.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49sJ0P3GbwzDqfZ for ; Wed, 24 Jun 2020 19:35:15 +1000 (AEST) Received: from player731.ha.ovh.net (unknown [10.108.42.196]) by mo69.mail-out.ovh.net (Postfix) with ESMTP id A420F93637 for ; Wed, 24 Jun 2020 11:16:42 +0200 (CEST) Received: from kaod.org (lfbn-tou-1-921-245.w86-210.abo.wanadoo.fr [86.210.152.245]) (Authenticated sender: clg@kaod.org) by player731.ha.ovh.net (Postfix) with ESMTPSA id BB647137D8149; Wed, 24 Jun 2020 09:16:38 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-97G00297448709-1198-41fd-a05c-69ef890d03a7,E10FFB909967CDEE565F5962A97A61CD472B7760) smtp.auth=clg@kaod.org From: =?utf-8?q?C=C3=A9dric_Le_Goater?= To: skiboot@lists.ozlabs.org Date: Wed, 24 Jun 2020 11:16:25 +0200 Message-Id: <20200624091625.324632-4-clg@kaod.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200624091625.324632-1-clg@kaod.org> References: <20200624091625.324632-1-clg@kaod.org> MIME-Version: 1.0 X-Ovh-Tracer-Id: 1871808596666387417 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudekjedgtdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepveorughrihgtucfnvgcuifhorghtvghruceotghlgheskhgrohgurdhorhhgqeenucggtffrrghtthgvrhhnpefgieetvdefudeghedvveejudeihfeiteffjeetjeeukefhgffgvedugedugedugfenucfkpheptddrtddrtddrtddpkeeirddvuddtrdduhedvrddvgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrjeefuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdprhgtphhtthhopehskhhisghoohhtsehlihhsthhsrdhoiihlrggsshdrohhrgh Subject: [Skiboot] [PATCH 3/3] xive/P9: Use NUM_INT_PRIORITIES in xive_reset() X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Signed-off-by: Cédric Le Goater --- hw/xive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xive.c b/hw/xive.c index 845321ed59ff..2c8ffb9ceb02 100644 --- a/hw/xive.c +++ b/hw/xive.c @@ -4444,7 +4444,7 @@ static void xive_reset_one(struct xive *x) if (i == 0) continue; eq_firmware = false; - for (j = 0; j < 8; j++) { + for (j = 0; j < NUM_INT_PRIORITIES; j++) { uint32_t idx = (i << 3) | j; eq = xive_get_eq(x, idx);