Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1009039lqd; Thu, 25 Apr 2024 03:28:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCMQNTgyLGBRXBRQvI5eJAkboz0kF9gJqwI8VgAq06tKAjbebrlP8eDtrFdaYs0kiQslVELzF3LxJg70ITTHlTA1WIBMftV3NUHhgDFA== X-Google-Smtp-Source: AGHT+IFgweH7QAcsiDa51Xhnq/h8kimkJzlSXCvj2i6zZUdCL0M+sdngWFhdTi1xSHlJFn6UJm++ X-Received: by 2002:ac8:5792:0:b0:439:b523:46e4 with SMTP id v18-20020ac85792000000b00439b52346e4mr3402878qta.32.1714040888577; Thu, 25 Apr 2024 03:28:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714040888; cv=pass; d=google.com; s=arc-20160816; b=TWdp/N2FUB4PDmVo0Bi3ioKv2wqIG9sa3jYxbgj3om0s+/x6rOXlaqkwfCDK6z2tva t40Oe+CbvA0HgP6GT3FSLJ5q46zayeTTOGs7f0Q7hMsyaFJShSB5AINc1ZsRjOXHRYHi aRc0UdzLRvjo191ki51t7RVgbpl/qhUtDlYVLJLkZKcg3mcPHRH+qM0hX3kfynlp44d9 UOkfvtn+3iM7OOfQimQmkd2yqDZxza9HQiVCJ8/nYVtp7oIL0fu5RztcXfma7QkaioLw u2dNrF1UD4aH8h3b7ZaTvIGVRALGOAjdy4NTfiuRleEZn6rZeE4K7OoXI4fFvMW/VHPA JlAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UdCeznE+3ZycNdbFwpeSnzDyv01X2mNOQtmOavOKyLg=; fh=5ub3fBCFG7G6N9Ag9PaE5HLrJEYtwO6DMeBSM2PGHlg=; b=DW76sVHzJJN316smM4qBeev48sZVYI3isxoZquh2pzokLJNpXI747+wPLRDO3HPu0t 6HNCrwgjImASx4H1zDJyZz3mbLOC5q1EofzLwQ6vaG7ziAWjOzHRVho3LadM7hcpLBpp G5bfyhFZubKDIl+rg9OG6N86kDZ8uyHk2PqZIcrZKACJEJQq9sTNbkW+Xm4pLK5/3vWW /CbaQ8ftOXGwfhzoebHLdBz4QhPs7HS56/9a7KlYSAYbj9yK30x7xI25w6ZUNCPZGXN6 1w1qRyEt66/dy+X1Jd5tANQ4C1OF8DJwVv9RcmZREK6CyolUjDdfbBCFUpxaX4kUrWVK Apwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AwNrnfcH; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-158389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j9-20020a05622a038900b004312a27b7f3si17367117qtx.89.2024.04.25.03.28.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 03:28:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AwNrnfcH; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-158389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F15B61C25033 for ; Thu, 25 Apr 2024 10:27:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B89998663A; Thu, 25 Apr 2024 10:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="AwNrnfcH" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FDC986626; Thu, 25 Apr 2024 10:27:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714040831; cv=none; b=AAVaWxaMToBcsC/KRsDpQOlcIZ0jNmu162AfP5pFXI4yhMnUywUKK/g2DSmpHCdXrIzc+JX+PB5kc7C1hAWy0Q2quTotxqf/ZtWzauBBBUm4qQBDR/i9LYJILLDlos3O0EyNGZuf/C2GcCkNU1Y1R8S4HcP+2x3TsBDwloXY830= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714040831; c=relaxed/simple; bh=DOXjsB1uURtz+pGbI/qx6BRXH9Ea1pQq5qQ1TGu1/bc=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=G50k8JzHKUNMx9Lq7gChSPCFBOFiRXi2bJv71jDHfyXIFuhc28yrHtKgWAPmqsf1v4fA1wGL52zup9rwe/s0LA5taAL7MQMoM5t4fUfFYO5q5LP3Ctse4vm+x6M+rq//8Eg94hVf30U0Njb5CkuTQavI1IFRqTSojnkPXQniIhU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=AwNrnfcH; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43P9wrxW032030; Thu, 25 Apr 2024 10:26:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=UdCeznE+3ZycNdbFwpeSn zDyv01X2mNOQtmOavOKyLg=; b=AwNrnfcHa03A8wj9bPcR9fDfR/8jWiNY6KPhd KZyijbAeQpMvqePEG84pU0cTTn1lGcB6J7OHJKUVvqr/qUwjoHQ/y7myzWYm9M2L zfPnl0aj+pAjUwDq4AhKJ8Eo97y+GRG96T/kknLNosh4/qfnXNctUARhrfmqUWCC nplKv+ZvUh7H9Y6VCCmgeqgYbrosaGpaVDQpw2kmebmBGfGvc/Ihg+45wS5OQdBx IgAV88PQbcEaVLDouQMpBcEcP4ymo9NcitH8/oBpJBPmig3bJ/wQuf8FpikCn+di iBmutOOHo2CqpkvrXSW2fIDfQtHuU1r9H8DgR0emj+4rvMAYA== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xqn0wg5pk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 10:26:59 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43PAQws1004198 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 10:26:58 GMT Received: from hu-varada-blr.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 25 Apr 2024 03:26:53 -0700 Date: Thu, 25 Apr 2024 15:56:49 +0530 From: Varadarajan Narayanan To: Konrad Dybcio CC: , , , , , , , , , , , , , Subject: Re: [PATCH v9 6/6] arm64: dts: qcom: ipq9574: Add icc provider ability to gcc Message-ID: References: <20240418092305.2337429-1-quic_varada@quicinc.com> <20240418092305.2337429-7-quic_varada@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: CXhqYs3n6ZegyJD28IbldiROFAHASmth X-Proofpoint-GUID: CXhqYs3n6ZegyJD28IbldiROFAHASmth X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-25_10,2024-04-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 impostorscore=0 malwarescore=0 phishscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 bulkscore=0 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404250075 On Tue, Apr 23, 2024 at 02:58:41PM +0200, Konrad Dybcio wrote: > > > On 4/18/24 11:23, Varadarajan Narayanan wrote: > > IPQ SoCs dont involve RPM in managing NoC related clocks and > > there is no NoC scaling. Linux itself handles these clocks. > > However, these should not be exposed as just clocks and align > > with other Qualcomm SoCs that handle these clocks from a > > interconnect provider. > > > > Hence include icc provider capability to the gcc node so that > > peripherals can use the interconnect facility to enable these > > clocks. > > > > Reviewed-by: Dmitry Baryshkov > > Signed-off-by: Varadarajan Narayanan > > --- > > If this is all you do to enable interconnect (which is not the case, > as this patch only satisfies the bindings checker, the meaningful > change happens in the previous patch) and nothing explodes, this is > an apparent sign of your driver doing nothing. It appears to do nothing because, we are just enabling the clock provider to also act as interconnect provider. Only when the consumers are enabled with interconnect usage, this will create paths and turn on the relevant NOC clocks. This interconnect will be used by the PCIe and NSS blocks. When those patches were posted earlier, they were put on hold until interconnect driver is available. Once this patch gets in, PCIe for example will make use of icc. Please refer to https://lore.kernel.org/linux-arm-msm/20230519090219.15925-5-quic_devipriy@quicinc.com/. The 'pcieX' nodes will include the following entries. interconnects = <&gcc MASTER_ANOC_PCIE0 &gcc SLAVE_ANOC_PCIE0>, <&gcc MASTER_SNOC_PCIE0 &gcc SLAVE_SNOC_PCIE0>; interconnect-names = "pcie-mem", "cpu-pcie"; > The expected reaction to "enabling interconnect" without defining the > required paths for your hardware would be a crash-on-sync_state, as all > unused (from Linux's POV) resources ought to be shut down. > > Because you lack sync_state, the interconnects silently retain the state > that they were left in (which is not deterministic), and that's precisely > what we want to avoid. I tried to set 'sync_state' to icc_sync_state to be invoked and didn't see any crash. Thanks Varada