diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c index 90679cc7..11ebe84b 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c | |||
@@ -17,8 +17,6 @@ | |||
17 | #include <nvgpu/vgpu/vgpu_ivc.h> | 17 | #include <nvgpu/vgpu/vgpu_ivc.h> |
18 | #include <nvgpu/vgpu/tegra_vgpu.h> | 18 | #include <nvgpu/vgpu/tegra_vgpu.h> |
19 | 19 | ||
20 | #include <uapi/linux/nvgpu.h> | ||
21 | |||
22 | #include "gk20a/gk20a.h" | 20 | #include "gk20a/gk20a.h" |
23 | #include "gk20a/channel_gk20a.h" | 21 | #include "gk20a/channel_gk20a.h" |
24 | #include "gk20a/dbg_gpu_gk20a.h" | 22 | #include "gk20a/dbg_gpu_gk20a.h" |
@@ -87,12 +85,12 @@ int vgpu_dbg_set_powergate(struct dbg_session_gk20a *dbg_s, bool disable_powerga | |||
87 | if (dbg_s->is_pg_disabled) | 85 | if (dbg_s->is_pg_disabled) |
88 | return 0; | 86 | return 0; |
89 | dbg_s->is_pg_disabled = true; | 87 | dbg_s->is_pg_disabled = true; |
90 | mode = NVGPU_DBG_GPU_POWERGATE_MODE_DISABLE; | 88 | mode = TEGRA_VGPU_POWERGATE_MODE_DISABLE; |
91 | } else { | 89 | } else { |
92 | if (!dbg_s->is_pg_disabled) | 90 | if (!dbg_s->is_pg_disabled) |
93 | return 0; | 91 | return 0; |
94 | dbg_s->is_pg_disabled = false; | 92 | dbg_s->is_pg_disabled = false; |
95 | mode = NVGPU_DBG_GPU_POWERGATE_MODE_ENABLE; | 93 | mode = TEGRA_VGPU_POWERGATE_MODE_ENABLE; |
96 | } | 94 | } |
97 | 95 | ||
98 | msg.cmd = TEGRA_VGPU_CMD_SET_POWERGATE; | 96 | msg.cmd = TEGRA_VGPU_CMD_SET_POWERGATE; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h index 882dd342..a7a877ff 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | |||
@@ -425,6 +425,8 @@ struct tegra_vgpu_get_timestamps_zipper_params { | |||
425 | u32 source_id; | 425 | u32 source_id; |
426 | }; | 426 | }; |
427 | 427 | ||
428 | #define TEGRA_VGPU_POWERGATE_MODE_ENABLE 1 | ||
429 | #define TEGRA_VGPU_POWERGATE_MODE_DISABLE 2 | ||
428 | struct tegra_vgpu_set_powergate_params { | 430 | struct tegra_vgpu_set_powergate_params { |
429 | u32 mode; | 431 | u32 mode; |
430 | }; | 432 | }; |