Skip to content

Adjust all AMD audio drivers to use AMD_NODE

Mario Limonciello linux-sound lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/misc branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7x86/amd_node: Add a helper for use with `read_poll_timeout`arch/x86/include/asm/amd_node.h+11 -00 replies
2/7ASoC: amd: acp: rembrandt: Use AMD_NODEsound/soc/amd/acp/Kconfig sound/soc/amd/acp/acp-rembrandt.c+15 -140 replies
3/7ASoC: amd: acp: acp70: Use AMD_NODEsound/soc/amd/acp/Kconfig sound/soc/amd/acp/acp70.c sound/soc/sof/amd/pci-acp70.c+5 -250 replies
4/7ASoC: amd: acp: acp63: Use AMD_NODEsound/soc/amd/acp/Kconfig sound/soc/amd/acp/acp63.c sound/soc/sof/amd/pci-acp63.c+42 -230 replies
5/7ASoC: SOF: amd: Use AMD_NODEsound/soc/sof/amd/Kconfig sound/soc/sof/amd/acp.c sound/soc/sof/amd/acp.h +3 more+17 -440 replies
6/7ASoC: amd: acp: Drop local symbols for smn read/writesound/soc/amd/acp/acp-legacy-common.c sound/soc/amd/acp/amd.h+0 -210 replies
7/7ASoC: SOF: amd: Drop host bridge ID from structsound/soc/sof/amd/acp.h+0 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Adjust all AMD audio drivers to use AMD_NODE

From: Mario Limonciello <[email protected]>

The various AMD audio drivers have self contained implementations for SMN router communication that require hardcoding the bridge ID.

These implementations also don't prevent race conditions with other drivers performing SMN communication.

A new centralized driver AMD_NODE is introduced and all drivers in the kernel should use this instead. Adjust all AMD audio drivers to use it.
Mario Limonciello (7):
x86/amd_node: Add a helper for use with read_poll_timeout
ASoC: amd: acp: rembrandt: Use AMD_NODE
ASoC: amd: acp: acp70: Use AMD_NODE
ASoC: amd: acp: acp63: Use AMD_NODE
ASoC: SOF: amd: Use AMD_NODE
ASoC: amd: acp: Drop local symbols for smn read/write
ASoC: SOF: amd: Drop host bridge ID from struct

 arch/x86/include/asm/amd_node.h       | 11 +++++
 sound/soc/amd/acp/Kconfig             |  3 ++
 sound/soc/amd/acp/acp-legacy-common.c | 18 --------
 sound/soc/amd/acp/acp-rembrandt.c     | 28 ++++++------
 sound/soc/amd/acp/acp63.c             | 63 +++++++++++++++++----------
 sound/soc/amd/acp/acp70.c             | 28 ++----------
 sound/soc/amd/acp/amd.h               |  3 --
 sound/soc/sof/amd/Kconfig             |  1 +
 sound/soc/sof/amd/acp.c               | 56 +++++++-----------------
 sound/soc/sof/amd/acp.h               |  2 -
 sound/soc/sof/amd/pci-acp63.c         |  1 -
 sound/soc/sof/amd/pci-acp70.c         |  1 -
 sound/soc/sof/amd/pci-rmb.c           |  1 -
 sound/soc/sof/amd/pci-rn.c            |  1 -
 sound/soc/sof/amd/pci-vangogh.c       |  1 -
 15 files changed, 90 insertions(+), 128 deletions(-)
Signature · 1 line
2.43.0