Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4506370rwb; Tue, 17 Jan 2023 01:34:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXtDOnJJO3Sdm1MQTtxL/k4RGgEbVCywFogcmwx1fkjeR5fo7gHoZ276Cz4G0Nkp995moz0Q X-Received: by 2002:a17:90b:1289:b0:229:55eb:ec2d with SMTP id fw9-20020a17090b128900b0022955ebec2dmr2426082pjb.22.1673948088960; Tue, 17 Jan 2023 01:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673948088; cv=none; d=google.com; s=arc-20160816; b=bxqry0QxP5RHaLTMed2zvUvRvLFh9MX0nFEn0WzhbYLbk7r25IdDCbM1tVUnS0pqa/ ohysJn1jhg4eXBLvqxb8r70IheRK/Ft92CzeEf1bWrsV1Sdjn/l2QUusyxzTOx2hoLlf z8fPrxIujDuxU8gxD2urC4gWt2FxONPV8BXrhVTBNn6alHg/zv+InNoHiw54vwtfQ/6f JCDNN30bjo984MJuvXR82VXplxmlzR29bz77zugZoyaD+/rYOLfrcn15PpN7ZTm9+kVa ciPwJL3HSYBtk9lpp0aPJzIJ3e1cHFmq4dfzXdlCL6cH++mSgWFFkLbvBjBjYhLzX4iM eb5g== 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=jJhJij9nUxCMWiqlpsHqUWoWUBgvJck2BWFm6vGyI0o=; b=ArqHMSPM8MAPBk0IMnOfnZqB+ewJLSwjWQqU2AnUuGd9+AXsfNSBkQILoVvrHmpQOi G4qm3NzyKoZ2cEje6pNpklVoJlyBlaYi7khmI4rSYGgYUc23US8jSAa1k0w4sQTtcIex pjvxb02uUClvmD83FusN6eCoRtUWaauKGPR7OXj7ku3wpVPxS6b2f2dO19aDTEu8Ucw/ /sx+3Ph3lTvhFEj6jE6xq0sve6YSSQv8HUX9ffJHlZiLObfUZRL8eFqjg9qdGmF2Poq4 FF+6jWx0xMkytxzc1Ytcj4bvIf21osS4hIxYPKPdjCIizzyyzc3Ix/CJSH4atdbOxO5t Ud7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YJXSpLtw; 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 rm10-20020a17090b3eca00b002297b24e443si5987046pjb.57.2023.01.17.01.34.43; Tue, 17 Jan 2023 01:34:48 -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=YJXSpLtw; 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 S236283AbjAQJAY (ORCPT + 49 others); Tue, 17 Jan 2023 04:00:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235797AbjAQI7b (ORCPT ); Tue, 17 Jan 2023 03:59:31 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3412193EC; Tue, 17 Jan 2023 00:59:26 -0800 (PST) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30H86H3j018599; Tue, 17 Jan 2023 08:59:12 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=jJhJij9nUxCMWiqlpsHqUWoWUBgvJck2BWFm6vGyI0o=; b=YJXSpLtweYzt8pnRNyAuBT8asZdI9lffTH6nnaUiKVG6Dfibmv4Ot1EP3tnj0wsNmDgb QvK++eFxql9JoaFb0IvJstiUfGYbE5oeWye3eoHgy8c/RN7fR2q0fKsOB5wgow4gi1uo ZVqlHtAYI9YhtzH+UrR9sl3MMN1QyLsrGdGOEQ+Hsc1EWm+pDJD4g0yCBWaHI0gIfILA UI7n/qkGcLr7ZZEJQmSPhbG/eB6SVbvIVDkFCo/Iw+1abB2IZQthARR2eLR112cdvo1u 9wTnJy5W2jop67kLjblLnTovpZynN3qAS7NkHP5IdT3fIhxUYe2pwuA1H8x5Wqurt9Zm lQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n3mg3d411-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jan 2023 08:59:12 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30H8xAmN007601 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jan 2023 08:59:10 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; Tue, 17 Jan 2023 00:59:06 -0800 From: Sibi Sankar To: , CC: , , , , , , , , , , , , , Sibi Sankar Subject: [PATCH V4 02/11] dt-bindings: remoteproc: qcom,msm8996-mss-pil: Update memory region Date: Tue, 17 Jan 2023 14:28:31 +0530 Message-ID: <20230117085840.32356-3-quic_sibis@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230117085840.32356-1-quic_sibis@quicinc.com> References: <20230117085840.32356-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: xDFiWnsmHUulND_23bQQhNW66n1EVCVT X-Proofpoint-GUID: xDFiWnsmHUulND_23bQQhNW66n1EVCVT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-17_04,2023-01-13_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 suspectscore=0 clxscore=1015 impostorscore=0 bulkscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301170074 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sibi Sankar --- v4: * Pickup R-b v3: * add blank lines and additionalProperties: false to mdata objects [Krzysztof] .../remoteproc/qcom,msm8996-mss-pil.yaml | 18 +++++++++++++++++- 1 file changed, 17 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 1aa5e5c7c2bd..c1ac6ca1e759 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,msm8996-mss-pil.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,msm8996-mss-pil.yaml @@ -122,6 +122,7 @@ properties: items: - description: MBA reserved region - description: Modem reserved region + - description: Metadata reserved region firmware-name: $ref: /schemas/types.yaml#/definitions/string-array @@ -172,6 +173,20 @@ properties: additionalProperties: false deprecated: true + metadata: + type: object + description: + Metadata reserved region + + properties: + memory-region: true + + required: + - memory-region + + additionalProperties: false + deprecated: true + required: - compatible - reg @@ -313,6 +328,7 @@ allOf: - required: - mba - mpss + - metadata additionalProperties: false @@ -355,7 +371,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