public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Support power resources in ata ports
@ 2025-10-05 19:05 Markus Probst
  2025-10-05 19:06 ` [PATCH 1/2] Add manage_restart device attribute to scsi_disk Markus Probst
  2025-10-09 11:24 ` [PATCH v2 0/2] Support power resources defined in acpi on ata Markus Probst
  0 siblings, 2 replies; 17+ messages in thread
From: Markus Probst @ 2025-10-05 19:05 UTC (permalink / raw)
  To: Damien Le Moal, Niklas Cassel, James E.J. Bottomley,
	Martin K. Petersen
  Cc: linux-ide, linux-scsi, linux-kernel, Markus Probst

This series adds support for power resources defined in acpi for ata
ports. A device can define a power resource in an ata port, which then
gets turned on right before the port is probed. This can be useful for
devices, which have ata ports that are:
  a: powered down by default
  b: can be individually powered on
like in every synology nas device that supports a feature they call
"deep-sleep". If thats the case it will be assumed, that the power
resource won't survive reboots and therefore the disk will be stopped.

I will maybe extend it later to allow
  - setting a delay between the probes (embedded devices have limited
power and if the disks are all spin up at the same time it would cause
a power peak)
  - powering down the ata ports (removing power from the disks) while
the disk is spin down (saving power and possibly disk lifetime)


For details, look at the individual commit messages.

Markus Probst (2):
  Add manage_restart device attribute to scsi_disk
  Power on ata ports defined in ACPI before probing ports

 drivers/ata/libata-acpi.c  | 68
++++++++++++++++++++++++++++++++++++++++++++++
 drivers/ata/libata-core.c  | 21 ++++++++++++++
 drivers/ata/libata-scsi.c  |  1 +
 drivers/ata/libata.h       |  4 +++
 drivers/scsi/sd.c          | 35 +++++++++++++++++++++++-
 include/linux/libata.h     |  1 +
 include/scsi/scsi_device.h |  6 ++++
 7 files changed, 135 insertions(+), 1 deletion(-)


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2025-10-10 15:52 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-05 19:05 [PATCH 0/2] Support power resources in ata ports Markus Probst
2025-10-05 19:06 ` [PATCH 1/2] Add manage_restart device attribute to scsi_disk Markus Probst
2025-10-05 19:06   ` [PATCH 2/2] Power on ata ports defined in ACPI before probing ports Markus Probst
2025-10-06  1:09     ` Damien Le Moal
2025-10-09 11:07       ` Markus Probst
2025-10-06 15:07     ` Niklas Cassel
2025-10-06 15:50       ` Markus Probst
2025-10-09 11:41         ` Niklas Cassel
2025-10-06  0:58   ` [PATCH 1/2] Add manage_restart device attribute to scsi_disk Damien Le Moal
2025-10-06 12:11     ` Markus Probst
2025-10-09 11:24 ` [PATCH v2 0/2] Support power resources defined in acpi on ata Markus Probst
2025-10-09 11:24   ` [PATCH v2 1/2] scsi: sd: Add manage_restart device attribute to scsi_disk Markus Probst
2025-10-09 11:24   ` [PATCH v2 2/2] ata: Use ACPI methods to power on ata ports Markus Probst
2025-10-09 11:59     ` Niklas Cassel
2025-10-09 12:03       ` Niklas Cassel
2025-10-09 13:48       ` Markus Probst
2025-10-10 15:52     ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox