public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML
@ 2024-10-10 12:46 Julian Vetter
  2024-10-10 14:12 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Julian Vetter @ 2024-10-10 12:46 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linux-kernel, Julian Vetter, Takashi Iwai,
	Yann Sionneau

When building for the UM arch and neither INDIRECT_IOMEM=y, nor
HAS_IOMEM=y is selected, it will fall back to the implementations from
asm-generic/io.h for IO memcpy. But these fall-back functions just do a
memcpy. So, instead of depending on UML, add dependency on 'HAS_IOMEM ||
INDIRECT_IOMEM'.

Acked-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Yann Sionneau <ysionneau@kalrayinc.com>
Signed-off-by: Julian Vetter <jvetter@kalrayinc.com>
---
 sound/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/Kconfig b/sound/Kconfig
index 4c036a9a420a..8b40205394fe 100644
--- a/sound/Kconfig
+++ b/sound/Kconfig
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 menuconfig SOUND
 	tristate "Sound card support"
-	depends on HAS_IOMEM || UML
+	depends on HAS_IOMEM || INDIRECT_IOMEM
 	help
 	  If you have a sound card in your computer, i.e. if it can say more
 	  than an occasional beep, say Y.
-- 
2.34.1






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

* Re: [PATCH] sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML
  2024-10-10 12:46 [PATCH] sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML Julian Vetter
@ 2024-10-10 14:12 ` Takashi Iwai
  2024-10-10 14:53   ` Julian Vetter
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2024-10-10 14:12 UTC (permalink / raw)
  To: Julian Vetter
  Cc: Jaroslav Kysela, Takashi Iwai, linux-sound, linux-kernel,
	Takashi Iwai, Yann Sionneau

On Thu, 10 Oct 2024 14:46:01 +0200,
Julian Vetter wrote:
> 
> When building for the UM arch and neither INDIRECT_IOMEM=y, nor
> HAS_IOMEM=y is selected, it will fall back to the implementations from
> asm-generic/io.h for IO memcpy. But these fall-back functions just do a
> memcpy. So, instead of depending on UML, add dependency on 'HAS_IOMEM ||
> INDIRECT_IOMEM'.
> 
> Acked-by: Takashi Iwai <tiwai@suse.de>
> Reviewed-by: Yann Sionneau <ysionneau@kalrayinc.com>
> Signed-off-by: Julian Vetter <jvetter@kalrayinc.com>

This is expected to be applied via sound.git tree?
Then I'll happily take it.


thanks,

Takashi

> ---
>  sound/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/Kconfig b/sound/Kconfig
> index 4c036a9a420a..8b40205394fe 100644
> --- a/sound/Kconfig
> +++ b/sound/Kconfig
> @@ -1,7 +1,7 @@
>  # SPDX-License-Identifier: GPL-2.0-only
>  menuconfig SOUND
>  	tristate "Sound card support"
> -	depends on HAS_IOMEM || UML
> +	depends on HAS_IOMEM || INDIRECT_IOMEM
>  	help
>  	  If you have a sound card in your computer, i.e. if it can say more
>  	  than an occasional beep, say Y.
> -- 
> 2.34.1
> 
> 
> 
> 
> 

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

* Re: [PATCH] sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML
  2024-10-10 14:12 ` Takashi Iwai
@ 2024-10-10 14:53   ` Julian Vetter
  2024-10-10 14:59     ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Julian Vetter @ 2024-10-10 14:53 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Jaroslav Kysela, Takashi Iwai, linux-sound, linux-kernel,
	Yann Sionneau



On 10/10/24 16:12, Takashi Iwai wrote:
> On Thu, 10 Oct 2024 14:46:01 +0200,
> Julian Vetter wrote:
>>
>> When building for the UM arch and neither INDIRECT_IOMEM=y, nor
>> HAS_IOMEM=y is selected, it will fall back to the implementations from
>> asm-generic/io.h for IO memcpy. But these fall-back functions just do a
>> memcpy. So, instead of depending on UML, add dependency on 'HAS_IOMEM ||
>> INDIRECT_IOMEM'.
>>
>> Acked-by: Takashi Iwai <tiwai@suse.de>
>> Reviewed-by: Yann Sionneau <ysionneau@kalrayinc.com>
>> Signed-off-by: Julian Vetter <jvetter@kalrayinc.com>
> 
> This is expected to be applied via sound.git tree?

Yes. At least I have abandoned this patch as part of my big patchset for 
the IO memcpy. Instead I try to integrate the different parts piece by 
piece in the different subsystems and archs. I thinks this is better, as 
suggested by Arnd.

> Then I'll happily take it.
> 
Thank you!
> 
> thanks,
> 
> Takashi
> 
>> ---
>>   sound/Kconfig | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/sound/Kconfig b/sound/Kconfig
>> index 4c036a9a420a..8b40205394fe 100644
>> --- a/sound/Kconfig
>> +++ b/sound/Kconfig
>> @@ -1,7 +1,7 @@
>>   # SPDX-License-Identifier: GPL-2.0-only
>>   menuconfig SOUND
>>   	tristate "Sound card support"
>> -	depends on HAS_IOMEM || UML
>> +	depends on HAS_IOMEM || INDIRECT_IOMEM
>>   	help
>>   	  If you have a sound card in your computer, i.e. if it can say more
>>   	  than an occasional beep, say Y.
>> -- 
>> 2.34.1
>>
>>
>>
>>
>>
> 
> 
> 
> 





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

* Re: [PATCH] sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML
  2024-10-10 14:53   ` Julian Vetter
@ 2024-10-10 14:59     ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2024-10-10 14:59 UTC (permalink / raw)
  To: Julian Vetter
  Cc: Takashi Iwai, Jaroslav Kysela, Takashi Iwai, linux-sound,
	linux-kernel, Yann Sionneau

On Thu, 10 Oct 2024 16:53:48 +0200,
Julian Vetter wrote:
> 
> 
> 
> On 10/10/24 16:12, Takashi Iwai wrote:
> > On Thu, 10 Oct 2024 14:46:01 +0200,
> > Julian Vetter wrote:
> >> 
> >> When building for the UM arch and neither INDIRECT_IOMEM=y, nor
> >> HAS_IOMEM=y is selected, it will fall back to the implementations from
> >> asm-generic/io.h for IO memcpy. But these fall-back functions just do a
> >> memcpy. So, instead of depending on UML, add dependency on 'HAS_IOMEM ||
> >> INDIRECT_IOMEM'.
> >> 
> >> Acked-by: Takashi Iwai <tiwai@suse.de>
> >> Reviewed-by: Yann Sionneau <ysionneau@kalrayinc.com>
> >> Signed-off-by: Julian Vetter <jvetter@kalrayinc.com>
> > 
> > This is expected to be applied via sound.git tree?
> 
> Yes. At least I have abandoned this patch as part of my big patchset
> for the IO memcpy. Instead I try to integrate the different parts
> piece by piece in the different subsystems and archs. I thinks this is
> better, as suggested by Arnd.

OK, now applied to for-linus branch.


thanks,

Takashi

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

end of thread, other threads:[~2024-10-10 14:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10 12:46 [PATCH] sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML Julian Vetter
2024-10-10 14:12 ` Takashi Iwai
2024-10-10 14:53   ` Julian Vetter
2024-10-10 14:59     ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox