Patch "arm64: dts: mediatek: mt8195: Set DSU PMU status to fail" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    arm64: dts: mediatek: mt8195: Set DSU PMU status to fail

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm64-dts-mediatek-mt8195-set-dsu-pmu-status-to-fail.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit fd7c815c94920de7403c9f12d2f2ef4f8157afea
Author: Nícolas F. R. A. Prado <nfraprado@xxxxxxxxxxxxx>
Date:   Tue Oct 3 13:13:47 2023 +0200

    arm64: dts: mediatek: mt8195: Set DSU PMU status to fail
    
    [ Upstream commit d192615c307ec9f74cd0582880ece698533eb99b ]
    
    The DSU PMU allows monitoring performance events in the DSU cluster,
    which is done by configuring and reading back values from the DSU PMU
    system registers. However, for write-access to be allowed by ELs lower
    than EL3, the EL3 firmware needs to update the setting on the ACTLR3_EL3
    register, as it is disallowed by default.
    
    That configuration is not done on the firmware used by the MT8195 SoC,
    as a consequence, booting a MT8195-based machine like
    mt8195-cherry-tomato-r2 with CONFIG_ARM_DSU_PMU enabled hangs the kernel
    just as it writes to the CLUSTERPMOVSCLR_EL1 register, since the
    instruction faults to EL3, and BL31 apparently just re-runs the
    instruction over and over.
    
    Mark the DSU PMU node in the Devicetree with status "fail", as the
    machine doesn't have a suitable firmware to make use of it from the
    kernel, and allowing its driver to probe would hang the kernel.
    
    Fixes: 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")
    Signed-off-by: Nícolas F. R. A. Prado <nfraprado@xxxxxxxxxxxxx>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
    Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230720200753.322133-1-nfraprado@xxxxxxxxxxxxx
    Link: https://lore.kernel.org/r/20231003-mediatek-fixes-v6-7-v1-5-dad7cd62a8ff@xxxxxxxxxxxxx
    Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
index 2c2b946b614bf..ef2764a595eda 100644
--- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
@@ -229,6 +229,7 @@ dsu-pmu {
 		interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
 		cpus = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>,
 		       <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>;
+		status = "fail";
 	};
 
 	dmic_codec: dmic-codec {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux