History

ASoC: qcom: lpass-platform: Update VMA access permissions in mmap callback

Replace page protection permissions from noncashed to writecombine, in lpass codec DMA path mmp callabck, to support 64 bit chromeOS. Avoid SIGBUS error in userspace caused by noncached permissions in 64 bit chromeOS.

Srinivasa Rao Mandadapu committed 4 years ago

Commit ef8d89b1 parent aeca8a31 file · +1 −1Browse files

Unified · Split

sound/soc/qcom/lpass-platform.c+1−1
@@ -898,7 +898,7 @@ static int lpass_platform_cdc_dma_mmap(struct snd_pcm_substream *substream, · 897 unmodified lines
898 struct snd_pcm_runtime *runtime = substream->runtime;898 struct snd_pcm_runtime *runtime = substream->runtime;
899 unsigned long size, offset;899 unsigned long size, offset;
900 900
901 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);901 vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
902 size = vma->vm_end - vma->vm_start;902 size = vma->vm_end - vma->vm_start;
903 offset = vma->vm_pgoff << PAGE_SHIFT;903 offset = vma->vm_pgoff << PAGE_SHIFT;
904 return io_remap_pfn_range(vma, vma->vm_start,904 return io_remap_pfn_range(vma, vma->vm_start,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t