Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1555649ybb; Thu, 2 Apr 2020 03:07:50 -0700 (PDT) X-Google-Smtp-Source: APiQypK77+ct6dL5WgcxjSBbo5VTHBUSUme0z5GrmoBcMJI5/GMkWh2GxcwuV63NuA0KRSHfNkxH X-Received: by 2002:a9d:76c7:: with SMTP id p7mr1695639otl.145.1585822070138; Thu, 02 Apr 2020 03:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585822070; cv=none; d=google.com; s=arc-20160816; b=z2MIHVcYNwswbbz57tuSGhW56gM0QcB4/YZEMiIWpjjKkmNBEGXEv9Rv7b4WuKlrZd Jffm7PnW03+jjs6ZC+YRhKfnPzHLJe7oO3IYBh7tukRKNq89ZvZyVmZCYOOM6oQcB9uM 5CKuePF+e54o2hCMD/wSaNt+uZvqYRlfGCUxZHsBPA5J7a7TZp2Xf8yX0fV2wOIld8WV AwiXeVCrEoFdWI12REPZVeemqajBiiQzEqm9/pT9Piq+4g15c6LCwY7SG6pXuXwW6A7C LlXTs+9sTpHvWnDtQ6yiTn/XbAHBQtr0/dgyDLkvEVqBu2ywhgJSzosz1iFYfPYG5Fhw lrbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=YCb5orQQnjMlNgJoyRjTqIdJXmPDH7ZMaXSb9WlF7es=; b=alvbLIO2Zb+3luEHkY+sKH9FWdGKAh5Gvo+EIyxq1TN1iAM2HmKPIu9AhCWHmdV7jw j7yMlx2nUDTCIFUL4Gd5GKo87XoT1xFV50hOm2YgOHdd4bioo5FhWitXy7mA6b45IBFU C7SqK9F1GfJRwLS1z4u5R/VweNNQgIvvamBYeCjkLelVJ4bgbQtW50MYXhOCjt1sDLbl kddpABDUxC2wuSdkslTP8pQVrVjbGO0TIv4wot374/OrNQH7iPBtaA4SRDREA9V/zlZn ZAeBDj++vy9KBFp4DAI4Wx1W92jC5s4TJKz5/qIqe4RgUujk90zffQRD1dr7N6xqPDk4 H6zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=BIAYcmrK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2si2020432oot.35.2020.04.02.03.07.37; Thu, 02 Apr 2020 03:07:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=BIAYcmrK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387722AbgDBKGA (ORCPT + 99 others); Thu, 2 Apr 2020 06:06:00 -0400 Received: from ozlabs.org ([203.11.71.1]:52063 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728135AbgDBKGA (ORCPT ); Thu, 2 Apr 2020 06:06:00 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48tJc24ckyz9sR4; Thu, 2 Apr 2020 21:05:54 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1585821957; bh=VWV5VVYaAJNLZ0qhNZ2vXZ3ZVuH1QjojCUmH4J7cvRM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BIAYcmrKq1LF5D5nT2gJkPD5FXCcgc658kciTx3sX+axQbjk3V2h07eqg6P3sQFtw WZH2du4hEAjbq6MucoA118QF1GDycOJONVlClQKdeEOwTgpwMgzHQgHoLHHY/99h8q NZF0h2aW+zXmsTl1aZpEs8j7uHhm8YSAZfyiNiNehPYenQ7tc3BaEQkDi/60Fu+agl yFbkROHRPHEafu2+ycumDNj9Sn85R4SRDp0JrhXlvEzFZRjbsIjGWgCOkWGnS8Dgxv KCEXJZ95U3du4XOtVJMWjWbxkddWIX/CG9xoI/0/E4gWVMxEhV/VNg7slBH7PHXuHY fzkz6rZ7j6Jgw== From: Michael Ellerman To: Oliver O'Halloran 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 Subject: Re: [PATCH v4 00/25] Add support for OpenCAPI Persistent Memory devices In-Reply-To: References: <20200327071202.2159885-1-alastair@d-silva.org> <2d6901d60877$16aa7a90$43ff6fb0$@d-silva.org> <87imiituxm.fsf@mpe.ellerman.id.au> Date: Thu, 02 Apr 2020 21:06:01 +1100 Message-ID: <87bloatd6e.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Oliver O'Halloran" writes: > 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. Compared to certain firmwares that run on certain other platforms it's actually pretty readable code ;) > There's an OPAL call API reference here: > http://open-power.github.io/skiboot/doc/opal-api/index.html Even better. cheers