Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp983702ybb; Wed, 1 Apr 2020 13:20:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu+f9Ya8N9k2UfUnSXmLjFsDawYKCY0ORuVsLyQ2pgmtjDFqToGuD9znWsBv+2F9mUJGZPu X-Received: by 2002:a9d:76c7:: with SMTP id p7mr7109904otl.145.1585772433537; Wed, 01 Apr 2020 13:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585772433; cv=none; d=google.com; s=arc-20160816; b=R1j4acc402xS1TCM9v7+QNn8mD7pIGwc6DNv+OsIeaDeFHJpIInmCa6hvQ7v1jMIxL OYgNk6uTik+ZK5+U/mEytKZQs/U6x/lJUdRuBzJ31vhRyr2xTGBzlw7mrtLK3znkJ6Te 878NA5mrGXhQ4fOyigjX7vp7LfAg/A/Bnq7NkS7cT6rrtzpwfqiqGM0h8rJ8yGlvxUIR e98nwD8huValqiaY01F3YaCjEm943JWWT5bB+28DBccGJOzKVljJJHvPWAUqYT5mKtCa nfVJPSRbPwswozfzQi0J+tA8MpQqAfuzRaFmtgNUKwnPNlU9NXoR9baS8YnvijMQaAj1 2/oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=5QlwJKLZCLk0nG0qWaS9k+T/qOC3AEsVlVtoxtMgP4U=; b=aYr4V6DDwqaSdv4hYuN/vvS5uqz8meMnB3wlAtKH3MdSRuyXxEeZltnL9WsX9JiBcX u2enTEWCyUdUwlM/MEsVTxw0LjBsl0ghqs/9FJT5lrF7A3qfI4CPBhzVEYxLOmyVYSk1 9EuuMN9FZhyjD2Qb5xl/c2qbOB/GpKAhLFrLI+fPouZLZOKqQg2NHJ+WLpMY8gLrBM6e KO/+x6o7Wmk9XtuHep7HoOqOJGmtqsp1KgjTaN2C1fQUEkn+GYOusy/faZBNRy5hGr8u Wx3ERlGquYujCXpXtYhyVeEToMBxtMhqCjJ21KyYjQLTkKChKxfhfQ+SddUSUPQBtVAa s0lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=lrGWypf3; 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=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38si1198448otm.189.2020.04.01.13.20.20; Wed, 01 Apr 2020 13:20:33 -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=@st.com header.s=STMicroelectronics header.b=lrGWypf3; 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=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732872AbgDAUTq (ORCPT + 99 others); Wed, 1 Apr 2020 16:19:46 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:11694 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727178AbgDAUTq (ORCPT ); Wed, 1 Apr 2020 16:19:46 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 031KC3Rm001505; Wed, 1 Apr 2020 22:18:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=5QlwJKLZCLk0nG0qWaS9k+T/qOC3AEsVlVtoxtMgP4U=; b=lrGWypf31O2KG3VrMaRQ5OnJUUP98evJkXxvPmgOvTq2dxnWQxL3tQhOqkpvHoTIYJd1 t6ItmGFZKHI6HMM8vzTSxsONzHDx+E3QUqIpup4qDOIUFuKOZRjzB21s2ESbFZmjmTyI cDkKH2/XLJ+HKNE2mKy+VSDsAkSHsz2Brufl3UUIc1E0jEAwj9B3xsLfQnxaey28WAt3 5Wdx4beNpC5iYahdQbuSdwzuEp4aNkQ4hCAsFnYZKCEbnBHG79JFKhX3mYLK3cNjC2zo 6wNrUmgRHvQVPpz6rASZd4hw2HOOVGJ5k2jTdDpjxfgR6I4mPfPPMoWZGBeXqC3JSkga tg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 301w81751c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Apr 2020 22:18:22 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3569010002A; Wed, 1 Apr 2020 22:18:15 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E3680206292; Wed, 1 Apr 2020 22:18:14 +0200 (CEST) Received: from SFHDAG3NODE3.st.com (10.75.127.9) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 1 Apr 2020 22:18:14 +0200 Received: from SFHDAG3NODE3.st.com ([fe80::3507:b372:7648:476]) by SFHDAG3NODE3.st.com ([fe80::3507:b372:7648:476%20]) with mapi id 15.00.1347.000; Wed, 1 Apr 2020 22:18:14 +0200 From: Benoit HOUYERE To: Jarkko Sakkinen , "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 Thread-Topic: [PATCH v4 2/7] tpm: tpm_tis: Add check_data handle to tpm_tis_phy_ops in order to check data integrity Thread-Index: AQHWB/5sTOWTIuzRBUKbjmfl723Xlqhks7pQ Date: Wed, 1 Apr 2020 20:18:14 +0000 Message-ID: <173e4e392b9648b7afeb09680d8073b5@SFHDAG3NODE3.st.com> References: <20200331113207.107080-1-amirmizi6@gmail.com> <20200331113207.107080-3-amirmizi6@gmail.com> <20200401082019.GB17325@linux.intel.com> In-Reply-To: <20200401082019.GB17325@linux.intel.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.51] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-01_04:2020-03-31,2020-04-01 signatures=0 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 >>=20 >> In order to compute the crc over the data sent in lower layer (I2C=20 >> for instance), tpm_tis_check_data() calls an operation (if available) =20 >> to check data integrity. If data integrity cannot be verified, a retry = =20 >> attempt to save the sent/received data is implemented. >>=20 >> 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. >>=20 >> 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. >>=20 >> 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 Christophe sent patch to support I2C TCG TPM driver tpm_tis_i2c (https://pa= tchwork.kernel.org/patch/8628681/) in the same time that tpm_tis_spi. This = function was named tpm_tis_i2c_check_data. Best Regards,