summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2018-01-31 18:24:57 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-02-27 17:30:09 -0500
commit6ab28b6ef0676a65623f2cadc10193fb124c11ee (patch)
tree3d88113088819dcbdd5ea89a835148e3dfeb5941 /drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c
parent2ac0c3524530fbf34925113d93e8069f5f281fdb (diff)
gpu: nvgpu: vgpu: remove smmu checkings
Currently vgpu always disable smmu. Jira EVLR-2364 Change-Id: I54dfa5ff6bfda56975617ec526d80359bf3cf672 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1649938 Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit 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/common/linux/vgpu/mm_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c
index d2cb4442..fe6c2e82 100644
--- a/drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c
+++ b/drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c
@@ -16,7 +16,6 @@
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19#include <linux/dma-mapping.h>
20#include <uapi/linux/nvgpu.h> 19#include <uapi/linux/nvgpu.h>
21 20
22#include <nvgpu/kmem.h> 21#include <nvgpu/kmem.h>
@@ -162,8 +161,6 @@ void vgpu_vm_remove(struct vm_gk20a *vm)
162 161
163u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, u64 size) 162u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, u64 size)
164{ 163{
165 struct dma_iommu_mapping *mapping =
166 to_dma_iommu_mapping(dev_from_gk20a(g));
167 u64 addr = nvgpu_mem_get_addr_sgl(g, (*sgt)->sgl); 164 u64 addr = nvgpu_mem_get_addr_sgl(g, (*sgt)->sgl);
168 struct tegra_vgpu_cmd_msg msg; 165 struct tegra_vgpu_cmd_msg msg;
169 struct tegra_vgpu_as_map_params *p = &msg.params.as_map; 166 struct tegra_vgpu_as_map_params *p = &msg.params.as_map;
@@ -173,7 +170,7 @@ u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, u64 size)
173 msg.handle = vgpu_get_handle(g); 170 msg.handle = vgpu_get_handle(g);
174 p->addr = addr; 171 p->addr = addr;
175 p->size = size; 172 p->size = size;
176 p->iova = mapping ? 1 : 0; 173 p->iova = 0;
177 err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); 174 err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg));
178 if (err || msg.ret) 175 if (err || msg.ret)
179 addr = 0; 176 addr = 0;