diff options
author | Aparna Das <aparnad@nvidia.com> | 2018-02-16 20:50:05 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-16 10:34:12 -0400 |
commit | ae1b86ed4f9bb706a289848829a7909669a538d3 (patch) | |
tree | 0c8a0a776500782b08af420b1a2b862787853c72 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |
parent | 34323b559590ed8f1c64ecbb7ffbd838a6478594 (diff) |
gpu: nvgpu: add gpu_va to update_hwpm_ctxsw_mode parameters()
It'll allow the function to use fixed mapping.
Jira VQRM-2982
Change-Id: I98159c5b199ce1854b1b40704392237cadb71ef2
Signed-off-by: Aparna Das <aparnad@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1660225
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index a02c0e5d..94bfd224 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -1722,6 +1722,7 @@ out: | |||
1722 | 1722 | ||
1723 | int gr_gk20a_update_hwpm_ctxsw_mode(struct gk20a *g, | 1723 | int gr_gk20a_update_hwpm_ctxsw_mode(struct gk20a *g, |
1724 | struct channel_gk20a *c, | 1724 | struct channel_gk20a *c, |
1725 | u64 gpu_va, | ||
1725 | bool enable_hwpm_ctxsw) | 1726 | bool enable_hwpm_ctxsw) |
1726 | { | 1727 | { |
1727 | struct tsg_gk20a *tsg; | 1728 | struct tsg_gk20a *tsg; |
@@ -1787,8 +1788,9 @@ int gr_gk20a_update_hwpm_ctxsw_mode(struct gk20a *g, | |||
1787 | return ret; | 1788 | return ret; |
1788 | } | 1789 | } |
1789 | 1790 | ||
1790 | pm_ctx->mem.gpu_va = nvgpu_gmmu_map(c->vm, | 1791 | pm_ctx->mem.gpu_va = nvgpu_gmmu_map_fixed(c->vm, |
1791 | &pm_ctx->mem, | 1792 | &pm_ctx->mem, |
1793 | gpu_va, | ||
1792 | pm_ctx->mem.size, | 1794 | pm_ctx->mem.size, |
1793 | NVGPU_VM_MAP_CACHEABLE, | 1795 | NVGPU_VM_MAP_CACHEABLE, |
1794 | gk20a_mem_flag_none, true, | 1796 | gk20a_mem_flag_none, true, |