From patchwork Wed Jan 11 11:43:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 41931 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3271208wrt; Wed, 11 Jan 2023 03:46:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXso/XvIZvwuDEI9KsomRZCeL9P0xUirWSVZrKWDPxGxUrTC9ENdwfhxFL0ebdck8Vo5OA/V X-Received: by 2002:a17:902:e948:b0:191:309a:d752 with SMTP id b8-20020a170902e94800b00191309ad752mr78357946pll.47.1673437592620; Wed, 11 Jan 2023 03:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673437592; cv=none; d=google.com; s=arc-20160816; b=VmUVcq2vgTDWHYRkBP7BzPzpeBZcAQR1naZmb9/74wbhgAM7GQ2kwU/kilGu9mTCCy NtWY4jq/G0X2n41GAQ7X6CxFbGWTae1KK8dOb2RdGUmXjn8kgns9GHZShlrAg6LzLhbU U1ter+AAmtaDgTvqMGEe+iyQzowVyCZae5xU6dLJPpr6WIQggmZj/IoTtrXmD3TBEcl0 5i50sNK7AUboofQgin83T3HHIpTxOsAlezAalta5G+fXwsH9eYq5i4AUa7ZZOEz2OygH gkP6T5wXhhin87ULqEO0Cp+fLJLFI9O0K1I+bWkDVVElYxDfxEav7UbiiZLdlasg76nX WZZw== 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=Ej2YLjG8eLEb1vBNlM7ds8q5Ps8MBuX7g9C+TY0bXHw=; b=S87fwp70CXWzD2dlnRMGQW8t0CgB2tWPl3X6gBYJI1dncnnEK1ztBwm2feMUwowz2i jFpRNlO+1bCRFRPUefX+XAbNbrqp7A2AylE95V8HmM9D72e0aHrF1m5D5Eg2AfO7kyCE zAwpVXcYsu23KME+LOcKTZwUNKMDaDsI7ZXDy6GrDejCD4A2vR69EfrB9usbrUZh3ltv tacghvQWI6GTa1Qc1y0Sd3JyUDfzI8w9kJs6H52XF2iPxvB3cr0HujQGC9zva8bf3hFF KBMBylW2JEBBSUZ4Av17e471PB5GCtAdnB3OxAxTGDWRy5mIon5K9gl1unzn28C2Zd8V lRyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NKutRHNL; 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 c7-20020a170902724700b001926fc5007bsi12719888pll.506.2023.01.11.03.46.16; Wed, 11 Jan 2023 03:46:32 -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=NKutRHNL; 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 S232779AbjAKLqB (ORCPT + 99 others); Wed, 11 Jan 2023 06:46:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236005AbjAKLpc (ORCPT ); Wed, 11 Jan 2023 06:45:32 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D75082727; Wed, 11 Jan 2023 03:44:21 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30BBOD8W004278; Wed, 11 Jan 2023 11:44:08 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=Ej2YLjG8eLEb1vBNlM7ds8q5Ps8MBuX7g9C+TY0bXHw=; b=NKutRHNLuuqUYbCuuxgBkJOh6gwTQFa3qYP4TLoymo3pcJisjP+4xaOYe2tECslCB/8u t3RqNCCHpQME/jQu87Rcs0dN+bY3heryGWIPfe0PYx1QCAFIBqFbz+SeQG2QiwejOdV+ sCg7K49+YdVjQIP1A2rWWikw17i7HSLS5ar3VW+QXZdMLbhnRDOPYsY4P9L5SLWz0ple DckgtCXBuHSvhDG4BCDfEhzpIrnosKRl8XxGoO68vpngibFmQmqT8Ul9BZxa6RBEp2aA kWs58WjpwkOZJmz4t6hk6lsqlF9dvGmPXinXGYH7sR1Uhnb4gII0D7DAtz1UVuaeuYe/ gg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n1k7qs4kj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Jan 2023 11:44:08 +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 30BBi77J024757 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Jan 2023 11:44:07 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; Wed, 11 Jan 2023 03:44:02 -0800 From: Sibi Sankar To: , , CC: , , , , , , , , , , , , Sibi Sankar Subject: [PATCH V3 02/10] dt-bindings: remoteproc: qcom,msm8996-mss-pil: Update memory region Date: Wed, 11 Jan 2023 17:13:29 +0530 Message-ID: <20230111114337.24782-3-quic_sibis@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230111114337.24782-1-quic_sibis@quicinc.com> References: <20230111114337.24782-1-quic_sibis@quicinc.com> MIME-Version: 1.0 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: OHpRYSX7QCHKtHd7LrcSxXSfpcEKArLm X-Proofpoint-ORIG-GUID: OHpRYSX7QCHKtHd7LrcSxXSfpcEKArLm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-11_05,2023-01-11_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 adultscore=0 malwarescore=0 clxscore=1015 impostorscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301110086 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754726497500010315?= X-GMAIL-MSGID: =?utf-8?q?1754726497500010315?= 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 Reviewed-by: Krzysztof Kozlowski --- 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>;