From patchwork Mon Feb 13 18:52:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 56459 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2513653wrn; Mon, 13 Feb 2023 10:54:41 -0800 (PST) X-Google-Smtp-Source: AK7set9ieNv9nZs03L9xqD4gn8wW6H7nRtDULmfu1QGsSJYRInYgM5h3Cf1ZMXTELkGpqe0omdzT X-Received: by 2002:a17:907:3f91:b0:8ae:bb1d:45e4 with SMTP id hr17-20020a1709073f9100b008aebb1d45e4mr21635232ejc.26.1676314481006; Mon, 13 Feb 2023 10:54:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314480; cv=none; d=google.com; s=arc-20160816; b=pT9WmnvhzWD7AkTLbjthtVgasLhNt41fkrDJC/RvE4CwsoFrt5NDit26XcFVj18jCB xfinOyVmxfMbIpf2xD80p5pHEwzYsvFW5po6LmgjgGausLqTFVnwXV/PoDH2w++4RVZP dz7GvzIAz6ZFLpHlfiArbT83lm0rnP1bUVCESQ8F5jNt+7HfX9O9HTHj44NCireUHPxv ATVCc73T98TUGCwp3iKG0O69ZOaizIjFxTLmHfnC73yW1Vl4VqNm3+lSZ7Jc2SEYvvgY 8kcs64kPoYjYneYdQSVvZouALhLPOTksg2EXG+CHI+LJF+wNIoCyeEm1RMw2SCZijuTJ q5JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Jd2xlvXaDF9+Y7j/LDIr1vKtzraQtip8hgRISTjRAnY=; b=l9g9eelcjGugpAQyE4HYdfMHsEpSS2Q/GWyBqmlsUpv3utNZXF5JUkocbFH8SqFpHe 35qYZJAgGFo5vlJq/P1js2L98VlWfk4k2dzfwUrQ4jR6PHzH5CiRohROpTRsp+qiS0Dw VUM7CM95lh6j1nsU/m8rgYZcBWY6lKqh87VoK7IFNuAdffTk6+Am/D9hVzd1eCGnvgTZ rSdmp1924WdZeqAKz0W6O2dJi8v63stAY1uY2Kr2qfp1cwL/hIY4Hyg7FIFtWFgvrhFK hszl1g18LJzv8VRCVAU+Ix4iAIBfTJpO/nw7a8wiltPceUlLtdrBUJ2bM9aFc0ZubO4f Nt+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Wuq3x4/U"; 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 23-20020a170906029700b0087d8121f007si16976714ejf.441.2023.02.13.10.54.17; Mon, 13 Feb 2023 10:54: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="Wuq3x4/U"; 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 S229850AbjBMSxY (ORCPT + 99 others); Mon, 13 Feb 2023 13:53:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbjBMSxW (ORCPT ); Mon, 13 Feb 2023 13:53:22 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAB40126E5; Mon, 13 Feb 2023 10:53:19 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31DIpuHl022253; Mon, 13 Feb 2023 18:53:15 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-transfer-encoding : content-type; s=qcppdkim1; bh=Jd2xlvXaDF9+Y7j/LDIr1vKtzraQtip8hgRISTjRAnY=; b=Wuq3x4/UPQV9pZB5JY9EMfcpZhyNHJvGU1URX111yrtOJOEa3h2r0Jspxph7Fh3+fQz+ CnoOFl/bWwlV9s7ZUlBfCXTejE/UieUBjqmD/Bjewk7mIkhMxcm716vgxjRXP3d6Q3Yk UEJeJ2GkQ9z+ZOR7pygCLFRI1WQ8zTIi5Z22YpfkhTtAhx/f5AFXW1VfZSKmvikYCnt/ R9RuwKLh6J2lTvn9VhPHUs3bvTGaT20Y9g8j3ZMxLO3SXnskjZqktWOfaeSgcztYt8Vm LiWRQrjzxRvXm44AfC4Y9DPLXnUWW9D7Xo0lkGEiuhDTmtcuxxLlAizzMieTCMqVVXn2 nQ== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nqtv08038-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:15 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31DIrEg5030239 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:14 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 13 Feb 2023 10:53:14 -0800 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jassi Brar , Mathieu Poirier , Robert Marko , Guru Das Srinagesh CC: Konrad Dybcio , Manivannan Sadhasivam , Melody Olvera , , , , Subject: [PATCH 1/9] dt-bindings: firmware: qcom,scm: Update QDU1000/QRU1000 compatible Date: Mon, 13 Feb 2023 10:52:10 -0800 Message-ID: <20230213185218.166520-2-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185218.166520-1-quic_molvera@quicinc.com> References: <20230213185218.166520-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: aRbdGHtTbImmjEgH8bzRqZDFsSeBdKRG X-Proofpoint-ORIG-GUID: aRbdGHtTbImmjEgH8bzRqZDFsSeBdKRG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_12,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130165 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?1757743133102569700?= X-GMAIL-MSGID: =?utf-8?q?1757743133102569700?= Update compatible for QDU1000 and QRU1000 to include the interconnect these devices have. Signed-off-by: Melody Olvera Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml index a66e99812b1f..d8fdb00738fb 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -166,6 +166,7 @@ allOf: compatible: contains: enum: + - qcom,scm-qdu1000 - qcom,scm-sm8450 - qcom,scm-sm8550 then: From patchwork Mon Feb 13 18:52:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 56463 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2514035wrn; Mon, 13 Feb 2023 10:55:30 -0800 (PST) X-Google-Smtp-Source: AK7set83Oyf0cjKuyz8FNIIaXsxUjF+S0VxcIFdaPeOkH1Cxz+KMpVRUoUTmln5Zq6FfGG4FlscL X-Received: by 2002:a17:906:a5b:b0:887:aac3:9340 with SMTP id x27-20020a1709060a5b00b00887aac39340mr18800177ejf.29.1676314530368; Mon, 13 Feb 2023 10:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314530; cv=none; d=google.com; s=arc-20160816; b=VkFZ82aYCxumbJqxgk+G8eRUVSmqR2rgeu+FfmQP4JEgcmRZV0gcQx2am4veOKSZ3c moqNssZvL5Teby1ZZR781M8482vlXXuXgt2bdG3ED6QMlq3WViFMp0L8UKeQHqF0bV+I C2KE0iTc2rtcUlh8vaOIKQO7ITdm9dURrwf+q/Yzlm2Odd6U1ed1VFlKdfa0h4+7KWCh ZBvKYKgKB5i0TxB4fcIYGM4sWzGzQ789HWNkHI4J89pxzP1XDP6jnE1C71f54QX4WJDW PEootGB8FPiwZiTmp0olCi8P91veAbp1w3LmI9onjL38hZd00/L1GR198RG3dKF3PhcK yjVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7VMTi7KR306fgWF7kw0qN8fifIrVpi0GNTkSgDn9gWQ=; b=vDu7vjRzme/qszTa0SxFjiDiaE2hBSqBogKaKJmUkZLsjvh5iTI+FQpwjh/axc+p1F AqewW1ib9rXNYQ4SROYiQbx2Ry4sbmxFIpyIHAa0tguDaA61Hzi6JhBBVORtVqeXyA+D It5yL+wAvxtxVdzBjw/NHW/Evz98DuCglpOHuiX+OVUiVMUCdkS98iu8uuoq4FjTBgmz ZguAmQywRFeWm7T6rCffVKJPu2XNaCzXnicVLmIUgEaDsHiwCKeJsPPQyFPO+LbO0eYk MOdZNrLEOZMjgHdTdrbGrBInilANKlwOpJ+xlaRxKf/YhamcY47D5ixddbL1fALCIFJg u+Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PCkHLQxb; 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 x1-20020aa7d6c1000000b004acbcf2585asi7522933edr.614.2023.02.13.10.55.06; Mon, 13 Feb 2023 10:55:30 -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=PCkHLQxb; 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 S230152AbjBMSx3 (ORCPT + 99 others); Mon, 13 Feb 2023 13:53:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbjBMSxW (ORCPT ); Mon, 13 Feb 2023 13:53:22 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C09FD1EBEF; Mon, 13 Feb 2023 10:53:20 -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 31DDoLQF016691; Mon, 13 Feb 2023 18:53:16 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-transfer-encoding : content-type; s=qcppdkim1; bh=7VMTi7KR306fgWF7kw0qN8fifIrVpi0GNTkSgDn9gWQ=; b=PCkHLQxbOA2Y9AJ0COw+PCyPT/wi8tBa8bXteRMYmmJJrPNSTaUMVk/h+I8F0nOZn5o0 /jncTaAYyGh3mlaq9NIRER84g5Hqu+G0/2JG3R3lAtw//0C7puPCC3UlHgdsKANbohLo a0uKeXtgRquo0spTywCs0H4WFWoEU8JxLr+WXu3WqA23Ugwa20uUwjF8A8vNWZav9wz8 Qgg1qXZl2kMojmet3pYvWRNlbfiKAnZKsSr3CCvgP6zP1XuHYkSptXCfDVgI45RiJT4b 3ACPiBLH3jCjLUmUpiD6mWn+ypBu5yWADgPkJjXr0SzRzlDvv0aHGwj+243uzDRx5gs3 lQ== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3np3dew1t7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:16 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31DIrFPf030244 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:15 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 13 Feb 2023 10:53:14 -0800 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jassi Brar , Mathieu Poirier , Robert Marko , Guru Das Srinagesh CC: Konrad Dybcio , Manivannan Sadhasivam , Melody Olvera , , , , Subject: [PATCH 2/9] dt-bindings: mailbox: qcom-ipcc: Add compatible for QDU1000/QRU1000 Date: Mon, 13 Feb 2023 10:52:11 -0800 Message-ID: <20230213185218.166520-3-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185218.166520-1-quic_molvera@quicinc.com> References: <20230213185218.166520-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: TYhL_MgPLtxNK-HSmqtulONYhDWZFysS X-Proofpoint-ORIG-GUID: TYhL_MgPLtxNK-HSmqtulONYhDWZFysS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_12,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 clxscore=1015 adultscore=0 mlxlogscore=907 malwarescore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130165 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?1757743185418902876?= X-GMAIL-MSGID: =?utf-8?q?1757743185418902876?= Document the compatible for the QDU1000 mailbox. Signed-off-by: Melody Olvera Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml b/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml index f5c73437fef4..29254a460d62 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml @@ -24,6 +24,7 @@ properties: compatible: items: - enum: + - qcom,qdu1000-ipcc - qcom,sc7280-ipcc - qcom,sc8280xp-ipcc - qcom,sm6350-ipcc From patchwork Mon Feb 13 18:52:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 56460 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2513723wrn; Mon, 13 Feb 2023 10:54:48 -0800 (PST) X-Google-Smtp-Source: AK7set+JCfvktgUFYInT7m98f0Zz8VCloRZaOPSroByj/reEhKGoKaNGSjfccyMu7geNCaXayD++ X-Received: by 2002:a17:906:4f99:b0:887:981:5f7c with SMTP id o25-20020a1709064f9900b0088709815f7cmr24822415eju.11.1676314488075; Mon, 13 Feb 2023 10:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314488; cv=none; d=google.com; s=arc-20160816; b=iPJvVAm6alT6+IVq5g1a/yJie+NfQDCQ6Os0mLicM9bg1zEdCTLjxVen2HNnzYvIPx k8Nvaaqv6Pzr6dFnEgnKkuTusKWRHczGkVh1LRoCkElEybp/ey+hMKugWn1y6pML+k6u 3W0rUEYq7ARAAuJsNpP8isI3makJrfXSrtQR0CTfuqte6vnKMc0V92D4thU+7RYQrl95 olGW14ViN2QjCg1TgHGztQ0PY7bUICvlYiIc/7wvHaYwr6To4LHC/IceQPfGkz/oAITP FYe7nzDf28iA8sEIl8I8AB+3C44a1SYWt3v9AgiPBy7gnoCx2jtpobNSz2tZmcSP+WVq RuYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9uCxH/ePZ/tz3F4czrOFHZuYS2hV+mYcBvJn+V94sGg=; b=c4NNOwkRYIKyy2tCL8QQCpa780kD1gt05eFdp80W2XXAylo+SoDvBHwXzRlIf1r4+S o9t8y/h/d8u+Cef/Au5vU2mUmUuqp1fi9jTayxVdAeb8FdM+BfXLgaK3ZsMK8rKUosWt 4rE2Ek7i75djuEXFtubfEMxPxwji3MQYtUE1XMM7HtJXMs6d3YqkouCRgk5zkRK7jAvG MXhv4n8y+HcVp3t1W+heyxAuI58/IvW0wm+3LFNSeTBJW4lQR4S1OZOloKtqRwjbsa++ 8x2CDXJuUXbh4RS3M2a/VGxEd7VuHYO2WbIokmbisnTcFTaSBLi2jSHDTwcY1Iow5ocS DkzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MZofaLAu; 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 fx36-20020a1709069ea400b0087a3b3f01ccsi15845677ejc.923.2023.02.13.10.54.24; Mon, 13 Feb 2023 10:54: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=MZofaLAu; 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 S229977AbjBMSx0 (ORCPT + 99 others); Mon, 13 Feb 2023 13:53:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbjBMSxW (ORCPT ); Mon, 13 Feb 2023 13:53:22 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6C44D536; Mon, 13 Feb 2023 10:53:20 -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 31DIlahC008363; Mon, 13 Feb 2023 18:53:16 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-transfer-encoding : content-type; s=qcppdkim1; bh=9uCxH/ePZ/tz3F4czrOFHZuYS2hV+mYcBvJn+V94sGg=; b=MZofaLAu31VQT4J3+agFZE4E6cRCSqQ+vuMUTaP2CWQwUPELHA13qV/yZUCq4FwUUeNe FPAKNAZR6a7au/fYXt2IHsdPmH6ELcFtOLbh2fZYTsOITZumXgsxeo1IpKIdeBl10q8R Kk2B9CIedpeeyvcW2E0hOdq37b3yXJBxiF2h9u1G71xzdasrEOpu0tj6RMWNqB9WswsR 48s65A5O426BcJAfEqtVyBjtR7jWWY3eCQmpnWyAWKJRwdIXJwRiQPMsF316BnpgSwNH UpDO0bRdILt7gacCuQUG5tdtJULSBxkUqzD2bTkjVre9H2YhmxQTW0XsQ5viqfjhsdkG xQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nqtsur0d2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:16 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31DIrFfn006986 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:15 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 13 Feb 2023 10:53:15 -0800 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jassi Brar , Mathieu Poirier , Robert Marko , Guru Das Srinagesh CC: Konrad Dybcio , Manivannan Sadhasivam , Melody Olvera , , , , Subject: [PATCH 3/9] dt-bindings: soc: qcom: aoss: Document power-domain-cells for aoss Date: Mon, 13 Feb 2023 10:52:12 -0800 Message-ID: <20230213185218.166520-4-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185218.166520-1-quic_molvera@quicinc.com> References: <20230213185218.166520-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: cZuWaAhdJ1pGM4mdhElvOm8ssiEtgIY2 X-Proofpoint-ORIG-GUID: cZuWaAhdJ1pGM4mdhElvOm8ssiEtgIY2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_12,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 adultscore=0 impostorscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130165 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?1757743140778544025?= X-GMAIL-MSGID: =?utf-8?q?1757743140778544025?= Document "#-power-domain-cells" field for aoss devices as required by power-controller bindings. Signed-off-by: Melody Olvera --- Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml index ab607efbb64c..bcfa8e2e6a04 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml @@ -60,6 +60,9 @@ properties: description: The single clock represents the QDSS clock. + "#power-domain-cells": + const: 1 + required: - compatible - reg @@ -97,6 +100,7 @@ examples: mboxes = <&apss_shared 0>; #clock-cells = <0>; + #power-domain-cells = <1>; cx_cdev: cx { #cooling-cells = <2>; From patchwork Mon Feb 13 18:52:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 56465 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2514791wrn; Mon, 13 Feb 2023 10:57:10 -0800 (PST) X-Google-Smtp-Source: AK7set+vhiUmDhJobIvTVA2fpR+QnnS8P9OK2TbQPi/5eN6K+CGvvkzEQVrO9lqPLdqsKXDt1MHM X-Received: by 2002:a17:906:34cf:b0:87b:e105:5d9a with SMTP id h15-20020a17090634cf00b0087be1055d9amr26309657ejb.67.1676314630668; Mon, 13 Feb 2023 10:57:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314630; cv=none; d=google.com; s=arc-20160816; b=HGeEjiWd7XJZ+zmwLv2lKH6KV+XLFccumbOqv+BTTMvRKr4DYMPipdip1TqsmchpbQ Rl+MRzaUiw9GhT2JcORn5DHZaQUL/2TNvCJnZ8J2Vu+XFjiwww8Ar2ipqkx3XpRsuFI9 TOHrzS6JnD3EcWaPDIo0Ve4fMBOKqIkwY9d3ptl+cbABVv4Hg+O2hS8bxpxwcE7Ke4Ss I0dimsws+DrzsPMFfPFVViGFp1QqFZ2vATe3iTwzJQg+VfACcVxQG3b25jIoMcMK1ldO squRS7M+HmYZL/014As9dhFGQDDQ4Dyg2nIJFDbM6Tftp11K7c0vO9LzmXB9wGTncXiv GrTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2N8YALdPQskDE679Ny0mOeWg5wymXWsiwJStY3vw1Jc=; b=TMn3irUnreXU6YmCBCCh0EUxsTZ1OCVmWVMFe3nM3dsy1wDl0mj25Xy+mBvXPRew61 5MBzEnL+344qDW6HYWYR0pJewKpXmCwHhjbiyZ3k1FLLPPBKgcMDvIuZ+roPkkgS/zyF xdtLiaz5Xr62p+FzpTmIlcK2wBEDACDXIxkIv9UPSvdqafmCYA9KcZKur/vPHlF66APO zOlOdg+e7UID0jh2rCaWrPf45GqjF4s6AUK1EX/07xprEfALaRORbWuAhIjxT/RKLja3 hSWGiCpCaieKGH/L9iMaln8b21diVBp3EDDKClYF3nYk66rmr0H7i//9cOI3Ko0/LqP8 Mvqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Gu1X/NJK"; 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 11-20020a170906208b00b008b126531c6esi847770ejq.763.2023.02.13.10.56.48; Mon, 13 Feb 2023 10:57:10 -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="Gu1X/NJK"; 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 S230249AbjBMSxh (ORCPT + 99 others); Mon, 13 Feb 2023 13:53:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbjBMSxY (ORCPT ); Mon, 13 Feb 2023 13:53:24 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A946A1CAFA; Mon, 13 Feb 2023 10:53:21 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31DIepea019235; Mon, 13 Feb 2023 18:53: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-transfer-encoding : content-type; s=qcppdkim1; bh=2N8YALdPQskDE679Ny0mOeWg5wymXWsiwJStY3vw1Jc=; b=Gu1X/NJKSH04P8Sl04sEEVEEQ59S7zwXuSvH6OuAFfHvFzrKIXE9+AFfR1ncGm3R3LkV F0/FpwraAmoY7AVZLUMzC0ST9NqOsW0vEjNXYWevQhqT8ULu53hWdt2+ihqOz3yr1b31 IpzU67nRTsI9dIWfnTGwYDV3l0NYMXNZcIKrEEKYv7XV5OPSyOADX5/sF3zbBIwFGF70 4moUuwi/Bfv5XKJroGz6oBU5uFNYTl8bgXZF28Ge2PyeKsTg70H2jKwNKgN1Hp2GAXmD b+zSGHqmfZXPR2XxSuG3JR5ASpnkfjm+cscT8njWcMKJai1aF1dYG4Y/4SwtRK0Qro1E cw== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3np1yy4wph-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:17 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31DIrGLx019224 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:16 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 13 Feb 2023 10:53:16 -0800 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jassi Brar , Mathieu Poirier , Robert Marko , Guru Das Srinagesh CC: Konrad Dybcio , Manivannan Sadhasivam , Melody Olvera , , , , Subject: [PATCH 5/9] dt-bindings: remoteproc: mpss: Document QDU1000/QRU1000 mpss devices Date: Mon, 13 Feb 2023 10:52:14 -0800 Message-ID: <20230213185218.166520-6-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185218.166520-1-quic_molvera@quicinc.com> References: <20230213185218.166520-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: DT1GAiErUAyhmoTc77Fu-RSjC-6HHUQ3 X-Proofpoint-ORIG-GUID: DT1GAiErUAyhmoTc77Fu-RSjC-6HHUQ3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_12,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 mlxlogscore=990 phishscore=0 mlxscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130165 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1757743290152463106?= X-GMAIL-MSGID: =?utf-8?q?1757743290152463106?= This documents the compatible for the component used to boot the MPSS on the QDU1000 and QRU1000 SoCs. The QDU1000 and QRU1000 mpss boot process now requires the specification of an RMB register space to complete the handshake needed to start or attach the mpss. Signed-off-by: Melody Olvera --- .../bindings/remoteproc/qcom,qdu1000-pas.yaml | 127 ++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,qdu1000-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,qdu1000-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,qdu1000-pas.yaml new file mode 100644 index 000000000000..eb6ade984778 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,qdu1000-pas.yaml @@ -0,0 +1,127 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,qdu1000-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QDU1000 Peripheral Authentication Service + +maintainers: + - Melody Olvera + +description: + Qualcomm QDU1000 SoC Peripheral Authentication Service loads and boots firmware + on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,qdu1000-mpss-pas + + reg: + maxItems: 2 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string-array + items: + - description: Firmware name of the Hexagon core + - description: Firmware name of the Hexagon Devicetree + + memory-region: + items: + - description: Memory region for main Firmware authentication + - description: Memory region for Devicetree Firmware authentication + - description: DSM Memory region + + interrupts: + minItems: 6 + + interrupt-names: + minItems: 6 + + interconnects: + minItems: 1 + + power-domains: + items: + - description: CX power domain + - description: MSS power domain + + power-domain-names: + items: + - const: cx + - const: mss + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + remoteproc@4080000 { + compatible = "qcom,qdu1000-mpss-pas"; + reg = <0x4080000 0x4040>, + <0x4180000 0x1000>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 3 IRQ_TYPE_EDGE_RISING> + <&smp2p_modem_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", + "stop-ack", "shutdown-ack"; + + memory-region = <&mpss_mem>, <&dtb_mpss_mem>, <&mpss_dsm_mem>; + + firmware-name = "modem.mdt", + "modem_dtb.mdt"; + + power-domains = <&rpmhpd QDU1000_CX>, + <&rpmhpd QDU1000_MSS>; + power-domain-names = "cx", "mss"; + + interconnects = <&mc_virt MASTER_LLCC &mc_virt SLAVE_EBI1>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_MPSS IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "modem"; + qcom,remote-pid = <2>; + + }; + }; From patchwork Mon Feb 13 18:52:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 56464 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2514242wrn; Mon, 13 Feb 2023 10:55:56 -0800 (PST) X-Google-Smtp-Source: AK7set8zd31Lx2Yd/2KdE0KNsEVQDE8mzXhEV0XyzlfVh6AmV41TP/f/yLBaOJgewM3zZinQiPiY X-Received: by 2002:a50:954b:0:b0:4ab:eac:30f2 with SMTP id v11-20020a50954b000000b004ab0eac30f2mr19537360eda.18.1676314556543; Mon, 13 Feb 2023 10:55:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314556; cv=none; d=google.com; s=arc-20160816; b=XG5TFGELF+YAovLxeZOnFRNrl9jS7rWlqJTuB6Bf0UThlVp/SREjFaBKZkW+xFe5Ma tyzLUgsJqIHGeGg/eZrvbXoDfqRFElqFz4ZwU2/Bo7RErFLhetpQye5pwB+EHM0b01Z9 x/yR+Hx1HiUdH392TXAtXo2YQlDeC2Jzm1S/hef9FNDQ5wds6kagvQrLSkzBlx5IsvZf fjPgOJvrlPM+RCiclJDB+rWvDhz59w/aEp5gZcZoHpUbjm+e+B2d0SMoyII5Q0mxHsC4 lRlFvd3Mjbt34SDsYAfoQA7hSF3ytzo8dqfcrohZNNFzaDk0DiTzkmHNk+Tj9he8FNB6 4/QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cRlyEGuhQCPlbl45yqmURDOgosWOabCQPRuUzHgHHi0=; b=YLX5/KIF4P47zcWX7PwqETsvlRkzMb1HLpSaje7yXg3/PP8UwhpjxbgdTKoz921ao8 PmJi5tDbINdiM/dJD2mahqS2j/igWr90r6Y6LB2VG+ME93K6mjKpigWgTQ4ed5OTZtPp psR4Eg0PYXaXUy+4MYTQdATNVVso/TIRBsd6RnIqHJ689SxzCAvPKVXBXz+hMdKNDKtl 4DZ4v4DJx9lYbubmVbzMptIPR1vD2NMM+VK73W0WR3eC0urMJZAAX7lUh0vmQKiL394C FAR0uUW1yFiwB1OWGWj+oOCnw3P+f1T1ABKqyX5ZkzGdlpRzq72WMIkKNc15Fd7A51Ov AxEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jARj0pru; 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 u26-20020a05640207da00b004a091a995bcsi14382056edy.286.2023.02.13.10.55.33; Mon, 13 Feb 2023 10:55:56 -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=jARj0pru; 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 S230291AbjBMSxn (ORCPT + 99 others); Mon, 13 Feb 2023 13:53:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjBMSxZ (ORCPT ); Mon, 13 Feb 2023 13:53:25 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD2551EBFB; Mon, 13 Feb 2023 10:53:21 -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 31D8s2sX022324; Mon, 13 Feb 2023 18:53:18 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-transfer-encoding : content-type; s=qcppdkim1; bh=cRlyEGuhQCPlbl45yqmURDOgosWOabCQPRuUzHgHHi0=; b=jARj0pru49pPpZSWunjXY0oW3ZvW6MI5bdJS5Ak2AjZ2VJs5YR7GBwupN36OGPR0nynw p8DzwLjVWJ59K2LV/Ka1Mw9Z6N62NlwO5urCBPYNLP1m0ddYsJBWaeJSzdT2HME5+ROw SMITMXdz3eT6ajLJlnH7QTkqUWZsUzLQTbBC4hmzilI3q6AXDg33/etHvy5KGWw8Bia9 mxvvKNJcJxGEpMofJ711eVdMa2CNNnOHJnAu5/V67SSEZNdTl8T9mv/RX1PHx9fVkl97 DOXXN4kQinZrtMRWg25AbNkcE225mCu4bGukYlQDopnFc/qYlv9gm2JQhr5NDqzlU3eS Rg== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3np3dew1t9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:18 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31DIrHUD030269 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:17 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 13 Feb 2023 10:53:16 -0800 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jassi Brar , Mathieu Poirier , Robert Marko , Guru Das Srinagesh CC: Konrad Dybcio , Manivannan Sadhasivam , Melody Olvera , , , , , "Gokul Krishna Krishnakumar" Subject: [PATCH 6/9] soc: qcom: mdt_loader: Enhance split binary detection Date: Mon, 13 Feb 2023 10:52:15 -0800 Message-ID: <20230213185218.166520-7-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185218.166520-1-quic_molvera@quicinc.com> References: <20230213185218.166520-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: jESBzwqNWlC6APFjKh80zaAbEmxksaPe X-Proofpoint-ORIG-GUID: jESBzwqNWlC6APFjKh80zaAbEmxksaPe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_12,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 clxscore=1015 adultscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130165 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?1757743212815828029?= X-GMAIL-MSGID: =?utf-8?q?1757743212815828029?= From: Gokul Krishna Krishnakumar When booting with split binaries, it is possible that the mdt loader misdetects if a binary is split and only loads one of the segments, so enhance the detection of the split binaries to ensure the entirety of the firmware is loaded. Signed-off-by: Gokul Krishna Krishnakumar Signed-off-by: Melody Olvera --- drivers/soc/qcom/mdt_loader.c | 64 +++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/drivers/soc/qcom/mdt_loader.c b/drivers/soc/qcom/mdt_loader.c index 33dd8c315eb7..3aadce299c02 100644 --- a/drivers/soc/qcom/mdt_loader.c +++ b/drivers/soc/qcom/mdt_loader.c @@ -31,6 +31,26 @@ static bool mdt_phdr_valid(const struct elf32_phdr *phdr) return true; } +static bool qcom_mdt_bins_are_split(const struct firmware *fw) +{ + const struct elf32_phdr *phdrs; + const struct elf32_hdr *ehdr; + uint64_t seg_start, seg_end; + int i; + + ehdr = (struct elf32_hdr *)fw->data; + phdrs = (struct elf32_phdr *)(ehdr + 1); + + for (i = 0; i < ehdr->e_phnum; i++) { + seg_start = phdrs[i].p_offset; + seg_end = phdrs[i].p_offset + phdrs[i].p_filesz; + if (seg_start > fw->size || seg_end > fw->size) + return true; + } + + return false; +} + static ssize_t mdt_load_split_segment(void *ptr, const struct elf32_phdr *phdrs, unsigned int segment, const char *fw_name, struct device *dev) @@ -167,23 +187,13 @@ void *qcom_mdt_read_metadata(const struct firmware *fw, size_t *data_len, /* Copy ELF header */ memcpy(data, fw->data, ehdr_size); - if (ehdr_size + hash_size == fw->size) { - /* Firmware is split and hash is packed following the ELF header */ - hash_offset = phdrs[0].p_filesz; - memcpy(data + ehdr_size, fw->data + hash_offset, hash_size); - } else if (phdrs[hash_segment].p_offset + hash_size <= fw->size) { - /* Hash is in its own segment, but within the loaded file */ + + if (qcom_mdt_bins_are_split(fw)) { + ret = mdt_load_split_segment(data + ehdr_size, phdrs, hash_segment, fw_name, dev); + } else { hash_offset = phdrs[hash_segment].p_offset; memcpy(data + ehdr_size, fw->data + hash_offset, hash_size); - } else { - /* Hash is in its own segment, beyond the loaded file */ - ret = mdt_load_split_segment(data + ehdr_size, phdrs, hash_segment, fw_name, dev); - if (ret) { - kfree(data); - return ERR_PTR(ret); - } } - *data_len = ehdr_size + hash_size; return data; @@ -270,6 +280,7 @@ static int __qcom_mdt_load(struct device *dev, const struct firmware *fw, phys_addr_t min_addr = PHYS_ADDR_MAX; ssize_t offset; bool relocate = false; + bool is_split; void *ptr; int ret = 0; int i; @@ -277,6 +288,7 @@ static int __qcom_mdt_load(struct device *dev, const struct firmware *fw, if (!fw || !mem_region || !mem_phys || !mem_size) return -EINVAL; + is_split = qcom_mdt_bins_are_split(fw); ehdr = (struct elf32_hdr *)fw->data; phdrs = (struct elf32_phdr *)(ehdr + 1); @@ -330,22 +342,16 @@ static int __qcom_mdt_load(struct device *dev, const struct firmware *fw, ptr = mem_region + offset; - if (phdr->p_filesz && phdr->p_offset < fw->size && - phdr->p_offset + phdr->p_filesz <= fw->size) { - /* Firmware is large enough to be non-split */ - if (phdr->p_offset + phdr->p_filesz > fw->size) { - dev_err(dev, "file %s segment %d would be truncated\n", - fw_name, i); - ret = -EINVAL; - break; + if (phdr->p_filesz) { + if (!is_split) { + /* Firmware is large enough to be non-split */ + memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); + } else { + /* Firmware not large enough, load split-out segments */ + ret = mdt_load_split_segment(ptr, phdrs, i, fw_name, dev); + if (ret) + break; } - - memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); - } else if (phdr->p_filesz) { - /* Firmware not large enough, load split-out segments */ - ret = mdt_load_split_segment(ptr, phdrs, i, fw_name, dev); - if (ret) - break; } if (phdr->p_memsz > phdr->p_filesz) From patchwork Mon Feb 13 18:52:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 56466 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2514849wrn; Mon, 13 Feb 2023 10:57:19 -0800 (PST) X-Google-Smtp-Source: AK7set92qwSHyQuGXHczSfZ6fKPw/aH5LuCZdez+QpWHYWRwLHvDQgv3DaK527e+QmXqj098Ve55 X-Received: by 2002:a50:f614:0:b0:4ab:d0e0:a64 with SMTP id c20-20020a50f614000000b004abd0e00a64mr11496134edn.19.1676314639195; Mon, 13 Feb 2023 10:57:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314639; cv=none; d=google.com; s=arc-20160816; b=jYGuDFZENYM+6mrtnsvxVDSpgmZYaiXCpXHQtip8WeeKQmCE1psAb9xLN6WK8Qyx/w 2LuVu8OL20XUl1cFjJZGSi0IfbR2SXTWGxf+mN5AKZWLl1FcnnhMm01ExboKOSCEwl0L 28YimANO9V7PCbLvJGGuCgS3spjDP0ChaNwlmC1tBzzy3YGhFKQfpPdnLfq2Mo4FY15m 6HMM+HYbKzhjFtFVHEQkH4q2l+iVWt1Rl5HJXdJUK9RHhBYK0XGSjfGveLINeQ6HNTa4 FpSB3s0WwAwkTfvFbtERDx+vTRPlOQsJMtocA3EwEmsjr9dlZLmthqIN9VFRrmWw6uXB qyVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bioW/gDMtzyPy8t6XnD7ivoEwoVwagFU1ZBUDiMg2Ro=; b=m5qhV7XlpGk5dkxq4TqHt6D5HUMvrGUSZ2LO6OQ27+1mGEe3zQBEl27d6guOxXYLbI yDCJbVjGX836KrsFheFCfsXfhnutCnCGQygeC5Xko+Ll1/tYxegBRgdKRjrLu7oFGKjY m+pWcmghzR0yWuGT+SuV38IdywfvfcMrqcODJlMdGRBApezDTWaRayZzFRv8PsQIwLfV vcfnrgRp8MN2Y09uqjc7gif4uFKkZzLyE52fIo7Lw1mbXIYzZBXwCnhsXJA1QU6s3oZs PtFqGXEmsECZfBovPqWHvm/E0Sdrs58wKC5038MvCynlgSRI11DIoPNAiob4d+7Ghi0p uE0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Z/98U/9W"; 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 w7-20020aa7dcc7000000b004ab4c35cc9fsi11838072edu.631.2023.02.13.10.56.56; Mon, 13 Feb 2023 10:57:19 -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="Z/98U/9W"; 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 S230281AbjBMSxk (ORCPT + 99 others); Mon, 13 Feb 2023 13:53:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229951AbjBMSxZ (ORCPT ); Mon, 13 Feb 2023 13:53:25 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C031EBFF; Mon, 13 Feb 2023 10:53:22 -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 31DIltT2021786; Mon, 13 Feb 2023 18:53:19 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-transfer-encoding : content-type; s=qcppdkim1; bh=bioW/gDMtzyPy8t6XnD7ivoEwoVwagFU1ZBUDiMg2Ro=; b=Z/98U/9WJZmasoQrcGKWXZ6xFCY+E3v+dqfLIrvOy6s1MWGHOzgZ+7UF6hk6o7gutA5u WIcP/GNrXb7jSkWvAZrxda5+x7lTh9cwmmVfr5GFG6WNC0A2yEvzuPs8J4Z1G3csWaoQ N4hWRJ49JMo56iBjoqpGpecBo0B5EcX3Wq/EqjMlcLtavspxncSDGqBQauTsY/MBw2bQ WaQE5JCVcTvproapgdCgaRFKxwgYVSR6m7jpmUiN9ThY2uVtc1hRVoHkidlA9NFGFbh0 QIbu3Nu4hkbN+YnmvsVUI2CcstMwc9TZ5LVtc/x60Ep/n1Zzoioj4hZdMQB8fX36deCR yQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nqts7r0db-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:18 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31DIrHs2019233 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:17 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 13 Feb 2023 10:53:17 -0800 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jassi Brar , Mathieu Poirier , Robert Marko , Guru Das Srinagesh CC: Konrad Dybcio , Manivannan Sadhasivam , Melody Olvera , , , , Subject: [PATCH 7/9] remoteproc: qcom: q6v5: Add support for q6 rmb registers Date: Mon, 13 Feb 2023 10:52:16 -0800 Message-ID: <20230213185218.166520-8-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185218.166520-1-quic_molvera@quicinc.com> References: <20230213185218.166520-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: hm-7rxIxscEyNfcbnpxQv4YFuCGUCuhy X-Proofpoint-ORIG-GUID: hm-7rxIxscEyNfcbnpxQv4YFuCGUCuhy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_12,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=814 mlxscore=0 impostorscore=0 spamscore=0 phishscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130165 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?1757743299080890721?= X-GMAIL-MSGID: =?utf-8?q?1757743299080890721?= When attaching a running Q6, the remoteproc driver needs a way to communicate with the Q6 using rmb registers, so allow the rmb register to be gotten from the device tree if present. Signed-off-by: Melody Olvera --- drivers/remoteproc/qcom_q6v5.c | 9 +++++++++ drivers/remoteproc/qcom_q6v5.h | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5.c b/drivers/remoteproc/qcom_q6v5.c index 192c7aa0e39e..e8c6be70ebfd 100644 --- a/drivers/remoteproc/qcom_q6v5.c +++ b/drivers/remoteproc/qcom_q6v5.c @@ -254,6 +254,7 @@ int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev, void (*handover)(struct qcom_q6v5 *q6v5)) { int ret; + struct resource *res; q6v5->rproc = rproc; q6v5->dev = &pdev->dev; @@ -263,6 +264,14 @@ int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev, init_completion(&q6v5->start_done); init_completion(&q6v5->stop_done); + res = platform_get_resource(pdev, IORESOURCE_MEM, 1); + if (res) { + q6v5->rmb_base = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(q6v5->rmb_base)) + q6v5->rmb_base = NULL; + } else + q6v5->rmb_base = NULL; + q6v5->wdog_irq = platform_get_irq_byname(pdev, "wdog"); if (q6v5->wdog_irq < 0) return q6v5->wdog_irq; diff --git a/drivers/remoteproc/qcom_q6v5.h b/drivers/remoteproc/qcom_q6v5.h index 5a859c41896e..95824d5b64ce 100644 --- a/drivers/remoteproc/qcom_q6v5.h +++ b/drivers/remoteproc/qcom_q6v5.h @@ -7,6 +7,12 @@ #include #include +#define RMB_BOOT_WAIT_REG 0x8 +#define RMB_BOOT_CONT_REG 0xC +#define RMB_Q6_BOOT_STATUS_REG 0x10 + +#define RMB_POLL_MAX_TIMES 250 + struct icc_path; struct rproc; struct qcom_smem_state; @@ -16,6 +22,8 @@ struct qcom_q6v5 { struct device *dev; struct rproc *rproc; + void __iomem *rmb_base; + struct qcom_smem_state *state; struct qmp *qmp; From patchwork Mon Feb 13 18:52:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 56467 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2515036wrn; Mon, 13 Feb 2023 10:57:42 -0800 (PST) X-Google-Smtp-Source: AK7set9r/RmF9iBeZ34Qo0b2NwtPqeshg+aRamkuZJ9SBT3/I9BOTaztO9xbPsGaIydRMe6GItxq X-Received: by 2002:a50:d74c:0:b0:4aa:a4e9:fa28 with SMTP id i12-20020a50d74c000000b004aaa4e9fa28mr25995861edj.34.1676314661988; Mon, 13 Feb 2023 10:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314661; cv=none; d=google.com; s=arc-20160816; b=yJeUYyt6j4A/z9KIm2hK6EBRpTEplL7vO0qUNy/6oK5tnZ7lCc7/EgKW3AduBov+lO bafmyqXhuzddEp1Qk5+2TptMW3D4iUzepZLvC+z15ijhOS5L3J40Z1Pt/RMnBaXduEdw ZiFMIvPrpwz6lLVMhFLCoRLiGqsKKgxFIXcME9BFvPMBk3KPCRa1TSrwy1KK/Hp6uC9A sBbUtDTroDV81qyuXFeSMSIbllXN3G6b3KwwQK6MK2oj7qH5ZGV4wZmgm8lSG+rH1khu emdYNuT6RAPGeDBfHIY2C8HuUSacVo3e7bNSqoZZZfJX5bg2RNPa+7kEFOrsAsbH2ORI 5/fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L7X4b9Rs6IsbLAWwUaBogsEHXCJDSbrORrVEXLlUz8U=; b=MvlbFjLQI4QavL9E1bJyvzPmbTpoA8P4VmpHjzFL2V/XiK3+0HlliJkCLSdnbIja3t Z/WtIRLr4sxtBhcEwaYQPyZvwbYoOFyg4G+tzJ4OWZTk05Qa1Dq/lGzUnfeDgnRK7LXO dD623JyTMWPGRBlTc2/GO8StLZ6VZ5eIsfWsX2POm7mRf+ilxuXZc+11G7qPDzbLoAGE 82llqw7cm3lHDXtR17f38PPQk9l5GWjFQeYEZZji2LoMKL8Z4l2jvxmZvKkoiJsccU8c BEqWPMpG9ujTX4QFLiG209hK3KjhRWDPAmWspmB5xfy5Ti3wYRnqnP4UWBoPqMyevC1N q4fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="ZYK6L/bc"; 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 e23-20020a056402105700b004aac683bad9si14032235edu.379.2023.02.13.10.57.19; Mon, 13 Feb 2023 10:57:41 -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="ZYK6L/bc"; 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 S230307AbjBMSxp (ORCPT + 99 others); Mon, 13 Feb 2023 13:53:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjBMSxZ (ORCPT ); Mon, 13 Feb 2023 13:53:25 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 103EDD536; Mon, 13 Feb 2023 10:53:22 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31DIqO2n022960; Mon, 13 Feb 2023 18:53:19 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-transfer-encoding : content-type; s=qcppdkim1; bh=L7X4b9Rs6IsbLAWwUaBogsEHXCJDSbrORrVEXLlUz8U=; b=ZYK6L/bc4LCfpfyPfliqUYZ0CrJykr36cBSCwORvz3AR2BXkdejF8yumh5GsEJYkkJNS oWgBAXzH7Rhj57PY1gDobon/0ABoMPIOZ5v/TPpZc6MyFb/+ZFmv+4HMZMXovoLQaAKu Ssxw4jmmBmnPEhV/6TCHCWmUzSWmXznoX8YSNsH7IjGAOt8qCiX+bO2hWsRpHMnSCuM7 +XbR5DmOpcqHFmziDPuNgcoeH5zVCTbGAXt4A5yM5/XjLneY6Cp6dkCA0netEDm2R+BC VRjlJy3OUvl8FHlxuAMqixQCFArErLaFSrvai0tIAi7ge/HXMlyNTUP0f0HwcCKlG153 iA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nqtv0803a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:19 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31DIrIoH017813 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:18 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 13 Feb 2023 10:53:17 -0800 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jassi Brar , Mathieu Poirier , Robert Marko , Guru Das Srinagesh CC: Konrad Dybcio , Manivannan Sadhasivam , Melody Olvera , , , , Subject: [PATCH 8/9] remoteproc: qcom_q6v5_pas: Add support to attach a DSP Date: Mon, 13 Feb 2023 10:52:17 -0800 Message-ID: <20230213185218.166520-9-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185218.166520-1-quic_molvera@quicinc.com> References: <20230213185218.166520-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: WB42UDsyWb7It8hJognskUM5RRWuhHT0 X-Proofpoint-ORIG-GUID: WB42UDsyWb7It8hJognskUM5RRWuhHT0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_12,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 mlxlogscore=895 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130165 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?1757743323100878376?= X-GMAIL-MSGID: =?utf-8?q?1757743323100878376?= Some chipsets will have DSPs which will have begun running prior to linux booting, so add support to late attach these DSPs by adding support for: - run-time checking of an offline or running DSP via rmb register - a late attach framework to attach to the running DSP - a handshake mechanism to ensure full and proper booting via rmb Signed-off-by: Melody Olvera --- drivers/remoteproc/qcom_q6v5_pas.c | 103 ++++++++++++++++++++++++++++- 1 file changed, 102 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 1e14ae4d233a..7a1f0f898032 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -224,10 +224,89 @@ static int adsp_load(struct rproc *rproc, const struct firmware *fw) return ret; } +static int adsp_attach(struct rproc *rproc) +{ + struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv; + int i, ret; + + ret = qcom_q6v5_prepare(&adsp->q6v5); + if (ret) + return ret; + + ret = adsp_pds_enable(adsp, adsp->proxy_pds, adsp->proxy_pd_count); + if (ret < 0) + goto disable_irqs; + + ret = clk_prepare_enable(adsp->xo); + if (ret) + goto disable_proxy_pds; + + ret = clk_prepare_enable(adsp->aggre2_clk); + if (ret) + goto disable_xo_clk; + + if (adsp->cx_supply) { + ret = regulator_enable(adsp->cx_supply); + if (ret) + goto disable_aggre2_clk; + } + + if (adsp->px_supply) { + ret = regulator_enable(adsp->px_supply); + if (ret) + goto disable_cx_supply; + } + + /* if needed, signal Q6 to continute booting */ + if (adsp->q6v5.rmb_base) { + for (i = 0; i < RMB_POLL_MAX_TIMES; i++) { + if (readl_relaxed(adsp->q6v5.rmb_base + RMB_BOOT_WAIT_REG)) { + writel_relaxed(1, adsp->q6v5.rmb_base + RMB_BOOT_CONT_REG); + break; + } + msleep(20); + } + + if (!readl_relaxed(adsp->q6v5.rmb_base + RMB_BOOT_WAIT_REG)) { + dev_err(adsp->dev, "Didn't get rmb signal from %s\n", rproc->name); + goto disable_px_supply; + } + } + + ret = qcom_q6v5_wait_for_start(&adsp->q6v5, msecs_to_jiffies(5000)); + if (ret == -ETIMEDOUT) { + dev_err(adsp->dev, "start timed out\n"); + qcom_scm_pas_shutdown(adsp->pas_id); + goto disable_px_supply; + } + + return 0; + +disable_px_supply: + if (adsp->px_supply) + regulator_disable(adsp->px_supply); +disable_cx_supply: + if (adsp->cx_supply) + regulator_disable(adsp->cx_supply); +disable_aggre2_clk: + clk_disable_unprepare(adsp->aggre2_clk); +disable_xo_clk: + clk_disable_unprepare(adsp->xo); +disable_proxy_pds: + adsp_pds_disable(adsp, adsp->proxy_pds, adsp->proxy_pd_count); +disable_irqs: + qcom_q6v5_unprepare(&adsp->q6v5); + + /* Remove pointer to the loaded firmware, only valid in adsp_load() & adsp_start() */ + adsp->firmware = NULL; + + return ret; +} + static int adsp_start(struct rproc *rproc) { struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv; - int ret; + int i, ret; ret = qcom_q6v5_prepare(&adsp->q6v5); if (ret) @@ -286,6 +365,22 @@ static int adsp_start(struct rproc *rproc) goto release_pas_metadata; } + /* if needed, signal Q6 to continute booting */ + if (adsp->q6v5.rmb_base) { + for (i = 0; i < RMB_POLL_MAX_TIMES; i++) { + if (readl_relaxed(adsp->q6v5.rmb_base + RMB_BOOT_WAIT_REG)) { + writel_relaxed(1, adsp->q6v5.rmb_base + RMB_BOOT_CONT_REG); + break; + } + msleep(20); + } + + if (!readl_relaxed(adsp->q6v5.rmb_base + RMB_BOOT_WAIT_REG)) { + dev_err(adsp->dev, "Didn't get rmb signal from %s\n", rproc->name); + goto release_pas_metadata; + } + } + ret = qcom_q6v5_wait_for_start(&adsp->q6v5, msecs_to_jiffies(5000)); if (ret == -ETIMEDOUT) { dev_err(adsp->dev, "start timed out\n"); @@ -395,6 +490,7 @@ static unsigned long adsp_panic(struct rproc *rproc) static const struct rproc_ops adsp_ops = { .unprepare = adsp_unprepare, .start = adsp_start, + .attach = adsp_attach, .stop = adsp_stop, .da_to_va = adsp_da_to_va, .parse_fw = qcom_register_dump_segments, @@ -405,6 +501,7 @@ static const struct rproc_ops adsp_ops = { static const struct rproc_ops adsp_minidump_ops = { .unprepare = adsp_unprepare, .start = adsp_start, + .attach = adsp_attach, .stop = adsp_stop, .da_to_va = adsp_da_to_va, .load = adsp_load, @@ -710,6 +807,10 @@ static int adsp_probe(struct platform_device *pdev) if (ret) goto detach_proxy_pds; + if (adsp->q6v5.rmb_base && + readl_relaxed(adsp->q6v5.rmb_base + RMB_Q6_BOOT_STATUS_REG)) + rproc->state = RPROC_DETACHED; + qcom_add_glink_subdev(rproc, &adsp->glink_subdev, desc->ssr_name); qcom_add_smd_subdev(rproc, &adsp->smd_subdev); adsp->sysmon = qcom_add_sysmon_subdev(rproc, From patchwork Mon Feb 13 18:52:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 56468 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2515042wrn; Mon, 13 Feb 2023 10:57:43 -0800 (PST) X-Google-Smtp-Source: AK7set8gyFYY5+rw2YKLpZXvnNd/aRbojtcgq9vsUN2n79IoiaiV+K5NSJWKRoEbUAS6Ng3lm16x X-Received: by 2002:a17:906:6b08:b0:887:8f6:c1d7 with SMTP id q8-20020a1709066b0800b0088708f6c1d7mr24970744ejr.38.1676314663595; Mon, 13 Feb 2023 10:57:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314663; cv=none; d=google.com; s=arc-20160816; b=X+d5X7iCwv7T/85cVKa47b9rIf1N22UpmhGcfAWvznZD/SoHCBCr5794d/NdxzlZAt /Rcucg5th3jZ2slpC/5clW79XerTciSTEPblfKbk9MJXpKq7aW3hNSkBHKR4evbiMqh1 TIu3H6oKHsW6ufqp9i25mOVCcybUR1tTtAmzI1iaXvwzAj8dFxireQr23f6y+xkq26XN cO2eVWfvvZh1Kr8v0bhcgpPq9wfM2zeVZfFKDdmk44g6LLfi9XPAF9LSkK9dN1DF4XVK mydSL1ZHhiw9P1gBxUM/20CjzNYDw15/rCVYK+TF95eaRvUAAyX3JdafMi6Zc64DQw0g P3xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+CUVIAwAezq4xY9Qn5yjZA/WgqrKoAIA2eciWmZPWro=; b=BxR1zY3+VxvZF1XA9VxXwDU4YgxAdZkgaJr3cQCjk5CMJvxkv64GSWZdglbnStVcAc z9o8sDMCGRjr/wlAyLABGjE7Yq5Ax8enFaDEmOM/VLQjcPqGZ52GBP5Y2dW2SgGZyrRB b+sIlwCpES7p7fdJPKYFBhF/HL1JZ3aYHf3Bks831mw3sN7C7Wc8RLoX1yCw/mCjaZJ7 glxXQClQR//ZamWZcsBXMt8Nir9pa0p4OvZQhboa9Kf0+RHvsg/bvRnUEN4zbS30Jepb sLshNNTOhkh7cY1AH1NDBaI3CQnEJ5+RrNDWqeYjlQ7PDmIL4xTbfi1jlqIFl8zIDET9 rINw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NOToQNNf; 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 f19-20020a170906739300b0087bd2c8a4e0si16770897ejl.971.2023.02.13.10.57.20; Mon, 13 Feb 2023 10:57:43 -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=NOToQNNf; 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 S230336AbjBMSxs (ORCPT + 99 others); Mon, 13 Feb 2023 13:53:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbjBMSxZ (ORCPT ); Mon, 13 Feb 2023 13:53:25 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25630126E5; Mon, 13 Feb 2023 10:53:23 -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 31DFR68p005995; Mon, 13 Feb 2023 18:53:19 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-transfer-encoding : content-type; s=qcppdkim1; bh=+CUVIAwAezq4xY9Qn5yjZA/WgqrKoAIA2eciWmZPWro=; b=NOToQNNfa2kCb1/9vGxNlabYgZnTEjcoUpQgJHuSppCwHO0K+ZsgCkEixUUrQlEoi7Tn eu3HBuyn5lfklwmrSLS3Kci5rS9HTJdK0nuUK8N3MrSegQS9uTzAKVqhq1onXvGcnTxv ibkN3vQMr8QIVX5HBfnFV5X4aXCnlLPtq4FvYOiskYBNKewNUCZL00Lfp7gIBgClNDCX aa1qegJQ5v9W6gjC+FOg/L4SmcXvmQRiplZfUzQGYy1/uby2r6XK+Rpn3nW1tzPmCs1w C+5axSX2aBjPAoKsWgSHs8H5OmVn6qmtP28XnnwD8qeMe3JzIZ1k3lnbGuRHBfPyCXYJ ig== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3np3dew1tb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:19 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31DIrIOL030280 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:18 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 13 Feb 2023 10:53:18 -0800 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jassi Brar , Mathieu Poirier , Robert Marko , Guru Das Srinagesh CC: Konrad Dybcio , Manivannan Sadhasivam , Melody Olvera , , , , Subject: [PATCH 9/9] remoteproc: qcom_q6v5_pas: Add QDU1000/QRU1000 mpss compatible & data Date: Mon, 13 Feb 2023 10:52:18 -0800 Message-ID: <20230213185218.166520-10-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185218.166520-1-quic_molvera@quicinc.com> References: <20230213185218.166520-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: wAiQqZa25E3ojZa-bGsDCpid7k3hkxho X-Proofpoint-ORIG-GUID: wAiQqZa25E3ojZa-bGsDCpid7k3hkxho X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_12,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 clxscore=1015 adultscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130165 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?1757743324969347257?= X-GMAIL-MSGID: =?utf-8?q?1757743324969347257?= Add the compatible and data for the mpss found in the QDU1000 and QRU1000 SoCs. These platforms require the driver to complete a modem handshake using the RMB registers provided. Signed-off-by: Melody Olvera --- drivers/remoteproc/qcom_q6v5_pas.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 7a1f0f898032..1ef055b99b66 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -954,6 +954,28 @@ static const struct adsp_data msm8996_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data qdu1000_mpss_resource = { + .crash_reason_smem = 421, + .firmware_name = "modem.mdt", + .dtb_firmware_name = "modem_dtb.mdt", + .pas_id = 4, + .dtb_pas_id = 0x26, + .minidump_id = 3, + .has_aggre2_clk = false, + .auto_boot = false, + .decrypt_shutdown = true, + .proxy_pd_names = (char*[]) { + "cx", + "mss", + NULL + }, + .load_state = "modem", + .ssr_name = "mpss", + .sysmon_name = "modem", + .ssctl_id = 0x12, + .region_assign_idx = 2, +}; + static const struct adsp_data cdsp_resource_init = { .crash_reason_smem = 601, .firmware_name = "cdsp.mdt", @@ -1273,6 +1295,7 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,qcs404-adsp-pas", .data = &adsp_resource_init }, { .compatible = "qcom,qcs404-cdsp-pas", .data = &cdsp_resource_init }, { .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init }, + { .compatible = "qcom,qdu1000-mpss-pas", .data = &qdu1000_mpss_resource }, { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sc7280-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sc8180x-adsp-pas", .data = &sm8150_adsp_resource},