Received: by 10.213.65.68 with SMTP id h4csp4211225imn; Tue, 10 Apr 2018 11:00:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ngakhF786PtkO2AVWwb+pSKkfOqzIzmhXh1iWQXQiR6KD+yXuW9N8glnni2CSHWFF/+Bm X-Received: by 10.167.134.1 with SMTP id p1mr1184114pfn.77.1523383247378; Tue, 10 Apr 2018 11:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523383247; cv=none; d=google.com; s=arc-20160816; b=i/u1filrkdBdROKAFZu+ElKzbqqjO+yszzgOxsrweg/fw2VVGc8vhh71Bx+JxG65To 2ug5t2iab5sExOrb25GT/p37TBMsF+ub2GPHK/h80rPG0Uz+CFFP2Cd760pijlp7tapU 1Cj/1zORIqcsYVGlly6r5xOMsL1jyvdoLwevGQJN1+uYIgxMGI2qQnBU2JHJanj3jqBz NhHOt/HHVM5VHSnghgvbAEbPuLkmulLnGuhONJx85a7o4ZNksirK0ZUyx9dr7/6ix1C+ HPX3TDqfgmYBLmAg+GfNd3h7R/b/ze8u32oOSTwQqy1HfNY6BtYTBplbN4FUEURtAAuJ iZyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=BHiCRHBqCNT/7iY7AMRUmyWAOKNEhX6ylBvBxbzQsBw=; b=dkefG4Fxz2v8CFWWsafHDHHHt13CdN6GRx4hVGTPt8phgEiElpX/ubNwZfhnjTdJHk UUQC1Ii3q3gVjlhpe0NAv+fYmkx4VVcWmgY1BhR9n8fccA/xiL4v70VjP2naLGi8Ok25 3sijEXPp9HXO1I9UkEfCWFJE3Uo3vsupcEaiJEY7TMK7yVOTZ+baujOIQjpHuGSPRXDp g6ZQS8eiSGP3/UrSQ8Lb/Mz5HXCgtHppYJqxQCtcVEX4Bzf1mQjdy3PkzAsXOzN73cNE 8HtAz12vPxy9W58GxbVpA+qyRs68Be00quv4n+9RK5Cfn/SyUGyOp/DZ08ZKq/XDDK3o MK3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=FNfHNel8; dkim=pass header.i=@codeaurora.org header.s=default header.b=CLrdSh+C; 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 y1-v6si3137082pli.586.2018.04.10.11.00.08; Tue, 10 Apr 2018 11:00:47 -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=FNfHNel8; dkim=pass header.i=@codeaurora.org header.s=default header.b=CLrdSh+C; 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 S1752077AbeDJR5d (ORCPT + 99 others); Tue, 10 Apr 2018 13:57:33 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33496 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751546AbeDJR5b (ORCPT ); Tue, 10 Apr 2018 13:57:31 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9A52E6081C; Tue, 10 Apr 2018 17:57:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523383050; bh=LCcqKMtycj6fb0Ph7mQ/W6jAHhr/pPTil0rBaCs2zxI=; h=From:To:Cc:Subject:Date:From; b=FNfHNel820aF8Gdi+SEArhzDdIt0kLd8gP51JEPtMw3AYmRVMcXgHpk9tNgdGLVxB FFPW6LCiVqott8Weh8QuTOOHBnWjI0Nz6VCtfUnNgEq3Jk/9NrI95WSyjfqpl+PTS4 0Ci+dos3pTX6NzCPm8u1W3MEPv+sX9bMIVfNV80o= 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 codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CA8F06079B; Tue, 10 Apr 2018 17:57:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523383049; bh=LCcqKMtycj6fb0Ph7mQ/W6jAHhr/pPTil0rBaCs2zxI=; h=From:To:Cc:Subject:Date:From; b=CLrdSh+Cc173UAdU4HaAuWLEtyNnI5woF2S9ttvm/LbxkOxRhpx9kbPYNNH8BjNHa JE4S15od+ySLkPAFf18HQ2zEKdOZh03/+rmV1JXivbxC67OOYektm85skxpwmeHkOm zfbe/MB079is65WOYARAerAzENUsiC3MP2QtVNVw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CA8F06079B 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 From: Lina Iyer To: andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org Cc: rnayak@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, sboyd@kernel.org, evgreen@chromium.org, dianders@chromium.org, Lina Iyer Subject: [PATCH v8 0/2] drivers/qcom: add Command DB support Date: Tue, 10 Apr 2018 11:57:22 -0600 Message-Id: <20180410175724.7165-1-ilina@codeaurora.org> X-Mailer: git-send-email 2.16.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v7: - Add reviewed-by tags - Fix example Changes since v6: - Fix 'reg' property - Add reviewed-by tags Changes since v5: - Remove indirection of command db start address - Rebase on top of 4.16 Changes since v4: - Address comments from Stephen and Bjorn These patches add support for reading a shared memory database in the newer QCOM SoCs called Command DB. With the new architecture on SDM845, shared resources like clocks, regulators etc., have dynamic properties. These properties may change based on external components, board configurations or available feature set. A remote processor detects these parameters and fills up the database with the resource and available state information. Platform drivers that need these shared resources will need to query this database to get the address and properties and vote for the state. The information in the database is static. The database is read-only memory location that is available for Linux. A pre-defined string is used as a key into an entry in the database. Generally, platform drivers query the database only at init to get the information they need. [v1]: https://www.spinics.net/lists/linux-arm-msm/msg32462.html [v2]: https://lkml.org/lkml/2018/2/8/588 [v3]: https://lkml.org/lkml/2018/2/16/842 [v4]: https://patchwork.kernel.org/patch/10242935/ [v5]: https://lkml.org/lkml/2018/3/14/787 [v6]: https://lkml.org/lkml/2018/4/5/451 [v7]: https://lkml.org/lkml/2018/4/6/756 Lina Iyer (2): drivers: qcom: add command DB driver dt-bindings: introduce Command DB for QCOM SoCs .../bindings/reserved-memory/qcom,cmd-db.txt | 37 +++ drivers/of/platform.c | 1 + drivers/soc/qcom/Kconfig | 9 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/cmd-db.c | 310 +++++++++++++++++++++ include/soc/qcom/cmd-db.h | 45 +++ 6 files changed, 403 insertions(+) create mode 100644 Documentation/devicetree/bindings/reserved-memory/qcom,cmd-db.txt create mode 100644 drivers/soc/qcom/cmd-db.c create mode 100644 include/soc/qcom/cmd-db.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project