Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7679334rwn; Wed, 14 Sep 2022 02:45:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR7e9ozMYwhadJlHNaM4L8yWwgf9tid2p8rau8tWmZlpj6dGyQCwhkGd0Q4ivbBSUrljYpSI X-Received: by 2002:a17:902:d70e:b0:178:2d9d:ba7b with SMTP id w14-20020a170902d70e00b001782d9dba7bmr14813895ply.90.1663148702719; Wed, 14 Sep 2022 02:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663148702; cv=none; d=google.com; s=arc-20160816; b=FNSyyGfoLA6CtARYJzpikJmP6qHsaYF/CUY8OdhMZgj7eVHMXvNhoBvp9+QAiDN4RG 4WnJkSUUaJoT/9tTMYgtDjSsfmh0fYivsr3QyhnGqG1jb9Xw6Fcchh2muTbsfl/d4pER NivHg1B595tLqiqrFbyBANLvFdNcX0frvbv7xTIrw76QFfTINnJVae17qIe2d0X1qHvd Jh8rADwaY0TPLBpOVKyRxFxDC1EEQEsWeKk1wdaKCijus87TldtoDrXCMqx9P65FZvet lKJICypw6CVFAWMLqLFFunxjraU4w/sLbq9DVUxo1YewO18FmvNjqvXx4im98MGFhTwn YtKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=khRktGo8KDIaoO0/9D+gloBG8TjQU8wXhHec6gF9UIU=; b=yxQkMPAFeAiUEge3DkhLFxkvAIVEpsO3m5KZsygM5TUpDYIqn9h7z1L4SvKq6+dmpV y2G1TwdhuV8NdiZzPAtMdigAWvoYtvz5plI1yKt/aQDJNl5SrQQu8G0HgNoTSKmqspYp w67lKFmWjUUN3sD0pUyQQvrdp/Su4M2WCgGIWxU0oQlpdl3gXPlh8cFjkOOBDtBZGFta /XHzRa7Lh2aifbO8zN08nNjFK3PPskIptzYzMonvUePhvW8GQTXxSkFCakcB1K1LVW1g qjqy1tzwmZpsyPyDgVljMKLFO7/Qae8kTGLbl7FOr0/QKbijsb8728YZWu+TZvMjsELm rvDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PVNSDKKw; 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 m2-20020a170902db0200b00176d899ad4csi16851908plx.422.2022.09.14.02.44.51; Wed, 14 Sep 2022 02:45:02 -0700 (PDT) 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=PVNSDKKw; 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 S231455AbiINJcl (ORCPT + 99 others); Wed, 14 Sep 2022 05:32:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbiINJcV (ORCPT ); Wed, 14 Sep 2022 05:32:21 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 836A8786E5; Wed, 14 Sep 2022 02:23:09 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28E4eaCi031819; Wed, 14 Sep 2022 09:22:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=khRktGo8KDIaoO0/9D+gloBG8TjQU8wXhHec6gF9UIU=; b=PVNSDKKwSaBPbhgSxR4taoTkwDl6REPO5VG7Ju8DUpjt6fYyMXmLOuEAhgeu1I1DcrWz uYZSyxutdpwNwTc4bobNza2idd9VEFUkgp6dQxWeUFyCZOF3oNs2EG+qRWAmKjr4SDUQ HRDUP4XKH5mAekNlryzIbFnSblShUJUU2VuH6gK+K+5Q3Kb5yyqx1Rk7lZdZjfiBTAKd hBAelQScrDbvenBGP8fkfj1QeSATfBe2Hkojsd9NpcB/nttfaXBy0XVnDkqX4WvZq59+ Ge/Kv7IuRs9rqDr0mdolmxTXt6XlROQ903i1zZZ+WPVB/7f6o/VhMaAopK2boZ0lp5ll aA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jjxymj13r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Sep 2022 09:22:26 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28E9MPo8005192 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Sep 2022 09:22:25 GMT Received: from [10.79.43.230] (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.29; Wed, 14 Sep 2022 02:22:20 -0700 Subject: Re: [PATCH v6 3/8] remoteproc: qcom: Add compatible name for SC7280 ADSP To: Srinivasa Rao Mandadapu , , , , , , , , , , , , , , , , , References: <1662643422-14909-1-git-send-email-quic_srivasam@quicinc.com> <1662643422-14909-4-git-send-email-quic_srivasam@quicinc.com> From: Sibi Sankar Message-ID: Date: Wed, 14 Sep 2022 14:52:18 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1662643422-14909-4-git-send-email-quic_srivasam@quicinc.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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: EBeRvWhkkZCNh108YLbEaH1fyUlU2ZuN X-Proofpoint-GUID: EBeRvWhkkZCNh108YLbEaH1fyUlU2ZuN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-14_03,2022-09-14_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 malwarescore=0 bulkscore=0 adultscore=0 impostorscore=0 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 phishscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2208220000 definitions=main-2209140045 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 9/8/22 6:53 PM, Srinivasa Rao Mandadapu wrote: > Update adsp pil data and compatible name for loading ADSP > binary on SC7280 based platforms. > > Signed-off-by: Srinivasa Rao Mandadapu > --- > Changes since V5: > -- Rename adsp_sandbox_needed to has_iommu. > -- Change adsp binary extention name. > Changes since V3: > -- Rename is_adsp_sb_needed to adsp_sandbox_needed. > -- Update sc7280 compatible name entry in sorted order. > Changes since V2: > -- Initialize is_adsp_sb_needed flag. > -- Remove empty proxy pds array. > > drivers/remoteproc/qcom_q6v5_adsp.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c > index fa2ccac..02d17b4 100644 > --- a/drivers/remoteproc/qcom_q6v5_adsp.c > +++ b/drivers/remoteproc/qcom_q6v5_adsp.c > @@ -702,6 +702,21 @@ static const struct adsp_pil_data adsp_resource_init = { > }, > }; > > +static const struct adsp_pil_data adsp_sc7280_resource_init = { > + .crash_reason_smem = 423, > + .firmware_name = "adsp.pbn", > + .load_state = "adsp", given that you mention load_state info please make sure you mention qcom,qmp as a required property in the bindings. > + .ssr_name = "lpass", > + .sysmon_name = "adsp", > + .ssctl_id = 0x14, > + .has_iommu = true, > + .auto_boot = true, > + .clk_ids = (const char*[]) { > + "gcc_cfg_noc_lpass", NULL > + }, > + .num_clks = 1, bindings seem to mention 6 other required clocks any reason why they were skipped? AFAIK you'll also need lmx so you'll have to mention proxy_pd_names as well. > +}; > + > static const struct adsp_pil_data cdsp_resource_init = { > .crash_reason_smem = 601, > .firmware_name = "cdsp.mdt", > @@ -740,6 +755,7 @@ static const struct adsp_pil_data wpss_resource_init = { > > static const struct of_device_id adsp_of_match[] = { > { .compatible = "qcom,qcs404-cdsp-pil", .data = &cdsp_resource_init }, > + { .compatible = "qcom,sc7280-adsp-pil", .data = &adsp_sc7280_resource_init }, > { .compatible = "qcom,sc7280-wpss-pil", .data = &wpss_resource_init }, > { .compatible = "qcom,sdm845-adsp-pil", .data = &adsp_resource_init }, > { }, >