Re: Fwd: [PATCH 1/1] sd: do not let LBPME bit stop the VPDs speak

2016-03-10 Thread Martin K. Petersen
> "Tom" == Tom Yan writes: Tom> Hmm, is it originated from: (2^32-1) - (2^32-1)%512 = 4294966784 Tom> bytes = 8388607 (512-byte) blocks = 0x7f Yes. Tom> What about SD_MAX_XFER_BLOCKS then? It is merely there to provide a theoretical upper max for the 16 and 32-byte READ/WRITE commands.

Re: Fwd: [PATCH 1/1] sd: do not let LBPME bit stop the VPDs speak

2016-03-10 Thread Martin K. Petersen
> "Tom" == Tom Yan writes: Tom, Tom> I just couldn't think of a case that the LBPME bit would actually Tom> indicates that the VPDs should not be used. It's merely bad Tom> implementation of Read Capacity (16), which doesn't practically Tom> stops the device from supporting unmap (even if a