Skip to content

Commit ef8d89b

Browse files
Srinivasa Rao Mandadapubroonie
authored andcommitted
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. Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com> Link: https://lore.kernel.org/r/1653660608-27245-1-git-send-email-quic_srivasam@quicinc.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent aeca8a3 commit ef8d89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/qcom/lpass-platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ static int lpass_platform_cdc_dma_mmap(struct snd_pcm_substream *substream,
898898
struct snd_pcm_runtime *runtime = substream->runtime;
899899
unsigned long size, offset;
900900

901-
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
901+
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
902902
size = vma->vm_end - vma->vm_start;
903903
offset = vma->vm_pgoff << PAGE_SHIFT;
904904
return io_remap_pfn_range(vma, vma->vm_start,

0 commit comments

Comments
 (0)