Received: by 10.223.185.116 with SMTP id b49csp1217143wrg; Fri, 16 Feb 2018 14:48:39 -0800 (PST) X-Google-Smtp-Source: AH8x2246Pu72UqFdok1J1Rj0wmaH3hbBL+S/lfVZq7NFVvPMb6dxdfHCiLYjUz1DypAvhWE9XRYz X-Received: by 10.167.131.199 with SMTP id j7mr192298pfn.99.1518821319547; Fri, 16 Feb 2018 14:48:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518821319; cv=none; d=google.com; s=arc-20160816; b=vBOzTpAgcqL6/i5HJCeOf661C56TCxr4r32tQ1Xh6mfLINRRFUfxFhgwr10Tzh3qOR SuLtfG/moUOQRrpRSfGf3G5VLk0M0wNYebBo2S9Bs+S1VUCIzVytLf5ws1yDQeVRMGTO 2mg8iKPiCPYu6rqBDnkOiH9rCm/w43GAJkrT39Micz93yHcd4Fbuolr5VjeAKK9ACYPX yDaL4YjXZWxb0GZW57hOF0+dIsH1czgRp4vcQt93QUBozb10TbnmyHLF5i6HBOz6eOpL faHMJrVKd+LCMWTRu1EZtWKBTv8SrKe/HNw/0tIs0nWreljsJvu05VECJcVGARe4Hqen Qr7g== 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=sQREd0sh2ZsCzaYy16GSzKYdjRD1EAEvWOnUexY6pdw=; b=T+9Vttu43MjwhIQcIyLgLpKzSITuq377YFYnwNPJ8woLcO8lg70xPcvEd9wxfN1JM3 BF/Nbh4RjfmW4dt0DSXwZz9viojdbhH6g3BOI7STJikjsVRo5sYxcR3NjHBNr63t1W77 MCIcCH8nauS/ioNAIyqx7QWGvZnWPzXjYlzBOt6qkyaJn0SMPgW54Z2kq2/qS9qRjLCO aq7bXxVMNlb13rv/w0HF6caXAUFcKWqQ1DL2Qr/Q/5fbHjepJrFBr2LcuKAzttcQSbzr gFYdgdSmfae7jYp9+ZuOQDhJx1hrSFmi8dzO30dkoaqpF3QjbZFTRtZUOdCpY0pfeSlU cc1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=F/EPexnL; dkim=pass header.i=@codeaurora.org header.s=default header.b=bxXvlQNa; 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 d14-v6si1834549plj.279.2018.02.16.14.48.25; Fri, 16 Feb 2018 14:48:39 -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=F/EPexnL; dkim=pass header.i=@codeaurora.org header.s=default header.b=bxXvlQNa; 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 S1750933AbeBPWqw (ORCPT + 99 others); Fri, 16 Feb 2018 17:46:52 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:46048 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750797AbeBPWqt (ORCPT ); Fri, 16 Feb 2018 17:46:49 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 392F560790; Fri, 16 Feb 2018 22:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518821209; bh=czcNf82mimo0gIIZO/JeZUcm4E5j8O8w4bluV3KyemI=; h=From:To:Cc:Subject:Date:From; b=F/EPexnLN6rFuPwNDzENRUMuCA6uomsUajJ3+BOdxC3+2Li0LradNqcjbThl4F+jx u+xqkNZIV3TjT31luuo4LlLHCwTvYD7RDbVWpiLMBa17jrwxBIP3Rhjp8EpQwtSBmy Z5aDO5GZJN3+p3THATOKEt9pf23wMl7pZ+r+b11c= 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 E3E3D60272; Fri, 16 Feb 2018 22:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518821208; bh=czcNf82mimo0gIIZO/JeZUcm4E5j8O8w4bluV3KyemI=; h=From:To:Cc:Subject:Date:From; b=bxXvlQNa/n2PuIAQkz4jRQosEYuxgDsQ0cFlgLUvI9YL0iFLJNvYJYA0zNqQyKmUY Ybw2hbcZDKFTERd0VO3nrAe3Qt/FV4Epc/0nRp7/7uCGj2poYMVpsqB0iKjf0oIMAJ 85sSQqSM22KfwmCcm+IwLzrfyUosEWjmfMJWMACM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E3E3D60272 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 Cc: sboyd@codeaurora.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, Lina Iyer Subject: [PATCH v3 0/2] drivers/qcom: add Command DB support Date: Fri, 16 Feb 2018 15:46:12 -0700 Message-Id: <20180216224614.24037-1-ilina@codeaurora.org> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in v3: - use min_t instead of MIN - add cmd db memory to reserved memory region - use devm_memremap 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 Lina Iyer (2): drivers: qcom: add command DB driver dt-bindings: introduce Command DB for QCOM SoCs .../devicetree/bindings/arm/msm/cmd-db.txt | 30 ++ drivers/of/platform.c | 1 + drivers/soc/qcom/Kconfig | 9 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/cmd-db.c | 319 +++++++++++++++++++++ include/soc/qcom/cmd-db.h | 50 ++++ 6 files changed, 410 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