From 473b70d131a4c8632a00c7e59f5678d69262f0cc Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 21 Apr 2023 14:38:08 +0100 Subject: [PATCH] drm/fkms: Add clk_ignore_unused to bootargs (#25) The kernel will disable clocks it knows about that aren't otherwise set. This causes fkms to hang when hdmi state machine clock is disabled. Disable that behaviour when using the fkms overlay Signed-off-by: Dom Cobley --- arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts | 6 ++++++ arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts index ca344492bed861..d201edbe7003df 100644 --- a/arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts +++ b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts @@ -37,4 +37,10 @@ status = "okay"; }; }; + fragment@5 { + target-path = "/chosen"; + __overlay__ { + bootargs = "clk_ignore_unused"; + }; + }; }; diff --git a/arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts index 7792ead0cbb31a..955b4f62b7b489 100644 --- a/arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts +++ b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts @@ -41,4 +41,10 @@ status = "okay"; }; }; + fragment@5 { + target-path = "/chosen"; + __overlay__ { + bootargs = "clk_ignore_unused"; + }; + }; };