mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: vgpu: add devfreq support
Add devfreq governor support in order to allow frequency scaling in virtualization config. GPU clock frequency operations are re-directed to the server over RPC. Bug 200237433 Change-Id: I1c8e565a4fff36d3456dc72ebb20795b7822650e Signed-off-by: Sachit Kadle <skadle@nvidia.com> Reviewed-on: http://git-master/r/1295542 (cherry picked from commit d5c956fc06697eda3829c67cb22987e538213b29) Reviewed-on: http://git-master/r/1280968 (cherry picked from commit 25e2b3cf7cb5559a6849c0024d42c157564a9be2) Reviewed-on: http://git-master/r/1321835 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
0eb5255e54
commit
f871b52fd3
@@ -102,6 +102,8 @@ enum {
|
||||
TEGRA_VGPU_CMD_SUSPEND_CONTEXTS = 66,
|
||||
TEGRA_VGPU_CMD_RESUME_CONTEXTS = 67,
|
||||
TEGRA_VGPU_CMD_CLEAR_SM_ERROR_STATE = 68,
|
||||
TEGRA_VGPU_CMD_GET_GPU_CLK_RATE = 69,
|
||||
TEGRA_VGPU_CMD_GET_GPU_FREQ_TABLE = 70,
|
||||
};
|
||||
|
||||
struct tegra_vgpu_connect_params {
|
||||
@@ -469,6 +471,13 @@ struct tegra_vgpu_clear_sm_error_state {
|
||||
u32 sm_id;
|
||||
};
|
||||
|
||||
#define TEGRA_VGPU_GPU_FREQ_TABLE_SIZE 25
|
||||
|
||||
struct tegra_vgpu_get_gpu_freq_table_params {
|
||||
u32 num_freqs; /* in/out */
|
||||
u32 freqs[TEGRA_VGPU_GPU_FREQ_TABLE_SIZE]; /* in kHz */
|
||||
};
|
||||
|
||||
struct tegra_vgpu_cmd_msg {
|
||||
u32 cmd;
|
||||
int ret;
|
||||
@@ -518,6 +527,7 @@ struct tegra_vgpu_cmd_msg {
|
||||
struct tegra_vgpu_suspend_resume_contexts suspend_contexts;
|
||||
struct tegra_vgpu_suspend_resume_contexts resume_contexts;
|
||||
struct tegra_vgpu_clear_sm_error_state clear_sm_error_state;
|
||||
struct tegra_vgpu_get_gpu_freq_table_params get_gpu_freq_table;
|
||||
char padding[192];
|
||||
} params;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user