From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72830C43334 for ; Tue, 14 Jun 2022 02:06:22 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 46CC5185C; Tue, 14 Jun 2022 04:05:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 46CC5185C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1655172380; bh=GuudOFzGcIiyKA5KR5gswm2awcHdQDRTnz0Xdb4dC+4=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=mlhT6BPs4rY4yJW+AgnXosu5bkG8Fn/j62KbJXG/uu9yWPrl74SNaZy7BfRrYUzZs 4GWYpqSy90h/+FoLTNhwCMUDI+jG80Bp6Y06/FZ/8hSo8FlE16nx3m9RiFSiz1EOO7 0sRglOdsjuLNyLRJdwsK/ZlKfAJdV2t1wwRg56eA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C1CCDF80165; Tue, 14 Jun 2022 04:04:58 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E4684F80139; Tue, 14 Jun 2022 04:04:56 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D50FAF800D8 for ; Tue, 14 Jun 2022 04:04:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D50FAF800D8 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lpX7fZi7" Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F1F56B80D19; Tue, 14 Jun 2022 02:04:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 625DEC3411E; Tue, 14 Jun 2022 02:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655172288; bh=GuudOFzGcIiyKA5KR5gswm2awcHdQDRTnz0Xdb4dC+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lpX7fZi7QQAvwiTpIrGjD+mYK77431+cKM7I7obeivYvwGoiyEMlTywIj0miA+FkK whrhssoKoFlZPpGx3RVmxnN1nMj+iIVXruB2BDeLDhnP6cpvXiRB1WxrRjsluKADp0 A8mg/vUCT88ST6BzSWjoBiIdeaHjaTldntKpL5xOeZ6zowKlGE0Oo9Ek8jnw82nG0P Bh3KRd02n7cIxr5z+vUGJLdi61wvLMapv2DSLBLX6RoxdO8TYEGAcRKikGq9RgW8nq K35kRwV+q31xWAVOKDEtFrP+9YlCaSBr0nFvppy8PrYALnZ/rPJ0bJM+zjJhYHaNdW LHLmeDzHb9RRA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.18 03/47] ASoC: qcom: lpass-platform: Update VMA access permissions in mmap callback Date: Mon, 13 Jun 2022 22:03:56 -0400 Message-Id: <20220614020441.1098348-3-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220614020441.1098348-1-sashal@kernel.org> References: <20220614020441.1098348-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Cc: Sasha Levin , alsa-devel@alsa-project.org, bgoswami@codeaurora.org, plai@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, Mark Brown , Srinivasa Rao Mandadapu X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Srinivasa Rao Mandadapu [ Upstream commit ef8d89b83bf453ea9cc3c4873a84b50ff334f797 ] 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 Link: https://lore.kernel.org/r/1653660608-27245-1-git-send-email-quic_srivasam@quicinc.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- 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 74d62f377dfd..ae2a7837e5cc 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.35.1