Re: [PATCH 0/2] scsi: ufs: core: Handle devices declining optional Query IDNs

From: Martin K. Petersen (Oracle)

Date: Mon Oct 05 2026 - 22:46:16 EST


On Fri, 11 Sep 2026 10:43:17 +0800, Stanley Jhu wrote:

> JEDEC JESD220F specifies that a device which does not support an
> optional Query IDN returns QUERY_RESULT_INVALID_IDN (0xFD) in the
> Query Response UPIU.
>
> The driver maps every non-zero Query response to -EINVAL and logs
> dev_err(). A device declining an optional IDN is spec-compliant, so
> this reports a failure that did not happen and keeps the retry loops
> resending a request the device will never accept. On UFS 4.0 parts
> that omit the Timestamp attribute it repeats on every boot and every
> resume.
>
> [...]

Applied to 7.4/scsi-queue, thanks!

[1/2] scsi: ufs: core: Fast-abort unsupported Query IDNs
https://git.kernel.org/mkp/scsi/c/d1fa5cea5dcd
[2/2] scsi: ufs: core: Dynamically disable timestamp on unsupported devices
https://git.kernel.org/mkp/scsi/c/00eec343c730

--
Martin K. Petersen