07e044960d
Existing api returns failure when requested frequency is larger than fmax supported. This creates problem to clients as they consider this as error case. This can be improved if api returns success when requested frequency is larger than fmax supported because requested limit frequency is larger than fmax device will never go beyond that at all and clients can execute normally. Change-Id: Id1077ca03019a61d7fd6fef8eccd605131b9c150 Signed-off-by: Pranav Patel <pranavp@codeaurora.org>
18 lines
537 B
C
18 lines
537 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved.
|
|
*/
|
|
#ifndef _MSM_KGSL_H
|
|
#define _MSM_KGSL_H
|
|
|
|
#define KGSL_DEVICE_3D0 0
|
|
|
|
/* Limits mitigations APIs */
|
|
void *kgsl_pwr_limits_add(u32 id);
|
|
void kgsl_pwr_limits_del(void *limit);
|
|
int kgsl_pwr_limits_set_freq(void *limit, unsigned int freq);
|
|
int kgsl_pwr_limits_set_gpu_fmax(void *limit, unsigned int freq);
|
|
void kgsl_pwr_limits_set_default(void *limit);
|
|
unsigned int kgsl_pwr_limits_get_freq(u32 id);
|
|
|
|
#endif /* _MSM_KGSL_H */
|