Skip to contentSkip to conversation

Adjust all AMD audio drivers to use AMD_NODE

PATCH Applied Mario Limonciello 4 participants 17 messages Feb 17, 2025 – Mar 19, 2025

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover 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
#1 lore raw

PATCH 1/7 x86/amd_node: Add a helper for use with `read_poll_timeout`

From: Mario Limonciello <[email protected]>

Some of the ACP drivers will poll registers through SMN using read_poll_timeout which requires returning the result of the register read as the argument.

Add a helper to do just that.

Tested by: Venkata Prasad Potturu <[email protected]>

---
 arch/x86/include/asm/amd_node.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/x86/include/asm/amd_node.h +11 -0
index 113ad3e8ee40a..9f3f613366f7d 100644
@@ -33,4 +33,15 @@ static inline u16 amd_num_nodes(void)
 int __must_check amd_smn_read(u16 node, u32 address, u32 *value);
 int __must_check amd_smn_write(u16 node, u32 address, u32 value);
 
+/* helper for use with read_poll_timeout */
+static inline int smn_read_register(u32 reg)
+{
+	int data, rc;
+
+	rc = amd_smn_read(0, reg, &data);
+	if (rc)
+		return rc;
+
+	return data;
+}
 #endif /*_ASM_X86_AMD_NODE_H_*/
Signature · 1 line
2.43.0
#2 lore raw

[tip: x86/misc] x86/amd_node: Add a smn_read_register() helper

The following commit has been merged into the x86/misc branch of tip:

The following commit has been merged into the x86/misc branch of tip:

Commit-ID:     c893ee3f95f16fcb98da934d61483d0b7d8ed568
Gitweb:        https://git.kernel.org/tip/c893ee3f95f16fcb98da934d61483d0b7d8ed568
Author:        Mario Limonciello <[email protected]>
AuthorDate:    Mon, 17 Feb 2025 17:17:41 -06:00
Committer:     Borislav Petkov (AMD) <[email protected]>
CommitterDate: Tue, 18 Feb 2025 18:14:29 +01:00

x86/amd_node: Add a smn_read_register() helper

Some of the ACP drivers will poll registers through SMN using read_poll_timeout() which requires returning the result of the register read as the argument.

Add a helper to do just that.

---
 arch/x86/include/asm/amd_node.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/x86/include/asm/amd_node.h +11 -0
index 002c3af..23fe617 100644
@@ -46,4 +46,15 @@ static inline int __must_check amd_smn_hsmp_rdwr(u16 node, u32 address, u32 *val
 }
 #endif /* CONFIG_AMD_NODE */
 
+/* helper for use with read_poll_timeout */
+static inline int smn_read_register(u32 reg)
+{
+	int data, rc;
+
+	rc = amd_smn_read(0, reg, &data);
+	if (rc)
+		return rc;
+
+	return data;
+}
 #endif /*_ASM_X86_AMD_NODE_H_*/
#3 lore raw

[tip: x86/core] x86/amd_node: Add a smn_read_register() helper

In reply to Mario Limonciello
The following commit has been merged into the x86/core branch of tip:

The following commit has been merged into the x86/core branch of tip:

Commit-ID:     4476e7f81467b2c1b0aea7383e657181a3f9e652
Gitweb:        https://git.kernel.org/tip/4476e7f81467b2c1b0aea7383e657181a3f9e652
Author:        Mario Limonciello <[email protected]>
AuthorDate:    Mon, 17 Feb 2025 17:17:41 -06:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Wed, 19 Mar 2025 11:18:48 +01:00

x86/amd_node: Add a smn_read_register() helper

Some of the ACP drivers will poll registers through SMN using read_poll_timeout() which requires returning the result of the register read as the argument.

Add a helper to do just that.

---
 arch/x86/include/asm/amd_node.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/x86/include/asm/amd_node.h +11 -0
