From: Boaz Harrosh <boaz@plexistor.com>
To: Takashi Iwai <tiwai@suse.de>, Dan Williams <dan.j.williams@intel.com>
Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
linux-nvdimm@lists.01.org, Jaroslav Kysela <perex@perex.cz>,
Jeff Moyer <jmoyer@redhat.com>,
Stable Tree <stable@vger.kernel.org>
Subject: Re: [PATCH] sound: depend on ZONE_DMA
Date: Sun, 15 Nov 2015 12:53:11 +0200 [thread overview]
Message-ID: <56486417.7090802@plexistor.com> (raw)
In-Reply-To: <s5h1tbv3qdi.wl-tiwai@suse.de>
On 11/12/2015 10:38 PM, Takashi Iwai wrote:
> On Thu, 12 Nov 2015 21:13:57 +0100,
> Dan Williams wrote:
>>
>> There are several sound drivers that 'select ZONE_DMA'. This is
>> backwards as ZONE_DMA is an architecture capability exported to drivers.
>> Switch the polarity of the dependency to disable these drivers when the
>> architecture does not support ZONE_DMA. This was discovered in the
>> context of testing/enabling devm_memremap_pages() which depends on
>> ZONE_DEVICE. ZONE_DEVICE in turn depends on !ZONE_DMA.
>
> Makes sense. I applied it now, thanks.
>
Please add:
CC: Stable Tree <stable@vger.kernel.org>
Thanks
Boaz
>
> Takashi
>
>>
>> Cc: Jaroslav Kysela <perex@perex.cz>
>> Cc: Takashi Iwai <tiwai@suse.com>
>> Cc: <alsa-devel@alsa-project.org>
>> Reported-by: Jeff Moyer <jmoyer@redhat.com>
>> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
>> ---
>> sound/pci/Kconfig | 24 ++++++++++++------------
>> 1 file changed, 12 insertions(+), 12 deletions(-)
>>
>> diff --git a/sound/pci/Kconfig b/sound/pci/Kconfig
>> index edfc1b8d553e..656ce39bddbc 100644
>> --- a/sound/pci/Kconfig
>> +++ b/sound/pci/Kconfig
>> @@ -25,7 +25,7 @@ config SND_ALS300
>> select SND_PCM
>> select SND_AC97_CODEC
>> select SND_OPL3_LIB
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say 'Y' or 'M' to include support for Avance Logic ALS300/ALS300+
>>
>> @@ -50,7 +50,7 @@ config SND_ALI5451
>> tristate "ALi M5451 PCI Audio Controller"
>> select SND_MPU401_UART
>> select SND_AC97_CODEC
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for the integrated AC97 sound
>> device on motherboards using the ALi M5451 Audio Controller
>> @@ -155,7 +155,7 @@ config SND_AZT3328
>> select SND_PCM
>> select SND_RAWMIDI
>> select SND_AC97_CODEC
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for Aztech AZF3328 (PCI168)
>> soundcards.
>> @@ -463,7 +463,7 @@ config SND_EMU10K1
>> select SND_HWDEP
>> select SND_RAWMIDI
>> select SND_AC97_CODEC
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y to include support for Sound Blaster PCI 512, Live!,
>> Audigy and E-mu APS (partially supported) soundcards.
>> @@ -479,7 +479,7 @@ config SND_EMU10K1X
>> tristate "Emu10k1X (Dell OEM Version)"
>> select SND_AC97_CODEC
>> select SND_RAWMIDI
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for the Dell OEM version of the
>> Sound Blaster Live!.
>> @@ -513,7 +513,7 @@ config SND_ES1938
>> select SND_OPL3_LIB
>> select SND_MPU401_UART
>> select SND_AC97_CODEC
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for soundcards based on ESS Solo-1
>> (ES1938, ES1946, ES1969) chips.
>> @@ -525,7 +525,7 @@ config SND_ES1968
>> tristate "ESS ES1968/1978 (Maestro-1/2/2E)"
>> select SND_MPU401_UART
>> select SND_AC97_CODEC
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for soundcards based on ESS Maestro
>> 1/2/2E chips.
>> @@ -612,7 +612,7 @@ config SND_ICE1712
>> select SND_MPU401_UART
>> select SND_AC97_CODEC
>> select BITREVERSE
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for soundcards based on the
>> ICE1712 (Envy24) chip.
>> @@ -700,7 +700,7 @@ config SND_LX6464ES
>> config SND_MAESTRO3
>> tristate "ESS Allegro/Maestro3"
>> select SND_AC97_CODEC
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for soundcards based on ESS Maestro 3
>> (Allegro) chips.
>> @@ -806,7 +806,7 @@ config SND_SIS7019
>> tristate "SiS 7019 Audio Accelerator"
>> depends on X86_32
>> select SND_AC97_CODEC
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for the SiS 7019 Audio Accelerator.
>>
>> @@ -818,7 +818,7 @@ config SND_SONICVIBES
>> select SND_OPL3_LIB
>> select SND_MPU401_UART
>> select SND_AC97_CODEC
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for soundcards based on the S3
>> SonicVibes chip.
>> @@ -830,7 +830,7 @@ config SND_TRIDENT
>> tristate "Trident 4D-Wave DX/NX; SiS 7018"
>> select SND_MPU401_UART
>> select SND_AC97_CODEC
>> - select ZONE_DMA
>> + depends on ZONE_DMA
>> help
>> Say Y here to include support for soundcards based on Trident
>> 4D-Wave DX/NX or SiS 7018 chips.
>>
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2015-11-15 10:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-12 20:13 [PATCH] sound: depend on ZONE_DMA Dan Williams
2015-11-12 20:38 ` Takashi Iwai
2015-11-15 10:53 ` Boaz Harrosh [this message]
2015-11-16 7:40 ` Takashi Iwai
2015-11-16 8:58 ` Boaz Harrosh
2015-11-16 9:28 ` Takashi Iwai
2015-11-16 9:49 ` Boaz Harrosh
2015-11-15 10:16 ` Boaz Harrosh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56486417.7090802@plexistor.com \
--to=boaz@plexistor.com \
--cc=alsa-devel@alsa-project.org \
--cc=dan.j.williams@intel.com \
--cc=jmoyer@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvdimm@lists.01.org \
--cc=perex@perex.cz \
--cc=stable@vger.kernel.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).