Skip to content

drivers/qcom: add Command DB support

Lina Iyer linux-arm-msm linux-devicetree lkml 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest2 patches 3 repliesIn review
  2. v7 posting 3/31 patch 4 repliesSuperseded
  3. v7 posting 2/31 patch 0 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v7 posting 1/32 patches0 repliesSuperseded
v62 patches2 repliesSuperseded
v52 patches1 replySuperseded
v42 patches13 repliesSuperseded
v32 patches2 repliesSuperseded
v22 patches4 repliesSuperseded
v12 patches13 repliesSuperseded

Changes in v8 from the cover letter

- Add reviewed-by tags
- Fix example

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drivers: qcom: add command DB driverdrivers/of/platform.c drivers/soc/qcom/Kconfig drivers/soc/qcom/Makefile +2 more+366 -00 replies
2/2dt-bindings: introduce Command DB for QCOM SoCsDocumentation/devicetree/bindings/reserved-memory/qcom,cmd-db.txt+37 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBjorn AnderssonRob HerringStephen BoydEvan Green
1/2R-b R-b
2/2R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v8 thread

Cover letter [PATCH v8 0/2] drivers/qcom: add Command DB support

Changes since v7:
- Add reviewed-by tags
- Fix example

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
[v7]: https://lkml.org/lkml/2018/4/6/756

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