Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1303206ybb; Wed, 1 Apr 2020 20:52:13 -0700 (PDT) X-Google-Smtp-Source: APiQypK4Yc71EEE+3IoK2gs9R36tjXQdLi77GUI2K/xrx4nDhHXjrahjeeIu0BbR7DMcn188MX+H X-Received: by 2002:aca:db83:: with SMTP id s125mr200899oig.52.1585799533126; Wed, 01 Apr 2020 20:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585799533; cv=none; d=google.com; s=arc-20160816; b=Q4Am0PuObrie2f6EuRszY+ibNGHOUo89T/Ui51kqB5rigjKj693JSR7YffmBBnzux+ jx736cYDbnAEsExkxhFx0/5VKehKsOBEniZMsEWDLLuZCSYHHCoBM0Ig2vcjuw3wJZG8 r3LabEZ39frVLtYoOMAwx0s3O9ReLH9bpRTZLiHe9IzVCqV33mus6dJhafsPhXNCUYCj KwCzyFjb2i9vf7SmxmRDi7P7HAoPQEAmyQxWVJPWVLwfYNAzhGGvcwaX6fPLAfsH1Bpv xFtoUDWU9F8uFJwkbUhEPshc3HVlFJSXDaww3+qiQ/MeU0gLGmT5kt9Pzd5PMVAKiXum tqrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=un3fCtdFL30YthKT96CUaub/mKOgXUtAMj2aFT/0PG4=; b=Zvv9MfU2TxplBbmNiaQ0r8S46lQtP3OycBewBESifg+yhM7CFX3zbvDbQQOck3QoRg pMB4u+W9cU//SE8V2K0zAuUXIGZW1BNCmcFvaBPcUy5MJ24Y+p5AqFhuFNPVQKXKhN0A UTDNHtncIgFsWR3Aa7oe8mBxKLRJlLBtB7y09TVaxNTEHRNy7wDsdLWGE5XQVCxCRl09 uAz2zEB2Xs7To9846CjPjrfnq69bzpfcfnJiUbza/kcuEzk07k1sQctvpgRa3s2NSZ2j C9/M94+BUf2oAL/JX1dwT1jWR4VXH+6p++jMHnK1kJPqLTAxSp3tjyDGh+6ikf7GGcwB m/Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j1BLyfPi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si1934879oif.30.2020.04.01.20.52.01; Wed, 01 Apr 2020 20:52:13 -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=@gmail.com header.s=20161025 header.b=j1BLyfPi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733267AbgDBDuQ (ORCPT + 99 others); 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-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