Skip to contentSkip to conversation

ASoC: Intel: fix Kconfig dependencies

PATCH In review Arnd Bergmann 5 participants 9 messages Nov 2, 2017

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

PATCH 1/1 ASoC: Intel: fix Kconfig dependencies

I ran into multiple problems during randconfig builds of the recently changed Kconfig logic for Intel ASoC drivers:

- Building without DMADEVICES doesn't work in general
- With that dependency added, we can relax the 'depends on X86' again and allow compile-testing, except for SND_SST_ATOM_HIFI2_PLATFORM, which depends on X86 for asm/platform_sst_audio.h
- Skylake requires SND_SOC_INTEL_SST_ACPI, so we have to depend on ACPI in turn
- Haswell needs SND_DMA_SGBUF for snd_sgbuf_aligned_pages()

With the new set of dependencies, I no longer get any build failures.

---
 sound/soc/intel/Kconfig | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
sound/soc/intel/Kconfig +5 -4
index a59dda39007e..e18118209b75 100644
@@ -31,13 +31,14 @@ config SND_SOC_ACPI_INTEL_MATCH
 
 config SND_SOC_INTEL_SST_TOPLEVEL
 	tristate "Intel ASoC SST drivers"
-	depends on X86
+	depends on X86 || COMPILE_TEST
+	depends on DMADEVICES
 	select SND_SOC_INTEL_MACH
 	select SND_SOC_INTEL_COMMON
 
 config SND_SOC_INTEL_HASWELL
 	tristate "Intel ASoC SST driver for Haswell/Broadwell"
-	depends on SND_SOC_INTEL_SST_TOPLEVEL
+	depends on SND_SOC_INTEL_SST_TOPLEVEL && SND_DMA_SGBUF
 	select SND_SOC_INTEL_SST
 	select SND_SOC_INTEL_SST_FIRMWARE
 
@@ -49,12 +50,12 @@ config SND_SOC_INTEL_BAYTRAIL
 
 config SND_SST_ATOM_HIFI2_PLATFORM
 	tristate "Intel ASoC SST driver for HiFi2 platforms (*field, *trail)"
-	depends on SND_SOC_INTEL_SST_TOPLEVEL
+	depends on SND_SOC_INTEL_SST_TOPLEVEL && X86
 	select SND_SOC_COMPRESS
 
 config SND_SOC_INTEL_SKYLAKE
 	tristate "Intel ASoC SST driver for SKL/BXT/KBL/GLK/CNL"
-	depends on SND_SOC_INTEL_SST_TOPLEVEL
+	depends on SND_SOC_INTEL_SST_TOPLEVEL && PCI && ACPI
 	select SND_HDA_EXT_CORE
 	select SND_HDA_DSP_LOADER
 	select SND_SOC_TOPOLOGY
Signature · 1 line
2.9.0
maintainer
#1 lore raw

Applied "ASoC: Intel: fix Kconfig dependencies" to the asoc tree

The patch

ASoC: Intel: fix Kconfig dependencies

has been applied to the asoc tree at

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

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

Quoted 1 line

From f7a88db6fffdd193d792de5dae7890528b995cc0 Mon Sep 17 00:00:00 2001

From: Arnd Bergmann <[email protected]>
Date: Thu, 2 Nov 2017 12:07:04 +0100
Subject: [PATCH] ASoC: Intel: fix Kconfig dependencies

I ran into multiple problems during randconfig builds of the recently changed Kconfig logic for Intel ASoC drivers:

- Building without DMADEVICES doesn't work in general
- With that dependency added, we can relax the 'depends on X86' again and allow compile-testing, except for SND_SST_ATOM_HIFI2_PLATFORM, which depends on X86 for asm/platform_sst_audio.h
- Skylake requires SND_SOC_INTEL_SST_ACPI, so we have to depend on ACPI in turn
- Haswell needs SND_DMA_SGBUF for snd_sgbuf_aligned_pages()

With the new set of dependencies, I no longer get any build failures.

---
 sound/soc/intel/Kconfig | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
sound/soc/intel/Kconfig +5 -4
index a59dda39007e..e18118209b75 100644
@@ -31,13 +31,14 @@ config SND_SOC_ACPI_INTEL_MATCH
 
 config SND_SOC_INTEL_SST_TOPLEVEL
 	tristate "Intel ASoC SST drivers"
-	depends on X86
+	depends on X86 || COMPILE_TEST
+	depends on DMADEVICES
 	select SND_SOC_INTEL_MACH
 	select SND_SOC_INTEL_COMMON
 
 config SND_SOC_INTEL_HASWELL
 	tristate "Intel ASoC SST driver for Haswell/Broadwell"
-	depends on SND_SOC_INTEL_SST_TOPLEVEL
+	depends on SND_SOC_INTEL_SST_TOPLEVEL && SND_DMA_SGBUF
 	select SND_SOC_INTEL_SST
 	select SND_SOC_INTEL_SST_FIRMWARE
 
@@ -49,12 +50,12 @@ config SND_SOC_INTEL_BAYTRAIL
 
 config SND_SST_ATOM_HIFI2_PLATFORM
 	tristate "Intel ASoC SST driver for HiFi2 platforms (*field, *trail)"
-	depends on SND_SOC_INTEL_SST_TOPLEVEL
+	depends on SND_SOC_INTEL_SST_TOPLEVEL && X86
 	select SND_SOC_COMPRESS
 
 config SND_SOC_INTEL_SKYLAKE
 	tristate "Intel ASoC SST driver for SKL/BXT/KBL/GLK/CNL"
-	depends on SND_SOC_INTEL_SST_TOPLEVEL
+	depends on SND_SOC_INTEL_SST_TOPLEVEL && PCI && ACPI
 	select SND_HDA_EXT_CORE
 	select SND_HDA_DSP_LOADER
 	select SND_SOC_TOPOLOGY
Signature · 1 line
2.15.0
#2 lore raw
In reply to Arnd Bergmann
Quoted 2 lines · Arnd Bergmann

I ran into multiple problems during randconfig builds of the recently changed Kconfig logic for Intel ASoC drivers:

we did quite a bit of testing on this change, looks like we missed a number of cases. Gah.

Quoted 2 lines

- Building without DMADEVICES doesn't work in general

the Intel audio hardware has its own DMA in general, be it based on DesignWare controlled by audio firmware or HDaudio, not sure if/why this dependency is needed across the board?

Quoted 6 lines

- With that dependency added, we can relax the 'depends
on X86' again and allow compile-testing, except for SND_SST_ATOM_HIFI2_PLATFORM, which depends on X86
for asm/platform_sst_audio. > - Skylake requires SND_SOC_INTEL_SST_ACPI, so we have to depend on ACPI in turn
- Haswell needs SND_DMA_SGBUF for snd_sgbuf_aligned_pages()

This one is surprising as well, this was not there before so it either was not detected or is not needed?

Quoted 46 lines

With the new set of dependencies, I no longer get any build failures.

---
  sound/soc/intel/Kconfig | 9 +++++----
  1 file changed, 5 insertions(+), 4 deletions(-)
sound/soc/intel/Kconfig +5 -4
index a59dda39007e..e18118209b75 100644
@@ -31,13 +31,14 @@ config SND_SOC_ACPI_INTEL_MATCH
 
  config SND_SOC_INTEL_SST_TOPLEVEL
  	tristate "Intel ASoC SST drivers"
-	depends on X86
+	depends on X86 || COMPILE_TEST
+	depends on DMADEVICES
  	select SND_SOC_INTEL_MACH
  	select SND_SOC_INTEL_COMMON
 
  config SND_SOC_INTEL_HASWELL
  	tristate "Intel ASoC SST driver for Haswell/Broadwell"
-	depends on SND_SOC_INTEL_SST_TOPLEVEL
+	depends on SND_SOC_INTEL_SST_TOPLEVEL && SND_DMA_SGBUF
  	select SND_SOC_INTEL_SST
  	select SND_SOC_INTEL_SST_FIRMWARE
 
@@ -49,12 +50,12 @@ config SND_SOC_INTEL_BAYTRAIL
 
  config SND_SST_ATOM_HIFI2_PLATFORM
  	tristate "Intel ASoC SST driver for HiFi2 platforms (*field, *trail)"
-	depends on SND_SOC_INTEL_SST_TOPLEVEL
+	depends on SND_SOC_INTEL_SST_TOPLEVEL && X86
  	select SND_SOC_COMPRESS
 
  config SND_SOC_INTEL_SKYLAKE
  	tristate "Intel ASoC SST driver for SKL/BXT/KBL/GLK/CNL"
-	depends on SND_SOC_INTEL_SST_TOPLEVEL
+	depends on SND_SOC_INTEL_SST_TOPLEVEL && PCI && ACPI
  	select SND_HDA_EXT_CORE
  	select SND_HDA_DSP_LOADER
  	select SND_SOC_TOPOLOGY
#3 lore raw
Quoted 10 lines · Pierre-Louis Bossart
Quoted 3 lines · Arnd Bergmann

I ran into multiple problems during randconfig builds of the recently changed Kconfig logic for Intel ASoC drivers:

we did quite a bit of testing on this change, looks like we missed a number of cases. Gah.

Quoted 1 line
Quoted 6 lines
Quoted 1 line

- Building without DMADEVICES doesn't work in general

the Intel audio hardware has its own DMA in general, be it based on DesignWare controlled by audio firmware or HDaudio, not sure if/why this dependency is needed across the board?

Probably my mistake. I'll try again without the dependency and see what problems I run into then and what the correct fix is.

Quoted 11 lines
Quoted 7 lines

- With that dependency added, we can relax the 'depends on X86' again and allow compile-testing, except for SND_SST_ATOM_HIFI2_PLATFORM, which depends on X86 for asm/platform_sst_audio. > - Skylake requires
SND_SOC_INTEL_SST_ACPI, so we
have to depend on ACPI in turn
- Haswell needs SND_DMA_SGBUF for snd_sgbuf_aligned_pages()

This one is surprising as well, this was not there before so it either was not detected or is not needed?

No idea. The driver has clearly been calling snd_sgbuf_aligned_pages() since commit 0b708c87f66a ("ASoC: Intel: Fix Haswell/Broadwell DSP page table creation.") back in 2014, and the helper function has been unavailable since 2008. My best guess is that some other Kconfig option enforced the dependency implicitly before.

Arnd

#4 lore raw
Quoted 15 lines · Arnd Bergmann
Quoted 13 lines · Pierre-Louis Bossart
Quoted 3 lines · Arnd Bergmann

I ran into multiple problems during randconfig builds of the recently changed Kconfig logic for Intel ASoC drivers:

we did quite a bit of testing on this change, looks like we missed a number of cases. Gah.

Quoted 2 lines

- Building without DMADEVICES doesn't work in general

Quoted 6 lines
Quoted 3 lines

the Intel audio hardware has its own DMA in general, be it based on DesignWare controlled by audio firmware or HDaudio, not sure if/why this dependency is needed across the board?

Probably my mistake. I'll try again without the dependency and see what problems I run into then and what the correct fix is.

I immediately ran into this Kconfig warning, so this is clearly for the two users of SND_SOC_INTEL_SST_FIRMWARE:

warning: (SATA_DWC_OLD_DMA && SERIAL_8250_LPSS && SND_SOC_INTEL_SST_FIRMWARE) selects DW_DMAC_CORE which has unmet direct dependencies (DMADEVICES)

I'm testing with this fixup now:

sound/soc/intel/Kconfig +2 -2
index e18118209b75..89126fa3f846 100644
@@ -20,7 +20,6 @@ config SND_SOC_INTEL_SST
 
 config SND_SOC_INTEL_SST_FIRMWARE
        tristate
-       select DW_DMAC_CORE
 
 config SND_SOC_INTEL_SST_ACPI
        tristate
@@ -32,19 +31,20 @@ config SND_SOC_ACPI_INTEL_MATCH
 config SND_SOC_INTEL_SST_TOPLEVEL
        tristate "Intel ASoC SST drivers"
        depends on X86 || COMPILE_TEST
-       depends on DMADEVICES
        select SND_SOC_INTEL_MACH
        select SND_SOC_INTEL_COMMON
 
 config SND_SOC_INTEL_HASWELL
        tristate "Intel ASoC SST driver for Haswell/Broadwell"
        depends on SND_SOC_INTEL_SST_TOPLEVEL && SND_DMA_SGBUF
+       depends on DMADEVICES
        select SND_SOC_INTEL_SST
        select SND_SOC_INTEL_SST_FIRMWARE
 
 config SND_SOC_INTEL_BAYTRAIL
        tristate "Intel ASoC SST driver for Baytrail (legacy)"
        depends on SND_SOC_INTEL_SST_TOPLEVEL
+       depends on DMADEVICES
        select SND_SOC_INTEL_SST
        select SND_SOC_INTEL_SST_FIRMWARE
 
sound/soc/intel/boards/Kconfig +0 -5
index 449bc8baaa60..5063f15b4ca4 100644
@@ -19,7 +19,6 @@ config SND_SOC_INTEL_HASWELL_MACH
        tristate "ASoC Audio DSP support for Intel Haswell Lynxpoint"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && I2C && I2C_DESIGNWARE_PLATFORM
-       depends on DMADEVICES
        depends on SND_SOC_INTEL_HASWELL
        select SND_SOC_RT5640
        help
@@ -32,7 +31,6 @@ config SND_SOC_INTEL_BDW_RT5677_MACH
        tristate "ASoC Audio driver for Intel Broadwell with RT5677 codec"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && GPIOLIB && I2C
-       depends on DMADEVICES
        depends on SND_SOC_INTEL_HASWELL
        select SND_SOC_RT5677
        help
@@ -43,7 +41,6 @@ config SND_SOC_INTEL_BROADWELL_MACH
        tristate "ASoC Audio DSP support for Intel Broadwell Wildcatpoint"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && I2C && I2C_DESIGNWARE_PLATFORM
-       depends on DMADEVICES
        depends on SND_SOC_INTEL_HASWELL
        select SND_SOC_RT286
        help
@@ -56,7 +53,6 @@ config SND_SOC_INTEL_BYT_MAX98090_MACH
        tristate "ASoC Audio driver for Intel Baytrail with MAX98090 codec"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && I2C
-       depends on DMADEVICES
        depends on SND_SST_IPC_ACPI = n
        depends on SND_SOC_INTEL_BAYTRAIL
        select SND_SOC_MAX98090
@@ -68,7 +64,6 @@ config SND_SOC_INTEL_BYT_RT5640_MACH
        tristate "ASoC Audio driver for Intel Baytrail with RT5640 codec"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && I2C
-       depends on DMADEVICES
        depends on SND_SST_IPC_ACPI = n
        depends on SND_SOC_INTEL_BAYTRAIL
        select SND_SOC_RT5640
#5 lore raw
Quoted 23 lines · Arnd Bergmann
Quoted 15 lines · Arnd Bergmann
Quoted 13 lines · Pierre-Louis Bossart
Quoted 3 lines · Arnd Bergmann

I ran into multiple problems during randconfig builds of the recently changed Kconfig logic for Intel ASoC drivers:

we did quite a bit of testing on this change, looks like we missed a number of cases. Gah.

Quoted 2 lines

- Building without DMADEVICES doesn't work in general

Quoted 6 lines
Quoted 3 lines

the Intel audio hardware has its own DMA in general, be it based on DesignWare controlled by audio firmware or HDaudio, not sure if/why this dependency is needed across the board?

Probably my mistake. I'll try again without the dependency and see what problems I run into then and what the correct fix is.

Quoted 6 lines

I immediately ran into this Kconfig warning, so this is clearly for the two users of SND_SOC_INTEL_SST_FIRMWARE:

warning: (SATA_DWC_OLD_DMA && SERIAL_8250_LPSS && SND_SOC_INTEL_SST_FIRMWARE) selects DW_DMAC_CORE which has unmet direct dependencies (DMADEVICES)

The BYT legacy drivers used DMAengine (dw) to load the firmware and hence the dependency. The Skylake and other drivers do not need that, so we should move this from toplevel to the BYT driver only.

sound/soc/intel/Kconfig config SND_SOC_INTEL_SST · line 23

Quoted 12 lines

I'm testing with this fixup now:

sound/soc/intel/Kconfig +0 -1
index e18118209b75..89126fa3f846 100644
@@ -20,7 +20,6 @@ config SND_SOC_INTEL_SST
 
 config SND_SOC_INTEL_SST_FIRMWARE
        tristate
-       select DW_DMAC_CORE

this is required as we need this DMA driver. It might not have issues on compile but functionality would be broken.

sound/soc/intel/Kconfig config SND_SOC_ACPI_INTEL_MATCH · line 35

Quoted 7 lines
sound/soc/intel/Kconfig +0 -1
 config SND_SOC_INTEL_SST_ACPI
        tristate
@@ -32,19 +31,20 @@ config SND_SOC_ACPI_INTEL_MATCH
 config SND_SOC_INTEL_SST_TOPLEVEL
        tristate "Intel ASoC SST drivers"
        depends on X86 || COMPILE_TEST
-       depends on DMADEVICES

This is fine

sound/soc/intel/Kconfig config SND_SOC_ACPI_INTEL_MATCH · line 40

Quoted 7 lines
sound/soc/intel/Kconfig +1 -0
        select SND_SOC_INTEL_MACH
        select SND_SOC_INTEL_COMMON
 
 config SND_SOC_INTEL_HASWELL
        tristate "Intel ASoC SST driver for Haswell/Broadwell"
        depends on SND_SOC_INTEL_SST_TOPLEVEL && SND_DMA_SGBUF
+       depends on DMADEVICES

yes this and below seems right fix to me.

Quoted 54 lines
sound/soc/intel/Kconfig +1 -0
        select SND_SOC_INTEL_SST
        select SND_SOC_INTEL_SST_FIRMWARE
 
 config SND_SOC_INTEL_BAYTRAIL
        tristate "Intel ASoC SST driver for Baytrail (legacy)"
        depends on SND_SOC_INTEL_SST_TOPLEVEL
+       depends on DMADEVICES
        select SND_SOC_INTEL_SST
        select SND_SOC_INTEL_SST_FIRMWARE
 
sound/soc/intel/boards/Kconfig +0 -5
index 449bc8baaa60..5063f15b4ca4 100644
@@ -19,7 +19,6 @@ config SND_SOC_INTEL_HASWELL_MACH
        tristate "ASoC Audio DSP support for Intel Haswell Lynxpoint"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && I2C && I2C_DESIGNWARE_PLATFORM
-       depends on DMADEVICES
        depends on SND_SOC_INTEL_HASWELL
        select SND_SOC_RT5640
        help
@@ -32,7 +31,6 @@ config SND_SOC_INTEL_BDW_RT5677_MACH
        tristate "ASoC Audio driver for Intel Broadwell with RT5677 codec"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && GPIOLIB && I2C
-       depends on DMADEVICES
        depends on SND_SOC_INTEL_HASWELL
        select SND_SOC_RT5677
        help
@@ -43,7 +41,6 @@ config SND_SOC_INTEL_BROADWELL_MACH
        tristate "ASoC Audio DSP support for Intel Broadwell Wildcatpoint"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && I2C && I2C_DESIGNWARE_PLATFORM
-       depends on DMADEVICES
        depends on SND_SOC_INTEL_HASWELL
        select SND_SOC_RT286
        help
