Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2077584rdb; Mon, 20 Nov 2023 00:51:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHReEyPOdIdYfpOOzp5tQ3I5ewyXUQqNe8EVtPGk4NPYpt4cfC888oNdN/VLZ6I9w24JmX7 X-Received: by 2002:a05:6a21:3a93:b0:148:f952:552b with SMTP id zv19-20020a056a213a9300b00148f952552bmr8680290pzb.51.1700470304652; Mon, 20 Nov 2023 00:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700470304; cv=none; d=google.com; s=arc-20160816; b=bhiZkpAXSLICkkfdkVukPctwxuNB4D2gst6EBCMDogoaX01qR7YDj5nK5lS5WNt8xG m2dmMO5sx5eynLupBHMP/L+TtXpaAjyH9P0YIyheMjQbxsfc5l1aRfnQnuTra9iUD4GU i2NZY1EbGjzPdoGSZ9aGRqkBEUPzfoT/TvxJRcjzFlY75od4FYyAfDy3phcdUiEIzoCi cTHzoIFBHoXeNHMbSM9I/YF1G62CnNjSEOJlEANcfUtj7R5byZ5eIU5nz0/Z5fnYeBPk UJyIMys9XrlWV9D8FshqdoCjUK2/lcoKIuDYmxRMrVyeOjwtg8IEQGlyQljJguVca/vw aUOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5Tr020HRVH5qeEqnUm+hxrW++cvGlcgrlKYhDAoNtf8=; fh=Mfxro98MyIbII5cPln5bA4kvPn0tr24LLZN6/bhAaqM=; b=xZY/K7JtjWAwvrfOzbGvgBDvPcNvNLA3Wi/s5PpWop0oXof4ER+16q9DcaV/lBOBhM HIJVZQkFqeVmi8fnKSbcrtBsYuA6ujj4pa1YADbs8Oed2DZq2UXrhG83PNKRfyjZqBWh Dv9A/NcZcKCn1+dAyLKfvROu3qDJ9YmepiyxrxGuWFm10un4uNOyAExsczfjrnQGngdg V/PeiZ3V1sKpiHqAO5cOp7OvxDfGnZNaUpKD2ZC5a7mVXqvohQ53SDYZ+a+bJrFewmEZ quaUwLVmDTaG1NOE6ZpC8ypH1Q86ZBZZLuUckdKb78Su7riLKT3SgGW6WkLhJ+Eyr7u7 7H2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id g14-20020a056a0023ce00b006b0cfed2c77si7720407pfc.135.2023.11.20.00.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 00:51:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 9CF6180AE50E; Mon, 20 Nov 2023 00:48:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232686AbjKTIsi (ORCPT + 99 others); Mon, 20 Nov 2023 03:48:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232732AbjKTIs0 (ORCPT ); Mon, 20 Nov 2023 03:48:26 -0500 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C12A2 for ; Mon, 20 Nov 2023 00:47:57 -0800 (PST) Received: from francesco-nb.int.toradex.com (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id CCF61207B8; Mon, 20 Nov 2023 09:47:52 +0100 (CET) Date: Mon, 20 Nov 2023 09:47:48 +0100 From: Francesco Dolcini To: linux@bigler.io Cc: Stefan Moring , Linux regressions mailing list , Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: spi: imx: Increase imx51 ecspi burst length fails on imx6dl and imx8mm Message-ID: References: <8a415902c751cdbb4b20ce76569216ed@mail.infomaniak.com> <2fcdd99eee9ee4f5d34fa1abab2f51bb@mail.infomaniak.com> <86566391db9c5044f1a082bc8ec697a2@mail.infomaniak.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86566391db9c5044f1a082bc8ec697a2@mail.infomaniak.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 00:48:49 -0800 (PST) On Mon, Nov 20, 2023 at 09:27:10AM +0100, linux@bigler.io wrote: > Load the spi-dma (imx-sdma 302c0000.dma-controller: loaded firmware > 4.5), run the spi_imx and the spidev as kenelmodule. > > I run the code on a Toradex Verdin Development Board and use the > imx8mm-verdin-nonwifi-dev.dts > > To add the spidev I patched imx8mm-verdin.dtsi > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi > index 6f0811587142..262500940adc 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi > @@ -209,6 +209,15 @@ &ecspi2 { > cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_ecspi2>; > + > + spidev@0{ > + compatible = "micron,spi-authenta"; > + reg = <0>; > + #address-cells = <1>; > + #size-cells = <0>; > + spi-max-frequency = <20000000>; > + status = "okay"; > + }; > }; > > as a spidev test program I used > https://raw.githubusercontent.com/raspberrypi/linux/rpi-3.10.y/Documentation/spi/spidev_test.c Would you mind doing the following tests looping the SPI interface MISO/MOSI? ``` cd /tmp dd if=/dev/urandom of=4k-spi-test-data.bin bs=1 count=4k spidev_test -D "$device" -s 4000000 -i 4k-spi-test-data.bin -o 4k-spi-test-result.bin dd if=/dev/urandom of=16bytes-spi-test-data.bin bs=1 count=16 spidev_test -D "$device" -s 16000 -i 16bytes-spi-test-data.bin -o 16bytes-spi-test-result.bin ``` with "$device" being your actual spidev device? Those tests are passing on 6.7.0-rc2 for me. Francesco