summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h2
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h
index f7a58c87..5ee50b18 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h
@@ -519,6 +519,7 @@ struct tegra_vgpu_constants_params {
519 u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT]; 519 u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT];
520 u32 hwpm_ctx_size; 520 u32 hwpm_ctx_size;
521 u8 force_preempt_mode; 521 u8 force_preempt_mode;
522 u8 can_set_clkrate;
522 u32 default_timeslice_us; 523 u32 default_timeslice_us;
523 u32 preempt_ctx_size; 524 u32 preempt_ctx_size;
524 u32 channel_base; 525 u32 channel_base;
@@ -578,7 +579,6 @@ struct tegra_vgpu_perfbuf_mgt_params {
578 579
579struct tegra_vgpu_get_gpu_freq_table_params { 580struct tegra_vgpu_get_gpu_freq_table_params {
580 u32 num_freqs; 581 u32 num_freqs;
581 u32 freqs[TEGRA_VGPU_GPU_FREQ_TABLE_SIZE]; /* in kHz */
582}; 582};
583 583
584struct tegra_vgpu_vsms_mapping_params { 584struct tegra_vgpu_vsms_mapping_params {
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu.h
index 762bc229..15ab879e 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu.h
@@ -26,6 +26,7 @@
26#include <nvgpu/types.h> 26#include <nvgpu/types.h>
27#include <nvgpu/thread.h> 27#include <nvgpu/thread.h>
28#include <nvgpu/log.h> 28#include <nvgpu/log.h>
29#include <nvgpu/lock.h>
29#include <nvgpu/vgpu/tegra_vgpu.h> 30#include <nvgpu/vgpu/tegra_vgpu.h>
30 31
31struct device; 32struct device;
@@ -45,6 +46,9 @@ struct vgpu_priv_data {
45 struct tegra_vgpu_constants_params constants; 46 struct tegra_vgpu_constants_params constants;
46 struct vgpu_ecc_stat *ecc_stats; 47 struct vgpu_ecc_stat *ecc_stats;
47 int ecc_stats_count; 48 int ecc_stats_count;
49 u32 num_freqs;
50 unsigned long *freqs;
51 struct nvgpu_mutex vgpu_clk_get_freq_lock;
48}; 52};
49 53
50struct vgpu_priv_data *vgpu_get_priv_data(struct gk20a *g); 54struct vgpu_priv_data *vgpu_get_priv_data(struct gk20a *g);