diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-10-10 15:13:25 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-11 17:40:22 -0400 |
commit | c53b94f1dd45384c2234e8c3f712df10395d0601 (patch) | |
tree | 6b769fd4055c9db8858436b0d391c8ad58fde705 /drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c | |
parent | 50975dcf2afe7b8111d228e1520f652ac7ebe061 (diff) |
gpu: nvgpu: Remove phys_addr_t from common code
Remove phys_addr_t from common code and replace it with u64. This
faciliates QNX compiling the common code since phys_addr_t is a
Linux specific type.
JIRA NVGPU-30
JIRA NVGPU-226
Change-Id: I15fe2078f9cd0b07c7e90ad6e359c493afa56714
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1576432
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c index 6379d8ef..49700ebe 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c | |||
@@ -139,7 +139,8 @@ static void gk20a_tegra_secure_destroy(struct gk20a *g, | |||
139 | DEFINE_DMA_ATTRS(attrs); | 139 | DEFINE_DMA_ATTRS(attrs); |
140 | 140 | ||
141 | if (desc->mem.priv.sgt) { | 141 | if (desc->mem.priv.sgt) { |
142 | phys_addr_t pa = sg_phys(desc->mem.priv.sgt->sgl); | 142 | u64 pa = nvgpu_mem_get_phys_addr(g, &desc->mem); |
143 | |||
143 | dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING, __DMA_ATTR(attrs)); | 144 | dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING, __DMA_ATTR(attrs)); |
144 | dma_free_attrs(&tegra_vpr_dev, desc->mem.size, | 145 | dma_free_attrs(&tegra_vpr_dev, desc->mem.size, |
145 | (void *)(uintptr_t)pa, | 146 | (void *)(uintptr_t)pa, |