#include "msm_gem.h"
#include "msm_mmu.h"
#include "msm_gpu_trace.h"
+#include "msm_perfcntr.h"
#include "a6xx_gpu.h"
#include "a6xx_gmu.xml.h"
adreno_gpu = &a6xx_gpu->base;
gpu = &adreno_gpu->base;
+ if ((ADRENO_6XX_GEN1 <= config->info->family) &&
+ (config->info->family <= ADRENO_6XX_GEN4)) {
+ gpu->perfcntr_groups = a6xx_perfcntr_groups;
+ gpu->num_perfcntr_groups = a6xx_num_perfcntr_groups;
+ } else if ((ADRENO_7XX_GEN1 <= config->info->family) &&
+ (config->info->family <= ADRENO_7XX_GEN3)) {
+ gpu->perfcntr_groups = a7xx_perfcntr_groups;
+ gpu->num_perfcntr_groups = a7xx_num_perfcntr_groups;
+ } else if ((ADRENO_8XX_GEN1 <= config->info->family) &&
+ (config->info->family <= ADRENO_8XX_GEN2)) {
+ gpu->perfcntr_groups = a8xx_perfcntr_groups;
+ gpu->num_perfcntr_groups = a8xx_num_perfcntr_groups;
+ }
+
mutex_init(&a6xx_gpu->gmu.lock);
spin_lock_init(&a6xx_gpu->aperture_lock);
struct msm_gem_vm_log_entry;
struct msm_gpu_state;
struct msm_context;
+struct msm_perfcntr_group;
struct msm_gpu_config {
const char *ioname;
bool allow_relocs;
struct thermal_cooling_device *cooling;
+
+ const struct msm_perfcntr_group *perfcntr_groups;
+ unsigned num_perfcntr_groups;
};
static inline struct msm_gpu *dev_to_gpu(struct device *dev)
const struct msm_perfcntr_counter *counters;
};
+extern const struct msm_perfcntr_group a6xx_perfcntr_groups[];
+extern const unsigned a6xx_num_perfcntr_groups;
+
+extern const struct msm_perfcntr_group a7xx_perfcntr_groups[];
+extern const unsigned a7xx_num_perfcntr_groups;
+
+extern const struct msm_perfcntr_group a8xx_perfcntr_groups[];
+extern const unsigned a8xx_num_perfcntr_groups;
+
#define GROUP(_name, _pipe, _counters, _countables) { \
.name = _name, \
.pipe = _pipe, \