Message ID | 20250616175019.3471583-1-superm1@kernel.org |
---|---|
Headers | show
Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E09622877C3; Mon, 16 Jun 2025 17:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750096231; cv=none; b=sr/RaUsViIUr4vYe/iIIuCIGflWG+zrqm98/xBmPNBhCTscYExdt+HVakjUBXrx5VHf4f09iECOV+1MwkTCSCGdJjiSbpU+wha1rxnC40spJxd7+XY4RMwbjTzkDjZoSBawCF6cOnEiokb4P1wDjhy/7pK27AbSDcnE02hcLdtg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750096231; c=relaxed/simple; bh=o+5l+xciKuEuWPJqTjlSbYb3XN4X9RZAkcnaf/XM8Sc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=YMhdi2Kc8kM9OK1vIysA7u/GiGxd4KtWvn1n/WThUeRLjujrjPDeUxCsPM5Rtnb8eNl9Hdl2bq92qIuiKrnw+GWnVH/brq+OVs4eeVnQvCuKjXyglTUg45dipri3hM1nPBFIPTq4XqEI7jJq8hVPEYsxfptpmBaaHTeCMszOUp8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LtsrH6pR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LtsrH6pR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 047BAC4CEEA; Mon, 16 Jun 2025 17:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750096230; bh=o+5l+xciKuEuWPJqTjlSbYb3XN4X9RZAkcnaf/XM8Sc=; h=From:To:Cc:Subject:Date:From; b=LtsrH6pRnwpBx3mTKhdDLzNWFVK6FHY9n5KrT/J4L7oNSgAQP0vYlac0DBOm+oddS puztJhtv+bYpRSJtyAnzDCtVykjqLiWC5OIVn4iIg+bQ9a4BjVTU2226Axo9vTp4hu Th52v5pkg4T3iTPDjC/BYj2UKQAeN4v2CPaiFhZ4LoW1bDa0Gi4DM2VWYMsCYsPgjD YJKVutzkKdCratlVrUJAJSafIVNadv8D1Jg21nGLZ4tW/BtOlxWkMP9bo2Js/Cc58A PDzqTuNDkkKB6nxMXyjS+/O1YwaSUXQ3s6LD7ltBLysTe/TEnJFJMyvRVbDeZjqE3H 7TuV/KMKvHLJA== From: Mario Limonciello <superm1@kernel.org> To: "Rafael J . Wysocki" <rafael@kernel.org>, Alex Deucher <alexander.deucher@amd.com>, Bjorn Helgaas <bhelgaas@google.com> Cc: amd-gfx@lists.freedesktop.org (open list:RADEON and AMDGPU DRM DRIVERS), linux-pm@vger.kernel.org (open list:HIBERNATION (aka Software Suspend, aka swsusp)), linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM), linux-kernel@vger.kernel.org (open list), Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Danilo Krummrich <dakr@kernel.org>, "James E . J . Bottomley" <James.Bottomley@HansenPartnership.com>, "Martin K . Petersen" <martin.petersen@oracle.com>, dri-devel@lists.freedesktop.org (open list:DRM DRIVERS), linux-scsi@vger.kernel.org (open list:SCSI SUBSYSTEM), linux-usb@vger.kernel.org (open list:USB SUBSYSTEM), Mario Limonciello <mario.limonciello@amd.com> Subject: [PATCH v4 0/5] Improvements to S5 power consumption Date: Mon, 16 Jun 2025 12:50:14 -0500 Message-ID: <20250616175019.3471583-1-superm1@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: <linux-pm.vger.kernel.org> List-Subscribe: <mailto:linux-pm+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-pm+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
Series |
Improvements to S5 power consumption
|
expand
|
From: Mario Limonciello <mario.limonciello@amd.com> A variety of issues both in function and in power consumption have been raised as a result of devices not being put into a low power state when the system is powered off. There have been some localized changes[1] to PCI core to help these issues, but they have had various downsides. This series instead tries to use the S4 flow when the system is being powered off. This lines up the behavior with what other operating systems do as well. If for some reason that fails or is not supported, unwind and do the previous S5 flow that will wake all devices and run their shutdown() callbacks. v3->v4: * Fix LKP robot failure * Rebase on v6.16-rc2 Previous submissions [1]: Link: https://lore.kernel.org/linux-pm/CAJZ5v0hrKEJa8Ad7iiAvQ3d_0ysVhzZcXSYc5kkL=6vtseF+bg@mail.gmail.com/T/#m91e4eae868a7405ae579e89b135085f4906225d2 Link: https://lore.kernel.org/linux-pci/20250506041934.1409302-1-superm1@kernel.org/ Link: https://lore.kernel.org/linux-pci/20231213182656.6165-1-mario.limonciello@amd.com/ (v1) Link: https://lore.kernel.org/linux-pm/20250514193406.3998101-1-superm1@kernel.org/ (v2) Link: https://lore.kernel.org/linux-pm/20250609024619.407257-1-superm1@kernel.org/ (v3) Mario Limonciello (5): PM: Use hibernate flows for system power off PCI: Put PCIe ports with downstream devices into D3 at hibernate drm/amd: Avoid evicting resources at S5 scsi: Add PM_EVENT_POWEROFF into suspend callbacks usb: sl811-hcd: Add PM_EVENT_POWEROFF into suspend callbacks drivers/base/power/main.c | 7 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 + drivers/pci/pci-driver.c | 94 ++++++++++++++-------- drivers/scsi/mesh.c | 1 + drivers/scsi/stex.c | 1 + drivers/usb/host/sl811-hcd.c | 1 + include/linux/pm.h | 3 + include/trace/events/power.h | 3 +- kernel/reboot.c | 6 ++ 9 files changed, 86 insertions(+), 34 deletions(-)