Message ID | 20230109034843.23759-5-quic_sibis@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1961823wrt; Sun, 8 Jan 2023 19:51:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXuUBkvRzV7kQO2Ri/BJTXX10dLA2DIOJfEZwNxSRFBIq+wEa6zbIXWXyvysjSKbHmhGDNFN X-Received: by 2002:a17:906:c092:b0:7ff:7876:9c5b with SMTP id f18-20020a170906c09200b007ff78769c5bmr51102047ejz.70.1673236300439; Sun, 08 Jan 2023 19:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673236300; cv=none; d=google.com; s=arc-20160816; b=XVo8IIMH3Hnh8L3EeM9XvyIiZtdBgP3KilGt2EhbCXlN7gLKHlMQygbt/wNU+e2uPK uSeKf/jikVePz4CwMu6bTueyGsZnskcu5ikX1bw8A9TdiEThZyRTIftr0HmY23Jykcfb rajXxewQ6NkpeOuow5Z0nEVXB6YclpN0yVpANICLbe7oe2pNp86+j52aQbXpVGfNmKvg RtutcfooYRhAP0GrO5WNnMu204piYrmHb9sR4ZWmOD9FKgEjCtVMPz9SQeT5PqTzASrV 6Cszx+hIRji1kQ0jJZt20A9UJJLo2UI85Jb+LBOILeaZSB+6qrBC5tAq0cPE0p0JzQ7p Ae9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=b8UaVUFsBgSVCicxS1NXNvwq8viNf9I/S/m9exCz0Q4=; b=wr+0rqxos5RCMzBm8u20/k5xkjQnoXvJVvUDFSL6xnnTvb429m1A4Aqt0kB1dklhPn CEbFdsBCeAvU2puaUhG3yK4cNkJPjSY5EDch/tsDESO/uA4QjAAO2b5D/nmXM8xjpS34 HM0sQ0tDUj62TX/0aSRe5WTUI7GgBJeZUeHHSuQHn4wVaX4o/Z0O6WZ39ZwPAikVQVt5 2y/Ub3Qb2PfTVwov55e2f4SRcraU607Z7jNOiaZnSrywIor7qXd5pj2XkcvGifi/YZEL hiZY0BqC0zvHtdo0iT1KY/rRQ3fQaCMecL6wXbDyWW+KU5QRT+/6lAW/vhtoStxeKEEf bt5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=n2SbldEk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xj1-20020a170906db0100b007c4fadff8dasi8476157ejb.933.2023.01.08.19.51.16; Sun, 08 Jan 2023 19:51:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=n2SbldEk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236320AbjAIDu4 (ORCPT <rfc822;jian.xie.xdx@gmail.com> + 99 others); Sun, 8 Jan 2023 22:50:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236303AbjAIDuj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 8 Jan 2023 22:50:39 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EBE0247; Sun, 8 Jan 2023 19:50:38 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3092Kiu5006452; Mon, 9 Jan 2023 03:50:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=b8UaVUFsBgSVCicxS1NXNvwq8viNf9I/S/m9exCz0Q4=; b=n2SbldEkD5Sv0Rl4yMNFi3dRdhH8mghjzMw/PTU7JBBC1IwwPS0Xw6qWbvNWXCgxIJf1 nrr9g+6SHJXVteePVvknOD3YeOmJys3KUDWyWcUPBOMifc6euNli7rwwc5kTr4Hbu6Zy wN+ZDNC0MEkNmqsUsiJDTSMQvx8MnhyHyP4PDijJr8R5lU9dRtEG0SEsyDzsSEILLjNb 79/3fwRY3ASE246QuZaWp5Z7H0OPPUukSUZHiaiYEvsQqaKxExH2h/9BlWTGbRObrdRl ykFsXpdJqSKp/d5r0cOzEkYWckwsajeZLA02Xfgn6LqfwRyZ4idZo3DdqfLEtoSREZ6J dA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3my1grj6tv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Jan 2023 03:50:25 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3093oO3B030171 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 9 Jan 2023 03:50:24 GMT Received: from blr-ubuntu-87.ap.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.36; Sun, 8 Jan 2023 19:50:20 -0800 From: Sibi Sankar <quic_sibis@quicinc.com> To: <andersson@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <robh+dt@kernel.org>, <manivannan.sadhasivam@linaro.org>, <robin.murphy@arm.com> CC: <agross@kernel.org>, <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <konrad.dybcio@somainline.org>, <amit.pundir@linaro.org>, <regressions@leemhuis.info>, <sumit.semwal@linaro.org>, <will@kernel.org>, <catalin.marinas@arm.com>, Sibi Sankar <quic_sibis@quicinc.com> Subject: [PATCH V2 04/11] dt-bindings: remoteproc: qcom,sc7280-mss-pil: Update memory-region Date: Mon, 9 Jan 2023 09:18:36 +0530 Message-ID: <20230109034843.23759-5-quic_sibis@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230109034843.23759-1-quic_sibis@quicinc.com> References: <20230109034843.23759-1-quic_sibis@quicinc.com> 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-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: x4LxtTybgtWM0ascgYxf9MybJiE25rz1 X-Proofpoint-GUID: x4LxtTybgtWM0ascgYxf9MybJiE25rz1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-08_19,2023-01-06_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 mlxlogscore=963 lowpriorityscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 mlxscore=0 phishscore=0 clxscore=1015 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301090025 X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754515426855938533?= X-GMAIL-MSGID: =?utf-8?q?1754515426855938533?= |
Series |
Fix XPU violation during modem metadata authentication
|
|
Commit Message
Sibi Sankar
Jan. 9, 2023, 3:48 a.m. UTC
The dynamic memory region used for metadata authentication would still
be a part of the kernel mapping and any access to this region by the
application processor after assigning it to the remote Q6 will result
in a XPU violation. This is fixed by using a no-map carveout instead.
Update the bindings to reflect the addition of the new modem metadata
carveout on SC7280 SoC.
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
---
v2:
* Pad commit message to explain bindings break [Krzysztof]
* Split dt/bindings per SoC [Krzysztof]
.../devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On 09/01/2023 04:48, Sibi Sankar wrote: > The dynamic memory region used for metadata authentication would still > be a part of the kernel mapping and any access to this region by the Same problem. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml index b4de0521a89d..005cb21732af 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml @@ -95,6 +95,7 @@ properties: items: - description: MBA reserved region - description: modem reserved region + - description: metadata reserved region firmware-name: $ref: /schemas/types.yaml#/definitions/string-array @@ -240,7 +241,7 @@ examples: <&rpmhpd SC7280_MSS>; power-domain-names = "cx", "mss"; - memory-region = <&mba_mem>, <&mpss_mem>; + memory-region = <&mba_mem>, <&mpss_mem>, <&mdata_mem>; qcom,qmp = <&aoss_qmp>;