Re: [PATCH 02/14] scsi: core: Query VPD size before getting full page

Martin K. Petersen
2024-06-05T02:52:04Z

Aaron,

> The target is an HDD behind a MegaRAID controller configured as JBOD.

Running in JBOD mode is probably part of the problem.

> root@pve1:~# sg_vpd -l /dev/sda
> Supported VPD pages VPD page:
> [PQual=0 Peripheral device type: disk]
> 0x00 Supported VPD pages [sv]
> 0x80 Unit serial number [sn]
> 0x83 Device identification [di]
> 0x87 Mode page policy [mpp]
> 0x89 ATA information (SAT) [ai]
> 0x8a Power condition [pc]
> 0xb0 Block limits (SBC) [bl]
> 0xb1 Block device characteristics (SBC) [bdc]
> 0xb2 Logical block provisioning (SBC) [lbpv]

I am working on a fix for what's probably a related issue.

I would appreciate if you could do two things:

1. Please send me the output of:

# sg_opcodes /dev/sda

2. Try building and booting:

https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/log/?h=6.10/scsi-fixes

and see if that makes a difference in your case.

Thanks!

Martin