From: Niklas Cassel <cassel@kernel.org>
To: Markus Probst <markus.probst@posteo.de>
Cc: Damien Le Moal <dlemoal@kernel.org>,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] Power on ata ports defined in ACPI before probing ports
Date: Thu, 9 Oct 2025 13:41:49 +0200 [thread overview]
Message-ID: <aOeffbuAIxeuimHC@ryzen> (raw)
In-Reply-To: <64a9f3b1d96ac90efbf5879b7663e0152f38b167.camel@posteo.de>
On Mon, Oct 06, 2025 at 03:50:35PM +0000, Markus Probst wrote:
> On Mon, 2025-10-06 at 17:07 +0200, Niklas Cassel wrote:
> > On Sun, Oct 05, 2025 at 07:06:07PM +0000, Markus Probst wrote:
> > > some devices (for example every synology nas with "deep sleep"
> > > support)
> >
> > Some devices?
> > I assume you mean the HBA and not the devices connected to the HBA.
> Embedded devices. There are 2 connectors to a sata disk. One for the
> data connection to the sata controller. Another one to the power supply
> (so the disk gets the power). This patch tells the power supply for the
> disk to give the disk power (if one is defined in acpi).
Ok, please add this to the commit message.
> Synology produces NAS devices. Some of those devices have something
> they call "deep sleep". In this case, if a sata disk gets power is
> controlled by a gpio and is *off by default*.
Please add this to the commit message.
We already have DevSleep, which is a feature implemented in the SATA
specification, where the HBA asserts a signal (DEVSLP, which on some
boards is just a GPIO), while this signal is asserted the device may
completely power down its PHY, and it may also choose to power down
other subsystems, as long as it can meet the exit latency requirements.
(The device should exit DevSleep when the DEVSLP signal is deasserted.)
For more info see e.g.
https://sata-io.org/sites/default/files/documents/SATADevSleep-and-RTD3-WP-037-20120102-2_final.pdf
Since this patch implements something similar to DevSleep, but rather,
IIUC, for the SATA power itself?
How is SATA power supplied tied to a port in ACPI? If you have a desktop
you have a PSU, and don't really know which supply is for which port.
In SATA, we also have PxSCTL (SRC2: SControl) where we can completely
disable a port and port the PHY in offline mode, see:
https://github.com/torvalds/linux/blob/v6.17/drivers/ata/libata-sata.c#L415-L419
So, considering how many ways we already have to disable/power off a port,
you might understand why I think it is extra important that you document
exactly how, and why we need yet another way to disable/power on/off a port.
Kind regards,
Niklas
next prev parent reply other threads:[~2025-10-09 11:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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 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
2025-10-09 11:24 ` [PATCH v2 1/2] scsi: sd: Add manage_restart device attribute to scsi_disk Markus Probst
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aOeffbuAIxeuimHC@ryzen \
--to=cassel@kernel.org \
--cc=James.Bottomley@hansenpartnership.com \
--cc=dlemoal@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=markus.probst@posteo.de \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox