[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4fe336f1-0441-4697-9da5-45a5f7a4007a@gmail.com>
Date: Thu, 2 May 2024 21:51:03 +0200
From: Bean Huo <huobean@...il.com>
To: Avri Altman <avri.altman@....com>,
"Martin K . Petersen" <martin.petersen@...cle.com>
Cc: Bart Van Assche <bvanassche@....org>, Bean Huo <beanhuo@...ron.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: ufs: Allow RTT negotiation
Avri,
On 02.05.24 3:19 PM, Avri Altman wrote:
> + /* RTT override makes sense only for UFS-4.0 and above */
> + if (dev_info->wspecversion < 0x400)
> + return;
> +
> + rtt = min_t(int, desc_buf[DEVICE_DESC_PARAM_RTT_CAP], hba->nortt);
> + /* rtt is 2 after manufacturing */
> + if (rtt < 3)
> + return;
> +
> + if (ufshcd_query_attr_retry(hba, UPIU_QUERY_OPCODE_WRITE_ATTR,
> + QUERY_ATTR_IDN_MAX_NUM_OF_RTT, 0, 0, &rtt))
> + dev_err(hba->dev, "failed writing bMaxNumOfRTT\n");
> +}
bMaxNumOfRTT is Persistent Property, do we need to re-write every time
power cycle?
Kind regards,
Bean
Powered by blists - more mailing lists