Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp286040rdb; Tue, 5 Dec 2023 05:36:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2HmTBva5vs6HqrqHlDRe5DAKptBDnPpBCNH/FdztGVX/FbBjmDLL07uuY0HUcvbTRXV+j X-Received: by 2002:a05:6a20:3941:b0:17a:e981:7fe4 with SMTP id r1-20020a056a20394100b0017ae9817fe4mr1996711pzg.16.1701783408305; Tue, 05 Dec 2023 05:36:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701783408; cv=none; d=google.com; s=arc-20160816; b=wzQqC888ARhGIuuY4H1wJdWL3vqRgT6D3JExuwqmmuvLhzbfAbWiR+IIQS2BpTYNOH 6Xb9o5kpzCnxU3DW6oBGlxtIWbEYt/LxvAma5HYbDOcetJameVfDEeIoJsRu9i5FVH8+ WZw/4nuJxV1aCjcDDKdNvi9FNu9yQQuAEj69vnHzHwUvn2hvZ/bN6S7HZHQfHWi67gXq oWeoYIryPrwrClxEkHLEMWeWogaqpeV9vaAtlDeLrKFp0u37CYg3EQ68j5uFVQTYYBXO FTpG9bvmoYc5LC8TLcffnlE76BbAGjyqFxPoN3KxIV+4Ux6b5ISjBDw+XeXb+F1olXpd iTVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=cySJ7CQWTW5jvz/6/q8WgzKUcMGOEf7zIqCBU2wvJ3k=; fh=WaVZSBzND/jzK9cGYedKWUH7m5ad3lTpAxYN4R8LpwA=; b=GdV+fBuqGCxCp2kbsNj3CIJcWA16iUUWGun52TRpWM1WuwkIjRkAqa0jTUOK3c5+0k o8kOmWVgQZbLKQ/QCZ6S3Chr3NUwcSyvxbPW6iJG4AldhXkod8uI9llbc1ipmbPmBdvQ y41ReukhjBBNatWg40rh2qxzxdEY4s3SSia0AQSSjkL2leDoMI4t4GR6zfsIpihg/Sk+ T0g4F8/tVQCPNUVJO6xoRdXKjdNzeThsl/a+fZHC75ULudju2tyukq3qXR37diw1vmSl j0K0hzfP2pTcfJO40NSs1RdSybhsUhrTyOjEa+elu6uDiat2j3lOsHgi69wurp/sjxYZ b5Rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i23-20020a632217000000b005b8ee1c0c68si5664426pgi.605.2023.12.05.05.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 05:36:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id AE43580BE2EF; Tue, 5 Dec 2023 05:36:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345474AbjLENgb (ORCPT + 99 others); Tue, 5 Dec 2023 08:36:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345471AbjLENga (ORCPT ); Tue, 5 Dec 2023 08:36:30 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C989BA; Tue, 5 Dec 2023 05:36:37 -0800 (PST) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1rAVbG-0006du-4s; Tue, 05 Dec 2023 14:36:34 +0100 Message-ID: <6c97a39b-4ba6-4d79-985e-a69f8e0c76a4@leemhuis.info> Date: Tue, 5 Dec 2023 14:36:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: spi: imx: Increase imx51 ecspi burst length fails on imx6dl and imx8mm Content-Language: en-US, de-DE To: linux@bigler.io, Benjamin Bigler Cc: broonie@kernel.org, francesco@dolcini.it, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, regressions@lists.linux.dev, stefan.moring@technolution.nl References: <89209fbb46c4ce650141ecb6fdf06476@mail.infomaniak.com> From: "Linux regression tracking (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <89209fbb46c4ce650141ecb6fdf06476@mail.infomaniak.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1701783397;20bb4ff0; X-HE-SMSGID: 1rAVbG-0006du-4s X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 05:36:42 -0800 (PST) On 27.11.23 10:09, linux@bigler.io wrote: > > Thank you Benjamin for the patch. > I have tested the patch and is works fine. That's great. Benjamin, what's the status of the fix for this regression? I tried to find a proper submission for review, but didn't find one. Am I missing something or did that fall through the cracks? Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot poke > Am 2023-11-26T14:19:56.000+01:00 hat Benjamin Bigler geschrieben: >> Hi >> >> I did some debugging and I think the problem is that in this case bits_per_word is 8. So in >> spi_imx_dma_configure the buswidth is set to DMA_SLAVE_BUSWIDTH_1_BYTE. But in >> mx51_ecspi_prepare_transfer the BURST_LENGTH is now set to (spi_imx->count * spi_imx->bits_per_word >> - 1) >> before 15a6af94a2779d5dfb42ee4bfac858ea8e964a3f it was (spi_imx->bits_per_word - 1). Now the spi >> transmits 4 byte per byte except for the first word. I added the following patch and it worked again >> >> diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c >> index 498e35c8db2c..f514966e2ada 100644 >> --- a/drivers/spi/spi-imx.c >> +++ b/drivers/spi/spi-imx.c >> @@ -659,11 +659,22 @@ static int mx51_ecspi_prepare_transfer(struct spi_imx_data *spi_imx, >> ctrl |= (spi_imx->target_burst * 8 - 1) >> << MX51_ECSPI_CTRL_BL_OFFSET; >> else { >> - if (spi_imx->count >= 512) >> - ctrl |= 0xFFF << MX51_ECSPI_CTRL_BL_OFFSET; >> - else >> - ctrl |= (spi_imx->count * spi_imx->bits_per_word - 1) >> + if (spi_imx->usedma) >> + ctrl |= (spi_imx->bits_per_word * >> + spi_imx_bytes_per_word( >> + spi_imx->bits_per_word) - >> + 1) >> << MX51_ECSPI_CTRL_BL_OFFSET; >> + else { >> + if (spi_imx->count >= MX51_ECSPI_CTRL_MAX_BURST) >> + ctrl |= (MX51_ECSPI_CTRL_MAX_BURST - 1) >> + << MX51_ECSPI_CTRL_BL_OFFSET; >> + else >> + ctrl |= (spi_imx->count * >> + spi_imx->bits_per_word - >> + 1) >> + << MX51_ECSPI_CTRL_BL_OFFSET; >> + } >> } >> >> /* set clock speed */ >> >> Best regards, > Benjamin Bigler > >