Received: by 10.192.165.156 with SMTP id m28csp1204565imm; Wed, 11 Apr 2018 14:31:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/ZQ/dglWOmjiWLRHzHFWndiTOkBFfVdY3nbPdPv1UeWXWsDIrmW8JqErDr6Mf1fsqOfTTp X-Received: by 2002:a17:902:b191:: with SMTP id s17-v6mr6674778plr.339.1523482304429; Wed, 11 Apr 2018 14:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523482304; cv=none; d=google.com; s=arc-20160816; b=xd3TO8iL0mQESxh1tNPLtVCb1PeA/xFsDNDcVMbYGhxkSe/VJiL8obI41U+sFeIUkg cYeF3uW93AIOPHq0/yPfweX0ErY2DM0dKVgmUb4AlI2OZTiBRLqb2qWskXgMGSsMl2Pk iTfiFgaKqLyc6KQ9x1bM+s5miFfOMPcj0pqv/y/Rdyzl262s2hiJuLBHnR4VPS7IFxTB /sw9Nwc6PlBsJcUJSMXF6KYmFMNjMyCqqoU2EBvjYkm/4IUZsLtdAcR6igHaY7VM/uPb RuiEflH9s579J7+hhzR7NrjpinuvKeA8/l6DJfkHnKQHP2H+y3qQp9c1dTW2c5MhUdGU fG+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=GyFzugOSc2GDIVZ2TL2kOT0UFXMD9kQZCJt2yG8sazY=; b=rWP3f2wChh4yiun7fDmrzW838apz4Rl2u6rThi07L8O/soxLc4GwGgdqQI4jy0NO05 eahGz/W319jRdswitD4+7YpzXdmxcEDvWVZRov12j9ELtwoZmw+1tIZbMIF1ed0+ZyGd 2w7gHP7rZ4PEF6KHQQc7C/Vy645HAkubgv8+zUV1L/wuYowHRTZFoVVf2Rgqr+kALdnt w2iU6e9NFVy/KQMciowGQRTTlAdRv7GGgJcj8rw3k5C/lFhb7M3W+xX38jajmlWO4OGZ 6Dii66VOP/ZXU0+OIUP/qcU+748ym6FX6nU7NazbVv31Scog7lpnoQ7PL/r0wT0jddfg EZ3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=W2XcOPG6; dkim=pass header.i=@codeaurora.org header.s=default header.b=W2XcOPG6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si1194598pga.698.2018.04.11.14.31.07; Wed, 11 Apr 2018 14:31:44 -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=pass header.i=@codeaurora.org header.s=default header.b=W2XcOPG6; dkim=pass header.i=@codeaurora.org header.s=default header.b=W2XcOPG6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754519AbeDKV0X (ORCPT + 99 others); Wed, 11 Apr 2018 17:26:23 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60680 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753364AbeDKV0U (ORCPT ); Wed, 11 Apr 2018 17:26:20 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D84FC60F6C; Wed, 11 Apr 2018 21:26:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523481979; bh=Ewl1Bq4ILTxI4Mu6eW5sX5sUzAPNcZtmKvcAy2ITaH0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W2XcOPG6feDqAKF08794mzrkrMfq1HXO2znWJcDjyvOT2O1VijPRONVLoOnKT6YzJ wsXEWQn8OnyYUW3mBjJbD6h+mi5Efe/lNYRMFwC1MxthjJnlvGgjsMMXPruRbpPYI8 uztAaZtpePFN733NEFxuVGxa59el7ekTGgQNizZ8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 582E56079B; Wed, 11 Apr 2018 21:26:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523481979; bh=Ewl1Bq4ILTxI4Mu6eW5sX5sUzAPNcZtmKvcAy2ITaH0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W2XcOPG6feDqAKF08794mzrkrMfq1HXO2znWJcDjyvOT2O1VijPRONVLoOnKT6YzJ wsXEWQn8OnyYUW3mBjJbD6h+mi5Efe/lNYRMFwC1MxthjJnlvGgjsMMXPruRbpPYI8 uztAaZtpePFN733NEFxuVGxa59el7ekTGgQNizZ8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 582E56079B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Wed, 11 Apr 2018 15:26:18 -0600 From: Lina Iyer To: Bjorn Andersson Cc: Stephen Boyd , andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rnayak@codeaurora.org, linux-kernel@vger.kernel.org, evgreen@chromium.org, dianders@chromium.org, devicetree@vger.kernel.org Subject: Re: [PATCH v5 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs Message-ID: <20180411212618.GH19682@codeaurora.org> References: <20180405161834.3850-1-ilina@codeaurora.org> <20180405161834.3850-3-ilina@codeaurora.org> <152306368031.94378.14957212064809086345@swboyd.mtv.corp.google.com> <20180409160800.GC19682@codeaurora.org> <20180410193621.GB6727@builder> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180410193621.GB6727@builder> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10 2018 at 13:36 -0600, Bjorn Andersson wrote: >On Mon 09 Apr 09:08 PDT 2018, Lina Iyer wrote: > >> On Fri, Apr 06 2018 at 19:14 -0600, Stephen Boyd wrote: >> > Quoting Lina Iyer (2018-04-05 09:18:26) >> > > diff --git a/Documentation/devicetree/bindings/soc/qcom/rpmh-rsc.txt b/Documentation/devicetree/bindings/soc/qcom/rpmh-rsc.txt >[..] >> > > +Example 1: >> > > + >> > > +For a TCS whose RSC base address is is 0x179C0000 and is at a DRV id of 2, the >> > > +register offsets for DRV2 start at 0D00, the register calculations are like >> > > +this - >> > > +First tuple: 0x179C0000 + 0x10000 * 2 = 0x179E0000 >> > > +Second tuple: 0x179E0000 + 0xD00 = 0x179E0D00 >> > > + >> > > + apps_rsc: rsc@179e000 { >> > > + label = "apps_rsc"; >> > > + compatible = "qcom,rpmh-rsc"; >> > > + reg = <0x179e0000 0x10000>, <0x179e0d00 0x3000>; >> > >> > The first reg property overlaps the second one. Does this second one >> > ever move around? I would hardcode it in the driver to be 0xd00 away >> > from the drv base instead of specifying it in DT if it's the same all >> > the time. >[..] >> > >> The DRV is the voter for an execution environment (Linux, Hypervisor, >> ATF) in the RSC. The RSC has a lot of other registers that Linux is not >> privy to. They are access restricted. The memory organization of the RSC >> mandates that we know the DRV id to access registers specific to the >> DRV. Unfortunately, not all RSC have identical DRV configuration and the >> register space is also variable depending on the capability of the RSC. >> There are functionalities supported by other RSCs in the SoC that are >> not supported by the RSC associated with the application processor, >> while not many RSCs' support multiple DRVs. Therefore it doesn't benefit >> describing the whole RSC as it is not usable from Linux (because of >> access restrictions). >> > >I generally prefer that we describe the hardware blocks as accurate as >possible, instead of applying current restrictions on Linux onto the >description. This ensures that we can reuse the binding and drivers in >configurations not considered today. However, afaict we still have the >problem that we need a way to express where in the RSC our TCS sits. > >Regardless of what's right or not, the given example causes the driver >to fail probing, so something needs to be changed. I have been using this in DT and I haven't seen failures. Could you send me the logs? Thanks, Lina >(Making the drv size >0xd00 is functional but doesn't really relate to any bondary in the >register space). > >Regards, >Bjorn