Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6989804rdb; Wed, 3 Jan 2024 00:08:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGDmDPZfrT23jk47NZfCSqLuS33MTzuoQIO3lpiNQ5yeXLRhZliCusJ0SgFPONVdsXH31Fm X-Received: by 2002:a17:907:bd1:b0:a23:9a1e:4288 with SMTP id ez17-20020a1709070bd100b00a239a1e4288mr506788ejc.22.1704269310709; Wed, 03 Jan 2024 00:08:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704269310; cv=none; d=google.com; s=arc-20160816; b=pbBP7+WOXaBgKmKnFDdUPNKkNYBo9a7l2IaWikSB8Qvb8AVmWmxu93cb5ajUBX2Gn6 0zQiLx6lC+TH0F3Iik23JYwq1mPtDTd+OJa/ueCEv5prOAdUy4eB+lGrJHdNMaaQlsNr 3T099QUJSv4XvK+An6MdCzdOqMK7aeN6oIHVjoL6AqTPy9ZGGCQcF0unL2ZB9xo/icn8 DGZSNTUMwzyn/UvklFmp34fCfV8PLX6OxYo2btctkHuH5WsS516VeBMVs5Xj1nTxSMJT 9a+noGAZaqh9UU6YquW3xE2ik94xsS74DvCjDMlY6UtnOIL48p4/6A20Ffymi8f8by2p njUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=oyaXnMakmRpBWSAF6xYq8zgJ7/vV9f1iLSp4J6FqwVQ=; fh=ssKb9mlAxe+em1J80APVui53ci6yp/JOk8WCFRYyCZs=; b=VvOhwfssJV1PFFKK1P/V6Aa8dGt6fRTRv/+V0eSXS5LE7QNJd8xk01vJnS9lV1rxCu b57d4nWD/uYoo6+lnDd1IsP6lhZ657s0czLYILodeLQ96AbDFoVqlmY5I8OHcHYN2If7 2UcE7O6pl5jX+oCDz35ZxFVDeHZHlpcmMsak629xf+KM7rtVEaVph8Yo1oqbJb2FZfob JkGbwxxFy05h6Cj3yiRm7oiXq6XGC8krT60nPtEXM2zLLU5Sn0VLXqnNHtKcxHCxSArj UJOo3sViAZw3vob7EAv/E6szx5kw95fSjHCSPYAKyuYDcKr2EumZgaKJ1F7z00idYKC4 dv3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="H85/qPhS"; spf=pass (google.com: domain of linux-kernel+bounces-15260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s10-20020a1709060d6a00b00a26cd0dad59si8820156ejh.540.2024.01.03.00.08.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 00:08:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="H85/qPhS"; spf=pass (google.com: domain of linux-kernel+bounces-15260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 74A7D1F23668 for ; Wed, 3 Jan 2024 08:08:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 000701804F; Wed, 3 Jan 2024 08:08:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="H85/qPhS" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28A4718046; Wed, 3 Jan 2024 08:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704269301; x=1735805301; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=/JJwFyF29T1oOEA9KP3rktPCNu/Gfj6Z1AghnbazQsI=; b=H85/qPhSTsQ6q3Z1BJczoZIYVmdqa7MkbRFIBFaRzjz1qVS3mTpbdKA6 ua4wgGDvJTTiJZlqUH8Ds/BVWKbCHWe2Lv4Ud6PRDkypSeeKv8FWRlLvM PtTmiOeDuocV4nof+pSqI0siTuz5lSG3+RiOE7vdIzHADmEwt9ttvWWp5 yMugbhk+weMky8ljT4qjgHoOZDi381d9rS+aYWFVbuEYkAXUye3lqqtoJ 07sWQErCF1cdXheSHvh7d8QbrCADl9kWvVwleLAHecCVYVJtvUB3VhPNS hr2wTXvvMETIY977JFdn0v6QZqEbJSRDccCM8ViYNqSs5yAifc+7GoXmb w==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="4321761" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="4321761" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2024 00:08:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="953155403" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="953155403" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.51.162]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2024 00:08:16 -0800 Message-ID: <03e61842-1ba1-4135-80f8-9071d859614d@intel.com> Date: Wed, 3 Jan 2024 10:08:12 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mmc: rpmb: do not force a retune before RPMB switch Content-Language: en-US To: Jorge Ramirez-Ortiz , Avri.Altman@wdc.com, ulf.hansson@linaro.org, christian.loehle@arm.com, ricardo@foundries.io Cc: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org References: <20231211165500.310097-1-jorge@foundries.io> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20231211165500.310097-1-jorge@foundries.io> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/12/23 18:55, Jorge Ramirez-Ortiz wrote: > Requesting a retune before switching to the RPMB partition has been > observed to cause CRC errors on the RPMB reads (-EILSEQ). > > Since RPMB reads can not be retried, the clients would be directly > affected by the errors. > > This commit disables the retune request prior to switching to the RPMB > partition: mmc_retune_pause() no longer triggers a retune before the > pause period begins. > > This was verified with the sdhci-of-arasan driver (ZynqMP) configured > for HS200 using two separate eMMC cards (DG4064 and 064GB2). In both > cases, the error was easy to reproduce triggering every few tenths of > reads. > > Signed-off-by: Jorge Ramirez-Ortiz > Acked-by: Avri Altman Acked-by: Adrian Hunter > --- > v2: > mmc_retune_pause() no longer can trigger a retune. > Keeping Avri Altman Acked-by since they are functionally equivalent. > v1: > modify mmc_retune_pause to optionally trigger a retune. > > drivers/mmc/core/host.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c > index 096093f7be00..ed44920e92df 100644 > --- a/drivers/mmc/core/host.c > +++ b/drivers/mmc/core/host.c > @@ -119,13 +119,12 @@ void mmc_retune_enable(struct mmc_host *host) > > /* > * Pause re-tuning for a small set of operations. The pause begins after the > - * next command and after first doing re-tuning. > + * next command. > */ > void mmc_retune_pause(struct mmc_host *host) > { > if (!host->retune_paused) { > host->retune_paused = 1; > - mmc_retune_needed(host); > mmc_retune_hold(host); > } > } > -- > 2.34.1