diff options
author | Sunny He <suhe@nvidia.com> | 2017-06-27 19:08:48 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-26 05:44:14 -0400 |
commit | 92f6eb016cc759b24e249ed6c17cff537cc35db7 (patch) | |
tree | 4c3041422fa3c114f9aad3ab5e30ad6673389578 /drivers/gpu/nvgpu/gp106/hal_gp106.c | |
parent | b260df606b759e9d9e82a54e6eda05be18df5bf5 (diff) |
gpu: nvgpu: Remove pmupstate flag from gpu_ops
Replace pmupstate boolean flag in gpu_ops with entry in
common flag system.
The new common flag is NVGPU_PMU_PSTATE
Jira NVGPU-74
Change-Id: I4e1ba922a48145b1cf3488b6f14fde78107adb5b
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1514059
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index fa767c3b..2a661734 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -62,6 +62,7 @@ | |||
62 | #include <nvgpu/debug.h> | 62 | #include <nvgpu/debug.h> |
63 | #include <nvgpu/bug.h> | 63 | #include <nvgpu/bug.h> |
64 | #include <nvgpu/bus.h> | 64 | #include <nvgpu/bus.h> |
65 | #include <nvgpu/enabled.h> | ||
65 | 66 | ||
66 | #include <nvgpu/hw/gp106/hw_proj_gp106.h> | 67 | #include <nvgpu/hw/gp106/hw_proj_gp106.h> |
67 | #include <nvgpu/hw/gp106/hw_fifo_gp106.h> | 68 | #include <nvgpu/hw/gp106/hw_fifo_gp106.h> |
@@ -417,8 +418,7 @@ int gp106_init_hal(struct gk20a *g) | |||
417 | 418 | ||
418 | gops->privsecurity = 1; | 419 | gops->privsecurity = 1; |
419 | gops->securegpccs = 1; | 420 | gops->securegpccs = 1; |
420 | gops->pmupstate = true; | 421 | __nvgpu_set_enabled(g, NVGPU_PMU_PSTATE, true); |
421 | |||
422 | 422 | ||
423 | g->bootstrap_owner = LSF_FALCON_ID_SEC2; | 423 | g->bootstrap_owner = LSF_FALCON_ID_SEC2; |
424 | gp106_init_gr(gops); | 424 | gp106_init_gr(gops); |