Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2661840lqo; Tue, 14 May 2024 05:56:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbOvo7dpYv+6CdDK7troLjF2xsdd3M7lqZo/Bw8mDjehyRT1hJeWXrLmZnbG9IPGZK6vBeaM0a2uD5i5zSfzhK9bKBSW0Etej06OvJjA== X-Google-Smtp-Source: AGHT+IGtabS56OnSLSAIJwec1R426/ATeIu/pRhoXD+CIFUjHoYDepSNhoO8wfM0DSyf7J9wIvvL X-Received: by 2002:ac8:5f4f:0:b0:43a:71be:f3ae with SMTP id d75a77b69052e-43dec39bf67mr300110951cf.29.1715691388166; Tue, 14 May 2024 05:56:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715691388; cv=pass; d=google.com; s=arc-20160816; b=sSRdn+Sp0EZPYvmwbcUMp6TpgnNpbcvKhMs93N1c5cQWJ/vTzQB2kViChguxJhg+81 4vNOtEZviPtjtQ/xdXG2MQNbcNjTk83EEFcXZVsFXJcKz7UxnEX+Yw7dGtN/qWgJCOXK pV/gPkCsgjfeTCrqj5yUlFOb3PyHsng7Vd7JB1H1ZPfzBGnJkn/zNUi+QxHBIUZPn7ri 2fcW5h7KGPKy2D5wPPxvLzhQVllph67D7SAmxGizFH7wqcpVUigb+dzl542mlc7D3GJM 7eooiCb2kVXleCkC1WkRPLr9GXrliBZYSOo+Klf2HtK98Lkg26efBIsW4XIwrwpmj7DS VhPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=HtoUS49dCeKeP1r1bZaXN4sx0vh3C9G4d85yLgm0N7c=; fh=K+Tg+GhtIqZfvlhfGR7M/+sET2hfDDyZF+hArCUWMWo=; b=lK1bD2goxG882rqbdLDKUJE9eOYDG8ot0LGbsljSR5KFtdQ/lQiVOfW+Gcjtbqz5xp kFQoUSYekQtdHutq3Gr6bObkxlnGDxry3wnPyWJWpWbdNxnM+sk0EqMz6qP0ng1vZbx3 2vR5iLUFV/7l2vY0KZY1oFc+a8cMOvYDBKxJTflWSYcuSdKHK7ErArCX2q8/+yEyPJhk 01bEkwzGHCOBvTzEsztXh0Kd8qHDd7AWR0v6CvUwBjGG5n1HkFLuey4zt30LfP/acwRc ClzTfCl9n58Y1aKQ2cX9cB5F/D60ZPFR+GUK2DVGetyQTpeb8IslGWAjQjBTuUGqe1Qv Nkhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=HO7KrzuT; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-178684-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43e11421812si61286491cf.368.2024.05.14.05.56.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 05:56:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178684-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=HO7KrzuT; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-178684-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.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 DE95C1C21D06 for ; Tue, 14 May 2024 12:56:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE3276F085; Tue, 14 May 2024 12:54:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="HO7KrzuT" Received: from 008.lax.mailroute.net (008.lax.mailroute.net [199.89.1.11]) (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 7AC786E619; Tue, 14 May 2024 12:54:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715691260; cv=none; b=o08KKS21ZtgCHDXn12SpBxxKWAJI1WdvqZRdnSnno3hr4kapj+ajZ3G6McwN6IcOxOIUXUxXWdWtKcYZ5XnI7vBUGI7b9kYcV2c0WHA5R4nvexwBEPHx+ugmZIg5GBrXl+st5HQGPXQWhaDQsra4wqwX3s/Cv/AV2JMnxH1V30E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715691260; c=relaxed/simple; bh=iYe+iTT9bJoy3cwBZwJPP1x2mJu0Ck4/Nz+MnlFpoUI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=A2JXihDU9Mh2p2bVW9W3pXc9gEwoJ296ZecprbNX3tJZGGDb9GhDP/5AOxtZ3NTEJTtV6b7i6ARLNg5YWcgyKHLOtJQUFXfL5aq//EWsioicOuRZtcwX6AKZD5N4iWepTZ44cR+/ZLuT+nD/tsHD0dJkuD9vvp5eKQ1PVQrj0Gs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=HO7KrzuT; arc=none smtp.client-ip=199.89.1.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 008.lax.mailroute.net (Postfix) with ESMTP id 4VdxBX2sgXz6Cnk90; Tue, 14 May 2024 12:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1715691250; x=1718283251; bh=HtoUS49dCeKeP1r1bZaXN4sx 0vh3C9G4d85yLgm0N7c=; b=HO7KrzuTaa//zmrOxBlnOlek6TvPMkMpBJlZcny4 IzPoCFGtSK3dAa9Z4eEzOS5KB8WyBEVZ+8UmqwRQhUK/ZH2DC3+G6byz0aaz3kOD XkKksoeWMULTDI4Ig/v+tTZV4erX2ouN7E1X1DYtsbZBborRxUiExgQoSiEkonnn iMJ/CmgwXqQ71OIK0Sjc/hE1CSMrz69UOLI9YIT0TYVomSmdhBmDP6g2nF7bQLgm O6/edAihTSkX+zGFaDa27ufdOs8CLPN8/YQDue5okg/xvgx26qgHgb/78qU4Km4/ /c2gqeUci6Q5s8ShYbuZv6TOcwXqIDqe2YmpnhTKHz/joA== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id VmpcSeklmOV7; Tue, 14 May 2024 12:54:10 +0000 (UTC) Received: from [172.20.0.79] (unknown [8.9.45.205]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 008.lax.mailroute.net (Postfix) with ESMTPSA id 4VdxBT3gFwz6Cnk8s; Tue, 14 May 2024 12:54:09 +0000 (UTC) Message-ID: <34c50f23-82dc-4b53-b8cb-e5c07c6e0106@acm.org> Date: Tue, 14 May 2024 06:54:08 -0600 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 v3] scsi: ufs: Allow RTT negotiation To: Avri Altman , "Martin K . Petersen" Cc: Bean Huo , Peter Wang , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240514050823.735-1-avri.altman@wdc.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20240514050823.735-1-avri.altman@wdc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/13/24 23:08, Avri Altman wrote: > +/* bMaxNumOfRTT is equal to two after device manufacturing */ > +#define DEFAULT_MAX_NUM_RTT 2 > [ ... ] > + /* do not override if it was already written */ > + if (dev_rtt != DEFAULT_MAX_NUM_RTT) > + return; I haven't found any text in the UFSHCI 4.0 specification that says that the default value for the number of outstanding RTT requests should be 2. Did I perhaps overlook something? If I didn't overlook anything, the driver should not try to check whether dev_rtt is at its default value. Thanks, Bart.