Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1503493rwe; Thu, 1 Sep 2022 21:24:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7/Icvukv+N6/lfWoPGRInOloBuXKru6AuPE8EdrJ2NJiBfFHLsnA65KBvrE/tQsrQoBXyl X-Received: by 2002:a63:f304:0:b0:42c:1057:e37 with SMTP id l4-20020a63f304000000b0042c10570e37mr19691316pgh.379.1662092675775; Thu, 01 Sep 2022 21:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662092675; cv=none; d=google.com; s=arc-20160816; b=RAfU3tq734AYe0BouFfgvrnGYdIoiGZ2FqiNdthzO7D5WK2doqCwTdSVGNhsBlL1qd tM2gAOzYExPLKdWS4UHOvBVTWg4JvaCEMZp2vZx8L1IGf8p+dnvaNsKDpJELOQFx1aXn t3OAIQA7wbYpFHkkQYiaVkLRFF4TfXyKb+XPewRjPz9pxPnbihV6W5W3/qMBq89NjosC 8e3HoonjqCprerPHxDlp71bGhqrTneaXl263Tbx1hOZDVaOKy0/9NFv3mpH8rqVlejLH I8iiJyCk96C9w4I1WLZYy1kgjpn9sNwZKNd4+edDAk9mu0k5W53QPB5RVm/mBRquRXt+ eLHQ== 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=wfbrIGOocPvZH/uoLYPFS6hXByh0b+uzqQ72Z9SCWRE=; b=O+MFrMlkKIz5TZc8toIGGiODXs2EiEdFOsPl0rjm4cK06zqsobvq9SaNIu/swJ5zKw nSbu7HQKGRG1ad7w/4ax+7aRNwXUSZn/oSg6xm9QPKYIDpPACcA7uCB+SEJ9OYol7V83 k0DDMFg2WQD/kBGwH3cypaQt4ZW9qDYj+5+t3vArl/EIIvAS7XEbv1hXKt+a3OiF5Pc4 lhk6TAAD4pLJs18KbMT3AIQAxq2zMgePMQmbgcu0KYOviNJqkLySJbHJR3nARAO5vGhb Xqx68v5TJVr1d3Vg/P7yShJNHDcd55zwA8MlqY8juK0q44L1+rS3ki4WI/tZfjXEYXWV LX/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="jnDT/rKk"; 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 x186-20020a6386c3000000b0040512c0ebfcsi868410pgd.297.2022.09.01.21.24.25; Thu, 01 Sep 2022 21:24:35 -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="jnDT/rKk"; 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 S233289AbiIBEE5 (ORCPT + 99 others); Fri, 2 Sep 2022 00:04:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiIBEEy (ORCPT ); Fri, 2 Sep 2022 00:04:54 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3369211174; Thu, 1 Sep 2022 21:04:53 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28244GTv012420; Fri, 2 Sep 2022 04:04:45 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=wfbrIGOocPvZH/uoLYPFS6hXByh0b+uzqQ72Z9SCWRE=; b=jnDT/rKkqy7ri6GdpwUNfUL0G0AksVUDFeHwoe3eRWm8mmyOEr/kYc+lr29gVOZtyhMc 7inIeOYh/OmNwi8rm4gwRm4q5UJn71McrO6PLDFRZ06oz5H4+fCqzMWo3plGhUxiuHnF MqsriZGHrM0b7dj42IcyS7T+kp1yG7+JaKi/C26WTdVyvT+VlD1Vm8i+uvx02upzfO0V 6VfCIRf45H5x/ATAHQTzYVMNuokU2cz5zmTr+7+3UqL7zbaKZUcvppOU9cBFJch+McA1 xH41u8jjt3aYiIB8judQZnf3upcHKCJfOap3j21DEwvTe3o/2EjIkoTBiJMZmkocv8pD yg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jbafy8015-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Sep 2022 04:04:45 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28244idr028804 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Sep 2022 04:04:44 GMT Received: from [10.216.15.81] (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; Thu, 1 Sep 2022 21:04:41 -0700 Message-ID: <33c61f23-6442-6d9b-492f-dd6e9c64a8c1@quicinc.com> Date: Fri, 2 Sep 2022 09:34:38 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 2/4] soc: qcom: icc-bwmon: add support for sc7280 LLCC BWMON Content-Language: en-US To: Krzysztof Kozlowski , , , , CC: , , References: <20220901124730.19460-1-quic_rjendra@quicinc.com> <20220901124730.19460-3-quic_rjendra@quicinc.com> <4ca517a4-c4a1-2359-7b60-86ac529ed741@linaro.org> From: Rajendra Nayak In-Reply-To: <4ca517a4-c4a1-2359-7b60-86ac529ed741@linaro.org> 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 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: FHD6_3GxhzsMQ7fZN1sfngspQuqrBIHv X-Proofpoint-GUID: FHD6_3GxhzsMQ7fZN1sfngspQuqrBIHv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-09-01_12,2022-08-31_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 adultscore=0 clxscore=1015 mlxscore=0 phishscore=0 bulkscore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209020018 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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/1/2022 8:57 PM, Krzysztof Kozlowski wrote: > On 01/09/2022 15:47, Rajendra Nayak wrote: >> Add support for sc7280 BWMON instance measuring traffic between LLCC and >> memory with the v5 register layout. >> >> Signed-off-by: Rajendra Nayak >> --- >> drivers/soc/qcom/icc-bwmon.c | 15 +++++++++++++++ >> 1 file changed, 15 insertions(+) >> >> diff --git a/drivers/soc/qcom/icc-bwmon.c b/drivers/soc/qcom/icc-bwmon.c >> index 47c2c3e7bb3f..44a10009b45e 100644 >> --- a/drivers/soc/qcom/icc-bwmon.c >> +++ b/drivers/soc/qcom/icc-bwmon.c >> @@ -656,6 +656,18 @@ static const struct icc_bwmon_data sdm845_llcc_bwmon_data = { >> .regmap_cfg = &sdm845_llcc_bwmon_regmap_cfg, >> }; >> >> +static const struct icc_bwmon_data sc7280_llcc_bwmon_data = { >> + .sample_ms = 4, >> + .count_unit_kb = 64, > > This makes me wonder if I put correct count unit for SDM845 LLCC... These numbers seem to vary from SoC to SoC, I looked up the sdm845.dtsi from the CAF kernels [1] and it seems like it should be 4096 instead of 1024? [1] https://source.codeaurora.org/quic/la/kernel/msm-4.9/tree/arch/arm64/boot/dts/qcom/sdm845.dtsi > > Reviewed-by: Krzysztof Kozlowski > > Best regards, > Krzysztof