Re: [PATCH v3] scsi: ufs: core: Fix RPMB region size detection for UFS 2.2

From: Martin K. Petersen

Date: Tue Feb 24 2026 - 11:55:01 EST


On Mon, 09 Feb 2026 19:17:34 +0400, Alexey Charkov wrote:

> Older UFS spec devices (2.2 and earlier) do not expose per-region RPMB
> sizes, as only one RPMB region is supported. In such cases, the size of
> the single RPMB region can be deduced from the Logical Block Count and
> Logical Block Size fields in the RPMB Unit Descriptor.
>
> Add a fallback mechanism to calculate the RPMB region size from these
> fields if the device implements an older spec, so that the RPMB driver
> can work with such devices - otherwise it silently skips the whole RPMB.
>
> [...]

Applied to 7.0/scsi-fixes, thanks!

[1/1] scsi: ufs: core: Fix RPMB region size detection for UFS 2.2
https://git.kernel.org/mkp/scsi/c/2e6b5cd6a4b3

--
Martin K. Petersen