| .. | .. |
|---|
| 1 | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
|---|
| 2 | 2 | /* |
|---|
| 3 | 3 | * |
|---|
| 4 | | - * (C) COPYRIGHT 2016-2021 ARM Limited. All rights reserved. |
|---|
| 4 | + * (C) COPYRIGHT 2016-2022 ARM Limited. All rights reserved. |
|---|
| 5 | 5 | * |
|---|
| 6 | 6 | * This program is free software and is provided to you under the terms of the |
|---|
| 7 | 7 | * GNU General Public License version 2 as published by the Free Software |
|---|
| .. | .. |
|---|
| 29 | 29 | /** |
|---|
| 30 | 30 | * enum kbase_ipa_block_type - Type of block for which power estimation is done. |
|---|
| 31 | 31 | * |
|---|
| 32 | + * @KBASE_IPA_BLOCK_TYPE_USING_CLK_MALI: |
|---|
| 33 | + * Blocks using clk_mali in dts. |
|---|
| 32 | 34 | * @KBASE_IPA_BLOCK_TYPE_TOP_LEVEL: Top-level block, that covers CSHW, |
|---|
| 33 | 35 | * MEMSYS, Tiler. |
|---|
| 34 | 36 | * @KBASE_IPA_BLOCK_TYPE_SHADER_CORES: All Shader cores. |
|---|
| 37 | + * @KBASE_IPA_BLOCK_TYPE_FOR_CLK_GPU: Dummy for clk_gpu in dts. |
|---|
| 35 | 38 | * @KBASE_IPA_BLOCK_TYPE_NUM: Number of blocks. |
|---|
| 36 | 39 | */ |
|---|
| 37 | 40 | enum kbase_ipa_block_type { |
|---|
| 41 | + KBASE_IPA_BLOCK_TYPE_USING_CLK_MALI, |
|---|
| 38 | 42 | KBASE_IPA_BLOCK_TYPE_TOP_LEVEL, |
|---|
| 39 | 43 | KBASE_IPA_BLOCK_TYPE_SHADER_CORES, |
|---|
| 44 | + KBASE_IPA_BLOCK_TYPE_FOR_CLK_GPU, |
|---|
| 40 | 45 | KBASE_IPA_BLOCK_TYPE_NUM |
|---|
| 41 | 46 | }; |
|---|
| 42 | 47 | |
|---|
| .. | .. |
|---|
| 266 | 271 | unsigned long freq, |
|---|
| 267 | 272 | unsigned long voltage); |
|---|
| 268 | 273 | |
|---|
| 269 | | -#if MALI_UNIT_TEST |
|---|
| 270 | 274 | /* Called by kbase_get_real_power() to invoke the power models. |
|---|
| 271 | 275 | * Must be called with kbdev->ipa.lock held. |
|---|
| 272 | 276 | * This function is only exposed for use by unit tests. |
|---|
| .. | .. |
|---|
| 274 | 278 | int kbase_get_real_power_locked(struct kbase_device *kbdev, u32 *power, |
|---|
| 275 | 279 | unsigned long freq, |
|---|
| 276 | 280 | unsigned long voltage); |
|---|
| 277 | | -#endif /* MALI_UNIT_TEST */ |
|---|
| 278 | 281 | |
|---|
| 279 | 282 | extern struct devfreq_cooling_power kbase_ipa_power_model_ops; |
|---|
| 280 | 283 | |
|---|