diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-08-16 18:12:53 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-04 05:19:06 -0400 |
commit | 84f2356b13fdad636c33d1d2908ff2e977a09bf0 (patch) | |
tree | 5d2ece0dd351bbedf3d5bca904897e3a0c2232b0 /drivers/gpu/nvgpu/include | |
parent | 9d97af9e9fd461ed8e69cadb027fe639d7e3247b (diff) |
gpu: nvgpu: Remove sg_phys() from GMMU code
Remove the last sg_phys() call from the GMMU code and replace it
with a generic nvgpu_mem API. This new API, nvgpu_mem_get_phys_addr(),
returns the physical address of an nvgpu_mem struct.
Also, implement this new API in the Linux specific nvgpu_mem code
since it requires access to the underlying SGT/SGL.
JIRA NVGPU-68
Change-Id: Idf88701a2a8515464c658c26e0de493c82ff850d
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1542964
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h index 15414278..b939cc33 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h | |||
@@ -291,6 +291,7 @@ void nvgpu_memset(struct gk20a *g, struct nvgpu_mem *mem, u32 offset, | |||
291 | u32 c, u32 size); | 291 | u32 c, u32 size); |
292 | 292 | ||
293 | u64 nvgpu_mem_get_addr(struct gk20a *g, struct nvgpu_mem *mem); | 293 | u64 nvgpu_mem_get_addr(struct gk20a *g, struct nvgpu_mem *mem); |
294 | u64 nvgpu_mem_get_phys_addr(struct gk20a *g, struct nvgpu_mem *mem); | ||
294 | 295 | ||
295 | u32 __nvgpu_aperture_mask(struct gk20a *g, enum nvgpu_aperture aperture, | 296 | u32 __nvgpu_aperture_mask(struct gk20a *g, enum nvgpu_aperture aperture, |
296 | u32 sysmem_mask, u32 vidmem_mask); | 297 | u32 sysmem_mask, u32 vidmem_mask); |