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.
Unified · Split
| @@ -898,7 +898,7 @@ static int lpass_platform_cdc_dma_mmap(struct snd_pcm_substream *substream, · 897 unmodified lines | ||
| 898 | 898 | struct snd_pcm_runtime *runtime = substream->runtime; |
| 899 | 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 | 902 | size = vma->vm_end - vma->vm_start; |
| 903 | 903 | offset = vma->vm_pgoff << PAGE_SHIFT; |
| 904 | 904 | return io_remap_pfn_range(vma, vma->vm_start, |