Skip to content

Commit f861149

Browse files
kholkbebarino
authored andcommitted
clk: qcom: gcc-msm8998: Mark gpu_cfg_ahb_clk as critical
The GPU IOMMU depends on this clock and the hypervisor will crash the SoC if this clock gets disabled because the secure contexts that have been set on this IOMMU by the bootloader will become unaccessible (or they get reset). Mark this clock as critical to avoid this issue when the Adreno GPU is enabled. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> Link: https://lore.kernel.org/r/20210114221059.483390-6-angelogioacchino.delregno@somainline.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent b791620 commit f861149

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/clk/qcom/gcc-msm8998.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,12 @@ static struct clk_branch gcc_gpu_cfg_ahb_clk = {
20812081
.hw.init = &(struct clk_init_data){
20822082
.name = "gcc_gpu_cfg_ahb_clk",
20832083
.ops = &clk_branch2_ops,
2084+
/*
2085+
* The GPU IOMMU depends on this clock and hypervisor
2086+
* will crash the SoC if this clock goes down, due to
2087+
* secure contexts protection.
2088+
*/
2089+
.flags = CLK_IS_CRITICAL,
20842090
},
20852091
},
20862092
};

0 commit comments

Comments
 (0)