Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2776294lqp; Mon, 25 Mar 2024 08:57:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4x83N3hwEyf7BhNRUyxuHIdK4MD438EVZAosnV+A8UdF/gIKQJklF0Cc9hPZ+wL6dIYw9nqzH7kkaSctzGcoTKz43Z7xJQ4XN/69dmw== X-Google-Smtp-Source: AGHT+IEA1O6WtmUOksHEkxmq8rC0NTzBrWKFCKbmdPMFPoOH3tcryCSu6D51SY69/hP8NJ/evt1t X-Received: by 2002:a05:6808:22a6:b0:3c3:cb4a:650 with SMTP id bo38-20020a05680822a600b003c3cb4a0650mr5311971oib.25.1711382227764; Mon, 25 Mar 2024 08:57:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711382227; cv=pass; d=google.com; s=arc-20160816; b=hyUXkHb03yjqOxMMEx+mk0wNz1Kv28cq5ikOoGpdih3CRgI5QxltB+k3tHQVynuA5F YabmxupCY4YwQy1Mwxmq1IHP0+bItycMMXo/0T4yLzrqkw3ZW5PYpXB1pOO4yijw5nAK vLT5lIzsHkUZBAhUWN/vUZcOOljkn3xf2Vl8RQfeO5LckJw+vbHZr6Blv94Y0bNMCVgt 0Y0FpznZegABYTHynmx9pIi0PkKyI0zmtxlXBj5GpGDbvSUtTIgQT6dlAv7wU6JAE1sQ CBQtnQz0dWFLSCWPQ3NP/kvW++y2o2kOPSVJrzMa4VAYk0ptK3/2kKG/KbPEZgn9R7yy ryTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=BjNMxVepD+YX7ysye0RhbHMEfHTEI6sx86YCOKWHoWM=; fh=selOfYj8PxS8zUp1UwDARl5sOH5/yKwxB6Fex19VYtw=; b=hb/nhuUz2fSYsGGS/F5I6/MDgd4xapJtimjqujy4B6sa+/y5dK56JTbV6qsw65qaLG sIhjkktNrPLrFrNINNFuUO83/16HHLKtrvJ4P7DtSxIKgev8BZFSYRsCYBwbE0aX42Xm SKJmxGPGi0Fsrf/3WgI+hfXW/Lt5EHxmC2n1OoSLlLOTuqI52WWYGkUipO8D5iF5FVdq y7DZxGpRbBPfmYdj0US/wEzC8nlBF0MMrRQ1dQC6KP4UaHtjaobpl+x9RgoljQAWI5pI U+HvJDFokfDkrv54yP8OgCLvL5jXtrPDDQ/nQA+gkjkNCzkMV1r9h9eCIULAUO0InmbN 7tNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Idpai2EV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-117134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f27-20020a05622a1a1b00b004315aecfbc3si1971904qtb.522.2024.03.25.08.57.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:57:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Idpai2EV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-117134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8062B1C60D90 for ; Mon, 25 Mar 2024 15:52:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8844513B7AA; Mon, 25 Mar 2024 13:19:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Idpai2EV" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 171D81741DA for ; Mon, 25 Mar 2024 13:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711372783; cv=none; b=IGix1Gtz9Bjw31Yq1qkn6AA0povZO98KQlVD/7LQTyxHElzpuUCwP5bNbxMqVQGBQ3ISuywQgs0A33drux4e3GlTg/z58eYwhkphQpphYsmRV76kIhvO/TWvr9qbSJIqQkD0CgyUkSif+kkoNmdUEUsb2EacRK0AZgjhW3GNS1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711372783; c=relaxed/simple; bh=2V9uuyJPhlig9+/4XmnPnpe+7jmkoupBMH2zUb1Lchs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nvjA/LQQfFnXrXzN77gKjwMgOthoOHkcQeKsiWlpwapsLtBj1uEAoTb83+NQFiUffIJSOCZ5gSMiYJQXk+D4z+X6KvsPioZSQ6FyILdQKMbxDTqTyhLsyCMuLICeskjoChdpZpvXVyYdebSOURsdS1nu8AI3JZiBLuAbGF7Aoz8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Idpai2EV; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dcbef31a9dbso3012666276.1 for ; Mon, 25 Mar 2024 06:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711372781; x=1711977581; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BjNMxVepD+YX7ysye0RhbHMEfHTEI6sx86YCOKWHoWM=; b=Idpai2EVeYFY8RSPVKaoQq3xVGcTX6MkHCh8hfta2GmZ4ym2KUFyPCzoQ9RK4g2FvR Y9vHU7UGQXAsIfLxLbsxT880zvP+I8z+zwIyuSBoothYbTaAgmXnGpPZk+s4ora3h8RP 4Dq8k2ocTGFQ9BW+5ABYNNepoO+bp1YfDn7BOkJMHVLE1V+/LMNvd8CwXiY48SUNORii wEAsooB1zybfinDMQ58qYEffULw2ezEOLOk1vxCT+lu7mVh3n3thV8Z5PnPVFLgP2Fei 6gcxPbvGeibkn4K7gmxKMbZJz+Fs/TYDChgEH/pTR1G8dbnG4JtF4ZnMzArGrthEdk5V A05Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711372781; x=1711977581; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BjNMxVepD+YX7ysye0RhbHMEfHTEI6sx86YCOKWHoWM=; b=ubWE8x5oWjL9K0qVZHPmSA0wSQ6Iw8R3O/QC2JyIyP8kQDFuPLCwCoc1rIQi0xanJ6 f2O27H/ZS85dxIwWG5z400awVXOJUpLUUHkZ9P1vj+9JT/JTT/tJj9YOsrOqtBJY4ogK xqY36kntEqDQy7e53iIwiV1qszHnJVDP8aY5Uafpzxq43sbJF1cQ2KmPYS1ha2uVvm22 iUqmR4g29S+Z2O5O91Rgjccg23ekrPuL82dhr1VKX7L61nevYIaPvxcHJIVX68oWjdzZ te/oyXmw0CJelvr16w1cOZhRgMr9EpsDejhXj5XCHiA1RM2FhPZmKOj2OAO08eCNhFsj FVvA== X-Forwarded-Encrypted: i=1; AJvYcCWstAfVKfwPBntNEdEKu+AMQYtZUzhee3bqLx86rl/HNWVhgMo6ZUCvD/GuTFW8whhKwNLHEyiKKD1yDsb3cwDP/4S9D4w9xYVgxMRy X-Gm-Message-State: AOJu0YyJ8RWAL8XoMKXgyfAa7NfbuNoufU7q2afYx8AMgQHAnny6cKnW tiGAH+lPWRgzYexxP19+d/NrPBJQUtx2uVjXeUFnmQPZSu2bsBc6pWno27RToEux59X9NNUL0pp en7tiE6D/6LTwNNm2azZFUcsPFM5Dq/JFNpxXBw== X-Received: by 2002:a25:868f:0:b0:dc7:49a8:e148 with SMTP id z15-20020a25868f000000b00dc749a8e148mr4637616ybk.27.1711372780959; Mon, 25 Mar 2024 06:19:40 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240320223837.959900-1-jm@ti.com> In-Reply-To: <20240320223837.959900-1-jm@ti.com> From: Ulf Hansson Date: Mon, 25 Mar 2024 14:19:05 +0100 Message-ID: Subject: Re: [PATCH v5 0/7] Add tuning algorithm for delay chain To: Judith Mendez Cc: Adrian Hunter , Andrew Davis , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 20 Mar 2024 at 23:38, Judith Mendez wrote: > > This patch series introduces a new tuning algorithm for > mmc. The new algorithm should be used when delay chain is > enabled. The ITAPDLY is selected from the largest passing > window and the buffer is not viewed as a circular buffer. > The new tuning algorithm is implemented as per the paper > published here [0] and has been tested on the following > platforms: AM62x SK, AM62A SK, AM62p SK, AM64x SK, and AM64x > EVM. > > The series also includes a few fixes in the sdhci_am654 > driver on OTAPDLYEN/ITAPDLYEN and ITAPDELSEL. > > Changelog: > v4->v5: > - Add dll_enable = false > v3->v4: > - Add acked-by > - Remove extra newline > v2->v3: > - Remove fixes tags when not needed > - Fix return for tuning algorithm > - Fix ITAPDLY_LAST_INDEX > - Use reverse fir tree order for variable declarations > - Save all ITAPDLYENA changes in itap_del_ena[] > - Remove unnecessary parenthesis > - Remove unnecessary variables > - Save itapdlyena for HS400 timing > v1->v2: > - Remove unnecessary indentations and if/else in > sdhci_am654_calculate_itap > - Optimize sdhci_am654_calculate_itap() > - Call sdhci_am654_write_itapdly() in sdhci_am654_set_clock() > instead of sdhci_am654_setup_dll() > - Change otap_del_sel[], itap_del_sel[], and itap_del_ena[] > to type u32 > - Revert unnecessary reformating in sdhci_am654_set_clock() > and sdhci_j721e_4bit_set_clock() > > Judith Mendez (7): > mmc: sdhci_am654: Add tuning algorithm for delay chain > mmc: sdhci_am654: Write ITAPDLY for DDR52 timing > mmc: sdhci_am654: Add OTAP/ITAP delay enable > mmc: sdhci_am654: Fix itapdly/otapdly array type > mmc: sdhci_am654: Update comments in sdhci_am654_set_clock > mmc: sdhci_am654: Add ITAPDLYSEL in sdhci_j721e_4bit_set_clock > mmc: sdhci_am654: Fix ITAPDLY for HS400 timing > > drivers/mmc/host/sdhci_am654.c | 176 ++++++++++++++++++++++++++------- > 1 file changed, 138 insertions(+), 38 deletions(-) > It's a bit unclear to me whether this series is actually fixing a regression or whether it should be considered as improvements for the tuning logic. For now, I decided that it looks like the latter (please tell me if you don't agree). That said, the series is applied for *next*, but I also took the liberty of re-ordering the patches, so those without a fixes tag comes last. Thanks and kind regards Uffe