@@ -56,7 +53,6 @@ config SND_SOC_INTEL_BYT_MAX98090_MACH
        tristate "ASoC Audio driver for Intel Baytrail with MAX98090 codec"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && I2C
-       depends on DMADEVICES
        depends on SND_SST_IPC_ACPI = n
        depends on SND_SOC_INTEL_BAYTRAIL
        select SND_SOC_MAX98090
@@ -68,7 +64,6 @@ config SND_SOC_INTEL_BYT_RT5640_MACH
        tristate "ASoC Audio driver for Intel Baytrail with RT5640 codec"
        depends on SND_SOC_INTEL_MACH
        depends on X86_INTEL_LPSS && I2C
-       depends on DMADEVICES
        depends on SND_SST_IPC_ACPI = n
        depends on SND_SOC_INTEL_BAYTRAIL
        select SND_SOC_RT5640
Signature · 1 line
~Vinod
#6 lore raw
Quoted 27 lines · Vinod Koul
Quoted 26 lines · Arnd Bergmann
Quoted 15 lines · Arnd Bergmann
Quoted 13 lines · Pierre-Louis Bossart
Quoted 3 lines · Arnd Bergmann

I ran into multiple problems during randconfig builds of the recently changed Kconfig logic for Intel ASoC drivers:

we did quite a bit of testing on this change, looks like we missed a number of cases. Gah.

Quoted 2 lines

- Building without DMADEVICES doesn't work in general

Quoted 6 lines
Quoted 3 lines

the Intel audio hardware has its own DMA in general, be it based on DesignWare controlled by audio firmware or HDaudio, not sure if/why this dependency is needed across the board?

Probably my mistake. I'll try again without the dependency and see what problems I run into then and what the correct fix is.

I immediately ran into this Kconfig warning, so this is clearly for the two users of SND_SOC_INTEL_SST_FIRMWARE:

Quoted 7 lines
Quoted 3 lines

warning: (SATA_DWC_OLD_DMA && SERIAL_8250_LPSS && SND_SOC_INTEL_SST_FIRMWARE) selects DW_DMAC_CORE which has unmet direct dependencies (DMADEVICES)

The BYT legacy drivers used DMAengine (dw) to load the firmware and hence the dependency. The Skylake and other drivers do not need that, so we should move this from toplevel to the BYT driver only.

Ok, so Haswell also shouldn't select SND_SOC_INTEL_SST_FIRMWARE, right?

Quoted 6 lines
Quoted 3 lines

config SND_SOC_INTEL_SST_FIRMWARE
tristate
- select DW_DMAC_CORE

this is required as we need this DMA driver. It might not have issues on compile but functionality would be broken.

It's also broken at compile time, I just ran into that.

Quoted 13 lines

sound/soc/intel/Kconfig config SND_SOC_ACPI_INTEL_MATCH · line 35

Quoted 7 lines

config SND_SOC_INTEL_SST_ACPI
tristate

sound/soc/intel/Kconfig +0 -1
@@ -32,19 +31,20 @@ config SND_SOC_ACPI_INTEL_MATCH
 config SND_SOC_INTEL_SST_TOPLEVEL
        tristate "Intel ASoC SST drivers"
        depends on X86 || COMPILE_TEST
-       depends on DMADEVICES

This is fine

Quoted 3 lines
sound/soc/intel/Kconfig +0 -0
        select SND_SOC_INTEL_MACH
        select SND_SOC_INTEL_COMMON
 
Quoted 6 lines

sound/soc/intel/Kconfig config SND_SOC_ACPI_INTEL_MATCH · line 40

Quoted 4 lines
sound/soc/intel/Kconfig +1 -0
 config SND_SOC_INTEL_HASWELL
        tristate "Intel ASoC SST driver for Haswell/Broadwell"
        depends on SND_SOC_INTEL_SST_TOPLEVEL && SND_DMA_SGBUF
+       depends on DMADEVICES

yes this and below seems right fix to me.