index 002c3af..23fe617 100644
@@ -46,4 +46,15 @@ static inline int __must_check amd_smn_hsmp_rdwr(u16 node, u32 address, u32 *val
 }
 #endif /* CONFIG_AMD_NODE */
 
+/* helper for use with read_poll_timeout */
+static inline int smn_read_register(u32 reg)
+{
+	int data, rc;
+
+	rc = amd_smn_read(0, reg, &data);
+	if (rc)
+		return rc;
+
+	return data;
+}
 #endif /*_ASM_X86_AMD_NODE_H_*/
#4 lore raw

PATCH 2/7 ASoC: amd: acp: rembrandt: Use AMD_NODE

In reply to Mario Limonciello

From: Mario Limonciello <[email protected]>

All consumers of SMN in the kernel should be doing it through the functions provided by AMD_NODE.

Stop using the local SMN read/write symbols and switch to the AMD_NODE provided ones.

Tested by: Venkata Prasad Potturu <[email protected]>

---
 sound/soc/amd/acp/Kconfig         |  1 +
 sound/soc/amd/acp/acp-rembrandt.c | 28 ++++++++++++++--------------
 2 files changed, 15 insertions(+), 14 deletions(-)
sound/soc/amd/acp/Kconfig +1 -0
index 53793ec7c7b49..2bb78a748c79d 100644
@@ -58,6 +58,7 @@ config SND_AMD_ASOC_REMBRANDT
 	select SND_SOC_AMD_ACP_I2S
 	select SND_SOC_AMD_ACP_PDM
 	select SND_SOC_AMD_ACP_LEGACY_COMMON
+	depends on AMD_NODE
 	depends on X86 && PCI
 	help
 	  This option enables Rembrandt I2S support on AMD platform.
sound/soc/amd/acp/acp-rembrandt.c +14 -14
index 2648256fa129c..e727754a8231c 100644
@@ -22,6 +22,8 @@
 #include <linux/pci.h>
 #include <linux/pm_runtime.h>
 
+#include <asm/amd_node.h>
+
 #include "amd.h"
 #include "../mach-config.h"
 #include "acp-mach.h"
@@ -31,7 +33,6 @@
 #define MP1_C2PMSG_69 0x3B10A14
 #define MP1_C2PMSG_85 0x3B10A54
 #define MP1_C2PMSG_93 0x3B10A74
