Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1937422rdf; Sun, 5 Nov 2023 22:27:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbWEV+NyjQZXWfMzKkdLuBZMW4Fc+UjeD5vtGvmn5HTAO7sDbPUvIhSvBtKX5ad7FxXehF X-Received: by 2002:a05:6358:9d8a:b0:168:e9ad:ea6c with SMTP id d10-20020a0563589d8a00b00168e9adea6cmr27325490rwo.9.1699252046408; Sun, 05 Nov 2023 22:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699252046; cv=none; d=google.com; s=arc-20160816; b=mQLJHfVMzletSwnKdADh9iAOJZ/e0R44pVjzS9wGkNTLfY7gIR9sqYVIZGv7NVNyA8 mW877fAgmXN2Z8K4nGGJSMHOZVkKKrx5GuAhSJm/laskJrqh/9FZ+Xc+aseZtppFPD+n bHS8ro67nZNgDH9dahjHoCbGDt9XEYqkADVaT/LmDSUR6RKCEGfAlitjDPJRlRcczrj7 uiUpktqN0ZTuwbckaogp+AitpdRxj7DaUQvlmyMQ/sLJui1LhfP9vM4/5aH1FsE71tpD aGRYQH0Oz7ZrUsPVRoUXJ0/CSLal++KALo52mff/dmYxbrjiHN+qnfU0spvM80E/jRuZ fFCw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VkGpU/7TQ31sXBgHpHKZUeIBvHPYj4KVKVTF9OXiVTU=; fh=k42zY9LcNIOZ0NLj7WVyg+ujP7w9sIihQKxTNMnACrw=; b=MCuTbXe04SPNbEBqtIE9GAz4d/VJ4rtmY/jm4XToSqwiTd8p1e1m6s5uD/LkvxQtAc LjWGyGzTKXZt1SyrIe6krcsDRF0Ry8i3WOEXy1XdqLTX5HvCkmO7D/FOcRCdTUhZsWyD czUodBBEqpGPM4xXHqBhWBpxDVCCzRWsUCdWj5C66V7/z2ld4TR9YXecMhHbpPWZAKue Rz+OsXvkaFJ71LztjxTdTpCEOiY5fw+ck6VdiMDmDu8LaaQDoVGquluRok1ejLj445wG D5ab3tjK2Hu0UYyqL713a+YSGq/pbZV4X5QoWCgzafApvejSF3OKaPNrcZ4DjNnNMOFW vkJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="buQOsQ/p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id v185-20020a6389c2000000b005b928e3942esi7051548pgd.54.2023.11.05.22.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:27:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="buQOsQ/p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DD0EC804C539; Sun, 5 Nov 2023 22:27:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbjKFG1M (ORCPT + 99 others); Mon, 6 Nov 2023 01:27:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbjKFG1L (ORCPT ); Mon, 6 Nov 2023 01:27:11 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28F96B8 for ; Sun, 5 Nov 2023 22:27:09 -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 3A66CSYK016028; Mon, 6 Nov 2023 06:26:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=VkGpU/7TQ31sXBgHpHKZUeIBvHPYj4KVKVTF9OXiVTU=; b=buQOsQ/pWY2cRdnNbTH1ID+aNuBwT0dlLB9zzAMRrdxMDK9Qg8HhDR5AMTsLTS2Zg015 YOPmH+nFL4BcQxLOzcdMotJoBF9a3yXPyqsvkb0+EJxRJANGuosQLLAibVkBuZj0NgqQ wmsPZk2p+nEzKK5Zb9AqxkXeck1m06LGH5Twom6pmTx00wwD/gXUMiSy+OeKjcwwFvKi MNTWEf08I6dZBfh7Ly39QZ59RH+ljdLQYvIYGat1vFFMGIPT0t1pBoHwk2ztPphXDyQ2 VN/JalVAaCIYY4X1HuvnPVomIZ1uFDZhACWgi/K3fNM9zslCqwfwdiyDWlsvlkxXFFVc NQ== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u5eg8k7hc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Nov 2023 06:26:53 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3A66QqB3017170 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 6 Nov 2023 06:26:52 GMT Received: from [10.214.227.50] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Sun, 5 Nov 2023 22:26:46 -0800 Message-ID: <5fb7b0ac-8cd5-4fa2-ad0f-ddce5588e805@quicinc.com> Date: Mon, 6 Nov 2023 11:56:42 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] iommu/arm-smmu: add ACTLR data and support for SM8550 Content-Language: en-US To: Konrad Dybcio , , , , , , , , CC: , , , References: <20231103215124.1095-1-quic_bibekkum@quicinc.com> <20231103215124.1095-3-quic_bibekkum@quicinc.com> <27b4a561-a2af-47a4-912e-6ee6961f0f6b@linaro.org> From: Bibek Kumar Patro In-Reply-To: <27b4a561-a2af-47a4-912e-6ee6961f0f6b@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Ou52aC1zwgzC_qB4cw8SX9XTKBUxsjmw X-Proofpoint-ORIG-GUID: Ou52aC1zwgzC_qB4cw8SX9XTKBUxsjmw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-06_04,2023-11-02_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 impostorscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 bulkscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311060054 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 05 Nov 2023 22:27:22 -0800 (PST) On 11/4/2023 4:59 PM, Konrad Dybcio wrote: > > > On 11/3/23 22:51, Bibek Kumar Patro wrote: >> Add ACTLR data table for SM8550 along with support for >> same including SM8550 specific implementation operations. >> >> Signed-off-by: Bibek Kumar Patro >> --- >>   drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 85 +++++++++++++++++++++- >>   1 file changed, 81 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c >> b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c >> index 68c1f4908473..590b7c285299 100644 >> --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c >> +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c >> @@ -25,6 +25,64 @@ struct actlr_data { >>       u32 actlr; >>   }; >> >> +static const struct actlr_data sm8550_apps_actlr_data[] = { > I assume this data will be different for each SoC.. perhaps > moving this to a separate file (not sure if dt makes sense if > it's hardcoded per platform) makes sense. > Yes, this data will be different for each SoC. Right, adding these properties in dt won't be a right thing since this is a register setting and not a hardware defining property. As per my understanding passing register content via device tree is highly discouraged, so hosting this data inside the driver. For reference, adding the RFC link archiving this discussion: https://lore.kernel.org/all/a01e7e60-6ead-4a9e-ba90-22a8a6bbd03f@quicinc.com/#t If my recollection is correct, some drivers like llcc is also following similar implementation drivers/phy/qualcomm/phy-qcom-qmp-combo.c drivers/soc/qcom/llcc-qcom.c > This will also assume that these can not differ between firmware > versions. > Right, these won't differ between firmware versions. Thanks & regards, Bibek > Konrad