]> git.baikalelectronics.ru Git - kernel.git/commit
ata: libahci: Adjust behavior when StorageD3Enable _DSD is set
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 12 Nov 2021 20:15:39 +0000 (14:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Dec 2021 08:04:40 +0000 (09:04 +0100)
commit6e7c8a1f37510fc25b6a66b7eb415c78e5d6bdf0
tree771a48d1eb66835426706cdbdc4273327a58563f
parentd1d4881a34490858e8cb51d654471892b8573b48
ata: libahci: Adjust behavior when StorageD3Enable _DSD is set

[ Upstream commit 635088007efb364ec7dff422d10be1322a954c86 ]

The StorageD3Enable _DSD is used for the vendor to indicate that the disk
should be opted into or out of a different behavior based upon the platform
design.

For AMD's Renoir and Green Sardine platforms it's important that any
attached SATA storage has transitioned into DevSlp when s2idle is used.

If the disk is left in active/partial/slumber, then the system is not able
to resume properly.

When the StorageD3Enable _DSD is detected, check the system is using s2idle
and DevSlp is enabled and if so explicitly wait long enough for the disk to
enter DevSlp.

Cc: Nehal-bakulchandra Shah <Nehal-bakulchandra.Shah@amd.com>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214091
Link: https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/power-management-for-storage-hardware-devices-intro
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/libahci.c