]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: memalloc: Fix pgprot for WC mmap on x86
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Aug 2021 06:13:29 +0000 (08:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 4 Aug 2021 06:13:54 +0000 (08:13 +0200)
commitd39b418e46589a244b372514419556aae2800f1b
tree448d45414f6e7d839a27db514e20c7591db08e9a
parente94e77226c98ae4d31eced5e386aa15d20793f31
ALSA: memalloc: Fix pgprot for WC mmap on x86

We have a special handling of WC pages on x86, and it's currently
specific to HD-audio.  The last forgotten piece was the pgprot setup
for the mmap with WC pages.

This patch moves the pgprot setup for WC pages from HD-audio-specific
mmap callback to the common helper code.  It allows us to remove the
superfluous mmap callback in HD-audio and its prepare_mmap
redirection.

Link: https://lore.kernel.org/r/20210804061329.29265-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/memalloc.c
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c