lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <8c3cb28c57462f9665b08fdaa022e6abc57fcd9e.camel@posteo.de>
Date: Sun, 05 Oct 2025 19:05:19 +0000
From: Markus Probst <markus.probst@...teo.de>
To: Damien Le Moal <dlemoal@...nel.org>, Niklas Cassel <cassel@...nel.org>, 
 "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>, "Martin K.
 Petersen" <martin.petersen@...cle.com>
Cc: linux-ide@...r.kernel.org, linux-scsi@...r.kernel.org, 
	linux-kernel@...r.kernel.org, Markus Probst <markus.probst@...teo.de>
Subject: [PATCH 0/2] Support power resources in ata ports

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(-)


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