Received: by 10.213.65.68 with SMTP id h4csp743351imn; Fri, 6 Apr 2018 08:10:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tmhHd7lNv6yMJDvU0uIe6CxqXNQ8Fdv4dUdsFY+CCc3/phrWGC4ycboak6aBGwvAIrFvN X-Received: by 2002:a17:902:c24:: with SMTP id 33-v6mr28243039pls.88.1523027411549; Fri, 06 Apr 2018 08:10:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523027411; cv=none; d=google.com; s=arc-20160816; b=HPMvkGmwNHUBL0+gckBTqxrMX5VTxQWEbghR9oTgKJKbUl/dya+sLXBh2xRlPug2Jx 6Sdql2rSoSZxmeRSwPkRIm5kd4tVeAuBemabNjbBa3njqTsagXf+S9K90FMKKg9CVg1I FCSo6SOTKDb/gNyFtLLvrrIVn3U/vzK3w4QczE2D35tmd4ACq3tyL+hlHJ+SH0u2715X tQvobKbP63N/qtGPL6G/GQ9k+qnjKOmof/6mGi6arym//bqzfMmXfCUq7u5JKYwRnuD2 kxvt9LIKIW/rf7lPUquQDGgmxzj8ajaW6ZQF0HGZ0NNc29Bcfnjw9RodMceSBLK20w0j STSw== 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=BQrh0e6f1aEdD01Jr7824+Zscs3BvBMojbjum/zkHcQ=; b=KEs6F/CPI+gkrJyhmHgPcUOHizrRghWZF5QBoSdhTC/9G6fWUckVNgjlH3QDhqDRgw x5C+WjG74wsj/b94OunCtFwniBbA2YouMKJ5Pldww6ILhdc0Uxeac2OQoEj74Phny4Z/ HBTpU6BDHfRmBoptlL7c552sP5INKPNzDZ/2h9LCnXa+qRJk5loc6Br6OelVlbskQ0JQ wc7/Q8wCXVW0Zl9WNeLVROaC3qZi42r9K0fuFe1+HThsmWjE4dvQ0OhDsuuwultiHawk 0WW2vgeOQI4v0sekDKfq+ig/xPY7ew3me8SRwsI02x4qXdNA0vnAylBdwozApklGybgY tcPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Zm728wne; dkim=pass header.i=@codeaurora.org header.s=default header.b=ho1vnODq; 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 30-v6si11075405plb.316.2018.04.06.08.09.56; Fri, 06 Apr 2018 08:10:11 -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=Zm728wne; dkim=pass header.i=@codeaurora.org header.s=default header.b=ho1vnODq; 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 S1751563AbeDFPIQ (ORCPT + 99 others); Fri, 6 Apr 2018 11:08:16 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60374 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751362AbeDFPIN (ORCPT ); Fri, 6 Apr 2018 11:08:13 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 77FFE60850; Fri, 6 Apr 2018 15:08:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523027292; bh=E70UWXbXL5Sd0HRXIzQScFBup41FsSUGrv3eQFyuOfM=; h=From:To:Cc:Subject:Date:From; b=Zm728wneLrFDzql1zWGmu6LsEbAACEeQBvfE0/bQDnUSJgwjwubS2hB6VrzdsrGxg 7W9ChbU8a0PhYnB+fYoB9pav6etoVe+9bagaORsDHhu4sZGam0jreWIzleH9woeUuc 1/ylmU7BFcOCIIUUyx+sT79f2EWBy8crVF3cA164= 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 7F65D60274; Fri, 6 Apr 2018 15:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523027291; bh=E70UWXbXL5Sd0HRXIzQScFBup41FsSUGrv3eQFyuOfM=; h=From:To:Cc:Subject:Date:From; b=ho1vnODqVIVJnNPyymGXPXpnOjBgHycLXcnvJo6RqWYDy/uhCdqfmJ33h0e/bYGdk fwj6UrC5UjipsaW4yLBux7JBE66yPjscpbFTNw+ztT2OEIzr32GXxV7oJKDnMCPr2j e3RGbZLPKngxJjjqyhuCokM1+XTFZOwmM5MAB1fc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7F65D60274 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 0/2] drivers/qcom: add Command DB support Date: Fri, 6 Apr 2018 09:08:03 -0600 Message-Id: <20180406150805.6394-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 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