All of lore.kernel.org
 help / color / mirror / Atom feed
* [alsa-devel] [PATCH 00/21] Enable BACO for power savings (v2)
@ 2019-10-28 21:41 ` Alex Deucher
  0 siblings, 0 replies; 78+ messages in thread
From: Alex Deucher @ 2019-10-28 21:41 UTC (permalink / raw)
  To: amd-gfx, alsa-devel, tiwai, lukas; +Cc: Alex Deucher

This patch set enables BACO (Bus Active Chip Off) for
power savings on VI+ asics.  Similar to PowerXpress
and Hybrid Graphics (PX/HG) laptops, we can disable GPUs
at runtime when they are not in use is they support
BACO.  The runtime pm code in amdgpu was originally
developed for PX/HG laptops, so it was pretty entangled
with the vga_switcheroo and ACPI code.  Since the GPU
contains an audio codec for HDMI/DP, there is some
interaction with the hda driver.  I am by no means an
expert on alsa, so any advice on those patches is much
appreciated.  I had to enable runtime pm on the hda
device to allow the GPU to enter runtime pm because
they are linked.

These patches depend on the clean patches and CI/VI
BACO patches I sent out earlier today.

The full tree can be found here:
https://cgit.freedesktop.org/~agd5f/linux/log/?h=baco

TODO:
- Turn off runtime pm when KFD is active
- Make sure audio still works
- Make sure PX/HG still works

v2:
- Split whitespace changes from baco callback addition
- Fix pci ref counting in px/hg handling in hda driver
- Handle CONFIG_ACPI properly
- Split adding new hda pci ids from adding runpm flag

Alex Deucher (21):
  drm/amdgpu: add asic callback for BACO support
  drm/amdgpu/soc15: move struct definition around to align with other
    soc15 asics
  drm/amdgpu: add supports_baco callback for soc15 asics. (v2)
  drm/amdgpu: add supports_baco callback for SI asics.
  drm/amdgpu: add supports_baco callback for CIK asics.
  drm/amdgpu: add supports_baco callback for VI asics.
  drm/amdgpu: add supports_baco callback for NV asics.
  drm/amdgpu: add a amdgpu_device_supports_baco helper
  drm/amdgpu: rename amdgpu_device_is_px to amdgpu_device_supports_boco
    (v2)
  drm/amdgpu: add additional boco checks to runtime suspend/resume (v2)
  drm/amdgpu: split swSMU baco_reset into enter and exit
  drm/amdgpu: add helpers for baco entry and exit
  drm/amdgpu: add baco support to runtime suspend/resume
  drm/amdgpu: start to disentangle boco from runtime pm
  drm/amdgpu: disentangle runtime pm and vga_switcheroo
  drm/amdgpu: enable runtime pm on BACO capable boards if runpm=1
  drm/amdgpu/runpm: enable runpm on baco capable VI+ asics
  ALSA: hda/hdmi - fix vgaswitcheroo detection for AMD
  ALSA: hda/hdmi - Add new pci ids for AMD GPU display audio
  ALSA: hda/hdmi - enable runtime pm for newer AMD display audio
  ALSA: hda/hdmi - enable automatic runtime pm for AMD HDMI codecs by
    default

 drivers/gpu/drm/amd/amdgpu/amdgpu.h           |  12 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    | 106 ++++++++++++++++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  63 ++++++-----
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c       |  20 +++-
 drivers/gpu/drm/amd/amdgpu/cik.c              |  18 +++
 drivers/gpu/drm/amd/amdgpu/nv.c               |  18 ++-
 drivers/gpu/drm/amd/amdgpu/si.c               |   6 +
 drivers/gpu/drm/amd/amdgpu/soc15.c            |  36 +++++-
 drivers/gpu/drm/amd/amdgpu/vi.c               |  22 ++++
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c    |  20 +++-
 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c  |   3 +-
 .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h    |   6 +-
 drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h |   3 +-
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c    |   3 +-
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c     |   9 +-
 drivers/gpu/drm/amd/powerplay/vega20_ppt.c    |   3 +-
 sound/pci/hda/hda_intel.c                     |  84 +++++++++++++-
 sound/pci/hda/patch_hdmi.c                    |   1 +
 18 files changed, 371 insertions(+), 62 deletions(-)

-- 
2.23.0

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2019-10-29  5:52 UTC | newest]

Thread overview: 78+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28 21:41 [alsa-devel] [PATCH 00/21] Enable BACO for power savings (v2) Alex Deucher
2019-10-28 21:41 ` Alex Deucher
2019-10-28 21:41 ` Alex Deucher
2019-10-28 21:41 ` [alsa-devel] [PATCH 01/21] drm/amdgpu: add asic callback for BACO support Alex Deucher
2019-10-28 21:41   ` Alex Deucher
2019-10-28 21:41   ` Alex Deucher
2019-10-28 21:41 ` [alsa-devel] [PATCH 02/21] drm/amdgpu/soc15: move struct definition around to align with other soc15 asics Alex Deucher
2019-10-28 21:41   ` Alex Deucher
2019-10-28 21:41   ` Alex Deucher
2019-10-28 21:41 ` [alsa-devel] [PATCH 03/21] drm/amdgpu: add supports_baco callback for soc15 asics. (v2) Alex Deucher
2019-10-28 21:41   ` Alex Deucher
2019-10-28 21:41   ` Alex Deucher
2019-10-28 21:41 ` [alsa-devel] [PATCH 04/21] drm/amdgpu: add supports_baco callback for SI asics Alex Deucher
2019-10-28 21:41   ` Alex Deucher
2019-10-28 21:41   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 05/21] drm/amdgpu: add supports_baco callback for CIK asics Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 06/21] drm/amdgpu: add supports_baco callback for VI asics Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 07/21] drm/amdgpu: add supports_baco callback for NV asics Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 08/21] drm/amdgpu: add a amdgpu_device_supports_baco helper Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 09/21] drm/amdgpu: rename amdgpu_device_is_px to amdgpu_device_supports_boco (v2) Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 10/21] drm/amdgpu: add additional boco checks to runtime suspend/resume (v2) Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 11/21] drm/amdgpu: split swSMU baco_reset into enter and exit Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 12/21] drm/amdgpu: add helpers for baco entry " Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 13/21] drm/amdgpu: add baco support to runtime suspend/resume Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 14/21] drm/amdgpu: start to disentangle boco from runtime pm Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 15/21] drm/amdgpu: disentangle runtime pm and vga_switcheroo Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 16/21] drm/amdgpu: enable runtime pm on BACO capable boards if runpm=1 Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 17/21] drm/amdgpu/runpm: enable runpm on baco capable VI+ asics Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42 ` [alsa-devel] [PATCH 18/21] ALSA: hda/hdmi - fix vgaswitcheroo detection for AMD Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-29  5:49   ` [alsa-devel] " Takashi Iwai
2019-10-29  5:49     ` Takashi Iwai
2019-10-29  5:49     ` Takashi Iwai
2019-10-28 21:42 ` [alsa-devel] [PATCH 19/21] ALSA: hda/hdmi - Add new pci ids for AMD GPU display audio Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-29  5:49   ` [alsa-devel] " Takashi Iwai
2019-10-29  5:49     ` Takashi Iwai
2019-10-29  5:49     ` Takashi Iwai
2019-10-28 21:42 ` [alsa-devel] [PATCH 20/21] ALSA: hda/hdmi - enable runtime pm for newer AMD " Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-29  5:50   ` [alsa-devel] " Takashi Iwai
2019-10-29  5:50     ` Takashi Iwai
2019-10-29  5:50     ` Takashi Iwai
2019-10-28 21:42 ` [alsa-devel] [PATCH 21/21] ALSA: hda/hdmi - enable automatic runtime pm for AMD HDMI codecs by default Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-28 21:42   ` Alex Deucher
2019-10-29  5:51   ` [alsa-devel] " Takashi Iwai
2019-10-29  5:51     ` Takashi Iwai
2019-10-29  5:51     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.