Received: by 10.213.65.68 with SMTP id h4csp1123841imn; Wed, 14 Mar 2018 10:15:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELvVIvmmLlsIjApuJKQZzJ6KOl0y+GtQ2szIsE6+6b9W8OepFwKkpRLz1U+u8ML+Hlf6d8kl X-Received: by 10.98.141.65 with SMTP id z62mr5006097pfd.129.1521047727274; Wed, 14 Mar 2018 10:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521047727; cv=none; d=google.com; s=arc-20160816; b=umUIWwLUUetGCrUhcdZqj06e0/TIp9PerFe7tgaaMRiU41MSwJ8iqVZxDTloe4eOpl tOEXKIZz8anzmMDIsmfNkiMOgg5ErU6Rs+dHSEv3S2MH3qLA0ov1tAEVwJI1c9mTnfaf ExAgAXWDiJJIcZtW5DZ4bU2Gdww/jSx46RnbpLIL3jUCMjqMefrK0wg9570/fevCCCDK 6LdXeNlqqoBz+7Ti7kWSW8q7CfqaN6H5Kk6/EpE1oCB0/FMvJ1OShT5Vyb310Gl2znw/ jJLnIYuWQ4IMpKDhUX2fDy659PyVL/KfMlZnO2qCU8i8Ow1osWEGsykCD1kcx9jdGwTF ijxQ== 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=wItJRiupTQG30ZLPKP9VnXGCEMwtFXTl0nROZujAb14=; b=d+W8OV8rGPaAZy9h5RlIenlqTozDZE59REWk1vKfysEGqiNEReBkmwpqJO6qAObxDK nnti6FyZfYUK+pAlzhACfwKqGMS/h+YmElNqMdh3EKhTm09v2v3oV2IfXEThHOFHicyy R+mTW6o2E0MK7JhdpDOjizIF5t+Ry+BPlVUkT2hsbvAGrN6mYh+WbEw4r5j3AlAnKVuV 7r30Q+7R+IH8DEsa29tS4UM2UkqHJt8jvQOEHzMdvu5cZEYx8KeRDWS3EcAP0jDKSpI8 Y+7NSg7QoKAK8KgsoEz2EZJX0W4YflZpi+6QI30JdJkXn4rubNMRT1Agg7oGMM53BsRe JIvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=D1gzRvDB; dkim=pass header.i=@codeaurora.org header.s=default header.b=Sd8ZtKWY; 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 o12si2135377pgr.99.2018.03.14.10.15.12; Wed, 14 Mar 2018 10:15:27 -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=D1gzRvDB; dkim=pass header.i=@codeaurora.org header.s=default header.b=Sd8ZtKWY; 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 S1751899AbeCNRNj (ORCPT + 99 others); Wed, 14 Mar 2018 13:13:39 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52428 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbeCNRNg (ORCPT ); Wed, 14 Mar 2018 13:13:36 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 54CFD603AF; Wed, 14 Mar 2018 17:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521047616; bh=tfhQLU6kHqAmJSk/bg0NPvAP3WzDhXVR7zlivNOSaWU=; h=From:To:Cc:Subject:Date:From; b=D1gzRvDBprwHBf4JPmQwVX7owdK1YDE9GPaQO4dP+LXEz77I40e+WO4RHcVJkpd6m FcxI1U3Mk08FmqxeL5zoj3hQthVotTJdk4mXpPveGRWdegxw2sa37QNFGqMLvEOtBZ Jl0XCMKmwKydzaH1ClFoiqNmc5VnKBjlWKQ7zhFc= 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 DDAC9603AF; Wed, 14 Mar 2018 17:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521047615; bh=tfhQLU6kHqAmJSk/bg0NPvAP3WzDhXVR7zlivNOSaWU=; h=From:To:Cc:Subject:Date:From; b=Sd8ZtKWYS9tZ5TPrpNyfrhCgkLhfGqW0Kybwlm/+aVl37hOKiRCgwYXqLJDiXCAwV 8PyjA6txTFwwm4xTve8Rhc7l8xLB+549YX71/hwpLPg+VWg1yYjef/uUwlCNg2AByH 50T+zIuyqr/XEurQS04e2bkdy/DNrsPdqppFRMY4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DDAC9603AF 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 Cc: linux-soc@vger.kernel.org, rnayak@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, sboyd@kernel.org, Lina Iyer Subject: [PATCH v5 0/2] drivers/qcom: add Command DB support Date: Wed, 14 Mar 2018 11:13:28 -0600 Message-Id: <20180314171330.1828-1-ilina@codeaurora.org> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/ Lina Iyer (2): drivers: qcom: add command DB driver dt-bindings: introduce Command DB for QCOM SoCs .../devicetree/bindings/soc/qcom/cmd-db.txt | 38 +++ drivers/of/platform.c | 1 + drivers/soc/qcom/Kconfig | 9 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/cmd-db.c | 326 +++++++++++++++++++++ include/soc/qcom/cmd-db.h | 45 +++ 6 files changed, 420 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/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