mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
MALI: bifrost: fix panic "stack is corrupted in: kbase_get_real_power_locked"
The panic was triggered by running "cat /sys/kernel/debug/mali0/ipa_current_power". It is fixed by enlarging KBASE_IPA_BLOCK_TYPE_NUM according to the fact that we set 4 clks for GPU in rk3588 dts. Change-Id: I3a87f6f2d25cf296d95d033d3d98c51666ea482d Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
This commit is contained in:
@@ -29,14 +29,19 @@ struct devfreq;
|
||||
/**
|
||||
* enum kbase_ipa_block_type - Type of block for which power estimation is done.
|
||||
*
|
||||
* @KBASE_IPA_BLOCK_TYPE_USING_CLK_MALI:
|
||||
* Blocks using clk_mali in dts.
|
||||
* @KBASE_IPA_BLOCK_TYPE_TOP_LEVEL: Top-level block, that covers CSHW,
|
||||
* MEMSYS, Tiler.
|
||||
* @KBASE_IPA_BLOCK_TYPE_SHADER_CORES: All Shader cores.
|
||||
* @KBASE_IPA_BLOCK_TYPE_FOR_CLK_GPU: Dummy for clk_gpu in dts.
|
||||
* @KBASE_IPA_BLOCK_TYPE_NUM: Number of blocks.
|
||||
*/
|
||||
enum kbase_ipa_block_type {
|
||||
KBASE_IPA_BLOCK_TYPE_USING_CLK_MALI,
|
||||
KBASE_IPA_BLOCK_TYPE_TOP_LEVEL,
|
||||
KBASE_IPA_BLOCK_TYPE_SHADER_CORES,
|
||||
KBASE_IPA_BLOCK_TYPE_FOR_CLK_GPU,
|
||||
KBASE_IPA_BLOCK_TYPE_NUM
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user