Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp281715rdf; Tue, 21 Nov 2023 02:34:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6dPbe9I2RV8VPBz7oIcoJnH/sfEmroPqDuAV8310ydtH0FCbZTnuB03pq2CSya9cAId3c X-Received: by 2002:a05:6a20:a105:b0:187:6cc4:5aea with SMTP id q5-20020a056a20a10500b001876cc45aeamr9614150pzk.59.1700562889542; Tue, 21 Nov 2023 02:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700562889; cv=none; d=google.com; s=arc-20160816; b=maSgg5PTZapf8Ud5gf8Q4fWOEptDR4cdLiT1SPjVoDhBvoewfO3HWK3/uMJ73K1VFd hbZkWq51nLfRt8LNVXlSLcArpBQxj5IfofIYpi3VCvepD+2/8UUUum2QzOYKPjb6fkC3 CiXuUc9z441r6v2uEHxn8DroRzEaGPQuA/49z1Iqi3Dzn16ikan4fYKkO0ryz1FKWAIv M7WI7wLlzXgMnnyPRlvZQRdKAcPOroFhndfyKU1k6FILrzAfaPv83qWwRoiN7WAeV43S gKovIOZfh9c6OXDrK9Y3FVitPqymqE1NZkbHuig8WnWAK4nQ4s0iPzBy+kNTTxVDmaLf OAew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:content-transfer-encoding :mime-version:cc:to:reply-to:from:subject:date:message-id :dkim-signature; bh=kQ704+Xc2VNn3IE9QVfkIROaDwNhkBLNkciiMXFqDrU=; fh=Kg04Pil1bOyG2a0AMDeiBg4dhT0LbOdJqriI9KkD1T8=; b=hsYEX/zaefnRmoK6tN6qUpYglGqi5vKk7JNoNSw9gD5+H4+EYkC6UZ5neYWILapRN1 DydE9OOIPSiInnxM8AL6FEy6qToWUz1D3Sf24ykLeIklvlsoaHO+RNY5gZG9gol97RJI q8eNSqyUO9pxeX8BsrpD4VMYrFue2irDZ8DyO4JxAhQC03mLmgCpkjmh6OMBiHLWgFI0 EnIuuthMl1BNHy/RfG8Tnfo1lJuXHPm8FJIQAUGb8w2arhSsIA0usU3nIAeuHRnpnppU pi5qxYnr/UJMVS2tG+MwYtq/iNljUuqPiO/HmL1ZLw+lOke6UwiFU5iOpdKhMdzo106Z IvHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bigler.io header.s=20200409 header.b="dJ/kdXHu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h15-20020a056a00170f00b0068e2d888713si10302647pfc.167.2023.11.21.02.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:34:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bigler.io header.s=20200409 header.b="dJ/kdXHu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id E75B48035C66; Tue, 21 Nov 2023 02:34:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232841AbjKUKej (ORCPT + 99 others); Tue, 21 Nov 2023 05:34:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjKUKei (ORCPT ); Tue, 21 Nov 2023 05:34:38 -0500 Received: from smtp-bc0a.mail.infomaniak.ch (smtp-bc0a.mail.infomaniak.ch [IPv6:2001:1600:4:17::bc0a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE73FBA for ; Tue, 21 Nov 2023 02:34:31 -0800 (PST) Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4SZLN334lqzMq5Gb; Tue, 21 Nov 2023 10:34:27 +0000 (UTC) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4SZLN24kbjzsB; Tue, 21 Nov 2023 11:34:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bigler.io; s=20200409; t=1700562867; bh=Ue3HqBrGZjKNKmEwdQ/OlJMkl8TdBMvCZuihXhj55ws=; h=Date:Subject:From:Reply-To:To:Cc:References:In-Reply-To:From; b=dJ/kdXHut6B1ZSq3eh76siQ2FeZ9Ef2vfjpQA45qywQQD46YWhcP1RPdZgW6zpZDz yC0iA2RMP7S06BAUhGdAnrAHMdDtZSXm9ZOOlDfjd0AlW4UhGaIZ0e1lL37cDTF7vG uFl9XZ//HW4hZXfddP211QeUi4e2MBeD3lVQU06U= Message-ID: <44e61a3385f84aa417a208ca348e4b8c@mail.infomaniak.com> Date: Tue, 21 Nov 2023 11:34:26 +0100 Subject: Re: spi: imx: Increase imx51 ecspi burst length fails on imx6dl and imx8mm From: linux@bigler.io Reply-To: linux@bigler.io To: Francesco Dolcini Cc: Thorsten Leemhuis , Stefan Moring , Linux regressions mailing list , Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-WS-User-Origin: eyJpdiI6Imt1UmVCa1pJOTE2Z2JOQmZHNndxN1E9PSIsInZhbHVlIjoiQWUzbThTRjNuL2xVaFBzcGVLdmVSUT09IiwibWFjIjoiNjJhZmNiYjZlNTYyMDUyOGM2ZTZmZjYwMjQ4MDg2Y2YyYzZhNGVhYzVmMDFhYzI3MWE4NjliODg3ZjE4ZWE0NCIsInRhZyI6IiJ9 X-WS-User-Mbox: eyJpdiI6IkNjOWhSU3dzandJOWYzdmFna1BrVnc9PSIsInZhbHVlIjoiTy9WQVJsUFRqMGlyaEx2ZEJUZVhSUT09IiwibWFjIjoiNjFhNjQwOWY1NTQyMzc0ZTAwYzE1NjNjMDQ0YjhlODhiNWNmODQ0MzFjYzc5NWUwODQ2ZTdlZTU0Yzk5NzJhMiIsInRhZyI6IiJ9 X-WS-Location: eJxzKUpMKykGAAfpAmU- X-Mailer: Infomaniak Workspace (1.3.597) References: <2fcdd99eee9ee4f5d34fa1abab2f51bb@mail.infomaniak.com> <86566391db9c5044f1a082bc8ec697a2@mail.infomaniak.com> <6322fd4c1967a518310140c35ab34f65@mail.infomaniak.com> <90abbd7a-e3e3-42c9-9be9-28e475f0fc9a@leemhuis.info> In-Reply-To: X-Infomaniak-Routing: alpha 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 02:34:47 -0800 (PST) Hi At least in my test-case the commit is NOT introducing this regression, be= cause the bits_per_word is 8, so the result is the same spi: imx: Take in account bits per word instead of assuming 8-bits 5f66db08cbd3ca471c66bacb0282902c79db9274 I do not have the latest mx-sdma firmware can you tell me where I get it. = On=20 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git= /tree/imx/sdma the latest I found was 4.5 I tried to debug the code but it's hard vor me to understand where the prob= lem could be. I saw then I disable the dma with set imx51_ecspi_devtype_data { .has_dmamode =3D false, } the SPI is working fine. Should I do some more tests, do some loggings..=20 Please let me know Regards=20 Stefan Bigler Am 2023-11-21T10:16:57.000+01:00 hat Francesco Dolcini geschrieben: > On Tue, Nov 21, 2023 at 10:06:51AM +0100, Thorsten Leemhuis wrote: >=20 > > On 20.11.23 18:48, Francesco Dolcini wrote: > >=20 > > > On Mon, Nov 20, 2023 at 04:30:15PM +0100, Stefan Moring wrote: > > >=20 > > > > Can you verify the values used for the transfer, spi_imx->coun= t and spi_imx-> > > > > bits_per_word inside the mx51_ecpsi_prepare_transfer() method? Th= ose are the > > > > only two things that changed in the commits. Maybe compare them t= o the working > > > > version? > > > =20 > > > I would suggest to bisect the issue to the actual commit that > > > introduced the regression, I do not think this was done yet. > > =20 > > I think it was. To quote > Whoops, you are right. >=20 >=20 > > spi: Increase imx51 ecspi burst length based on transfer length > > 15a6af94a2779d5dfb42ee4bfac858ea8e964a3f > > =20 > > spi: imx: Take in account bits per word instead of assuming 8-bits > > 5f66db08cbd3ca471c66bacb0282902c79db9274 > =20 > Do we know which one of those two commits introduces this regression? >=20 Francesco