Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2393184ioo; Sat, 28 May 2022 12:13:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCtFf1tOEHpQOU8Vf0k0BzUf0nhRMR0pIj8F5JsftrgrRd3KcQXI3SmfbOPD/7iuI7FW3m X-Received: by 2002:a63:82c7:0:b0:3f9:e153:6a54 with SMTP id w190-20020a6382c7000000b003f9e1536a54mr33653777pgd.409.1653765205354; Sat, 28 May 2022 12:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653765205; cv=none; d=google.com; s=arc-20160816; b=07bDAt7YpFexjrO1xXcjJN+bPLdKJAdJ6Wbj8367S1wvdwPvcoZ5/HoUUXPZlXC57O IyFxaE/AZlvn2aLT+BhaPzAaFoFWobB5sugwn18a+FhMAa58cbXxZhGrALtgjhHgTzsb Sbzf9i8lvvlJTdoDAss0bvuQ6eTtW80cNq/1pvpgA7WomAtdlG1vsGvqRCkf07ufKAM9 McxhRrRXtIfI0+IzavyKjfguxcKaM4sRxs7R7wpuNhEKkDU4AXc7yjRD9jJOr/EnWSAZ lWc4mQqF0czFoI47kWx+sp0gdWfaJh506K4RsMb7JW/SZye9RE9/yYzmTLxNhyl7vKIX ZY7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=zrOnonnYzvbvqMmiuYsUJQsY0khKR0Hr8tK0MxSCaGU=; b=HuNcAI4vpuj7cEnRBKvzxvP3dz3SYJ6+eTZdxomGEtq9zLGPXgWxZEZtz71Hm5V/8w j1naCgoNmcITYuOlkbv3FJqRMQHrcp5UBcfFpoRP83mGI6pkK2UCtlGe51zy6zr8AW/n qySB8UHTkdP5N2hpzoZWRz7S2Nx5fDA0nRPucvKyPFCm4u8fELGmsQ8ObkiwzPt9ep76 G3808ESNcDGECqlzGrX8Q2QOveHymywWAF9ziM6G2Y3LBdSc3E8dSxITVtBxN/UTCxwS Acr04g8FoOVYPEsgemDYNGE9yIzufPmmdg9B5gJVJqT3QAo2zOjnldJ48a/WhKwnVZJM Owdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=VvAu9Suj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h124-20020a636c82000000b003f645667e49si9631917pgc.638.2022.05.28.12.13.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:13:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=VvAu9Suj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7CF64443CB; Sat, 28 May 2022 11:49:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352974AbiE0OKe (ORCPT + 99 others); Fri, 27 May 2022 10:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235298AbiE0OKa (ORCPT ); Fri, 27 May 2022 10:10:30 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 986EFE5; Fri, 27 May 2022 07:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653660629; x=1685196629; h=from:to:cc:subject:date:message-id:mime-version; bh=zrOnonnYzvbvqMmiuYsUJQsY0khKR0Hr8tK0MxSCaGU=; b=VvAu9Suj+dFc8Md5XwuiCmTBPwQrn9z+MvUAxZmzdUBKvtw+qYniufvL TZ7wo9VW6Bgf566aYgG7Hb6VZgY7s/uOmb0clGeHU2UborPcpTZXgPOba KXhJgPxoIe1IynW3/OEnI9L6YDMEB0kSGa9ilR+Yr7wQfNXZCD+q3t0bh U=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 27 May 2022 07:10:29 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2022 07:10:28 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 27 May 2022 07:10:27 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 27 May 2022 07:10:21 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH] ASoC: qcom: lpass-platform: Update VMA access permissions in mmap callback Date: Fri, 27 May 2022 19:40:08 +0530 Message-ID: <1653660608-27245-1-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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