mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
Using pmu counters for usage stats. This enables dynamic frequency scaling on all of the currently supported Tegra gpus. The register offsets are valid for gk20a, gm20b, gp10b, and gv11b. If support is added for ga10b, this will need rearchitected. Signed-off-by: Aaron Kling <webgeek1234@gmail.com> Reviewed-by: Lyude Paul <lyude@redhat.com> [fixed tab alignment in gk20a_devfreq_target()] Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://lore.kernel.org/r/20250906-gk20a-devfreq-v2-1-0217f53ee355@gmail.com
19 lines
355 B
C
19 lines
355 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVKM_CLK_GP10B_H__
|
|
#define __NVKM_CLK_GP10B_H__
|
|
|
|
struct gp10b_clk {
|
|
/* currently applied parameters */
|
|
struct nvkm_clk base;
|
|
struct gk20a_devfreq *devfreq;
|
|
struct clk *clk;
|
|
u32 rate;
|
|
|
|
/* new parameters to apply */
|
|
u32 new_rate;
|
|
};
|
|
|
|
#define gp10b_clk(p) container_of((p), struct gp10b_clk, base)
|
|
|
|
#endif
|