Ok, thanks for taking a look! I'll let the randconfig builder chew on this overnight, and send a new version tomorrow.

Arnd

#7 lore raw
Quoted 32 lines · Arnd Bergmann
Quoted 31 lines · Vinod Koul
Quoted 29 lines · Arnd Bergmann
Quoted 15 lines · Arnd Bergmann
Quoted 13 lines · Pierre-Louis Bossart
Quoted 3 lines · Arnd Bergmann

I ran into multiple problems during randconfig builds of the recently changed Kconfig logic for Intel ASoC drivers:

we did quite a bit of testing on this change, looks like we missed a number of cases. Gah.

Quoted 2 lines

- Building without DMADEVICES doesn't work in general

Quoted 6 lines
Quoted 3 lines

the Intel audio hardware has its own DMA in general, be it based on DesignWare controlled by audio firmware or HDaudio, not sure if/why this dependency is needed across the board?

Probably my mistake. I'll try again without the dependency and see what problems I run into then and what the correct fix is.

I immediately ran into this Kconfig warning, so this is clearly for the two users of SND_SOC_INTEL_SST_FIRMWARE:

warning: (SATA_DWC_OLD_DMA && SERIAL_8250_LPSS && SND_SOC_INTEL_SST_FIRMWARE) selects DW_DMAC_CORE which has unmet direct dependencies (DMADEVICES)

Quoted 5 lines
Quoted 3 lines

The BYT legacy drivers used DMAengine (dw) to load the firmware and hence the dependency. The Skylake and other drivers do not need that, so we should move this from toplevel to the BYT driver only.

Ok, so Haswell also shouldn't select SND_SOC_INTEL_SST_FIRMWARE, right?

I am not sure on that. Liam?

Quoted 9 lines
Quoted 7 lines
Quoted 4 lines

config SND_SOC_INTEL_SST_FIRMWARE
tristate
- select DW_DMAC_CORE

this is required as we need this DMA driver. It might not have issues on compile but functionality would be broken.

It's also broken at compile time, I just ran into that.

okay better then :)

Quoted 18 lines
Quoted 18 lines

sound/soc/intel/Kconfig config SND_SOC_ACPI_INTEL_MATCH · line 35

Quoted 7 lines

config SND_SOC_INTEL_SST_ACPI
tristate

sound/soc/intel/Kconfig +0 -1
@@ -32,19 +31,20 @@ config SND_SOC_ACPI_INTEL_MATCH
 config SND_SOC_INTEL_SST_TOPLEVEL
        tristate "Intel ASoC SST drivers"
        depends on X86 || COMPILE_TEST
-       depends on DMADEVICES

This is fine

Quoted 7 lines
sound/soc/intel/Kconfig +1 -0
        select SND_SOC_INTEL_MACH
        select SND_SOC_INTEL_COMMON
 
 config SND_SOC_INTEL_HASWELL
        tristate "Intel ASoC SST driver for Haswell/Broadwell"
        depends on SND_SOC_INTEL_SST_TOPLEVEL && SND_DMA_SGBUF
+       depends on DMADEVICES
Quoted 4 lines
Quoted 1 line

yes this and below seems right fix to me.

Ok, thanks for taking a look! I'll let the randconfig builder chew on this overnight, and send a new version tomorrow.

Sounds good to me

Signature · 1 line
~Vinod
maintainer
#8 lore raw
Quoted 10 lines · Vinod Koul
Quoted 1 line
Quoted 1 line

The BYT legacy drivers used DMAengine (dw) to load the firmware

and hence the

Quoted 1 line
Quoted 1 line

dependency. The Skylake and other drivers do not need that, so we

should

Quoted 3 lines
Quoted 1 line

move this from toplevel to the BYT driver only.

Ok, so Haswell also shouldn't select SND_SOC_INTEL_SST_FIRMWARE,

right?

I am not sure on that. Liam?

Haswell and Broadwell also use the DW DMAC for FW loading like the BYT legacy driver.

Liam