-#define HOST_BRIDGE_ID 0x14B5
 
 static struct acp_resource rsrc = {
 	.offset = 0,
@@ -166,21 +167,20 @@ static struct snd_soc_dai_driver acp_rmb_dai[] = {
 
 static int acp6x_master_clock_generate(struct device *dev)
 {
-	int data = 0;
-	struct pci_dev *smn_dev;
+	int data, rc;
 
-	smn_dev = pci_get_device(PCI_VENDOR_ID_AMD, HOST_BRIDGE_ID, NULL);
-	if (!smn_dev) {
-		dev_err(dev, "Failed to get host bridge device\n");
-		return -ENODEV;
-	}
+	rc = amd_smn_write(0, MP1_C2PMSG_93, 0);
+	if (rc)
+		return rc;
+	rc = amd_smn_write(0, MP1_C2PMSG_85, 0xC4);
+	if (rc)
+		return rc;
+	rc = amd_smn_write(0, MP1_C2PMSG_69, 0x4);
+	if (rc)
+		return rc;
 
-	smn_write(smn_dev, MP1_C2PMSG_93, 0);
-	smn_write(smn_dev, MP1_C2PMSG_85, 0xC4);
-	smn_write(smn_dev, MP1_C2PMSG_69, 0x4);
-	read_poll_timeout(smn_read, data, data, DELAY_US,
-			  ACP_TIMEOUT, false, smn_dev, MP1_C2PMSG_93);
-	return 0;
+	return read_poll_timeout(smn_read_register, data, data > 0, DELAY_US,
+				 ACP_TIMEOUT, false, MP1_C2PMSG_93);
 }
 
 static int rembrandt_audio_probe(struct platform_device *pdev)
Signature · 1 line
2.43.0
#5 lore raw

PATCH 3/7 ASoC: amd: acp: acp70: Use AMD_NODE

In reply to Mario Limonciello

From: Mario Limonciello <[email protected]>

All consumers of SMN in the kernel should be doing it through the functions provided by AMD_NODE.

Stop using the local SMN read/write symbols and switch to the AMD_NODE provided ones.

Tested by: Venkata Prasad Potturu <[email protected]>

---
 sound/soc/amd/acp/Kconfig     |  1 +
 sound/soc/amd/acp/acp70.c     | 28 ++++------------------------
 sound/soc/sof/amd/pci-acp70.c |  1 -
 3 files changed, 5 insertions(+), 25 deletions(-)
sound/soc/amd/acp/Kconfig +1 -0
index 2bb78a748c79d..a649f49864059 100644
@@ -82,6 +82,7 @@ config SND_AMD_ASOC_ACP70
 	tristate "AMD ACP ASOC Acp7.0 Support"
 	depends on X86 && PCI
 	depends on ACPI
+	depends on AMD_NODE
 	select SND_SOC_AMD_ACP_PCM
 	select SND_SOC_AMD_ACP_I2S
 	select SND_SOC_AMD_ACP_PDM
sound/soc/amd/acp/acp70.c +4 -24
index 9e23729fd1a71..ef3f6504bc7f5 100644
@@ -23,6 +23,8 @@
 #include "amd.h"
 #include "acp-mach.h"
 
+#include <asm/amd_node.h>
+
 #define DRV_NAME "acp_asoc_acp70"
 
 #define CLK7_CLK0_DFS_CNTL_N1		0X0006C1A4
@@ -137,29 +139,6 @@ static struct snd_soc_dai_driver acp70_dai[] = {
 },
 };
 
-static int acp70_i2s_master_clock_generate(struct acp_dev_data *adata)
-{
-	struct pci_dev *smn_dev;
-	u32 device_id;
-
-	if (adata->acp_rev == ACP70_PCI_ID)
-		device_id = 0x1507;
-	else if (adata->acp_rev == ACP71_PCI_ID)
-		device_id = 0x1122;
-	else
-		return -ENODEV;
-
-	smn_dev = pci_get_device(PCI_VENDOR_ID_AMD, device_id, NULL);
-
-	if (!smn_dev)
-		return -ENODEV;
-
-	/* Set clk7 DFS clock divider register value to get mclk as 196.608MHz*/
-	smn_write(smn_dev, CLK7_CLK0_DFS_CNTL_N1, CLK0_DIVIDER);
-
-	return 0;
-}
-
 static int acp_acp70_audio_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
@@ -215,7 +194,8 @@ static int acp_acp70_audio_probe(struct platform_device *pdev)
 
 	dev_set_drvdata(dev, adata);
 
-	ret = acp70_i2s_master_clock_generate(adata);
+	/* Set clk7 DFS clock divider register value to get mclk as 196.608MHz*/
+	ret = amd_smn_write(0, CLK7_CLK0_DFS_CNTL_N1, CLK0_DIVIDER);
 	if (ret) {
 		dev_err(&pdev->dev, "Failed to set I2S master clock as 196.608MHz\n");
 		return ret;
sound/soc/sof/amd/pci-acp70.c +0 -1
index 3647ec992e95f..d886bdf3a1128 100644
@@ -28,7 +28,6 @@
 #define ACP70_REG_END			0x125C000
 
 static const struct sof_amd_acp_desc acp70_chip_info = {
-	.host_bridge_id = HOST_BRIDGE_ACP70,
 	.pgfsm_base	= ACP70_PGFSM_BASE,
 	.ext_intr_enb = ACP70_EXTERNAL_INTR_ENB,
 	.ext_intr_cntl = ACP70_EXTERNAL_INTR_CNTL,
Signature · 1 line
2.43.0
#6 lore raw

PATCH 4/7 ASoC: amd: acp: acp63: Use AMD_NODE

In reply to Mario Limonciello

From: Mario Limonciello <[email protected]>

All consumers of SMN in the kernel should be doing it through the functions provided by AMD_NODE.

Stop using the local SMN read/write symbols and switch to the AMD_NODE provided ones.

Tested by: Venkata Prasad Potturu <[email protected]>

---
 sound/soc/amd/acp/Kconfig     |  1 +
 sound/soc/amd/acp/acp63.c     | 63 +++++++++++++++++++++++------------
 sound/soc/sof/amd/pci-acp63.c |  1 -
 3 files changed, 42 insertions(+), 23 deletions(-)
sound/soc/amd/acp/Kconfig +1 -0
index a649f49864059..157c124570c88 100644
@@ -69,6 +69,7 @@ config SND_AMD_ASOC_ACP63
 	tristate "AMD ACP ASOC ACP6.3 Support"
 	depends on X86 && PCI
 	depends on ACPI
+	depends on AMD_NODE
 	select SND_SOC_AMD_ACP_PCM
 	select SND_SOC_AMD_ACP_I2S
 	select SND_SOC_AMD_ACP_PDM
sound/soc/amd/acp/acp63.c +41 -22

84 lines not on this page · raw message

sound/soc/sof/amd/pci-acp63.c +0 -1
index ffe7c755d655e..13aa87cdeeac3 100644
@@ -28,7 +28,6 @@
 #define ACP6x_REG_END			0x125C000
 
 static const struct sof_amd_acp_desc acp63_chip_info = {
-	.host_bridge_id = HOST_BRIDGE_ACP63,
 	.pgfsm_base	= ACP6X_PGFSM_BASE,
 	.ext_intr_enb = ACP6X_EXTERNAL_INTR_ENB,
 	.ext_intr_cntl = ACP6X_EXTERNAL_INTR_CNTL,
Signature · 1 line
2.43.0
#7 lore raw

PATCH 5/7 ASoC: SOF: amd: Use AMD_NODE

In reply to Mario Limonciello

From: Mario Limonciello <[email protected]>

All consumers of SMN in the kernel should be doing it through the functions provided by AMD_NODE.

Stop using the local SMN read/write symbols and switch to the AMD_NODE provided ones.

Tested by: Venkata Prasad Potturu <[email protected]>

---
 sound/soc/sof/amd/Kconfig       |  1 +
 sound/soc/sof/amd/acp.c         | 56 ++++++++++-----------------------
 sound/soc/sof/amd/acp.h         |  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 -
 6 files changed, 17 insertions(+), 44 deletions(-)
sound/soc/sof/amd/Kconfig +1 -0
index f4cafe8010178..28216c8c1cf97 100644
@@ -25,6 +25,7 @@ config SND_SOC_SOF_AMD_COMMON
 	select SND_SOC_SOF_ACP_PROBES
 	select SND_SOC_ACPI_AMD_MATCH
 	select SND_SOC_ACPI if ACPI
+	depends on AMD_NODE
 	help
 	  This option is not user-selectable but automatically handled by
 	  'select' statements at a higher level
sound/soc/sof/amd/acp.c +16 -40

122 lines not on this page · raw message

sound/soc/sof/amd/acp.h +0 -1
index 2a19d82d62002..4bfb05d93b25a 100644
@@ -256,7 +256,6 @@ struct acp_dev_data {
 	struct dma_descriptor dscr_info[ACP_MAX_DESC];
 	struct acp_dsp_stream stream_buf[ACP_MAX_STREAM];
 	struct acp_dsp_stream *dtrace_stream;
-	struct pci_dev *smn_dev;
 	struct acp_dsp_stream *probe_stream;
 	bool enable_fw_debug;
 	bool is_dram_in_use;
sound/soc/sof/amd/pci-rmb.c +0 -1
index cbb4d52826644..0233b6ba2d2e2 100644
@@ -28,7 +28,6 @@
 #define ACP6X_FUTURE_REG_ACLK_0	0x1854
 
 static const struct sof_amd_acp_desc rembrandt_chip_info = {
-	.host_bridge_id = HOST_BRIDGE_RMB,
 	.pgfsm_base	= ACP6X_PGFSM_BASE,
 	.ext_intr_stat	= ACP6X_EXT_INTR_STAT,
 	.dsp_intr_base	= ACP6X_DSP_SW_INTR_BASE,
sound/soc/sof/amd/pci-rn.c +0 -1
index b7d558cb1fd7a..4a36029a00dec 100644
@@ -28,7 +28,6 @@
 #define ACP3X_FUTURE_REG_ACLK_0	0x1860
 
 static const struct sof_amd_acp_desc renoir_chip_info = {
-	.host_bridge_id = HOST_BRIDGE_CZN,
 	.pgfsm_base	= ACP3X_PGFSM_BASE,
 	.ext_intr_stat	= ACP3X_EXT_INTR_STAT,
 	.dsp_intr_base	= ACP3X_DSP_SW_INTR_BASE,
sound/soc/sof/amd/pci-vangogh.c +0 -1
index 28f2d4050a676..caf9e2b2e4638 100644
@@ -25,7 +25,6 @@
 
 static const struct sof_amd_acp_desc vangogh_chip_info = {
 	.name		= "vangogh",
-	.host_bridge_id = HOST_BRIDGE_VGH,
 	.pgfsm_base	= ACP5X_PGFSM_BASE,
 	.ext_intr_stat	= ACP5X_EXT_INTR_STAT,
 	.dsp_intr_base	= ACP5X_DSP_SW_INTR_BASE,
Signature · 1 line
2.43.0
#8 lore raw

PATCH 6/7 ASoC: amd: acp: Drop local symbols for smn read/write

In reply to Mario Limonciello

From: Mario Limonciello <[email protected]>

As the ACP drivers use the AMD_NODE provided symbols, the local ones are no longer necessary.

Tested by: Venkata Prasad Potturu <[email protected]>

---
 sound/soc/amd/acp/acp-legacy-common.c | 18 ------------------
 sound/soc/amd/acp/amd.h               |  3 ---
 2 files changed, 21 deletions(-)
sound/soc/amd/acp/acp-legacy-common.c +0 -18
index 7acc7ed2e8cc9..89f5cda18a23e 100644
@@ -345,24 +345,6 @@ int acp_deinit(struct acp_chip_info *chip)
 }
 EXPORT_SYMBOL_NS_GPL(acp_deinit, "SND_SOC_ACP_COMMON");
 
-int smn_write(struct pci_dev *dev, u32 smn_addr, u32 data)
-{
-	pci_write_config_dword(dev, 0x60, smn_addr);
-	pci_write_config_dword(dev, 0x64, data);
-	return 0;
-}
-EXPORT_SYMBOL_NS_GPL(smn_write, "SND_SOC_ACP_COMMON");
-
-int smn_read(struct pci_dev *dev, u32 smn_addr)
-{
-	u32 data;
-
-	pci_write_config_dword(dev, 0x60, smn_addr);
-	pci_read_config_dword(dev, 0x64, &data);
-	return data;
-}
-EXPORT_SYMBOL_NS_GPL(smn_read, "SND_SOC_ACP_COMMON");
-
 static void check_acp3x_config(struct acp_chip_info *chip)
 {
 	u32 val;
sound/soc/amd/acp/amd.h +0 -3
index ee69dfb10cb86..c921bcabbcec6 100644
@@ -235,9 +235,6 @@ int acp_platform_unregister(struct device *dev);
 
 int acp_machine_select(struct acp_dev_data *adata);
 
-int smn_read(struct pci_dev *dev, u32 smn_addr);
-int smn_write(struct pci_dev *dev, u32 smn_addr, u32 data);
-
 int acp_init(struct acp_chip_info *chip);
 int acp_deinit(struct acp_chip_info *chip);
 void acp_enable_interrupts(struct acp_dev_data *adata);
Signature · 1 line
2.43.0
#9 lore raw

PATCH 7/7 ASoC: SOF: amd: Drop host bridge ID from struct

In reply to Mario Limonciello

From: Mario Limonciello <[email protected]>

host_bridge_id is no longer used by any of the SoCs as they all use AMD_NODE to communicate with SMN routers.

---
 sound/soc/sof/amd/acp.h | 1 -
 1 file changed, 1 deletion(-)
sound/soc/sof/amd/acp.h +0 -1
index 4bfb05d93b25a..d084db34eed8d 100644
@@ -197,7 +197,6 @@ struct acp_dsp_stream {
 
 struct sof_amd_acp_desc {
 	const char *name;
-	unsigned int host_bridge_id;
 	u32 pgfsm_base;
 	u32 ext_intr_enb;
 	u32 ext_intr_cntl;
Signature · 1 line
2.43.0
maintainer
#10 lore raw
In reply to Mario Limonciello
Quoted 11 lines · Mario Limonciello

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

What's the thinking for merging this - the SMN driver is in arch/x86 but the bulk of the changes are in ASoC? My first thought is that it's mostly ASoC stuff, are the x86 people OK with me picking up the arch patch (I'd put it on a branch anyway so if needed we can do a merge later)?

#11 lore raw
Quoted 14 lines · Mark Brown
Quoted 11 lines · Mario Limonciello

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

Quoted 5 lines

What's the thinking for merging this - the SMN driver is in arch/x86 but the bulk of the changes are in ASoC? My first thought is that it's mostly ASoC stuff, are the x86 people OK with me picking up the arch patch (I'd put it on a branch anyway so if needed we can do a merge later)?

Probably need Boris' perspective here.

There are some patches that just landed to tip/tip.git today which I believe the first patch needs to rebase on top of.

My thought is maybe:
1) We can get an immutable branch from tip/tip.git with the conflicting changes.

2) An Ack from x86 maintainers on the first patch.

3) ASoC merges immutable branch and takes the series through ASoC tree.

maintainer
#12 lore raw
Quoted 3 lines · Mario Limonciello

My thought is maybe:
1) We can get an immutable branch from tip/tip.git with the conflicting changes.

I can very easisy do that. Just holler.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
#13 lore raw
Quoted 7 lines · Borislav Petkov
Quoted 3 lines · Mario Limonciello

My thought is maybe:
1) We can get an immutable branch from tip/tip.git with the conflicting changes.

I can very easisy do that. Just holler.

Yeah; please get that ready and I'll rebase the series and send out a v2 on that branch.

maintainer
#16 lore raw

Re: (subset) [PATCH 0/7] Adjust all AMD audio drivers to use AMD_NODE

In reply to Mario Limonciello
Quoted 18 lines · Mario Limonciello

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

Quoted 1 line

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[2/7] ASoC: amd: acp: rembrandt: Use AMD_NODE

      commit: e211adcf36d0ccdd31af7398af4725a47d74b3d4
[3/7] ASoC: amd: acp: acp70: Use AMD_NODE
      commit: 135c6af1cac5465529469700d16c0c44b24ce317
[4/7] ASoC: amd: acp: acp63: Use AMD_NODE
      commit: 8f969537149d672d40a0e75a83f39451a5402780
[5/7] ASoC: SOF: amd: Use AMD_NODE
      commit: f120cf33d2325fd95d063eccbff2e86ffc7f493a
[6/7] ASoC: amd: acp: Drop local symbols for smn read/write
      commit: 40d05927830227f2a1701c61e8bbe65287a03490
[7/7] ASoC: SOF: amd: Drop host bridge ID from struct
      commit: a261d77fec147b9974aacca8ae8f0693feede838

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark