I just run hdparm -I with the HDD directly in my Proxmox environment
(Debian). There were no errors, the powerstate has been shown properly
and hdparm -I shows the full feature set of the HDD.

So, I guess this is not a kernel issue, but a passthrough issue(?) by
Proxomox. I will now investigate this further.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2092222

Title:
  ata: libata-scsi: Honor the D_SENSE bit for CK_COND=1 and no error

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  I’m running Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-51-generic x86_64) as
  a guest system in Proxmox VE 8.3.2. I have connected a WD SATA-HDD via
  passthrough directly to the Ubuntu guest system. It is mountable and
  works flawlessly.

  However, I want it to spin down to “standby” state if it is not in
  use. So, I ran the “hdparm” command to check the current power mode
  status. The status of the SATA-HDD had been “idle” or “active” at this
  point:

  root@xyz:~# hdparm -C /dev/sdb

  /dev/sdb:
  SG_IO: bad/missing sense data, sb: 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 drive state is: standby

  As you can see, “hdparm” threw an error and returned the wrong power
  mode state “standby”. I doublechecked by touching the SATA-HDD. It was
  spinning and the head was moving.

  After, I did some googling and found a post in the Majaro (sorry!) forum 
exactly matching this issue:
  
https://forum.manjaro.org/t/ata-libata-scsi-sense-data-errors-breaking-hdparm-with-wd-drives/166634/10

  The post also points out the solution - a kernel fix as part of the 
linux6.10.6-1 point release:
  
https://git.kernel.org/pub/scm/linux/kernel/git/libata/linux.git/commit/?id=fa0db8e5

  Now my request - Could you please add this fix also to one of the next point 
releases of Ubuntu 24.04.1 LTS’s “Linux 6.8.0-5x” kernel?
  I would really like to avoid introducing a “custom” kernel into my 
100%-standard Ubuntu LTS system.

  Thanks in advance!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2092222/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to