* [PATCH] ASoC: qcom: lpass-platform: Update VMA access permissions in mmap callback
@ 2022-05-27 14:10 Srinivasa Rao Mandadapu
2022-06-01 12:38 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Srinivasa Rao Mandadapu @ 2022-05-27 14:10 UTC (permalink / raw)
To: agross, bjorn.andersson, lgirdwood, broonie, robh+dt, quic_plai,
bgoswami, perex, tiwai, srinivas.kandagatla, quic_rohkumar,
linux-arm-msm, alsa-devel, linux-kernel, swboyd, judyhsiao,
devicetree
Cc: Srinivasa Rao Mandadapu
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>
---
sound/soc/qcom/lpass-platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c
index f03a7ae..b41ab7a 100644
--- a/sound/soc/qcom/lpass-platform.c
+++ b/sound/soc/qcom/lpass-platform.c
@@ -898,7 +898,7 @@ static int lpass_platform_cdc_dma_mmap(struct snd_pcm_substream *substream,
struct snd_pcm_runtime *runtime = substream->runtime;
unsigned long size, offset;
- vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
+ vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
size = vma->vm_end - vma->vm_start;
offset = vma->vm_pgoff << PAGE_SHIFT;
return io_remap_pfn_range(vma, vma->vm_start,
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: qcom: lpass-platform: Update VMA access permissions in mmap callback
2022-05-27 14:10 [PATCH] ASoC: qcom: lpass-platform: Update VMA access permissions in mmap callback Srinivasa Rao Mandadapu
@ 2022-06-01 12:38 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-06-01 12:38 UTC (permalink / raw)
To: tiwai, quic_srivasam, srinivas.kandagatla, robh+dt, judyhsiao,
bjorn.andersson, swboyd, perex, linux-kernel, bgoswami,
alsa-devel, devicetree, quic_plai, lgirdwood, quic_rohkumar,
linux-arm-msm, agross
On Fri, 27 May 2022 19:40:08 +0530, Srinivasa Rao Mandadapu wrote:
> 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.
>
>
Applied to
broonie/sound.git for-linus
Thanks!
[1/1] ASoC: qcom: lpass-platform: Update VMA access permissions in mmap callback
commit: ef8d89b83bf453ea9cc3c4873a84b50ff334f797
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-01 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-27 14:10 [PATCH] ASoC: qcom: lpass-platform: Update VMA access permissions in mmap callback Srinivasa Rao Mandadapu
2022-06-01 12:38 ` Mark Brown
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).