From patchwork Thu May 4 05:36:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Kerr X-Patchwork-Id: 758353 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wJP216hC6z9rxm for ; Thu, 4 May 2017 15:38:01 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wJP215ccTzDqHG for ; Thu, 4 May 2017 15:38:01 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wJP1w3YxwzDqCt for ; Thu, 4 May 2017 15:37:56 +1000 (AEST) Received: by ozlabs.org (Postfix, from userid 1023) id 3wJP1w2NCYz9rxw; Thu, 4 May 2017 15:37:56 +1000 (AEST) From: Jeremy Kerr To: skiboot@lists.ozlabs.org Date: Thu, 4 May 2017 13:36:58 +0800 Message-Id: <1493876219-28583-1-git-send-email-jk@ozlabs.org> X-Mailer: git-send-email 2.7.4 Subject: [Skiboot] [PATCH RFC 1/2] opal-prd: Add get_ipoll_events HBRT callback X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel M Crowell , William G Hoffa , Brian Stegmiller , Zane Shelley MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" This change adds a get_ipoll_events callback, allowing the opal-prd wrapper to query the set of events to enable in the INIT message. RFC only at this stage, as we need to sync with the HBRT implementation. Signed-off-by: Jeremy Kerr CC: Daniel M Crowell CC: Zane Shelley CC: Brian Stegmiller CC: William G Hoffa --- Dan, Zane, Brian, Bill: this is the added callback for allowing HBRT to specify the IPOLL events that we enable. I've modified the OPAL header file here, but we'll need to make the actual change in the "official" header. --- external/opal-prd/hostboot-interface.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/external/opal-prd/hostboot-interface.h b/external/opal-prd/hostboot-interface.h index 3e73ef8..633d1a8 100644 --- a/external/opal-prd/hostboot-interface.h +++ b/external/opal-prd/hostboot-interface.h @@ -491,6 +491,21 @@ struct runtime_interfaces { */ int (*run_command)(int argc, const char **argv, char **o_outString); + /** + * @brief Query the IPOLL event mask supported by HBRT + * + * @details This call allows the wrapper application to query + * the ipoll event mask to set when the HBRT instance is running. Bits + * that are *set* in this bitmask represent events that will be + * forwarded to the handle_attn() callback. + * + * If this callback is not provided, the value 0xf000000000000000 will + * be assumed. + * + * @param[out] the IPOLL event bits to enable during HBRT execution + */ + uint64_t (*get_ipoll_events)(void); + /* Reserve some space for future growth. */ - void (*reserved[29])(void); + void (*reserved[28])(void); };