Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2125240rdh; Sat, 25 Nov 2023 14:55:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgym4TqUgZtQugVH03zkTn89QRLE+tGGC8lDV0f9kuF2GlX54S/qcwjjYC+X5m1xYJlzfM X-Received: by 2002:a05:6808:200b:b0:3b8:4762:1e7b with SMTP id q11-20020a056808200b00b003b847621e7bmr10022087oiw.24.1700952924425; Sat, 25 Nov 2023 14:55:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700952924; cv=none; d=google.com; s=arc-20160816; b=mnLMvfjR66F8nvJtHZTrLWbCpxbuUB7OV02WJ22+6dL8fnhiJoLgAF18PRtmwXQ7ON 3G3/zgW7kBYsmx7C2s5EQQIMvS9d2CEjSF+VMjeHdwA35ZLYPjUYCT26FWq21arhQefU 0ev9Im7YyFHGQTGWOE20vjPX980QgCghnbBYytaorVppVJA2oazcTE6YPnPykmKGb7bL SkyhjbPXRwuQgnOKAZgfW2l/54KIa9z6P1JWl58uYdve0jmkckJlSmboalYrxJGl1bdh s1H3FiP7K+tNuh5iTWUXgq40TQA/CI7oLAbLB5sN0AZBNZym+Ksoe5HMtNklFPKNwaQ0 ge6Q== 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:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=FZNJP3nxNUKEIuONIbATOwCDJtkvy7ja6YZOXoIHlqI=; fh=c2ChlFfcw/R5EH4TE28dy5CteZM95+fmG1ZWiMvjx+g=; b=E30lr5Y+cOAEVR1J23Uq/aHak5g7QeP0E5KNkhheOLIHwOq3K2LiWmw300toHYIkFM /jbpoeAeaRPuDROEHRTHDdxqX+QfkIxEf4y2gJ5H9KBKzCLTlQXDFa26s55Foge/W8Vm eLFWVo9CxmxGATgeu1e9Tnpj1kSjkl4pGD34isK1+MRyAEvYm0iwtHo3WIOHZP/oPMqZ E9HCRj5FKOmYPsP97mSZbR/tzLgzcvB7wegU6gSOzfL4Df91yzyXg2xO6CuJV7SzghFx MQtFQvTI8dMniY8uaw1mD/t0OLExlm45P3KlozGO8bbuyto+wdIKri89UE9JKU+aDfxV 0yrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bigler.one header.s=key2 header.b=hKOLvl5w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s13-20020a63e80d000000b00589fcc39ef1si6724021pgh.365.2023.11.25.14.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 14:55:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bigler.one header.s=key2 header.b=hKOLvl5w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 028BA8074413; Sat, 25 Nov 2023 14:55:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbjKYWuh (ORCPT + 99 others); Sat, 25 Nov 2023 17:50:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjKYWug (ORCPT ); Sat, 25 Nov 2023 17:50:36 -0500 X-Greylist: delayed 360 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 25 Nov 2023 14:50:40 PST Received: from relay.yourmailgateway.de (relay.yourmailgateway.de [188.68.63.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 368E0FE; Sat, 25 Nov 2023 14:50:40 -0800 (PST) Received: from mors-relay-2501.netcup.net (localhost [127.0.0.1]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4Sd6Nk3mMTz5yvD; Sat, 25 Nov 2023 23:44:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bigler.one; s=key2; t=1700952278; bh=FZNJP3nxNUKEIuONIbATOwCDJtkvy7ja6YZOXoIHlqI=; h=Subject:From:To:Cc:Date:In-Reply-To:From; b=hKOLvl5w8rs3sYDDko7hym+l9R1XT11TFAf1Vl+hbgrEJkcFQoTVRSHAPDXJ3QOQf Hedbm47b+0oESJEnawSEzTA3XCoGlsO/nJ3z0elqlTK+KEAvZOXGai3XXhQIQaK0aP SCdQYE2csjVATGJgRnSDhRjCt22jTjgJTp30vN4boNRMxkhXXlHipYVpmPocun58Sd wBra2CxGVpxz2hTVFxzGJIu1S7KzXYPxGA6XlcLcfHxGhT+CFiixp4+pU46UlJ+M8/ f/o+XYcIPzpSGG9Pib6Etq20elfJ4iW/aTFPTZmu6m5Zgh3wOdWzbDZp3EKr++RTXG T+Cy2DR2UE5Dw== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4Sd6Nk32dxz4w70; Sat, 25 Nov 2023 23:44:38 +0100 (CET) Received: from mx2fc6.netcup.net (unknown [10.243.12.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4Sd6Nj585yz8scr; Sat, 25 Nov 2023 23:44:37 +0100 (CET) Received: from [192.168.1.24] (xdsl-188-155-37-14.adslplus.ch [188.155.37.14]) by mx2fc6.netcup.net (Postfix) with ESMTPSA id C3FDA45338; Sat, 25 Nov 2023 23:44:32 +0100 (CET) Authentication-Results: mx2fc6; spf=pass (sender IP is 188.155.37.14) smtp.mailfrom=benjamin@bigler.one smtp.helo=[192.168.1.24] Received-SPF: pass (mx2fc6: connection is authenticated) Message-ID: Subject: Re: spi: imx: Increase imx51 ecspi burst length fails on imx6dl and imx8mm From: Benjamin Bigler To: francesco@dolcini.it Cc: broonie@kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux@bigler.io, regressions@lists.linux.dev, stefan.moring@technolution.nl Date: Sat, 25 Nov 2023 23:44:32 +0100 In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.0 MIME-Version: 1.0 X-PPP-Message-ID: <170095227324.806.8324255313749551391@mx2fc6.netcup.net> X-Rspamd-Queue-Id: C3FDA45338 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: 2ksQ9lJvOoisjgPJEMFMloG8LvydxyFtO4QBLzOvLWrCGO0= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 25 Nov 2023 14:55:22 -0800 (PST) Hello, I'm uncertain whether this is the appropriate place to respond, but I am encountering a similar issue on a phyboard-polis-rdk (imx8mm) with Linux 6.7-rc2. My system uses the imx-sdma firmware version 4.6. The problem is with the TPM, which fails to function correctly, displaying the error message: "tpm tpm0: TPM in field failure mode, requires firmware upgrade." The issue is identical to the one reported by Stefan. It can be resolved by reverting commits 15a6af94a2779d5dfb42ee4bfac858ea8e964a3f and 5f66db08cbd3ca471c66bacb0282902c79db9274, after which the TPM works again. Additionally, I've conducted the tests which Francesco mentioned: > ``` > cd /tmp >=20 > dd if=3D/dev/urandom of=3D4k-spi-test-data.bin bs=3D1 count=3D4k > spidev_test -D "$device" -s 4000000 -i 4k-spi-test-data.bin -o 4k- spi-test-result.bin >=20 > dd if=3D/dev/urandom of=3D16bytes-spi-test-data.bin bs=3D1 count=3D16 > spidev_test -D "$device" -s 16000 -i 16bytes-spi-test-data.bin -o 16bytes-spi-test-result.bin > ``` The readback data is correct but on MOSI/MISO there are 16384 bytes. Please let me know if I can do some more tests. Best regards, Benjamin Bigler