From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36ED6C43331 for ; Thu, 2 Apr 2020 03:50:28 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0A6A120757 for ; Thu, 2 Apr 2020 03:50:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j1BLyfPi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0A6A120757 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 732E710FC545A; Wed, 1 Apr 2020 20:51:17 -0700 (PDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::142; helo=mail-il1-x142.google.com; envelope-from=oohall@gmail.com; receiver= Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6192910FC5457 for ; Wed, 1 Apr 2020 20:51:05 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id j9so2258903ilr.7 for ; Wed, 01 Apr 2020 20:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=un3fCtdFL30YthKT96CUaub/mKOgXUtAMj2aFT/0PG4=; b=j1BLyfPilq3TJB3KimcIBBGzUr9NSBHL9CZX0ZLvnEhr10RUE+BzgwAVbkboZvzJbw p3BYhlMqx54KQgTKkG5lwMplSjQXdoNkXd6tEJKK3Ow86YPUz9oF50vYJT+DfEqEOxYC 9orFV88QTGN5X23IO494ia9LQ6tqUZLtLTwAChrveledyaZs21kUVGzJaxM2U41am4FJ Yzm4Yffn1e/pPB99dk1RtDx+wheEOC6UxXljP5f2wz0KZBjj7tsaeqI0Zzkl2tGQPABp D6g9lryQGxQKow4hC6WDUEqU58ef+Z9XAu/Dw2FHqwgyQtnWJzmpiAtoYyW7fB3tXiP9 JaJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=un3fCtdFL30YthKT96CUaub/mKOgXUtAMj2aFT/0PG4=; b=GjHezJmUYAVGrW0t/1y0lcL/JzE5+xewkZ02iussjTgkfKmPV03AntfK5S8kdwGJ23 p9G78fHQwIyxZUSKJXTaJhGSqLLxodxd1E1q/ZsFjX9H9ZWShDk33lPIlMRgZZ51rRqN No9ehe4GJvmnv2+2B9QNnHxus/rsZ7oYHw7jx+HUfzSgua6EJwbOpWsVp5NiJ1wTl7Sy 1UJF7c3OnqGxzSOJdw1jAxVkR+WXY23en0d6Y7GJ8ou6mbqOr0F8h3ClcivuwFWbDFHo yQHmj0GyskvSTdUf34nsKx7LmtfS8YbxKfGwBpMOp5SA5/puhGNNctK1Fmol3kyeFqRZ 0qrQ== X-Gm-Message-State: AGi0PuZ+c0IHm0SXDYUQsz/BE2vMWjLvXm/ub9PW60h2nAJKaLPWLZ+H ffED+ZZCKmjXXie6qsXrb2YKlcG4iywBemY9Z0g= X-Google-Smtp-Source: APiQypJyEN+5v6EGwS7GGD77C8TR5iHpI3+yZLJ2qJhUBFcMxf+gIEB07Pj3Y1zyNjFY+2mASs/kfz/PFBneqBUdOvU= X-Received: by 2002:a92:39cc:: with SMTP id h73mr1225341ilf.298.1585799414632; Wed, 01 Apr 2020 20:50:14 -0700 (PDT) MIME-Version: 1.0 References: <20200327071202.2159885-1-alastair@d-silva.org> <2d6901d60877$16aa7a90$43ff6fb0$@d-silva.org> <87imiituxm.fsf@mpe.ellerman.id.au> In-Reply-To: <87imiituxm.fsf@mpe.ellerman.id.au> From: "Oliver O'Halloran" Date: Thu, 2 Apr 2020 14:50:03 +1100 Message-ID: Subject: Re: [PATCH v4 00/25] Add support for OpenCAPI Persistent Memory devices To: Michael Ellerman Message-ID-Hash: 7IYNJ2JXXVBFSLALAVMY2WQUBRXWO6SX X-Message-ID-Hash: 7IYNJ2JXXVBFSLALAVMY2WQUBRXWO6SX X-MailFrom: oohall@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Alastair D'Silva , "Aneesh Kumar K . V" , Benjamin Herrenschmidt , Paul Mackerras , Frederic Barrat , Andrew Donnellan , Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Anton Blanchard , Krzysztof Kozlowski , Mahesh Salgaonkar , Madhavan Srinivasan , =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , Anju T Sudhakar , Hari Bathini , Thomas Gleixner , Greg Kurz , Nicholas Piggin , Masahiro Yamada , Alexey Kardashevskiy , Linux Kernel Mailing List , linuxppc-dev , linux-nvdimm , Linux MM X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Thu, Apr 2, 2020 at 2:42 PM Michael Ellerman wrote: > > "Alastair D'Silva" writes: > >> -----Original Message----- > >> From: Dan Williams > >> > >> On Sun, Mar 29, 2020 at 10:23 PM Alastair D'Silva > >> wrote: > >> > > >> > *snip* > >> Are OPAL calls similar to ACPI DSMs? I.e. methods for the OS to invoke > >> platform firmware services? What's Skiboot? > >> > > > > Yes, OPAL is the interface to firmware for POWER. Skiboot is the open-source (and only) implementation of OPAL. > > https://github.com/open-power/skiboot > > In particular the tokens for calls are defined here: > > https://github.com/open-power/skiboot/blob/master/include/opal-api.h#L220 > > And you can grep for the token to find the implementation: > > https://github.com/open-power/skiboot/blob/master/hw/npu2-opencapi.c#L2328 I'm not sure I'd encourage anyone to read npu2-opencapi.c. I find it hard enough to follow even with access to the workbooks. There's an OPAL call API reference here: http://open-power.github.io/skiboot/doc/opal-api/index.html Oliver _______________________________________________ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-leave@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76245C2D0F4 for ; Thu, 2 Apr 2020 03:50:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DD1F20784 for ; Thu, 2 Apr 2020 03:50:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j1BLyfPi" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387443AbgDBDuQ (ORCPT ); Wed, 1 Apr 2020 23:50:16 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:34641 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732498AbgDBDuP (ORCPT ); Wed, 1 Apr 2020 23:50:15 -0400 Received: by mail-il1-f194.google.com with SMTP id t11so2283818ils.1 for ; Wed, 01 Apr 2020 20:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=un3fCtdFL30YthKT96CUaub/mKOgXUtAMj2aFT/0PG4=; b=j1BLyfPilq3TJB3KimcIBBGzUr9NSBHL9CZX0ZLvnEhr10RUE+BzgwAVbkboZvzJbw p3BYhlMqx54KQgTKkG5lwMplSjQXdoNkXd6tEJKK3Ow86YPUz9oF50vYJT+DfEqEOxYC 9orFV88QTGN5X23IO494ia9LQ6tqUZLtLTwAChrveledyaZs21kUVGzJaxM2U41am4FJ Yzm4Yffn1e/pPB99dk1RtDx+wheEOC6UxXljP5f2wz0KZBjj7tsaeqI0Zzkl2tGQPABp D6g9lryQGxQKow4hC6WDUEqU58ef+Z9XAu/Dw2FHqwgyQtnWJzmpiAtoYyW7fB3tXiP9 JaJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=un3fCtdFL30YthKT96CUaub/mKOgXUtAMj2aFT/0PG4=; b=IxEeqz/ob6CtiffJMn1CYX79bmL491+cMVthUHcYYQo3VeSluriowBg6fWaosJbiRW I7aRe1TVd5UUTBY568ZKcMVgLe7rZcA+S2XDXl+INb38gg1tZ+WIKNDETE3gHyKO62A5 LRsGFZ97tTm9rwTwftgA4nFA5NSFAQEeGNplJ/rUvtI7N7RsHs005BVY1YdtrCbd3/Hz eM7xkt6+btAS/TjEW3X2eo/36VKssLgorwYcKLssqLYWYN99r54Lj6IpfGFc35CqT9mE DX58MGqWf/vuFSJ7crAnZjT5t6OJwJrW1VSK6g14Lai4kHF4m+RRpA2n1ZaIx8eejxaH 0R+Q== X-Gm-Message-State: AGi0PubGAxsDmHpvPMmxDJf37CnFqpEpPvayT10OuRhdSu2+qmWpe79i 3309ygUKWuTXdmvNRLAGZ54wZN22uilv+cI+L+Y= X-Google-Smtp-Source: APiQypJyEN+5v6EGwS7GGD77C8TR5iHpI3+yZLJ2qJhUBFcMxf+gIEB07Pj3Y1zyNjFY+2mASs/kfz/PFBneqBUdOvU= X-Received: by 2002:a92:39cc:: with SMTP id h73mr1225341ilf.298.1585799414632; Wed, 01 Apr 2020 20:50:14 -0700 (PDT) MIME-Version: 1.0 References: <20200327071202.2159885-1-alastair@d-silva.org> <2d6901d60877$16aa7a90$43ff6fb0$@d-silva.org> <87imiituxm.fsf@mpe.ellerman.id.au> In-Reply-To: <87imiituxm.fsf@mpe.ellerman.id.au> From: "Oliver O'Halloran" Date: Thu, 2 Apr 2020 14:50:03 +1100 Message-ID: Subject: Re: [PATCH v4 00/25] Add support for OpenCAPI Persistent Memory devices To: Michael Ellerman Cc: "Alastair D'Silva" , Dan Williams , "Aneesh Kumar K . V" , Benjamin Herrenschmidt , Paul Mackerras , Frederic Barrat , Andrew Donnellan , Arnd Bergmann , Greg Kroah-Hartman , Vishal Verma , Dave Jiang , Ira Weiny , Andrew Morton , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Anton Blanchard , Krzysztof Kozlowski , Mahesh Salgaonkar , Madhavan Srinivasan , =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , Anju T Sudhakar , Hari Bathini , Thomas Gleixner , Greg Kurz , Nicholas Piggin , Masahiro Yamada , Alexey Kardashevskiy , Linux Kernel Mailing List , linuxppc-dev , linux-nvdimm , Linux MM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 2, 2020 at 2:42 PM Michael Ellerman wrote: > > "Alastair D'Silva" writes: > >> -----Original Message----- > >> From: Dan Williams > >> > >> On Sun, Mar 29, 2020 at 10:23 PM Alastair D'Silva > >> wrote: > >> > > >> > *snip* > >> Are OPAL calls similar to ACPI DSMs? I.e. methods for the OS to invoke > >> platform firmware services? What's Skiboot? > >> > > > > Yes, OPAL is the interface to firmware for POWER. Skiboot is the open-source (and only) implementation of OPAL. > > https://github.com/open-power/skiboot > > In particular the tokens for calls are defined here: > > https://github.com/open-power/skiboot/blob/master/include/opal-api.h#L220 > > And you can grep for the token to find the implementation: > > https://github.com/open-power/skiboot/blob/master/hw/npu2-opencapi.c#L2328 I'm not sure I'd encourage anyone to read npu2-opencapi.c. I find it hard enough to follow even with access to the workbooks. There's an OPAL call API reference here: http://open-power.github.io/skiboot/doc/opal-api/index.html Oliver From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EB3AC43331 for ; Thu, 2 Apr 2020 03:52:09 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC79820705 for ; Thu, 2 Apr 2020 03:52:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j1BLyfPi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC79820705 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48t8Jk5ldlzDrMT for ; Thu, 2 Apr 2020 14:52:06 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::141; helo=mail-il1-x141.google.com; envelope-from=oohall@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=j1BLyfPi; dkim-atps=neutral Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48t8Gf1jnLzDqbC for ; Thu, 2 Apr 2020 14:50:17 +1100 (AEDT) Received: by mail-il1-x141.google.com with SMTP id t6so2238755ilj.8 for ; Wed, 01 Apr 2020 20:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=un3fCtdFL30YthKT96CUaub/mKOgXUtAMj2aFT/0PG4=; b=j1BLyfPilq3TJB3KimcIBBGzUr9NSBHL9CZX0ZLvnEhr10RUE+BzgwAVbkboZvzJbw p3BYhlMqx54KQgTKkG5lwMplSjQXdoNkXd6tEJKK3Ow86YPUz9oF50vYJT+DfEqEOxYC 9orFV88QTGN5X23IO494ia9LQ6tqUZLtLTwAChrveledyaZs21kUVGzJaxM2U41am4FJ Yzm4Yffn1e/pPB99dk1RtDx+wheEOC6UxXljP5f2wz0KZBjj7tsaeqI0Zzkl2tGQPABp D6g9lryQGxQKow4hC6WDUEqU58ef+Z9XAu/Dw2FHqwgyQtnWJzmpiAtoYyW7fB3tXiP9 JaJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=un3fCtdFL30YthKT96CUaub/mKOgXUtAMj2aFT/0PG4=; b=LRa9VQGQeJlUCet9lifRqkBXoMjATHXJPRSCY4mEMactVtj1ZVpZ99wohusH5eYZnE +qS3HI20O1w6ClVN1GFKfcRffS0fq9b7VhLJ3V7ndmx5owsR36FJqsU2TwL3esMSzXlA QolMA10KZoXs1ZBLdo5HzG6ijSjbuKEY4O6NM355dm5fDdhQflhKOwK2J5Gy+Jb1BgbB O+BhmSrCCkY2bmLQfOUrfloKwEAKl5snRGip+f242Ijb0nSjCrZIQ/2beadifWq/DQ72 CUXUZw4OeIVsU95dNhR3usmZ0yXZoZ7LPRDp1pmsSGzN+1rjir50nCuAe7zsaIKSArtW ecxQ== X-Gm-Message-State: AGi0PuZHp8kQSEH9u8waf46FUTprL4wOFp1OXjR5r6VxgpkaPTAT7d10 88yE2EiNPnfNPCd1VG//uWSjRFecl6LL8O0zZ2o= X-Google-Smtp-Source: APiQypJyEN+5v6EGwS7GGD77C8TR5iHpI3+yZLJ2qJhUBFcMxf+gIEB07Pj3Y1zyNjFY+2mASs/kfz/PFBneqBUdOvU= X-Received: by 2002:a92:39cc:: with SMTP id h73mr1225341ilf.298.1585799414632; Wed, 01 Apr 2020 20:50:14 -0700 (PDT) MIME-Version: 1.0 References: <20200327071202.2159885-1-alastair@d-silva.org> <2d6901d60877$16aa7a90$43ff6fb0$@d-silva.org> <87imiituxm.fsf@mpe.ellerman.id.au> In-Reply-To: <87imiituxm.fsf@mpe.ellerman.id.au> From: "Oliver O'Halloran" Date: Thu, 2 Apr 2020 14:50:03 +1100 Message-ID: Subject: Re: [PATCH v4 00/25] Add support for OpenCAPI Persistent Memory devices To: Michael Ellerman Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Madhavan Srinivasan , Alexey Kardashevskiy , Mahesh Salgaonkar , Masahiro Yamada , Paul Mackerras , Mauro Carvalho Chehab , Ira Weiny , Thomas Gleixner , Rob Herring , Dave Jiang , linux-nvdimm , "Aneesh Kumar K . V" , Krzysztof Kozlowski , Anju T Sudhakar , Alastair D'Silva , Andrew Donnellan , Arnd Bergmann , Greg Kurz , Nicholas Piggin , =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , Dan Williams , Hari Bathini , Linux MM , Greg Kroah-Hartman , Linux Kernel Mailing List , Vishal Verma , Frederic Barrat , Andrew Morton , linuxppc-dev , "David S. Miller" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, Apr 2, 2020 at 2:42 PM Michael Ellerman wrote: > > "Alastair D'Silva" writes: > >> -----Original Message----- > >> From: Dan Williams > >> > >> On Sun, Mar 29, 2020 at 10:23 PM Alastair D'Silva > >> wrote: > >> > > >> > *snip* > >> Are OPAL calls similar to ACPI DSMs? I.e. methods for the OS to invoke > >> platform firmware services? What's Skiboot? > >> > > > > Yes, OPAL is the interface to firmware for POWER. Skiboot is the open-source (and only) implementation of OPAL. > > https://github.com/open-power/skiboot > > In particular the tokens for calls are defined here: > > https://github.com/open-power/skiboot/blob/master/include/opal-api.h#L220 > > And you can grep for the token to find the implementation: > > https://github.com/open-power/skiboot/blob/master/hw/npu2-opencapi.c#L2328 I'm not sure I'd encourage anyone to read npu2-opencapi.c. I find it hard enough to follow even with access to the workbooks. There's an OPAL call API reference here: http://open-power.github.io/skiboot/doc/opal-api/index.html Oliver