Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5990616rwd; Wed, 24 May 2023 09:20:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4s8T6yRjOn9Tk/qEe1BkHf2uwWVXvkwdm3Osgju+v1NFi1bjQO/DziHM6+FzOJkpjgPbdD X-Received: by 2002:a17:903:1112:b0:1a9:bc13:7e20 with SMTP id n18-20020a170903111200b001a9bc137e20mr21105383plh.44.1684945207426; Wed, 24 May 2023 09:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684945207; cv=none; d=google.com; s=arc-20160816; b=A0wwt5Bb/zE1J+pJy0mg4TVmjPqtntQY9amCmr5BE9Ui5AZC+SOagtXzGwE2VsGTxj 27V2i7NwDmAsRR4SpT7AxVqdUqQnVJcK+WN6WsJ5i1sl4SWAsabO/O7MiU5CaHGh9VGr DYbexO/l4vhBX9Bkmwluw9pVovSXSvLVPPcZf6CGUYKjQCg4fnfWgaXvTTUql0kqyf5f 1xSS1YQ7cKnQ8J9llgKi+i50E/+QvSDR8smI4adpChfNhjDnEXver0k7DBMcak92Bold vJMib0HqkTHhnFIlXcbz/2ZoFjIYXKZEd/NDxTcx5gwyGlmIOMMaXlJ0yawMSePp0wvF oKwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Ef+8gDMEGEy6+nkJmKJ1sPJxegkve0GGQfyCdTFWf0A=; b=Yrm1Nvjxg+7u++lKUy3BzoNSVnunSZp0tWneA4/6BwFFEGLrz2zs8zTCoiYPxBF0VF yQ3zrFLUmNDPwVIl9HRmxIYj6CwY3cEJb6uv9UWXkP3qhP2YSsEAGw4kxO7/X22sMdIj 8CyFlPi8GBpRLdG1YXXFv1U4K0bMShBxjW+4u8R68NIEFhhMGcP0uJNneSbtuwBcNcOA TLNYaeR/j8HQ7BBaKS9NEEjCa3TtuI/s8uuX20wd6xgA2PlOI5S1P72Pqb2oZDt8IJHC NP6CelEYh36SC1pzxohbfIc7/ZliaFWa4Xbs+XCj2qhpSAkFpVtxlH7YIQHABeCmqz9F Iumw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PIZ8P4Od; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a170902e88700b0019f33cb669asi9207323plg.615.2023.05.24.09.19.51; Wed, 24 May 2023 09:20:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PIZ8P4Od; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235438AbjEXQEc (ORCPT + 99 others); Wed, 24 May 2023 12:04:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjEXQER (ORCPT ); Wed, 24 May 2023 12:04:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FFF510E9; Wed, 24 May 2023 09:03:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E5D0E63EF0; Wed, 24 May 2023 16:03:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED0E2C4339B; Wed, 24 May 2023 16:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684944226; bh=Ef+8gDMEGEy6+nkJmKJ1sPJxegkve0GGQfyCdTFWf0A=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=PIZ8P4OdbWN9k9z/bsioFchL87vtM8hE6ho3ChU0MWvLfzA/KHf/5h59mR4H2U4aC jDwJ44mkUX79YlZi3zzorhVVnEpdUEb4gBFi+hdDVOzCGPortAXWYYAS9CWdNg3taq Itcpp8XZlmp7HePmQbK+gSXIuWiBPO29k9fiSbXfdayk0zq62EryxRvj08NH4AC5n4 D+FtdsINmC+UInlBdwC0x/MQS/70E1ssi3Ry7XJoExzcofKIrZ+AJ6uSNx95mUoNZ1 /LlCAp7YDTpECVobZN/CVMbqKUCpl+hts7a3uBg9OlOqTaD3gfqZpRrzLAwQQj4L3u SkBgAVzRWbpmQ== Message-ID: Subject: Re: [PATCH 1/2] tpm: tis_i2c: Limit read bursts to I2C_SMBUS_BLOCK_MAX (32) bytes From: Jarkko Sakkinen To: "A. Sverdlin" , linux-integrity@vger.kernel.org Cc: Peter Huewe , Jason Gunthorpe , linux-kernel@vger.kernel.org, Alexander Steffen , Michael Haener Date: Wed, 24 May 2023 19:03:43 +0300 In-Reply-To: <20230524154040.1204030-1-alexander.sverdlin@siemens.com> References: <20230524154040.1204030-1-alexander.sverdlin@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2023-05-24 at 17:40 +0200, A. Sverdlin wrote: > From: Alexander Sverdlin >=20 > Underlying I2C bus drivers not always support longer transfers and > imx-lpi2c for instance doesn't. SLB 9673 offers 427-bytes packets. >=20 > Visible symptoms are: >=20 > tpm tpm0: Error left over data > tpm tpm0: tpm_transmit: tpm_recv: error -5 > tpm_tis_i2c: probe of 1-002e failed with error -5 >=20 > Fixes: bbc23a07b072 ("tpm: Add tpm_tis_i2c backend for tpm_tis_core") > Tested-by: Michael Haener > Signed-off-by: Alexander Sverdlin Reviewed-by: Jarkko Sakkinen BR, Jarkko