Message ID | 20230117085840.32356-5-quic_sibis@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1644378wrn; Tue, 17 Jan 2023 01:02:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXsPRRprWMmTJ8/d+uMKLWJs/qlngLrF85YA7evgvD3wBCKmzr9u8fCW6SZhk9sCsBCRg8BH X-Received: by 2002:a17:902:b684:b0:192:a4e5:ac5f with SMTP id c4-20020a170902b68400b00192a4e5ac5fmr2651079pls.61.1673946132858; Tue, 17 Jan 2023 01:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673946132; cv=none; d=google.com; s=arc-20160816; b=YToGdSwsDopr1Ut+yPeDhJmAQHmTK4VaxyA4gvkxdnbV9gGc2glysxDeM1fmkClwX7 eakTCtzUDFOVTIdpqbhTHV1ossKFp9ZWEdFIvVhALp1Ctka5nGgEvVpFFXlhg6ZO+8aZ kwnLTuNO1BEOauVHl1h58b/rxrV9W3/iNUON9pL5mym04ApuPw6yVCz+tjmWo8lRUIoe m+QFXCWVj/Chopm81IVpcIloFFVUIe4y2bzF4O0vtyCsYWmBgAFX6WEK9HssRAiq3ZtT M0HhK69uWbh60/UaUbCP/GREMJPa/U23Ohu0g8IGt5CyJ3pe887Dvve2sRCEbMqXSmUD VSUA== 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=LK51BeKDmJ1w0wa5xttBxkdXdUKlvG/KRCLgmWha3WU=; b=MlY0Vk9G0RuOSQs23fDnRo3SH51Mq1VdJv+O37RWeEbhQUKmuNhwt7xQnoRVBZjN2X PsG1N7oLqqX6/fHsEjsuz6IWHX7+0IOFrdyzJz3SD+tB/bZHyAkYd13+tu7MciZYSF0I CGse34QaxBuwlYGhCS7yCyt7616iiRvwnQomYy1lS9J1gpGXk1OGyPaxHLEVNS+MjLT2 XGygKS6NMPNmVKz5TdKkvItAA+u8Axz7kb7AtuM0gr2OA+P+WM4vT2c+n6+GixkeHocm uhE/YacD4xdNlXYUoGS5LyDe4fkmBNxF00R1LHwdjYBfbLcw2Qur3sjr4kBaL9RbkXTA 6Cng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=eAmeom4o; 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 v10-20020a170902e8ca00b001948d2ef5b0si6854985plg.345.2023.01.17.01.01.55; Tue, 17 Jan 2023 01:02:12 -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=eAmeom4o; 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 S236305AbjAQJAh (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Tue, 17 Jan 2023 04:00:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236241AbjAQI7l (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 17 Jan 2023 03:59:41 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5848B23D8F; Tue, 17 Jan 2023 00:59:33 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30H7Pi9T014208; Tue, 17 Jan 2023 08:59:21 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=LK51BeKDmJ1w0wa5xttBxkdXdUKlvG/KRCLgmWha3WU=; b=eAmeom4oEDsqQPD7qZgkvpS/A5b0wjAumJqyl94cYC4rXaGlxxp2cPDMWI4yvvQmz2jj JVNr1RlLEtx81VYF0DFz5qB4do3o7Nci2tP2m+1dcJM02A/x+PC4ODHBImgpdDrrY/HM WGwsBknIa98tIbxaPKhxLAIkIoR5VsbpiG4991c/f4oGqRjfMMdSbQa8XI25AQ4fHXVX h6OhvDucr33vEjU2uoAIYTt376TWiIADIxGwwqNlS55q4tT2jL3hAYXhl8LaRbwBK5ON ILTRX7JLSBp5i7JGZOlyVxA6A84uV6kMzaSEhiV0OqbD3KJzP0EWO6u1NYmOWgSvkhOX 0A== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n3kqsw5v1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jan 2023 08:59:21 +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 30H8xKPR008136 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jan 2023 08:59:20 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:15 -0800 From: Sibi Sankar <quic_sibis@quicinc.com> To: <andersson@kernel.org>, <manivannan.sadhasivam@linaro.org> CC: <agross@kernel.org>, <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <robh+dt@kernel.org>, <konrad.dybcio@somainline.org>, <amit.pundir@linaro.org>, <regressions@leemhuis.info>, <sumit.semwal@linaro.org>, <will@kernel.org>, <catalin.marinas@arm.com>, <robin.murphy@arm.com>, Sibi Sankar <quic_sibis@quicinc.com> Subject: [PATCH V4 04/11] dt-bindings: remoteproc: qcom,sc7280-mss-pil: Update memory-region Date: Tue, 17 Jan 2023 14:28:33 +0530 Message-ID: <20230117085840.32356-5-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-GUID: 8rZS3-YKFDXD5vODVasFEYzObtDTPXJU X-Proofpoint-ORIG-GUID: 8rZS3-YKFDXD5vODVasFEYzObtDTPXJU 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 priorityscore=1501 mlxlogscore=979 spamscore=0 suspectscore=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 adultscore=0 phishscore=0 bulkscore=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: <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?1755259739835465990?= X-GMAIL-MSGID: =?utf-8?q?1755259739835465990?= |
Series |
Fix XPU violation during modem metadata authentication
|
|
Commit Message
Sibi Sankar
Jan. 17, 2023, 8:58 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. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com> --- v3: * remove double space [Krzysztof] * Pickup R-b 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(-)
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>;