Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1975860rwl; Thu, 6 Apr 2023 04:14:50 -0700 (PDT) X-Google-Smtp-Source: AKy350YkgCMv3VhCiHeWKfM2XnxhFxmjTGSKyRXIC5OYQF5ITlz3MBLMm8f2h7kM5k+RbJ2U93q6 X-Received: by 2002:aa7:d859:0:b0:4fa:3b3:c867 with SMTP id f25-20020aa7d859000000b004fa03b3c867mr4007317eds.17.1680779689481; Thu, 06 Apr 2023 04:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680779689; cv=none; d=google.com; s=arc-20160816; b=coEjE05SGW0NRlPmCv38OI7S3fgCf89OUF3IO/91dx9S7e1vGI2G89qiELDq7rQLB+ E13vQ56QtReIZQ/i4Zb0usPtHB5fbkTQ9+hZskOkdMLPDkHwOP4B6qGSvvi422tuhGqY d2Ht9HZ3lQogKJia2deO5n8RMXMZ/1TQBGZKohzhKQrit9p+iGmYtmn1gPOs3mmL2pxi yr8wETyVq28QWH2MXe+wc2KNvL1JFjL6DANPhvDNNd7SB3xusI1xisPaNhU6BMMw5yXc GeMWTGxTKC8ed8gbTgoUqEFGhimvqroeT9uOJ3K1dLRRkAXv5KSqwg9vNn6xVxQrpQ3y dyMQ== 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=YYcev94yQdsqVZnRqJnBM1uuqYiJhHnnxfI5yles50E=; b=xaPho2VTSwWn3Z8f0b/xTkfRWDjNeBpERwUcarpaaZYcZFiZqwRdenNhzxuqHxsi/O wudB8mbUKHb3+rD1He7SlmoqpnplQ0yJyMfQNGevpMR7X8cpaMwdWAOqKYgBAaCxGu/D P8A6cwR1eqytBLqWf72xbhqTtp7cRFKco1vAdVrOTbdmz1Zxd1419rr9LycxfUCmkB9U 07n57BauezVdc4psLBWFzgG7XfbQsXrVI8acolNllaDcUxlCAW4rrjYQu+LCsuYRiVOB +L9NplV9tLScJX52/Fy0Z7luArBGMWHGNSBd+Zxa3wdTAqQ16h8WgcqV20bkzx2HY2yo Hr7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LLfE6rQu; 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 x3-20020aa7d6c3000000b005026e488c81si896506edr.520.2023.04.06.04.14.21; Thu, 06 Apr 2023 04:14:49 -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=LLfE6rQu; 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 S236684AbjDFLEt (ORCPT + 99 others); Thu, 6 Apr 2023 07:04:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236992AbjDFLEn (ORCPT ); Thu, 6 Apr 2023 07:04:43 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70FA91703; Thu, 6 Apr 2023 04:04:25 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 336B4KCZ019975; Thu, 6 Apr 2023 11:04:21 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=YYcev94yQdsqVZnRqJnBM1uuqYiJhHnnxfI5yles50E=; b=LLfE6rQu4eBtAkWY2KlhevqrvueFGgvVxmFfVC2/dtaxT9s9jR15jgDRk1eMigYhZmlh m/N4C95zkrOSFe8ADsYKhgC87xZNPhcVds3x6s4zKbHDfMf3p3GIZU5e2ToF47WsPglG JJOpgJh74s1cX4kPvCcWFxVqBZBUKZqr/Jesq+HiBK0q4LmTAp52busFum2dlhZi26XK zngcY01lg5/m+9EFFUxh0IF56onOTnho/iGcizKU1/4kzFbSbAq4x6uCRJQPM7FnV2Tu 9u4UajnCaU07BLFqAkHk0Jpf7j/K8Oh3nss0IfL4epoon1xD0LFBXGE25xTzzTNPksNo qA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3psnmj0ya7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Apr 2023 11:04:21 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 336B44OQ013696 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Apr 2023 11:04:04 GMT Received: from [10.216.2.94] (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.986.42; Thu, 6 Apr 2023 04:03:59 -0700 Message-ID: <54e8f7b6-12ae-aac5-9092-7d1fef300db8@quicinc.com> Date: Thu, 6 Apr 2023 16:33:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v2 2/5] dt-bindings: arm: msm: Add bindings for multi channel DDR in LLCC Content-Language: en-US To: Krzysztof Kozlowski , Komal Bajaj , Manivannan Sadhasivam CC: Rob Herring , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Krzysztof Kozlowski , Andy Gross , , , References: <20230313124040.9463-1-quic_kbajaj@quicinc.com> <20230313124040.9463-3-quic_kbajaj@quicinc.com> <2b3e39b9-ea70-db9b-89f7-09054df363c3@linaro.org> <20230315134814.GA98488@thinkpad> From: Mukesh Ojha In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: LruhRa6HfjYKtX6uWzwHewu6Jd5GizGq X-Proofpoint-ORIG-GUID: LruhRa6HfjYKtX6uWzwHewu6Jd5GizGq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-06_05,2023-04-06_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 spamscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304060097 X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 4/6/2023 3:04 PM, Krzysztof Kozlowski wrote: > On 06/04/2023 11:19, Komal Bajaj wrote: >> >>>>> >>>>> interrupts: >>>>> maxItems: 1 >>>>> >>>>> + multi-ch-bit-off: >>>>> + items: >>>>> + - description: Specifies the offset in bits into the multi_channel_register >>>>> + and the number of bits used to decide which LLCC configuration >>>>> + to use >>>> There are here few issues. >>>> First, I don't fully understand the property. What is an LLCC >>>> configuration? Like some fused values? >> >> There are different configuration for LLCC based on the number of >> DDR channel it uses. Here, we are basically trying to get information >> about the same. >> >>>> >>>> Second, don't make it a register specific, it will not scale easily to >>>> any new version of this interface. Although how this should look like >>>> depends on what is it. >> >> LLCC driver can only get DDR channel information from the register. Actually, any one can read this property there is no boundation to that. However, some of the bits information of this register only matters to LLCC to make decision. > And why would that exactly matter to DT? How does it solve my concern > that your approach does not scale? I understand your concern about not making it register specific, however this register is a secure fuse register where the interested bits are known to us and should only be used by llcc to select right slice configuration table to apply. How about something like this, Add another property like qcom,tcsr_feature_config under qcom,scm and read this property under qcom_scm driver and expose read exported symbol for LLCC driver. LLCC driver can use API and apply bit offset/bit size to get right value inside the target driver data(e.g .data = &XXXX_cfg }) or maintain it inside same tcsr_feature_config DT (this can be discussed) Also, we can have a yaml file for tcsr_feature_config. e.g.. scm: scm { compatible = "qcom,scm-sm8450", "qcom,scm"; qcom,dload-mode = <&tcsr 0x13000>; ... qcom,tcsr_feature_config = <&tcsr_feature_config> }; tcsr_feature_config: syscon@fd484000 { compatible = "qcom, XXXX", qcom,tcsr-featureconfig"; reg = <0xXXXXXXXX 0xYYYY>; }; -- Mukesh > > Best regards, > Krzysztof >