Received: by 10.213.65.68 with SMTP id h4csp750450imn; Fri, 6 Apr 2018 08:16:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx49TscEdVqZc9KwMD8jOaQUc/6OWWBibOhu85JILxBQwPPzdWdo9Q1sDBJKeVon0WXr3K2Mq X-Received: by 10.101.89.5 with SMTP id f5mr17971031pgu.428.1523027792223; Fri, 06 Apr 2018 08:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523027792; cv=none; d=google.com; s=arc-20160816; b=GeWjhoMC2we+zXSS8nxoJxCH6U+KHnNiU563fG4BZ7VeMeaAzNItmuGDGCrQb/kGy0 2aSn1qITytR/nzGyMeq1g8Qbj2pATze4mHHP2VWOjtohJRcOr+b0CToMR32H7Oizj3uf FoWHE/qJkl/9hKFASzh284HXTrAwCBV3AiJFJYaKWvNeDJQwad85x0AByTyKqpZKm7ZE e8P73DI3D67POeFbN8PDKj7CgzIqXuufKwMdzbUbS+iZYEFKFqCjBPk9LaZGKnM8lV6x AXn77NjGiPlmbmiC1mzYLX/ppyFmFW0R/RyPdBMTI/xwGGVQ0QGhN+5ClWWmTyXUST/E ETeQ== 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=6bNF+msOBqOGAqiApNZnr/Cf5uSvBCp8BGKmPEFW2dk=; b=M+OOj1uRVW0ZlpIAYtIeMRBgfHnEgKx2vL3jevXQMf0aKZLMNZE7paijmb0mRvsD66 eZapWPiA4BzdgKTqBnFuUGTYyfwR6gOsHDCMMnN57RyuXSQ6k+rFlc6ZIw7RzPiX8JfO 6oKby2qEy5CNfPqifmhVFEFegQNTxc/6nfpT46/2+XGzznJrylymH+yzVcS3Tnbv3ssg SPxHLLWSrF1gAdi6gkdFCGCqGEGM1biim/FLjqNuOaYvUH99+lNbEX5e2wUCa4kc00ZW 33pFMx1hWXjeHK5/cBSQppxtq1GlirJM8miPtpFagCJebcdLRK824Fb8CBTk8+1C+Oub ZXwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ey4uU52V; dkim=pass header.i=@codeaurora.org header.s=default header.b=fnjXgexZ; 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 k9si7329007pgc.327.2018.04.06.08.16.18; Fri, 06 Apr 2018 08:16:32 -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=Ey4uU52V; dkim=pass header.i=@codeaurora.org header.s=default header.b=fnjXgexZ; 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 S1752246AbeDFPOI (ORCPT + 99 others); Fri, 6 Apr 2018 11:14:08 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:38506 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751886AbeDFPOF (ORCPT ); Fri, 6 Apr 2018 11:14:05 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3B74560C66; Fri, 6 Apr 2018 15:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523027645; bh=gqXYTe/6tlcXsGX6ixgSSbyH75kq06B/TwOcGnHSXqw=; h=From:To:Cc:Subject:Date:From; b=Ey4uU52VYHHhvgNs1aLiVHz7z0DBfhd9J/b3KphfDXPDjTNC/asBpFGCzm5KmC4wR 9p8iNfXidQ7J5B1flg5u/3IDJWTpQbMOcl20WLUJX94Gc97WVOr4+/CC/YJZrbLyQ4 LdxK5YcHtX4K223hIr3Z3P949U3mGLtxb83i35OM= 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 9170F60316; Fri, 6 Apr 2018 15:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523027644; bh=gqXYTe/6tlcXsGX6ixgSSbyH75kq06B/TwOcGnHSXqw=; h=From:To:Cc:Subject:Date:From; b=fnjXgexZCzo5K6iflospe6sfT3YAwRLXF/YWbk7KqMuzHXNMP0lalhOPOKylbv+GS JZAFj5TiOxYY44NgQGnMBBIjpOFIFama8cigGYgbUJhGFwIO5yKjCgdYxllcmXVTVu wXS2/B3RquVgtiIFounkaN7HW18b3IUrwngeErc4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9170F60316 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 v7 [RESEND] 0/2] drivers/qcom: add Command DB support Date: Fri, 6 Apr 2018 09:13:54 -0600 Message-Id: <20180406151356.7818-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 Resending with minor rephrase of 'reg' property description. 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 Lina Iyer (2): drivers: qcom: add command DB driver dt-bindings: introduce Command DB for QCOM SoCs .../bindings/reserved-memory/qcom,cmd-db.txt | 36 +++ 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, 402 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