The GPU is usually clock gated when idle i.e NAP state. Introduce a new state after NAP which lowers the GPU bandwidth vote to minimum non-zero value so that memory related components can run at a lower frequency corner, if possible when GPU is idle. Change-Id: Iee568e8c3039b35d6b58d7fc0fe72880eee2cace Signed-off-by: Pranav Patel <pranavp@codeaurora.org>
26 lines
603 B
C
26 lines
603 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _KGSL_BUS_H
|
|
#define _KGSL_BUS_H
|
|
|
|
enum kgsl_bus_vote {
|
|
KGSL_BUS_VOTE_OFF = 0,
|
|
KGSL_BUS_VOTE_ON,
|
|
KGSL_BUS_VOTE_MINIMUM,
|
|
};
|
|
|
|
struct kgsl_device;
|
|
struct platform_device;
|
|
|
|
int kgsl_bus_init(struct kgsl_device *device, struct platform_device *pdev);
|
|
void kgsl_bus_close(struct kgsl_device *device);
|
|
int kgsl_bus_update(struct kgsl_device *device, enum kgsl_bus_vote vote_state);
|
|
|
|
u32 *kgsl_bus_get_table(struct platform_device *pdev,
|
|
const char *name, int *count);
|
|
|
|
#endif
|