Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5132267yba; Wed, 10 Apr 2019 12:04:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqweZTpZChzIeFkbgXpubBV5FJGauiRAUaOtZJB5TpYvSfr9v7phKEuiQSbXZwnJiT3h2WTq X-Received: by 2002:a17:902:266:: with SMTP id 93mr7569228plc.201.1554923066516; Wed, 10 Apr 2019 12:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554923066; cv=none; d=google.com; s=arc-20160816; b=MTUb2HUvdd+Aa94RYqVCL0nnUf4Y58htDeKIifyGNQ0jInX+cCZjnr/NHbLI58mYJj xqULQNw7UbW/vbbtCLgMN6y1tXlXBa7scjusMhVBNtwYiI3spKI4nVHUhfOs+kO7K6cO a+MKc5HpJqb/KOGA28qdsTiH4CE1aUL0zOFiX45KPGYr5zF8InKWeclggYqylyjO7ukb VTAu6YWkClF0AUfj3LVT81JEzB9l1v6481MCW2VNFOLowbQduerndz/J0oOjOEmStlIX 8XncL9BiZ1rynx+Yc03hozRBcGYyvHU7o0wu9iuiCchYEZnQ/uQ3IyTuhn6O0z5jYxjw lXyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3S3EtzvI72IztZ1OecbcYhWottrkySxyyi6Vj03NVHg=; b=rES6cAxJxLrG85Pu7aqjzKlsDjrKzxhmS7IRzDULeVHTcDPdaIleVwZ4izl2FqJ2ar WY8qbKkkX7n+VDSz+uNGK7MnriXlHqVouowCW7Z/CZelFkYWD6OdIu1JwkU3VAyNz2yF lGbfmwQlL4Z25moE+M2T7H8afk2GFBOof1nKusLZs5kCk6Z6ziNIxePrHsK2ZTxX+eu0 9gKjpbDHQznof6yblWWg66JWPQVp3enBpI2IvihyzMw99b1vTkua1k0K7WiHjEz0/PBy CwNnm7o/zl5cG/gnUUCi0HMXyXQfvRivu1LOgtKzK2d85U4QgZIXTO8brtcbhgLTktCa fZ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=jNo5WGDE; 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 l65si33060039plb.338.2019.04.10.12.04.09; Wed, 10 Apr 2019 12:04:26 -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=@ziepe.ca header.s=google header.b=jNo5WGDE; 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 S1728553AbfDJRDT (ORCPT + 99 others); Wed, 10 Apr 2019 13:03:19 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37924 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728442AbfDJRDS (ORCPT ); Wed, 10 Apr 2019 13:03:18 -0400 Received: by mail-qt1-f194.google.com with SMTP id d13so3736168qth.5 for ; Wed, 10 Apr 2019 10:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3S3EtzvI72IztZ1OecbcYhWottrkySxyyi6Vj03NVHg=; b=jNo5WGDEjci/sBFz88NZUSV1BNp9SwSmK+dVLGLE5nLOXa3ytE+LQ+0Wb1uFLlGfe5 ShS/+GnDeFNStQpmP4wN4yO0WIMh0jMVyfO+BAW5GVyDAHEhQ6mfm4d7hgBpz9HT6EmZ zty6S6z0xO2MgN4SEyCLd9rYAp95JZqxgVQ0qS8vxRIrCpn/A4htKD8qyskGkIPRN3Ot wPouNwN7Xbhtb1CEg9ksnIvG00uym8jlIaR6ZqdEDrv3QBbUF3of7lfWc77DWsmaImoD 5glwh0kMkg3RFgSVyhbjyuFE9sXlqBeX64WaUoRDeuDLPZRSp5k/2nokH42ynT/5tLEa 81lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3S3EtzvI72IztZ1OecbcYhWottrkySxyyi6Vj03NVHg=; b=SZqXRchfVg+hRsY0UQi+97ZlK+FfJ9FbxgtDsrxGSdOjM4+PQIrTiYxP/X/5k0PsBz Qf6N9CwqRYQU6l2hkp9/SggZ8bYmPVzaPqISmv/2hjM83gTZl5Mm6d/Ku7yKh7FgNY3v XfZo5FAtjajf3zvXzAKMBgTZ4SqEqFR1cJwEfsX4K9MnZ9BZHKZfdbKFL2ilvYF7yjXQ 6aCKKquJNdLQTGryiGMMeVtCzmV+lZMcRqTZfVMmfB6LaFRC71TKNTbVtskcPu38SXS8 v3dNo/ovYR/Dz6e98MBYgZiInDs201lqn+Yu/6OfWAh1bXqHqGXUD6e5UEYKmI7Jv5Gk IKdA== X-Gm-Message-State: APjAAAXA2whbBpCncXG8DfluaCgOKrxOxkEWdzUMtB69lmV2o29BXxZh aesIX8AHV6FGxrsC185Wof2bmg== X-Received: by 2002:ac8:1a6d:: with SMTP id q42mr35959956qtk.129.1554915797573; Wed, 10 Apr 2019 10:03:17 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-49-251.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.49.251]) by smtp.gmail.com with ESMTPSA id x14sm23410371qtc.44.2019.04.10.10.03.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 10:03:16 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hEGd2-00042L-5H; Wed, 10 Apr 2019 14:03:16 -0300 Date: Wed, 10 Apr 2019 14:03:16 -0300 From: Jason Gunthorpe To: Rob Herring Cc: Sasha Levin , Peter Huewe , Jarkko Sakkinen , Mark Rutland , Jonathan Corbet , Arnd Bergmann , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Linux Doc Mailing List , linux-integrity@vger.kernel.org, linux-kernel@microsoft.com, thiruan@microsoft.com, bryankel@microsoft.com Subject: Re: [PATCH v2 1/3] ftpm: dt-binding: add dts documentation for fTPM driver Message-ID: <20190410170316.GK8997@ziepe.ca> References: <20190409184958.7476-1-sashal@kernel.org> <20190409184958.7476-2-sashal@kernel.org> <20190410161949.GC11568@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 12:01:37PM -0500, Rob Herring wrote: > On Wed, Apr 10, 2019 at 11:19 AM Sasha Levin wrote: > > > > On Tue, Apr 09, 2019 at 04:18:29PM -0500, Rob Herring wrote: > > >On Tue, Apr 9, 2019 at 1:50 PM Sasha Levin wrote: > > >> > > >> The parameters are similar to the ones used by IBM's vTPM and the > > >> various I2C tpm drivers. > > > > > >Bindings describe h/w (or firmware interfaces in this case), not drivers. > > > > > >> > > >> Signed-off-by: Sasha Levin > > >> .../bindings/security/tpm/tpm_ftpm_tee.txt | 13 +++++++++++++ > > >> .../devicetree/bindings/vendor-prefixes.txt | 1 + > > >> 2 files changed, 14 insertions(+) > > >> create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm_ftpm_tee.txt > > >> > > >> diff --git a/Documentation/devicetree/bindings/security/tpm/tpm_ftpm_tee.txt b/Documentation/devicetree/bindings/security/tpm/tpm_ftpm_tee.txt > > >> new file mode 100644 > > >> index 000000000000..20fca67a56c4 > > >> +++ b/Documentation/devicetree/bindings/security/tpm/tpm_ftpm_tee.txt > > >> @@ -0,0 +1,13 @@ > > >> +Required properties: > > >> +- compatible: should be "microsoft,ftpm" > > >> +- linux,sml-base: 64-bit base address of the reserved memory allocated > > >> + for the firmware event log > > >> +- linux,sml-size: size of the memory allocated for the firmware event log > > > > > >Firmware is defining linux specific properties? What if I want to run > > >BSD? We should use 'reg' here instead. > > > > This is based on already existing code that defines these names, see > > tpm_read_log_of() in drivers/char/tpm/eventlog/of.c . > > BTW, that probably needs updating to handle endianness correctly. IIRC this legacy IBM code has broken endianness in the firmware.. All that stuff in read_log_of, and the related DT stuff, is historical IBM special case-ness and should not be copied into new things. Jason