devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND v9 0/5] enable use of resources on the SSC bus on (some) qcom SoCs
@ 2022-04-11  7:21 michael.srba
  2022-04-11  7:21 ` [RESEND v9 1/5] dt-bindings: clock: gcc-msm8998: Add definitions of SSC-related clocks michael.srba
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: michael.srba @ 2022-04-11  7:21 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Stephen Boyd,
	Philipp Zabel
  Cc: Jeffrey Hugo, Linus Walleij, Florian Fainelli, Arnd Bergmann,
	Greg Kroah-Hartman, Saravana Kannan, linux-arm-msm, linux-clk,
	devicetree, Michael Srba

From: Michael Srba <Michael.Srba@seznam.cz>

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

-- 
2.35.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-21 14:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-11  7:21 [RESEND v9 0/5] enable use of resources on the SSC bus on (some) qcom SoCs michael.srba
2022-04-11  7:21 ` [RESEND v9 1/5] dt-bindings: clock: gcc-msm8998: Add definitions of SSC-related clocks michael.srba
2022-04-11  7:21 ` [RESEND v9 2/5] clk: qcom: gcc-msm8998: add " michael.srba
2022-04-11  7:21 ` [RESEND v9 3/5] dt-bindings: bus: add device tree bindings for qcom,ssc-block-bus michael.srba
2022-04-11  7:21 ` [RESEND v9 4/5] drivers: bus: add driver for initializing the SSC bus on (some) qcom SoCs michael.srba
2022-04-11  7:21 ` [RESEND v9 5/5] arm64: dts: qcom: msm8998: reserve potentially inaccessible clocks michael.srba
2022-04-21 14:27 ` (subset) [RESEND v9 0/5] enable use of resources on the SSC bus on (some) qcom SoCs Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).