Skip to content

enable use of resources on the SSC bus on (some) qcom SoCs

[email protected] linux-arm-msm linux-clk linux-devicetree 10 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest posting 2/25 patches 1 replyApplied
  2. v9 posting 1/25 patches 3 repliesSuperseded
  3. v85 patches 4 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v75 patches1 replySuperseded
v65 patches5 repliesSuperseded
v55 patches3 repliesSuperseded
v45 patches2 repliesSuperseded
v35 patches5 repliesSuperseded
v24 of 5 patches1 replySuperseded
v14 patches1 replySuperseded

Patches in v9 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/5dt-bindings: clock: gcc-msm8998: Add definitions of SSC-related clocksinclude/dt-bindings/clock/qcom,gcc-msm8998.h+4 -00 replies
2/5clk: qcom: gcc-msm8998: add SSC-related clocksdrivers/clk/qcom/gcc-msm8998.c+56 -00 replies
3/5dt-bindings: bus: add device tree bindings for qcom,ssc-block-busDocumentation/devicetree/bindings/bus/qcom,ssc-block-bus.yaml+147 -00 replies
4/5drivers: bus: add driver for initializing the SSC bus on (some) qcom SoCsdrivers/bus/Kconfig drivers/bus/Makefile drivers/bus/qcom-ssc-block-bus.c+403 -00 replies
5/5arm64: dts: qcom: msm8998: reserve potentially inaccessible clocksarch/arm64/boot/dts/qcom/msm8998.dtsi+15 -00 replies

Reviews trailers per patch

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

PatchStephen BoydRob HerringJeffrey Hugo
1/5R-b A-b
2/5R-b
3/5R-b
4/5R-b
5/5R-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 3 reviewers.

Read the v9 thread

Cover letter [RESEND v9 0/5] enable use of resources on the SSC bus on (some) qcom SoCs

From: Michael Srba <[email protected]>

NOTE: previous versions of this series didn't use a cover letter, it's added in this resend in order to not upset the kernel bot.

This series adds necessary changes for accessing recources in the SSC block on msm8998 (though it should be possible to extend this to support other SoCs).

In order to make use of these changes, Linux (HLOS in qcom's terms) needs to be allowed to access the relevant address ranges by the SMMU configuration.

For a simple way to modify an existing (closed source) qcom hypervisor image to change the static SMMU configuration, see [1].

If you lack ownership of your device, it should alternatively be possible to change the SMMU configuration at a later point, provided you manage to get code execution in the hypervisor by way of an exploit.

[1] https://michael-srba.cz/mainline4life/msm8998_hypervisor_patch.html

Michael Srba (5):
dt-bindings: clock: gcc-msm8998: Add definitions of SSC-related clocks
clk: qcom: gcc-msm8998: add SSC-related clocks
dt-bindings: bus: add device tree bindings for qcom,ssc-block-bus
drivers: bus: add driver for initializing the SSC bus on (some) qcom
SoCs
arm64: dts: qcom: msm8998: reserve potentially inaccessible clocks

 .../bindings/bus/qcom,ssc-block-bus.yaml      | 147 +++++++
 arch/arm64/boot/dts/qcom/msm8998.dtsi         |  15 +
 drivers/bus/Kconfig                           |  11 +
 drivers/bus/Makefile                          |   1 +
 drivers/bus/qcom-ssc-block-bus.c              | 391 ++++++++++++++++++
 drivers/clk/qcom/gcc-msm8998.c                |  56 +++
 include/dt-bindings/clock/qcom,gcc-msm8998.h  |   4 +
 7 files changed, 625 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/bus/qcom,ssc-block-bus.yaml
 create mode 100644 drivers/bus/qcom-ssc-block-bus.c
Signature · 1 line
2.35.1