Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4422442imm; Mon, 18 Jun 2018 14:53:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIOSVFMHvLY7XIGyWgd2Hn3W706H3KxW8lLTpL+0z0uCgXwv87ieXc0EWj7TeXlBCEw30Po X-Received: by 2002:a17:902:6686:: with SMTP id e6-v6mr15903674plk.35.1529358825210; Mon, 18 Jun 2018 14:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529358825; cv=none; d=google.com; s=arc-20160816; b=Lhk+xAR2lanbm/mJhiD2uaI8CIoOcS0rXw2rE7iz2z4zxeEjMy9i1xVWmMCTwX+h0n TMObQ0s9IZf3HVNXzS3L/K9X3xOccFgr1bm7F3HgSViIi7XGHi7J8xgM93pywk4JofCS UJAxmYd92ZWCBof0ZkBNMPdXre5of7SZv3w9RXNSGBGWnRbfCHleYZs3O8mWqEMoGlPz M5scjLETApJebglgCr3oTXsE/WUnTVWzRBMSz0zfr4hClF69UBWDAQdypmm5b3q/XnrU 0rwd0vCTM6bwZtW4MsqwBGkocBYRZTGAhw6Or+f0IKvuKyE8OFDibHAKPU0m+OK3f0Lk yaaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=lrfHbzA95E3YpTOn/UTx06hSFE1J53BemfNtE3Bqvsk=; b=LopFyExsY0gN+wEZLmuKJ/5IoOOcD0fiXFhSBaAVxF/bBJhJcX2ATmEGKhGOttc4+3 jtlbJJt0NysJYgUB2N3vAypYr9LeJ1npA/0PBR1tqXDImY0DKQhmcrXTAxNYDVQOYJDu NZWm5GiBoKVh2n+zUjPHvts2GJCLSY5iAN/+iP/GMkvvHviJSQWhETVlZxn1I5l7u4Gs SHmCgutjKF7fZ/V8dXIxKe669R+QkRyg8bLPVTneEF0pOaG1jnPdhQEmDneUmTvNl1ft D4TDMiDgBQbLjdcCp+TW0C80JsmQ+2ZcVmSsCXj02x4BLcklwFk4jsUulWzTmDGsgelV TjBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=N2+p5Gt5; dkim=fail header.i=@chromium.org header.s=google header.b=JeyKJ+Di; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u196-v6si12699064pgc.137.2018.06.18.14.53.31; Mon, 18 Jun 2018 14:53:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=N2+p5Gt5; dkim=fail header.i=@chromium.org header.s=google header.b=JeyKJ+Di; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755388AbeFRVwj (ORCPT + 99 others); Mon, 18 Jun 2018 17:52:39 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:33776 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754628AbeFRVwg (ORCPT ); Mon, 18 Jun 2018 17:52:36 -0400 Received: by mail-ua0-f193.google.com with SMTP id m21-v6so11736805uan.0 for ; Mon, 18 Jun 2018 14:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=lrfHbzA95E3YpTOn/UTx06hSFE1J53BemfNtE3Bqvsk=; b=N2+p5Gt54wSGio2C6D2eK06f1y2h8RoFcaWI/psL3+MdQiwVZIno/BGdWJiQB+Dsji KCxKxLOnqNQet3IVtF6Lt69Z6dykcEgR8niRCZvfrTYTj3w2v+JWkCwcuUFc7f9oM7GZ Iyzjruj3KOdw+/UGPAgoUJ6jnHirDMhCxt5i6Vq4AjEv5XuHrNDBR6UmjtVCJqs8+Xdd 8FFjc6ilYCe6D7vxF/FVb5kguwbhmzLCpwJsT79TrnGEr/L2QAfuicPmotS38JdsifMl 2qqrWEVxh7/thoufKb5AaxUtbrGzeKHmrTm2povcFxaFOHNtc6xd4R7yz1uATKE2bHQh PG/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=lrfHbzA95E3YpTOn/UTx06hSFE1J53BemfNtE3Bqvsk=; b=JeyKJ+DiHyKrIBf/rP9vk7BxOVlt+tkDI5o/FcjlFabDVO91OxKIQH5sYoXnuozCYz TKJf+6G/RuG+nyu26sEfBWVE3irsze9FnVrw0pDVTxRW4MiUOGLx2S/V6hQU89doQNBa K8Qq2gua/dX190z3HKIUCskVEacbZcTrRe3cE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=lrfHbzA95E3YpTOn/UTx06hSFE1J53BemfNtE3Bqvsk=; b=kqQdIwS1j2e49QPeLAdJNI46FUnziljKUCaW+g1F2QQpYr5u8eqdQLtXI8+hqytRo6 9jNf5mtlvUnyNppQHgMqcDvnXtVFiooKQ4P6pR5GlXRS5U2+/jpB6rhe733nS3DMz8e5 9ML9/4bNBaeMuSkClqioEOt1EdI/MDnL4+p9FgaNXMqC0QFfa6odvHarvJNdBBjrZzEc lV/SV8zvf7PaV81UvNg/92+bHDEFLLLGFcIeXVnMvHNmPVj+pvma9Smls2njVPK9nM0j 7vE4w4x77O46g9J3OAIe2Lc2hH5AZdU9Ul6ZrpRZyARFoVq6UEwBEssyDaYySGbsX3RQ UgaA== X-Gm-Message-State: APt69E1w+vop1nDtMGebGjQm8tJEvSwWcsUMJnLOzfU59rm8pQj1EuO5 r3aAFnqkAvo3SdXwFJlu9tt2pGWj6ZEw/ailkXpRuQ== X-Received: by 2002:ab0:5061:: with SMTP id z30-v6mr8873400uaz.82.1529358755508; Mon, 18 Jun 2018 14:52:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:9495:0:0:0:0:0 with HTTP; Mon, 18 Jun 2018 14:52:34 -0700 (PDT) In-Reply-To: <20180618212414.GI21724@codeaurora.org> References: <20180618205616.102750-1-dianders@chromium.org> <20180618212414.GI21724@codeaurora.org> From: Doug Anderson Date: Mon, 18 Jun 2018 14:52:34 -0700 X-Google-Sender-Auth: PRpAZ8abRAPX8NXLAwPo86qSWiE Message-ID: Subject: Re: [PATCH 1/2] arm64: dts: sdm845: Add rpmh-rsc node To: Lina Iyer Cc: Andy Gross , Stephen Boyd , Taniya Das , Raju P L S S S N , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, LKML , Rob Herring , David Brown , Will Deacon , Mark Rutland , "open list:ARM/QUALCOMM SUPPORT" , Catalin Marinas , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Jun 18, 2018 at 2:24 PM, Lina Iyer wrote: > On Mon, Jun 18 2018 at 14:56 -0600, Douglas Anderson wrote: >> >> This adds the rpmh-rsc node to sdm845 based on the examples in the >> bindings. >> >> Signed-off-by: Douglas Anderson >> --- >> >> arch/arm64/boot/dts/qcom/sdm845.dtsi | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi >> b/arch/arm64/boot/dts/qcom/sdm845.dtsi >> index cd308b84bed7..19b006293d3b 100644 >> --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi >> @@ -7,6 +7,7 @@ >> >> #include >> #include >> +#include >> >> / { >> interrupt-parent = <&intc>; >> @@ -984,6 +985,24 @@ >> #mbox-cells = <1>; >> }; >> >> + apps_rsc: rsc@179c0000 { >> + label = "apps_rsc"; >> + compatible = "qcom,rpmh-rsc"; >> + reg = <0x179c0000 0x10000>, >> + <0x179d0000 0x10000>, >> + <0x179e0000 0x10000>; >> + reg-names = "drv-0", "drv-1", "drv-2"; >> + interrupts = , >> + , >> + ; >> + qcom,tcs-offset = <0xd00>; >> + qcom,drv-id = <2>; >> + qcom,tcs-config = , >> + , >> + , >> + ; > > Sorry, my example had this incorrect order and I just noticed this. We > will need to fix the example as well. > > The first TCS should be ACTIVE_TCS, then followed by SLEEP_TCS and > WAKE_TCS. This order is important and should match what is set in the > firmware. > > qcom,tcs-config = , > , > , > ; > > While the above configuration would work for now, it would fail, when we > enable system low power modes, which would use TCSes 2-7 for sleep and > wake set transitions from the firmware. Since I'm not expecting lots more feedback, I've gone ahead and sent v2 with this fix. -Doug