From patchwork Fri Jun 12 11:37:21 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: 1308184 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (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 49k2ZP4pHtz9sSS for ; Sat, 13 Jun 2020 00:06:05 +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 49k2ZM2vLhzDqD2 for ; Sat, 13 Jun 2020 00:06:03 +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=188.165.43.98; helo=14.mo3.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 X-Greylist: delayed 6617 seconds by postgrey-1.36 at bilbo; Sat, 13 Jun 2020 00:05:33 AEST Received: from 14.mo3.mail-out.ovh.net (14.mo3.mail-out.ovh.net [188.165.43.98]) (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 49k2Yn4yP6zDq9V for ; Sat, 13 Jun 2020 00:05:19 +1000 (AEST) Received: from player771.ha.ovh.net (unknown [10.110.171.125]) by mo3.mail-out.ovh.net (Postfix) with ESMTP id 1CB76258063 for ; Fri, 12 Jun 2020 13:37:39 +0200 (CEST) Received: from kaod.org (82-64-250-170.subs.proxad.net [82.64.250.170]) (Authenticated sender: clg@kaod.org) by player771.ha.ovh.net (Postfix) with ESMTPSA id B44FB1363D978; Fri, 12 Jun 2020 11:37:34 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-97G002861c2ef7-021a-48b4-81dd-116aaa7efa9f,EB3F143BCCF81B35F467F76D3EA0524591534A17) smtp.auth=clg@kaod.org From: =?utf-8?q?C=C3=A9dric_Le_Goater?= To: skiboot@lists.ozlabs.org Date: Fri, 12 Jun 2020 13:37:21 +0200 Message-Id: <20200612113732.374240-1-clg@kaod.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Ovh-Tracer-Id: 7566891800542022617 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudeiuddggeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffogggtgfesthekredtredtjeenucfhrhhomhepveorughrihgtucfnvgcuifhorghtvghruceotghlgheskhgrohgurdhorhhgqeenucggtffrrghtthgvrhhnpeeikeekleffteegleevveejheetuddviedvleejvedvueevtdfgieduieeviedugfenucfkpheptddrtddrtddrtddpkedvrdeigedrvdehtddrudejtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejjedurdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheptghlgheskhgrohgurdhorhhgpdhrtghpthhtohepshhkihgsohhotheslhhishhtshdrohiilhgrsghsrdhorhhg Subject: [Skiboot] [PATCH v2 00/11] xive/p9: various small cleanups 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" Hello, Here are cleanups which try to deobfuscate some magic values used in the driver and add documentation in the commit logs. The only significant change is on the size of the VP space which now depends on the number of EQ descriptors. We have 1M of these and we use 8 priorities per VP. Therefore, our VP space should be limited to 128k. Tested on a witherspoon with 2048 KVM guests each with 4 vCPUS. Thanks, C. Changes since v1: - rephrased comment on the GIRQ - used sizeof() in more places Cédric Le Goater (11): xive/p9: Introduce XIVE_INT_ORDER xive/p9: Clarify the global IRQ number encoding xive/p9: Introduce XIVE_ESB_SHIFT xive/p9: Introduce XIVE_EQ_ORDER xive/p9: Clarify the escalation IRQ encoding xive/p9: Introduce XIVE_EQ_SHIFT xive/p9: Use sizeof() instead of hardcoded values xive/p9: Clarify indirect table allocation xive/p9: Force 64K page size on the IC and TM BARs xive/p9: Modify the size of the VP space xive/p9: Introduce definitions for VP ids of HW threads hw/xive.c | 208 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 117 insertions(+), 91 deletions(-)