hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/arm/bifrost/ipa/mali_kbase_ipa.h
....@@ -1,7 +1,7 @@
11 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22 /*
33 *
4
- * (C) COPYRIGHT 2016-2021 ARM Limited. All rights reserved.
4
+ * (C) COPYRIGHT 2016-2022 ARM Limited. All rights reserved.
55 *
66 * This program is free software and is provided to you under the terms of the
77 * GNU General Public License version 2 as published by the Free Software
....@@ -29,14 +29,19 @@
2929 /**
3030 * enum kbase_ipa_block_type - Type of block for which power estimation is done.
3131 *
32
+ * @KBASE_IPA_BLOCK_TYPE_USING_CLK_MALI:
33
+ * Blocks using clk_mali in dts.
3234 * @KBASE_IPA_BLOCK_TYPE_TOP_LEVEL: Top-level block, that covers CSHW,
3335 * MEMSYS, Tiler.
3436 * @KBASE_IPA_BLOCK_TYPE_SHADER_CORES: All Shader cores.
37
+ * @KBASE_IPA_BLOCK_TYPE_FOR_CLK_GPU: Dummy for clk_gpu in dts.
3538 * @KBASE_IPA_BLOCK_TYPE_NUM: Number of blocks.
3639 */
3740 enum kbase_ipa_block_type {
41
+ KBASE_IPA_BLOCK_TYPE_USING_CLK_MALI,
3842 KBASE_IPA_BLOCK_TYPE_TOP_LEVEL,
3943 KBASE_IPA_BLOCK_TYPE_SHADER_CORES,
44
+ KBASE_IPA_BLOCK_TYPE_FOR_CLK_GPU,
4045 KBASE_IPA_BLOCK_TYPE_NUM
4146 };
4247
....@@ -266,7 +271,6 @@
266271 unsigned long freq,
267272 unsigned long voltage);
268273
269
-#if MALI_UNIT_TEST
270274 /* Called by kbase_get_real_power() to invoke the power models.
271275 * Must be called with kbdev->ipa.lock held.
272276 * This function is only exposed for use by unit tests.
....@@ -274,7 +278,6 @@
274278 int kbase_get_real_power_locked(struct kbase_device *kbdev, u32 *power,
275279 unsigned long freq,
276280 unsigned long voltage);
277
-#endif /* MALI_UNIT_TEST */
278281
279282 extern struct devfreq_cooling_power kbase_ipa_power_model_ops;
280283