Received: by 10.213.65.68 with SMTP id h4csp2109652imn; Thu, 5 Apr 2018 09:07:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx48vwya+h0xRm5xDAsxJm5Ok795w5FPdXX5cgOPH6OMRS3J+FvczzMZXwT79JcV1X88mzCYM X-Received: by 10.101.82.69 with SMTP id q5mr15292299pgp.358.1522944441616; Thu, 05 Apr 2018 09:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522944441; cv=none; d=google.com; s=arc-20160816; b=rojwapqAnTOqLnh9ekhMJgv0aCC+3W966RuRDwri77uptxY5PUJPzgbQPThOZEQo0H HF/W2opecxGDDsPCB5HxxRAtweLfYxF916jGE58J3tmovptniWaIm8qohX24sptMerfc lBZSdEqo702suZAcL4yFbduJ0v11ABx8Pmwb4UZxnT5kfp/iTL/xqdC6Akf0vnaP2dMh hxv59jhv44sYbdGQqrqFYMCS9r+FLY1GVUZ4fbenC0lbTTJ5Q8Ip8T3pHynypk5qgCqW LPComYSWu2jq6/vVlTkv/ahfqJWZpVUWgT/h1cKxsi3dXsmDRLMvWzlJt2YQ6Uy2/Yga GYcw== 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=qwhCqXCFG6GS0aJUoSAHF5tPEnpJD06JJtLrUGI3nnc=; b=r/ugso0IUCJAyIxZOM24VWWbhmnNqwsTJS1VekhnI0en0kDlb/Ja9XB+ccpAxYpR8B rbGKr6C4Ld73UyGbXfNmpqZeCnFYQBnh7v6nJoaUrBm6I5C9eWYjuQnCmIlU6nwvmhE6 icWt4XaIy1fo16qwlGlRqGOwnl+ah7bRzIGN2VfaL7RDSFLlu8ouHsg+hMAcRfDto4NA vcRMedXveS7nIhmgJ1u2coYJXlVLWfBBlZReFAXJf8z8uzSltgq1d496j808vhXkbY1X 6xLu9+WN2mZnqERlBEYsOP7p3rFBY9rDDqs28dXkk/kXhFYJ5+QtjVDFd1DIerdBpryp ElvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=TAoLzRXl; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y4J1XLu+; 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 d5si5657585pgc.236.2018.04.05.09.07.07; Thu, 05 Apr 2018 09:07:21 -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=TAoLzRXl; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y4J1XLu+; 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 S1751773AbeDEQF2 (ORCPT + 99 others); Thu, 5 Apr 2018 12:05:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33878 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535AbeDEQFL (ORCPT ); Thu, 5 Apr 2018 12:05:11 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2E76960F6C; Thu, 5 Apr 2018 16:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522944311; bh=8ILPziiGgGRGWNAFH4A1/8q07UyRZ/VY8rlcpj1TuZI=; h=From:To:Cc:Subject:Date:From; b=TAoLzRXlRNbLq6I1hCn72IIuNX0FDHZoYhCGP6tkG2HoNt2D7R5lWroA145V1BQc8 XpS5tGhvMbsznZfG/Bek3B17XUNWK0oA7f8qJ5TFfBb2pJ4x+EurDpwRrZcMDbrag0 jptEV7NahWIx1rUFp68boL45ToAFtAMSfamoa9kM= 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 895FB6076C; Thu, 5 Apr 2018 16:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522944306; bh=8ILPziiGgGRGWNAFH4A1/8q07UyRZ/VY8rlcpj1TuZI=; h=From:To:Cc:Subject:Date:From; b=Y4J1XLu+V2j1WRsAYOxJMaiou6LYcW2sRqQneCBzNaimUmpevWbWj1qkW283j/cGV vn5OZOkIW3UniLaIGltt8qAwDQnpc8qz9dCUp93otKD0qTV1zJ3iBuZVMSvRSHXIVI o7zN+bhl2653WtLnIc42nphCS4ntv9wgq5ISOhDY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 895FB6076C 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 v6 0/2] drivers/qcom: add Command DB support Date: Thu, 5 Apr 2018 10:04:57 -0600 Message-Id: <20180405160459.16693-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 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 Lina Iyer (2): drivers: qcom: add command DB driver dt-bindings: introduce Command DB for QCOM SoCs .../bindings/reserved-memory/qcom,cmd-db.txt | 37 +++ 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, 403 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