diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index d7642182..4bb8304a 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | |||
@@ -581,7 +581,8 @@ static ssize_t aelpg_param_store(struct device *dev, | |||
581 | */ | 581 | */ |
582 | if (g->aelpg_enabled && g->pmu.pmu_ready) { | 582 | if (g->aelpg_enabled && g->pmu.pmu_ready) { |
583 | /* Disable AELPG */ | 583 | /* Disable AELPG */ |
584 | ap_cmd.init.cmd_id = PMU_AP_CMD_ID_DISABLE_CTRL; | 584 | ap_cmd.disable_ctrl.cmd_id = PMU_AP_CMD_ID_DISABLE_CTRL; |
585 | ap_cmd.disable_ctrl.ctrl_id = PMU_AP_CTRL_ID_GRAPHICS; | ||
585 | status = gk20a_pmu_ap_send_command(g, &ap_cmd, false); | 586 | status = gk20a_pmu_ap_send_command(g, &ap_cmd, false); |
586 | 587 | ||
587 | /* Enable AELPG */ | 588 | /* Enable AELPG */ |
@@ -626,12 +627,14 @@ static ssize_t aelpg_enable_store(struct device *dev, | |||
626 | if (val && !g->aelpg_enabled) { | 627 | if (val && !g->aelpg_enabled) { |
627 | g->aelpg_enabled = true; | 628 | g->aelpg_enabled = true; |
628 | /* Enable AELPG */ | 629 | /* Enable AELPG */ |
629 | ap_cmd.init.cmd_id = PMU_AP_CMD_ID_ENABLE_CTRL; | 630 | ap_cmd.enable_ctrl.cmd_id = PMU_AP_CMD_ID_ENABLE_CTRL; |
631 | ap_cmd.enable_ctrl.ctrl_id = PMU_AP_CTRL_ID_GRAPHICS; | ||
630 | status = gk20a_pmu_ap_send_command(g, &ap_cmd, false); | 632 | status = gk20a_pmu_ap_send_command(g, &ap_cmd, false); |
631 | } else if (!val && g->aelpg_enabled) { | 633 | } else if (!val && g->aelpg_enabled) { |
632 | g->aelpg_enabled = false; | 634 | g->aelpg_enabled = false; |
633 | /* Disable AELPG */ | 635 | /* Disable AELPG */ |
634 | ap_cmd.init.cmd_id = PMU_AP_CMD_ID_DISABLE_CTRL; | 636 | ap_cmd.disable_ctrl.cmd_id = PMU_AP_CMD_ID_DISABLE_CTRL; |
637 | ap_cmd.disable_ctrl.ctrl_id = PMU_AP_CTRL_ID_GRAPHICS; | ||
635 | status = gk20a_pmu_ap_send_command(g, &ap_cmd, false); | 638 | status = gk20a_pmu_ap_send_command(g, &ap_cmd, false); |
636 | } | 639 | } |
637 | } else { | 640 | } else { |