mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: vgpu: avoid referring uapi header when set powergate mode
Defined powergate mode in tegra_vgpu.h. Jira EVLR-2364 Change-Id: Id7dcaeffcf0dd8394b4eac6601152720fa382e8c Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1649946 Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Nirav Patel <nipatel@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
72b9731c7c
commit
7932568b7f
@@ -17,8 +17,6 @@
|
||||
#include <nvgpu/vgpu/vgpu_ivc.h>
|
||||
#include <nvgpu/vgpu/tegra_vgpu.h>
|
||||
|
||||
#include <uapi/linux/nvgpu.h>
|
||||
|
||||
#include "gk20a/gk20a.h"
|
||||
#include "gk20a/channel_gk20a.h"
|
||||
#include "gk20a/dbg_gpu_gk20a.h"
|
||||
@@ -87,12 +85,12 @@ int vgpu_dbg_set_powergate(struct dbg_session_gk20a *dbg_s, bool disable_powerga
|
||||
if (dbg_s->is_pg_disabled)
|
||||
return 0;
|
||||
dbg_s->is_pg_disabled = true;
|
||||
mode = NVGPU_DBG_GPU_POWERGATE_MODE_DISABLE;
|
||||
mode = TEGRA_VGPU_POWERGATE_MODE_DISABLE;
|
||||
} else {
|
||||
if (!dbg_s->is_pg_disabled)
|
||||
return 0;
|
||||
dbg_s->is_pg_disabled = false;
|
||||
mode = NVGPU_DBG_GPU_POWERGATE_MODE_ENABLE;
|
||||
mode = TEGRA_VGPU_POWERGATE_MODE_ENABLE;
|
||||
}
|
||||
|
||||
msg.cmd = TEGRA_VGPU_CMD_SET_POWERGATE;
|
||||
|
||||
@@ -425,6 +425,8 @@ struct tegra_vgpu_get_timestamps_zipper_params {
|
||||
u32 source_id;
|
||||
};
|
||||
|
||||
#define TEGRA_VGPU_POWERGATE_MODE_ENABLE 1
|
||||
#define TEGRA_VGPU_POWERGATE_MODE_DISABLE 2
|
||||
struct tegra_vgpu_set_powergate_params {
|
||||
u32 mode;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user