Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5650284rwl; Sun, 8 Jan 2023 19:54:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXsWftF3OML0Ci4UN0YBH9PoThvQBCE/pxSgrcA6VJhKTbFE0gf5dQ78vLeKlpodDmDrlou/ X-Received: by 2002:a05:6402:538f:b0:47c:4479:d60d with SMTP id ew15-20020a056402538f00b0047c4479d60dmr53569414edb.20.1673236475045; Sun, 08 Jan 2023 19:54:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673236475; cv=none; d=google.com; s=arc-20160816; b=CydiqfztNED3gG0NZFy88VGP41eFnqMyuELbAIEt6o2N9UCIb4HFfGa/NRd/z31HGT fUjWthkri+2+QjxbsdEiPueuz6SOnqT3fFjmctDvSlcgyCVLVPRwI9K8seBPhleowx0d 55QLnFQYwQhB89V3cFrlHupa6/MO7mbDovqdMev1BjgcvLTeGjr3MhuLrQ/dHkhCtMHj mucJ52/SMF/1t4XwCLA2XRIIl/zqD9F0BBg9xRu+1ODHqmi7fzGRtTyxJxlG85yv5nWx vyWDGXwp1/Ni3xc7XarIZXq5uA/htZpyQNB+KbixYXG2V4hgD6oh3mjyxCgL+DD9kILP 4tKw== 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=Ssk2zGqyZuUY6GLeC/z8yyt6ITzNNw+rHP/o1GQE0Y4=; b=SgkT9Ih7CSDDoaJuLOKaPqaBxVTrf2RTisfBaa67M8fEcZFTR41d9K79G4XBaikSIc 6wBOG2lXkTeACzzvbqctT5So777+y/YElHsi6HqCtPx23Ly62ie8omoAqZit/hMMeywX V2xe313lABcMamMBroA/R93KdeiZ4H4GGMSMD4gavBpMHsn4Ul0+Elf1NhKBVJPD+bGT 5yuHsnuFZnXvY22+5gTIg9sjsmIAFBqXFTV4cJ5dyN7HkEVXtEIFGXgHcY06p0VKgcyA Lz1Z5GW1KrobnkmNqF7KOBNFJyq3nSzTH7782PsPAGSYgtQImiaVQjhGwMGdqzJdKzel 6cBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kVBk4G3C; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp21-20020a170906c15500b007c14d35a14asi7824959ejc.910.2023.01.08.19.54.21; Sun, 08 Jan 2023 19:54:35 -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=kVBk4G3C; 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 S236095AbjAIDun (ORCPT + 54 others); Sun, 8 Jan 2023 22:50:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236289AbjAIDub (ORCPT ); Sun, 8 Jan 2023 22:50:31 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 868D9BC18; Sun, 8 Jan 2023 19:50:30 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3093lIrv008870; Mon, 9 Jan 2023 03:50:17 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=Ssk2zGqyZuUY6GLeC/z8yyt6ITzNNw+rHP/o1GQE0Y4=; b=kVBk4G3CkX1vqjBnlrqw+RvonQ0H5OWRPySlgpNzzWNAZImsY3JAP4qSFLFwWHFgew49 Ha2Vtwn0ZCyYoOsEwIJGukDLVHo1i4bJINK/zs/S9CUs6LXZbGzl0Ml5f12xZrsBfixF zVkZW3rkJLWELyy+dkr96Y242aAs/uD6vlPD/iFffZ3RK3FxH9Gkzs0rzhNcNlY+vzsd jU9ZQXd8JDK5hl+YdQoMdLo2fbGh94DNXR1FoPDnb5vl85NUDYC0DrqPtRtz9y3hOijX MaakwFdYfd77q15Ln1R40cdrVXdLbqB83ElUSy9fPQ9v6DLOXG9c8X6/xKxcWD07MPPf 5w== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3my14ft6qe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Jan 2023 03:50:16 +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 3093oFTa030128 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 9 Jan 2023 03:50:15 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:11 -0800 From: Sibi Sankar To: , , , , CC: , , , , , , , , , , Sibi Sankar Subject: [PATCH V2 02/11] dt-bindings: remoteproc: qcom,msm8996-mss-pil: Update memory region Date: Mon, 9 Jan 2023 09:18:34 +0530 Message-ID: <20230109034843.23759-3-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-GUID: 0_I3AqAdlJWt8y4pyCqNwZ90uvagpztB X-Proofpoint-ORIG-GUID: 0_I3AqAdlJWt8y4pyCqNwZ90uvagpztB 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 lowpriorityscore=0 malwarescore=0 spamscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 adultscore=0 phishscore=0 clxscore=1015 suspectscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301090025 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_SBL_CSS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 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 MSM8996 (and similar) SoCs. Signed-off-by: Sibi Sankar --- .../bindings/remoteproc/qcom,msm8996-mss-pil.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,msm8996-mss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,msm8996-mss-pil.yaml index d3d3fb2fe91d..ad1a51c23949 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,msm8996-mss-pil.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,msm8996-mss-pil.yaml @@ -123,6 +123,7 @@ properties: items: - description: MBA reserved region - description: Modem reserved region + - description: Metadata reserved region firmware-name: $ref: /schemas/types.yaml#/definitions/string-array @@ -165,6 +166,16 @@ properties: - memory-region deprecated: true + metadata: + type: object + description: + Metadata reserved region + properties: + memory-region: true + required: + - memory-region + deprecated: true + required: - compatible - reg @@ -306,6 +317,7 @@ allOf: - required: - mba - mpss + - metadata additionalProperties: false @@ -348,7 +360,7 @@ examples: <&rpmhpd SDM845_MSS>; power-domain-names = "cx", "mx", "mss"; - memory-region = <&mba_mem>, <&mpss_mem>; + memory-region = <&mba_mem>, <&mpss_mem>, <&mdata_mem>; resets = <&aoss_reset AOSS_CC_MSS_RESTART>, <&pdc_reset PDC_MODEM_SYNC_RESET>; -- 2.17.1