From patchwork Tue Oct 9 09:41:59 2018 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: 981405 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42V2DZ0cmtz9s8r for ; Wed, 10 Oct 2018 03:07:10 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kaod.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42V2DY5yFWzF3P7 for ; Wed, 10 Oct 2018 03:07:09 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=kaod.org X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=kaod.org (client-ip=178.32.97.215; helo=14.mo1.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 20308 seconds by postgrey-1.36 at bilbo; Wed, 10 Oct 2018 02:36:07 AEDT Received: from 14.mo1.mail-out.ovh.net (14.mo1.mail-out.ovh.net [178.32.97.215]) (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 42V1Xl50n1zDqRM for ; Wed, 10 Oct 2018 02:36:06 +1100 (AEDT) Received: from player746.ha.ovh.net (unknown [10.109.143.72]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id 78B5E13B743 for ; Tue, 9 Oct 2018 11:42:08 +0200 (CEST) Received: from zorba.lab.toulouse-stg.fr.ibm.com (deibp9eh1--blueice1n0.emea.ibm.com [195.212.29.162]) (Authenticated sender: clg@kaod.org) by player746.ha.ovh.net (Postfix) with ESMTPSA id 190CA5000A0; Tue, 9 Oct 2018 11:42:03 +0200 (CEST) From: =?utf-8?q?C=C3=A9dric_Le_Goater?= To: skiboot@lists.ozlabs.org Date: Tue, 9 Oct 2018 11:41:59 +0200 Message-Id: <20181009094159.17307-1-clg@kaod.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Ovh-Tracer-Id: 8642126214211406809 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudeggddulecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Subject: [Skiboot] [PATCH] xive: reserve OPAL call numbers to get/set the NVT state 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: , Cc: Stewart Smith Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" XIVE already reserves a couple of OPAL call numbers to get/set the END state but we will need some more for the NVT state. Signed-off-by: Cédric Le Goater --- or should we recycle OPAL_OLD_I2C_REQUEST, OPAL_ELOG_SEND, OPAL_GET_COMPLETION_TOKEN_STATUS ? what about OPAL_RESERVED1 and OPAL_RESERVED2 ? include/opal-api.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/opal-api.h b/include/opal-api.h index 5f397c8e6731..212c3bc229ae 100644 --- a/include/opal-api.h +++ b/include/opal-api.h @@ -199,8 +199,8 @@ #define OPAL_XIVE_FREE_IRQ 140 #define OPAL_XIVE_SYNC 141 #define OPAL_XIVE_DUMP 142 -#define OPAL_XIVE_RESERVED3 143 -#define OPAL_XIVE_RESERVED4 144 +#define OPAL_XIVE_RESERVED3 143 /* Get END state */ +#define OPAL_XIVE_RESERVED4 144 /* Set END state */ #define OPAL_SIGNAL_SYSTEM_RESET 145 #define OPAL_NPU_INIT_CONTEXT 146 #define OPAL_NPU_DESTROY_CONTEXT 147 @@ -226,7 +226,9 @@ #define OPAL_NX_COPROC_INIT 167 #define OPAL_NPU_SET_RELAXED_ORDER 168 #define OPAL_NPU_GET_RELAXED_ORDER 169 -#define OPAL_LAST 169 +#define OPAL_XIVE_RESERVED5 170 /* Get NVT state */ +#define OPAL_XIVE_RESERVED6 171 /* Set NVT state */ +#define OPAL_LAST 171 #define QUIESCE_HOLD 1 /* Spin all calls at entry */ #define QUIESCE_REJECT 2 /* Fail all calls with OPAL_BUSY */