* [PATCH 1/5] PCI: add INTEL_HDA_ARL to pci_ids.h
2023-12-04 21:27 [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S Pierre-Louis Bossart
@ 2023-12-04 21:27 ` Pierre-Louis Bossart
2023-12-04 21:27 ` [PATCH 2/5] ALSA: hda: Intel: add HDA_ARL PCI ID support Pierre-Louis Bossart
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Pierre-Louis Bossart @ 2023-12-04 21:27 UTC (permalink / raw)
To: linux-sound
Cc: tiwai, broonie, Pierre-Louis Bossart, Péter Ujfalusi,
Kai Vehmanen
The PCI ID insertion follows the increasing order in the table, but
this hardware follows MTL (MeteorLake).
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
include/linux/pci_ids.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index 275799b5f535..97cc0baad0f4 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -3065,6 +3065,7 @@
#define PCI_DEVICE_ID_INTEL_82443GX_0 0x71a0
#define PCI_DEVICE_ID_INTEL_82443GX_2 0x71a2
#define PCI_DEVICE_ID_INTEL_82372FB_1 0x7601
+#define PCI_DEVICE_ID_INTEL_HDA_ARL 0x7728
#define PCI_DEVICE_ID_INTEL_HDA_RPL_S 0x7a50
#define PCI_DEVICE_ID_INTEL_HDA_ADL_S 0x7ad0
#define PCI_DEVICE_ID_INTEL_HDA_MTL 0x7e28
--
2.39.2
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 2/5] ALSA: hda: Intel: add HDA_ARL PCI ID support
2023-12-04 21:27 [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S Pierre-Louis Bossart
2023-12-04 21:27 ` [PATCH 1/5] PCI: add INTEL_HDA_ARL to pci_ids.h Pierre-Louis Bossart
@ 2023-12-04 21:27 ` Pierre-Louis Bossart
2023-12-04 21:27 ` [PATCH 3/5] ALSA: hda: intel-dspcfg: add filters for ARL-S and ARL Pierre-Louis Bossart
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Pierre-Louis Bossart @ 2023-12-04 21:27 UTC (permalink / raw)
To: linux-sound
Cc: tiwai, broonie, Pierre-Louis Bossart, Péter Ujfalusi,
Kai Vehmanen
Yet another PCI ID.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
sound/pci/hda/hda_intel.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index db90feb49c16..d0ade91ab5ac 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2502,6 +2502,8 @@ static const struct pci_device_id azx_ids[] = {
{ PCI_DEVICE_DATA(INTEL, HDA_LNL_P, AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE) },
/* Arrow Lake-S */
{ PCI_DEVICE_DATA(INTEL, HDA_ARL_S, AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE) },
+ /* Arrow Lake */
+ { PCI_DEVICE_DATA(INTEL, HDA_ARL, AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE) },
/* Apollolake (Broxton-P) */
{ PCI_DEVICE_DATA(INTEL, HDA_APL, AZX_DRIVER_SKL | AZX_DCAPS_INTEL_BROXTON) },
/* Gemini-Lake */
--
2.39.2
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 3/5] ALSA: hda: intel-dspcfg: add filters for ARL-S and ARL
2023-12-04 21:27 [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S Pierre-Louis Bossart
2023-12-04 21:27 ` [PATCH 1/5] PCI: add INTEL_HDA_ARL to pci_ids.h Pierre-Louis Bossart
2023-12-04 21:27 ` [PATCH 2/5] ALSA: hda: Intel: add HDA_ARL PCI ID support Pierre-Louis Bossart
@ 2023-12-04 21:27 ` Pierre-Louis Bossart
2023-12-04 21:27 ` [PATCH 4/5] ASoC: SOF: Intel: pci-mtl: fix ARL-S definitions Pierre-Louis Bossart
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Pierre-Louis Bossart @ 2023-12-04 21:27 UTC (permalink / raw)
To: linux-sound
Cc: tiwai, broonie, Pierre-Louis Bossart, Péter Ujfalusi,
Kai Vehmanen
Same usual filters, SOF is required for DMIC and/or SoundWire support.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
sound/hda/intel-dsp-config.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sound/hda/intel-dsp-config.c b/sound/hda/intel-dsp-config.c
index 756fa0aa69bb..6a384b922e4f 100644
--- a/sound/hda/intel-dsp-config.c
+++ b/sound/hda/intel-dsp-config.c
@@ -521,6 +521,16 @@ static const struct config_entry config_table[] = {
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
.device = PCI_DEVICE_ID_INTEL_HDA_MTL,
},
+ /* ArrowLake-S */
+ {
+ .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
+ .device = PCI_DEVICE_ID_INTEL_HDA_ARL_S,
+ },
+ /* ArrowLake */
+ {
+ .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
+ .device = PCI_DEVICE_ID_INTEL_HDA_ARL,
+ },
#endif
/* Lunar Lake */
--
2.39.2
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 4/5] ASoC: SOF: Intel: pci-mtl: fix ARL-S definitions
2023-12-04 21:27 [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S Pierre-Louis Bossart
` (2 preceding siblings ...)
2023-12-04 21:27 ` [PATCH 3/5] ALSA: hda: intel-dspcfg: add filters for ARL-S and ARL Pierre-Louis Bossart
@ 2023-12-04 21:27 ` Pierre-Louis Bossart
2023-12-04 21:27 ` [PATCH 5/5] ASoC: SOF: Intel: pci-mtl: add HDA_ARL PCI support Pierre-Louis Bossart
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Pierre-Louis Bossart @ 2023-12-04 21:27 UTC (permalink / raw)
To: linux-sound
Cc: tiwai, broonie, Pierre-Louis Bossart, Péter Ujfalusi,
Kai Vehmanen
The initial copy/paste from MTL was incorrect, the hardware is
different and requires different descriptors along with a dedicated
firmware binary.
Fixes: 3851831f529e ("ASoC: SOF: Intel: pci-mtl: use ARL specific firmware definitions")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
sound/soc/sof/intel/hda.h | 1 +
sound/soc/sof/intel/mtl.c | 28 ++++++++++++++++++++++++++++
sound/soc/sof/intel/pci-mtl.c | 12 ++++++------
3 files changed, 35 insertions(+), 6 deletions(-)
diff --git a/sound/soc/sof/intel/hda.h b/sound/soc/sof/intel/hda.h
index d628d6a3a7e5..1592e27bc14d 100644
--- a/sound/soc/sof/intel/hda.h
+++ b/sound/soc/sof/intel/hda.h
@@ -882,6 +882,7 @@ extern const struct sof_intel_dsp_desc ehl_chip_info;
extern const struct sof_intel_dsp_desc jsl_chip_info;
extern const struct sof_intel_dsp_desc adls_chip_info;
extern const struct sof_intel_dsp_desc mtl_chip_info;
+extern const struct sof_intel_dsp_desc arl_s_chip_info;
extern const struct sof_intel_dsp_desc lnl_chip_info;
/* Probes support */
diff --git a/sound/soc/sof/intel/mtl.c b/sound/soc/sof/intel/mtl.c
index f941e2c49d78..bcf963976189 100644
--- a/sound/soc/sof/intel/mtl.c
+++ b/sound/soc/sof/intel/mtl.c
@@ -757,3 +757,31 @@ const struct sof_intel_dsp_desc mtl_chip_info = {
.hw_ip_version = SOF_INTEL_ACE_1_0,
};
EXPORT_SYMBOL_NS(mtl_chip_info, SND_SOC_SOF_INTEL_HDA_COMMON);
+
+const struct sof_intel_dsp_desc arl_s_chip_info = {
+ .cores_num = 2,
+ .init_core_mask = BIT(0),
+ .host_managed_cores_mask = BIT(0),
+ .ipc_req = MTL_DSP_REG_HFIPCXIDR,
+ .ipc_req_mask = MTL_DSP_REG_HFIPCXIDR_BUSY,
+ .ipc_ack = MTL_DSP_REG_HFIPCXIDA,
+ .ipc_ack_mask = MTL_DSP_REG_HFIPCXIDA_DONE,
+ .ipc_ctl = MTL_DSP_REG_HFIPCXCTL,
+ .rom_status_reg = MTL_DSP_ROM_STS,
+ .rom_init_timeout = 300,
+ .ssp_count = MTL_SSP_COUNT,
+ .ssp_base_offset = CNL_SSP_BASE_OFFSET,
+ .sdw_shim_base = SDW_SHIM_BASE_ACE,
+ .sdw_alh_base = SDW_ALH_BASE_ACE,
+ .d0i3_offset = MTL_HDA_VS_D0I3C,
+ .read_sdw_lcount = hda_sdw_check_lcount_common,
+ .enable_sdw_irq = mtl_enable_sdw_irq,
+ .check_sdw_irq = mtl_dsp_check_sdw_irq,
+ .check_sdw_wakeen_irq = hda_sdw_check_wakeen_irq_common,
+ .check_ipc_irq = mtl_dsp_check_ipc_irq,
+ .cl_init = mtl_dsp_cl_init,
+ .power_down_dsp = mtl_power_down_dsp,
+ .disable_interrupts = mtl_dsp_disable_interrupts,
+ .hw_ip_version = SOF_INTEL_ACE_1_0,
+};
+EXPORT_SYMBOL_NS(arl_s_chip_info, SND_SOC_SOF_INTEL_HDA_COMMON);
diff --git a/sound/soc/sof/intel/pci-mtl.c b/sound/soc/sof/intel/pci-mtl.c
index 0f378f45486d..60d5e73cdad2 100644
--- a/sound/soc/sof/intel/pci-mtl.c
+++ b/sound/soc/sof/intel/pci-mtl.c
@@ -50,7 +50,7 @@ static const struct sof_dev_desc mtl_desc = {
.ops_free = hda_ops_free,
};
-static const struct sof_dev_desc arl_desc = {
+static const struct sof_dev_desc arl_s_desc = {
.use_acpi_target_states = true,
.machines = snd_soc_acpi_intel_arl_machines,
.alt_machines = snd_soc_acpi_intel_arl_sdw_machines,
@@ -58,21 +58,21 @@ static const struct sof_dev_desc arl_desc = {
.resindex_pcicfg_base = -1,
.resindex_imr_base = -1,
.irqindex_host_ipc = -1,
- .chip_info = &mtl_chip_info,
+ .chip_info = &arl_s_chip_info,
.ipc_supported_mask = BIT(SOF_IPC_TYPE_4),
.ipc_default = SOF_IPC_TYPE_4,
.dspless_mode_supported = true, /* Only supported for HDaudio */
.default_fw_path = {
- [SOF_IPC_TYPE_4] = "intel/sof-ipc4/arl",
+ [SOF_IPC_TYPE_4] = "intel/sof-ipc4/arl-s",
},
.default_lib_path = {
- [SOF_IPC_TYPE_4] = "intel/sof-ipc4-lib/arl",
+ [SOF_IPC_TYPE_4] = "intel/sof-ipc4-lib/arl-s",
},
.default_tplg_path = {
[SOF_IPC_TYPE_4] = "intel/sof-ace-tplg",
},
.default_fw_filename = {
- [SOF_IPC_TYPE_4] = "sof-arl.ri",
+ [SOF_IPC_TYPE_4] = "sof-arl-s.ri",
},
.nocodec_tplg_filename = "sof-arl-nocodec.tplg",
.ops = &sof_mtl_ops,
@@ -83,7 +83,7 @@ static const struct sof_dev_desc arl_desc = {
/* PCI IDs */
static const struct pci_device_id sof_pci_ids[] = {
{ PCI_DEVICE_DATA(INTEL, HDA_MTL, &mtl_desc) },
- { PCI_DEVICE_DATA(INTEL, HDA_ARL_S, &arl_desc) },
+ { PCI_DEVICE_DATA(INTEL, HDA_ARL_S, &arl_s_desc) },
{ 0, }
};
MODULE_DEVICE_TABLE(pci, sof_pci_ids);
--
2.39.2
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 5/5] ASoC: SOF: Intel: pci-mtl: add HDA_ARL PCI support
2023-12-04 21:27 [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S Pierre-Louis Bossart
` (3 preceding siblings ...)
2023-12-04 21:27 ` [PATCH 4/5] ASoC: SOF: Intel: pci-mtl: fix ARL-S definitions Pierre-Louis Bossart
@ 2023-12-04 21:27 ` Pierre-Louis Bossart
2023-12-04 21:39 ` [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S Mark Brown
2023-12-07 8:31 ` Takashi Iwai
6 siblings, 0 replies; 8+ messages in thread
From: Pierre-Louis Bossart @ 2023-12-04 21:27 UTC (permalink / raw)
To: linux-sound
Cc: tiwai, broonie, Pierre-Louis Bossart, Péter Ujfalusi,
Kai Vehmanen
Add yet another PCI ID - the hardware shares the same descriptors as
MTL but we use a dedicated firmware binary file to allow for different
signature keys.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
sound/soc/sof/intel/pci-mtl.c | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/sound/soc/sof/intel/pci-mtl.c b/sound/soc/sof/intel/pci-mtl.c
index 60d5e73cdad2..cacc985d80f4 100644
--- a/sound/soc/sof/intel/pci-mtl.c
+++ b/sound/soc/sof/intel/pci-mtl.c
@@ -50,6 +50,36 @@ static const struct sof_dev_desc mtl_desc = {
.ops_free = hda_ops_free,
};
+static const struct sof_dev_desc arl_desc = {
+ .use_acpi_target_states = true,
+ .machines = snd_soc_acpi_intel_arl_machines,
+ .alt_machines = snd_soc_acpi_intel_arl_sdw_machines,
+ .resindex_lpe_base = 0,
+ .resindex_pcicfg_base = -1,
+ .resindex_imr_base = -1,
+ .irqindex_host_ipc = -1,
+ .chip_info = &mtl_chip_info,
+ .ipc_supported_mask = BIT(SOF_IPC_TYPE_4),
+ .ipc_default = SOF_IPC_TYPE_4,
+ .dspless_mode_supported = true, /* Only supported for HDaudio */
+ .default_fw_path = {
+ [SOF_IPC_TYPE_4] = "intel/sof-ipc4/arl",
+ },
+ .default_lib_path = {
+ [SOF_IPC_TYPE_4] = "intel/sof-ipc4-lib/arl",
+ },
+ .default_tplg_path = {
+ [SOF_IPC_TYPE_4] = "intel/sof-ace-tplg",
+ },
+ .default_fw_filename = {
+ [SOF_IPC_TYPE_4] = "sof-arl.ri",
+ },
+ .nocodec_tplg_filename = "sof-arl-nocodec.tplg",
+ .ops = &sof_mtl_ops,
+ .ops_init = sof_mtl_ops_init,
+ .ops_free = hda_ops_free,
+};
+
static const struct sof_dev_desc arl_s_desc = {
.use_acpi_target_states = true,
.machines = snd_soc_acpi_intel_arl_machines,
@@ -84,6 +114,7 @@ static const struct sof_dev_desc arl_s_desc = {
static const struct pci_device_id sof_pci_ids[] = {
{ PCI_DEVICE_DATA(INTEL, HDA_MTL, &mtl_desc) },
{ PCI_DEVICE_DATA(INTEL, HDA_ARL_S, &arl_s_desc) },
+ { PCI_DEVICE_DATA(INTEL, HDA_ARL, &arl_desc) },
{ 0, }
};
MODULE_DEVICE_TABLE(pci, sof_pci_ids);
--
2.39.2
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S
2023-12-04 21:27 [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S Pierre-Louis Bossart
` (4 preceding siblings ...)
2023-12-04 21:27 ` [PATCH 5/5] ASoC: SOF: Intel: pci-mtl: add HDA_ARL PCI support Pierre-Louis Bossart
@ 2023-12-04 21:39 ` Mark Brown
2023-12-07 8:31 ` Takashi Iwai
6 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2023-12-04 21:39 UTC (permalink / raw)
To: Pierre-Louis Bossart; +Cc: linux-sound, tiwai
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
On Mon, Dec 04, 2023 at 03:27:05PM -0600, Pierre-Louis Bossart wrote:
> ArrowLake (ARL) and ArrowLake-S (ARL-S) have different PCI IDs. Add
> the usual slew of descriptors for those devices.
>
> There are no additional PCI IDs planned for this kernel cycle so it might be
> simpler to have Takashi handle all the patches with Mark's Acked-by tag?
Acked-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S
2023-12-04 21:27 [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S Pierre-Louis Bossart
` (5 preceding siblings ...)
2023-12-04 21:39 ` [PATCH 0/5] PCI/ALSA/ASoC: Add IDs and definitions for ARL and ARL-S Mark Brown
@ 2023-12-07 8:31 ` Takashi Iwai
6 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2023-12-07 8:31 UTC (permalink / raw)
To: Pierre-Louis Bossart; +Cc: linux-sound, tiwai, broonie
On Mon, 04 Dec 2023 22:27:05 +0100,
Pierre-Louis Bossart wrote:
>
> ArrowLake (ARL) and ArrowLake-S (ARL-S) have different PCI IDs. Add
> the usual slew of descriptors for those devices.
>
> There are no additional PCI IDs planned for this kernel cycle so it might be
> simpler to have Takashi handle all the patches with Mark's Acked-by tag?
>
> Pierre-Louis Bossart (5):
> PCI: add INTEL_HDA_ARL to pci_ids.h
> ALSA: hda: Intel: add HDA_ARL PCI ID support
> ALSA: hda: intel-dspcfg: add filters for ARL-S and ARL
> ASoC: SOF: Intel: pci-mtl: fix ARL-S definitions
> ASoC: SOF: Intel: pci-mtl: add HDA_ARL PCI support
Applied all five patches now to for-next branch.
thanks,
Takashi
^ permalink raw reply [flat|nested] 8+ messages in thread