Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2600155rwb; Mon, 19 Sep 2022 07:22:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7P6pWgwQ5SyWIDWkS6Pktjme4G48nCepBVmdmxK3+zC25+ELvZcM2t+y2xA/DBJoJVcaKt X-Received: by 2002:a05:6a00:1503:b0:546:833c:ed05 with SMTP id q3-20020a056a00150300b00546833ced05mr19034491pfu.44.1663597357864; Mon, 19 Sep 2022 07:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663597357; cv=none; d=google.com; s=arc-20160816; b=MRZLIFyCfaYBU6rgt+GaPx/y7uYWWjZq023FIy1/xl/QtQRvgB6CO67e6q4shFfTYN +Z/TKmPWYSpHdxtDILipGSLnGauDFGFZzKvN8z96Hbpah8wx/IedbKVvhDpeoxzkvM+l 6YK9b41erou7A1R4nTMf4Y9Dbdwugn5vF7x1bKloi/P3h6RHCxh1yViJJEenzwz+7QZ3 P6OSwK02UsAWiIQsGmnBzyrSM8X4KcjGPvJ3I52oQTk17ibZfUzNIoaQq3aYqVSNs7I8 WgYvwkB/cBidUQl76BCoyFkc9QYg5r2+i5E3fNceowKdSVoVhzBNReR2+W6qzZx45+PO 0pwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=sAFBwTn6aPWjxDZhtM8w19gmpStMi/5ToNfU76dDP+I=; b=mtIJ4VH/2sCq4HfyGJaKFsYYJhLgY0J5MLiGBzdvgre/dkxUt3gJQH8FIrE5ZUnrno JHR2OFEaQpw1GLZGO+w6Tfw3iOdh28wLJggJSGZYuV0Vgm2Ijsuz5+EdPNdJ3KqbpWpm K8fOgpEYyc0MeyMKkJhW2lpNWbfmD/pK76ZEhmreE0TtotVrK+C0wOILOOfeIyVPEI3u E8/RvtnOqTUJfOm6rMvPQt+ZctX3QecMsgxzt6Rs9piYlFkx8EuBLSDnIZhidR4QHrp7 jQl5d5wIQRY5PzHOCGYEVXyPoBetQNm//hoAq4RvLvCvtcKiHVQU0GUn8PLGlLqo91fV L1Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BxQWEwtl; 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 l6-20020a170902f68600b0017898175eb0si6507145plg.560.2022.09.19.07.22.26; Mon, 19 Sep 2022 07:22:37 -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=BxQWEwtl; 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 S229935AbiISOG1 (ORCPT + 99 others); Mon, 19 Sep 2022 10:06:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbiISOGZ (ORCPT ); Mon, 19 Sep 2022 10:06:25 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D57F29CB6; Mon, 19 Sep 2022 07:06:24 -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 28JD2ALm025426; Mon, 19 Sep 2022 14:05:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=sAFBwTn6aPWjxDZhtM8w19gmpStMi/5ToNfU76dDP+I=; b=BxQWEwtlvhDrsOV6EXozgkNJlIvOx3M2jiBmtXW3uoP8LiCsfoeCQ5Svk4uSk1yTllJo CS8YGhZWzGYeZ/z7KEFqRNaNcd85MsZbRqXnkqTNW9kG1Kdr60c7czNayUlI8LSPw+8T ZxCM/jhtkhIxwOreexcGtJDk3iAqRxoJfiz4mB4InkfQNIJwqkAcVx6YeUKEl+iFNOz+ OgZkZ9Uhwo8Ow9zz/ADpYvwa3LS+YJCIydkPchBIaCyK1sS6glCGHRFRS3y5V6TloMy3 IUyNpc6xn2AFbp4vFdVJ7gGy5eHb11CQFrCj3Kdyex5a0qXt8CfDgwfrcNQGbsBkUD8c ZQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jn7he4svn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Sep 2022 14:05:40 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28JE5dNr028348 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Sep 2022 14:05:39 GMT Received: from [10.216.41.172] (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; Mon, 19 Sep 2022 07:05:34 -0700 Message-ID: <27bc7d85-9fc0-5112-7d4f-bbf949b54724@quicinc.com> Date: Mon, 19 Sep 2022 19:35:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v6 2/8] remoteproc: qcom: Add flag in adsp private data structure Content-Language: en-US To: Sibi Sankar , , , , , , , , , , , , , , , , , References: <1662643422-14909-1-git-send-email-quic_srivasam@quicinc.com> <1662643422-14909-3-git-send-email-quic_srivasam@quicinc.com> <9a483cbc-f90a-65c8-5edf-95fa9016ce6b@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm In-Reply-To: <9a483cbc-f90a-65c8-5edf-95fa9016ce6b@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: ojDxbGhHtVrOsFo0Yc9kWg7rT5kt1D0G X-Proofpoint-ORIG-GUID: ojDxbGhHtVrOsFo0Yc9kWg7rT5kt1D0G 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-19_05,2022-09-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 malwarescore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 impostorscore=0 adultscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209190095 X-Spam-Status: No, score=-3.8 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 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/14/2022 2:36 PM, Sibi Sankar wrote: Thanks for Your time Sibi Sankar!!! > On 9/8/22 6:53 PM, Srinivasa Rao Mandadapu wrote: >> Add flag in qcom_adsp private data structure and initialize >> it to distinguish ADSP and WPSS modules for using iommu selectively. > > There are other flags available to distinguish between ADSP and WPSS > like 'is_wpss'. So you probably want to tweak your commit message to > just say if it has a iommu in front of it or not and skip referencing > WPSS. Okay. Will update commit message. > > Reviewed-by: Sibi Sankar > >> >> Signed-off-by: Srinivasa Rao Mandadapu >> Reviewed-by: Stephen Boyd >> --- >> Changes since V5: >>     -- Rename adsp_sandbox_needed to has_iommu. >> Changes since V3: >>     -- Rename is_adsp_sb_needed to adsp_sandbox_needed. >> Changes since V2: >>     -- Add is_adsp_sb_needed flag instead of is_wpss. >> >>   drivers/remoteproc/qcom_q6v5_adsp.c | 5 +++++ >>   1 file changed, 5 insertions(+) >> >> diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c >> b/drivers/remoteproc/qcom_q6v5_adsp.c >> index 2f3b9f5..fa2ccac 100644 >> --- a/drivers/remoteproc/qcom_q6v5_adsp.c >> +++ b/drivers/remoteproc/qcom_q6v5_adsp.c >> @@ -62,6 +62,7 @@ struct adsp_pil_data { >>       const char *sysmon_name; >>       int ssctl_id; >>       bool is_wpss; >> +    bool has_iommu; >>       bool auto_boot; >>         const char **clk_ids; >> @@ -99,6 +100,7 @@ struct qcom_adsp { >>       phys_addr_t mem_reloc; >>       void *mem_region; >>       size_t mem_size; >> +    bool has_iommu; >>         struct device *proxy_pds[QCOM_Q6V5_RPROC_PROXY_PD_MAX]; >>       size_t proxy_pd_count; >> @@ -596,12 +598,15 @@ static int adsp_probe(struct platform_device >> *pdev) >>       } >>         rproc->auto_boot = desc->auto_boot; >> +    rproc->has_iommu = desc->has_iommu; >>       rproc_coredump_set_elf_info(rproc, ELFCLASS32, EM_NONE); >>         adsp = (struct qcom_adsp *)rproc->priv; >>       adsp->dev = &pdev->dev; >>       adsp->rproc = rproc; >>       adsp->info_name = desc->sysmon_name; >> +    adsp->has_iommu = desc->has_iommu; >> + >>       platform_set_drvdata(pdev, adsp); >>         if (desc->is_wpss) >>