Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp366991ybb; Wed, 1 Apr 2020 01:22:36 -0700 (PDT) X-Google-Smtp-Source: APiQypJvzod+v1CsUlfGGt4PZQq+g+XUNtKJq8xbAKDSIJ22DO9MPTde1R4XIuDedah1JvXe+Pw1 X-Received: by 2002:aca:c78d:: with SMTP id x135mr1869310oif.51.1585729356803; Wed, 01 Apr 2020 01:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585729356; cv=none; d=google.com; s=arc-20160816; b=qUz3sSGLr5n8HwKGG6RvlJF1IM9Hrxs5D0Mp2Q0PSnDQzg6K29WPLf8dAbFLAanfAw jeo2xnAvx1jVaDYanao+Kdh6TuPf7Oi0kwLaIpXQLuAuf7swRYaBYy4NQUs5BqZiOxuH 4601iJJ02g7SgEX35BvgpsIwhbWqvRxbjbnR2hJ57hDy36v2WZ5UBr5Bye3/s6N6bxGf EMFYrabzok6avvnworBDMg/Br4W3jSJcrvvxdsS7+Uk+Ze8KmEZqM4/Ugk0uxDbD2sRn lqPBJv6y/+oU9RN3icp522ZB11neR6vZLlq0FNGBZavc/gclJCcPaTMxPOavrezCNieu f0bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=JZWrQLu4gY9ujp7C9+CI09Gy95n5Ml3Q62dMGWCMn8g=; b=vs1oOslm8mFnHRsNtT5t5g1lhpwyha/AZzkCRJlnhn2GvOBfRSFw0z0bVdfUkYOzN8 syA0hfclf8yxa9+FhfqyshJYtmnkcjp/SMCowdQR4z2j6HQABPH2fygydTeys4kg85rk CUGVFPWLTz/ZmjT13hH2Wcv5Ms4c6O07KrYtbWEfqvvyEuF+Al2qV6moodn/1pxt2obC 2xd03hM1p1zoxvXzHkLJ/VCt0knI0vTy4/vEp4LwWRzU35pgwOfKcvlmFNw2H7fadJ+G dA6x6G55ENMKFJiJqy2vAzuxa1Vwq1C9IBPAnxva55DbYJqX72Qt9Xp52V0v6D4cEzsz s/Vg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l15si500079otl.297.2020.04.01.01.22.23; Wed, 01 Apr 2020 01:22:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731885AbgDAIUa (ORCPT + 99 others); Wed, 1 Apr 2020 04:20:30 -0400 Received: from mga17.intel.com ([192.55.52.151]:36715 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbgDAIUa (ORCPT ); Wed, 1 Apr 2020 04:20:30 -0400 IronPort-SDR: UIN3sk57ourU3eRBAkihcrtyZhMJ77gKNNrXX+398kTeF/Xtv5Qn1SyjZmxm/RM0yW+kwNDQrV Fc5vrreDRoFA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2020 01:20:30 -0700 IronPort-SDR: gcLKdk5leewbXh2NZqZHf8qkafOI+oTgdm3xH4UEYLpxs9isubzIwwu4awu9+iJuhnz77lD0/8 tXpKeFVPV4tA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,331,1580803200"; d="scan'208";a="242160906" Received: from vikasjox-mobl.amr.corp.intel.com (HELO localhost) ([10.249.39.53]) by fmsmga008.fm.intel.com with ESMTP; 01 Apr 2020 01:20:21 -0700 Date: Wed, 1 Apr 2020 11:20:19 +0300 From: Jarkko Sakkinen To: amirmizi6@gmail.com Cc: Eyal.Cohen@nuvoton.com, oshrialkoby85@gmail.com, alexander.steffen@infineon.com, robh+dt@kernel.org, mark.rutland@arm.com, peterhuewe@gmx.de, jgg@ziepe.ca, arnd@arndb.de, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, oshri.alkoby@nuvoton.com, tmaimon77@gmail.com, gcwilson@us.ibm.com, kgoldman@us.ibm.com, Dan.Morav@nuvoton.com, oren.tanami@nuvoton.com, shmulik.hager@nuvoton.com, amir.mizinski@nuvoton.com, Christophe Richard Subject: Re: [PATCH v4 2/7] tpm: tpm_tis: Add check_data handle to tpm_tis_phy_ops in order to check data integrity Message-ID: <20200401082019.GB17325@linux.intel.com> References: <20200331113207.107080-1-amirmizi6@gmail.com> <20200331113207.107080-3-amirmizi6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200331113207.107080-3-amirmizi6@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 02:32:02PM +0300, amirmizi6@gmail.com wrote: > From: Amir Mizinski > > In order to compute the crc over the data sent in lower layer > (I2C for instance), tpm_tis_check_data() calls an operation (if available) > to check data integrity. If data integrity cannot be verified, a retry > attempt to save the sent/received data is implemented. > > The current steps are done when sending a command: > 1. Host writes to TPM_STS.commandReady. > 2. Host writes command. > 3. Host checks that TPM received data is valid. > 4. If data is currupted go to step 1. > > When receiving data: > 1. Host checks that TPM_STS.dataAvail is set. > 2. Host saves received data. > 3. Host checks that received data is correct. > 4. If data is currupted Host writes to TPM_STS.responseRetry and go to > step 1. > > Co-developed-by: Christophe Richard > Signed-off-by: Christophe Richard > Signed-off-by: Amir Mizinski The email is malformed. So.. How did Christophe participate on writing this patch? I haven't seen him shouting anything about the subject and still his SOB is there. /Jarkko