Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp618696lqo; Wed, 8 May 2024 09:32:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRUFVcm3kM+iGwxudeR2otK5F6Hkc+u0Ycg0+sSk9sLgYxsXo20EzFqFKi0Os1jpWy0ducmGC/5PVG9d4CzkRKJhdzvKEBX/OePcfb/A== X-Google-Smtp-Source: AGHT+IE/gwEIv8Qlar3gLOBCX4BXaElVxRySKloiKoUexr5qFB2E3zGES46dbRUk6epE8hX6fvlM X-Received: by 2002:a05:6214:2a89:b0:69b:3aef:c08 with SMTP id 6a1803df08f44-6a15153b98bmr39289506d6.27.1715185973909; Wed, 08 May 2024 09:32:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715185973; cv=pass; d=google.com; s=arc-20160816; b=0yzZMqq8twR6QupGdlXmTLavUUNxc+sTRGfWeIzsCfMV1rXmbjsyuvlD+nPTV28jYA FytysIEfwSbN/qrOqMW42bXXYgPPR3N4fVZiSwrVL0n5tFyswc7JSpKLHmRnrfYoZrE2 JmrdzevBqDvScOnMSpAccyyrjcAXdmqld0d5H6LNx5Fvd6Qwv0F1d5VGtEaTAi1LDpGR Eh/ABkz837dvJhKnVW5mE4VeiiAhpQdN3EBdMvvPr3J99WdJjz/P30PXZqmh53u/dVW3 ThFOIFYtPlhUPVXL6iwrq53DXiGa99ZneQmPdqmIpwYe8KWMRWFqwOREKodo7z7UkIt3 Fq7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=V+UlBtviKRplAFVuSD5WaZIQT/sci91Paoj0zH91ETc=; fh=xv1flXNXul2a3843aNmQTpdp/wLvRMtxTAuPboXvXCE=; b=yqv5zyoKpGerKOzqmchY/AtvYsDstTbtWMZoip/3J7QsGh92W8360R1g8PQCk1Xlq4 TcBNsky7UfwUDi2iCpytOExf/wTEUct4GzqselYgLtq6WJVbEN1jo2+43RDb7YBLzLZO 3bzxiR0ax9aCjPSoH4VAeWDIQhIVkVbfdKcdLrR2gnIXIkuMGXetIJE9d/WJgd/iI3g1 7sh7CvnueeP5pXijyVxBZHZ4VrrFFJ2Yd3vsH0SnvBxc6aaup2rkJQI64+hKT2jEBtaO IJho5JFbYpWx7xk0GFdIDZ3C+3rMBrxL+LPxZ1SZ3ZtDaNbIde0sftZvhSK96P643UeB 1A/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WoofWAtM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 4-20020a0562140cc400b006a0b26a9b30si15494267qvx.568.2024.05.08.09.32.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 09:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173544-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=@gmail.com header.s=20230601 header.b=WoofWAtM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9D1541C21844 for ; Wed, 8 May 2024 16:32:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B49F54C6E; Wed, 8 May 2024 16:32:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WoofWAtM" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 55AD0622; Wed, 8 May 2024 16:32:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715185965; cv=none; b=OYMz2wbWklcYggNk0c7Jf0UeIyiNGP/nRxdD/3FEDUzW/hXvoqokxoCvoiE4MGE4ZO8398qXxjV7v93XBJKlH3wP3lZPRRGSJf/ylcsvU2E/27mYDvXBSGIazEQ6VUkaOrkI5TlnkkupPYvD35m+ayMx7vWpmP7jeSCyNQwRD80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715185965; c=relaxed/simple; bh=V+UlBtviKRplAFVuSD5WaZIQT/sci91Paoj0zH91ETc=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=m3pnfJ+WanRb+61blhpmbpkU3opxq2sxk8TBzm7fx9ncQrW65+DuJMKQNUUDL7vjMT66bExKykFWKNcmxhLpZRqjxb1IFyKYcP/wKmIsGX9IPV4dEqyoYRgo7UbKJiMW9iD2a9qydtM0DeTmoPKT9rtjotJUkMz4EH21JjScFh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WoofWAtM; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-51f3761c96aso5971606e87.3; Wed, 08 May 2024 09:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715185962; x=1715790762; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=V+UlBtviKRplAFVuSD5WaZIQT/sci91Paoj0zH91ETc=; b=WoofWAtMGWbhf2JCmj00SvUHO8iwHiyqqwWhYYveelKGrJMwCkj8cYmG+Xt6Ttl6Zc 0s+uKmM9g59U6UmRqs12p9VjsBB3Rhy2ZqNcm0+v4i4Ztr8XVjP/Xm3irScdRDuLA2L4 gZXFe5pg4m5/hhP37ASjTgnTkTIzJAlxgIsAgV3Mt5HJOtgltw0GhUD4y733eoX1WVBc dD0bGnxDQ4JEkhmK+s++4/dyfQRfLq/xMaZMciEx+Z85XBzFMsdV5Rqk/AQfJe9mBZs+ KCrUFS3nGXsZJnLGqqliNP91QIeBvZW19yLGytO/nf/6VfVmMDisNl8Rfp5Vi5CV7FAY vf0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715185962; x=1715790762; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=V+UlBtviKRplAFVuSD5WaZIQT/sci91Paoj0zH91ETc=; b=R2OEH8BQXsuW5Co41WEw6i0Yhd4pGCC2qT/HzAjVm6vRWFFBjB4m612CCQ+1t5Hz8N QnWD9aJmwGYLJagXA0mj0AkqmLIAykhm2jmfQmNORIOB7o+fxjtU04/VCF52qTR2b54q j6Ry2LnmkTNFmvF6wgjstjtp5J7BtgHwcpLY2ey3IgSWgJJLtiArrQNVlVcCrYsitExU FZDHi0/lGPJtdka5Q5YmM/hpu2JUUMInNH/C5bB/w4uXpe/o9ylHR/bVLotlFb2BxRHs GK5Z84HjIUnNUGQLUWvIquIawdNiwUGVewPulEIi4iXfDTT50DVndQZCFry0obEi8mP2 FeWw== X-Forwarded-Encrypted: i=1; AJvYcCXXDEKN6u2znMLYezKVSCpJDLVH0F8tG8Z5kpOG8jzNQMYgVfWbC79GsgAY39YdNY/XrduaKwT0nokHpcb+F44/97a1EsMuu1xX0UWex0+rLtL+ACZXYK8UcAYLtl/JxPABcwDTnN+ZGw== X-Gm-Message-State: AOJu0YxF6QHQfhqnWnSQ6pUgx5+vXNMwVUnjqzAcrc8ex/Mzac/l01WZ lnjvsu6NejtOdcs8TZOwsjOcrHyaBbvBe3cozFr1eUX7w4kBevQe X-Received: by 2002:ac2:5929:0:b0:51d:a1ab:98bc with SMTP id 2adb3069b0e04-5217c3733cfmr2768097e87.2.1715185962225; Wed, 08 May 2024 09:32:42 -0700 (PDT) Received: from [10.176.235.56] ([137.201.254.41]) by smtp.gmail.com with ESMTPSA id kk1-20020a170907766100b00a599c00442fsm6421117ejc.150.2024.05.08.09.32.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 09:32:41 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2] scsi: ufs: Allow RTT negotiation From: Bean Huo To: Avri Altman , "Martin K . Petersen" Cc: Bart Van Assche , Bean Huo , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 08 May 2024 18:32:40 +0200 In-Reply-To: <20240503113429.7220-1-avri.altman@wdc.com> References: <20240503113429.7220-1-avri.altman@wdc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2024-05-03 at 14:34 +0300, Avri Altman wrote: > UFS4.0, and specifically gear 5 changes this, and requires the device > to > be more attentive.=C2=A0 This doesn't come free - the device has to > allocate > more resources to that end, but the sequential write performance > improvement is significant. Early measurements shows 25% gain when > moving from rtt 2 to 9. Therefore, set bMaxNumOfRTT to be > min(bDeviceRTTCap, NORTT) as UFSHCI expects. >=20 > Signed-off-by: Avri Altman Avri, I was still curious about this 25% gain, so I will take a look. It would be great if you could share more information about this. Reviewed-by: Bean Huo