Received: by 10.223.176.5 with SMTP id f5csp2313255wra; Thu, 8 Feb 2018 11:54:24 -0800 (PST) X-Google-Smtp-Source: AH8x2245sCb5clpXrKUEiCR5d/aJhkxd7ckA2BrC+qvjUH7kNXKz4Y3t5O3CeFdrLhrKACfpb1+R X-Received: by 10.99.117.87 with SMTP id f23mr234124pgn.453.1518119663963; Thu, 08 Feb 2018 11:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518119663; cv=none; d=google.com; s=arc-20160816; b=ncnocwl9lk5eSCJk+aSu6eHXJjwNc+46OKC1t0boAJULLitNygj777X1T+glfwuvsV 4hJGWuztHcI7CtkD4F5omQrBX4bwiq0bHOhvpdXyNLeIWLV87L855mEaa31+4WA8lqXL x/8mRLif41WWbLwDG/ZUDws7JVCEAYmORO02oNU5fXgqnOD8dffK8oUXVDfFcEb/6q76 UIUbgEAHquwYfzWFJlRhaMYQvMeJnf/BBKDfI+1Sp3WeiZROlR2ekBbBil9k1ImPPVCs 83jjo3L9BsdwQcinB3LgomOFZIl8nqcHQsmfO5wZGYAmuy61WmElJADb0pGEPT9WKPDz qeLA== 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=RRJ6zSYReu+CTOPwxxOR2wG+UTC9iKpT1mrq7dlAvNs=; b=CajkhcgO2ekotWRcehufKDl6g8BMs78fwn3I5fVAgESSTu0QJABJlYqPgDHeTduX0a JrBDiOfgbF8XSiZ7skfWUDKEl5Sjmms8kRmk3I6PHx2GVQ8Nd+iCc5hT/QWEhKRlyY5r fNdc42onvvAuvh6ZFoxUhsF7l5gqq/0bjOtYaP8YsCoCdbyE7etCqWXWjdhdsxwsr7Eo uDJSOiO1PIZpCu+OXVMRK1Muyr1gU0dqkhBIObfKTO+t3Ae+L2lLjMmoLmAl5FWDKzMd Z7RC+NJLwQZjbAcCIyXIw007P7O4+06/nV6lvqFAEpUaZkDRTexUOZ9nReiAu/NwkqRd DoMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=DZOxgb/p; dkim=pass header.i=@codeaurora.org header.s=default header.b=ahZ5apo2; 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 n127si352534pga.171.2018.02.08.11.54.08; Thu, 08 Feb 2018 11:54:23 -0800 (PST) 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=DZOxgb/p; dkim=pass header.i=@codeaurora.org header.s=default header.b=ahZ5apo2; 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 S1752469AbeBHTwJ (ORCPT + 99 others); Thu, 8 Feb 2018 14:52:09 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:35750 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020AbeBHTwH (ORCPT ); Thu, 8 Feb 2018 14:52:07 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4F8E26081C; Thu, 8 Feb 2018 19:52:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518119527; bh=y4gGpA5Exk3XkkLn+rywVCUaVi+OXammuycywIppd8U=; h=From:To:Cc:Subject:Date:From; b=DZOxgb/pcb4j+Wp+CNN8oVfZJkQu7diJY6BptTqZtfmOKiOG+vEWWl83oRE+JeoPQ /NPXkPgZxBKtWLQ+wwmb1IjcC7g7YnSn6T/VGuBoSazEmQ955HJbtH3tvSXKbMPF/9 VdFBUZUwwFJDfbrgwc7g/xUPbruanagrPBuTO8aQ= 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 22CF2605A5; Thu, 8 Feb 2018 19:52:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518119526; bh=y4gGpA5Exk3XkkLn+rywVCUaVi+OXammuycywIppd8U=; h=From:To:Cc:Subject:Date:From; b=ahZ5apo2w51fhmCR/Iy/jRljB5qMPcMyvEkmFFQyq1NNdBcsG+J3FnvFCloRKK3tQ DX2Mm+kLDDW4UQfRzdA0QgRD0A1qr8V96c8yK/MinFOmHiii+gIBtJ8I0B4ECG1YM6 CyKbGBb8d8pl5UlhHwzNhs0WCK1yzjlyhPBV+dHA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 22CF2605A5 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: sboyd@codeaurora.org, rnayak@codeaurora.org, msivasub@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, Lina Iyer Subject: [PATCH v2 0/2] drivers/qcom: add Command DB support Date: Thu, 8 Feb 2018 12:51:52 -0700 Message-Id: <20180208195154.3580-1-ilina@codeaurora.org> X-Mailer: git-send-email 2.15.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in [v2]: - Use reserved memory regions instead of regs in DT - Code cleanup suggested by Bjorn and Stephen - Remove unused structures and functions. - Update function names from _get_ to _read_ - Add documentation 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 Lina Iyer (2): drivers: qcom: add command DB driver dt-bindings: introduce Command DB for QCOM SoCs .../devicetree/bindings/arm/msm/cmd-db.txt | 38 +++ drivers/soc/qcom/Kconfig | 9 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/cmd-db.c | 321 +++++++++++++++++++++ include/soc/qcom/cmd-db.h | 50 ++++ 5 files changed, 419 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/msm/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