Re: [PATCH v4 5/7] ufs: Make the logical block size configurable and answer absent LUNs

Jeuk Kim <[email protected]>
Newsgroups org.nongnu.qemu-arm,org.nongnu.qemu-devel
Message-ID <178727632471.917875.11234291271056551201.b4-review@b4>
On Thu, 13 Aug 2026 14:30:37 -0500, Mikail Sadic <[email protected]> wrote:
> Two things the ufs-lu model hardcodes that hardware does not.
> 
> The logical block size is fixed at UFS_BLOCK_SIZE (4096), both in the unit
> descriptor the logical unit reports and in the block size of the scsi-hd
> backing it. UFS does not require that: the unit descriptor carries a
> base-2 exponent, and 512-byte blocks are common on real hardware and in
> images built for it. Add a 'logical-block-size' property that sets both,

In UFS 4.1, bLogicalBlockSize has a minimum value of 0x0c (4 KiB), and
READ CAPACITY explicitly states that the minimum logical block length
for UFS is 4096 bytes.

Do we have an example of real UFS hardware exposing 512-byte logical
blocks?

-- 
Jeuk Kim <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.