mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
2ac0c35245
commit
6ab28b6ef0
@@ -16,7 +16,6 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <trace/events/gk20a.h>
|
||||
#include <uapi/linux/nvgpu.h>
|
||||
|
||||
@@ -149,7 +148,6 @@ int vgpu_channel_setup_ramfc(struct channel_gk20a *ch, u64 gpfifo_base,
|
||||
unsigned long acquire_timeout, u32 flags)
|
||||
{
|
||||
struct device __maybe_unused *d = dev_from_gk20a(ch->g);
|
||||
struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(d);
|
||||
struct tegra_vgpu_cmd_msg msg;
|
||||
struct tegra_vgpu_ramfc_params *p = &msg.params.ramfc;
|
||||
int err;
|
||||
@@ -162,7 +160,7 @@ int vgpu_channel_setup_ramfc(struct channel_gk20a *ch, u64 gpfifo_base,
|
||||
p->gpfifo_va = gpfifo_base;
|
||||
p->num_entries = gpfifo_entries;
|
||||
p->userd_addr = ch->userd_iova;
|
||||
p->iova = mapping ? 1 : 0;
|
||||
p->iova = 0;
|
||||
err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg));
|
||||
|
||||
return (err || msg.ret) ? -ENOMEM : 0;
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <uapi/linux/nvgpu.h>
|
||||
|
||||
#include <nvgpu/kmem.h>
|
||||
@@ -162,8 +161,6 @@ void vgpu_vm_remove(struct vm_gk20a *vm)
|
||||
|
||||
u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, u64 size)
|
||||
{
|
||||
struct dma_iommu_mapping *mapping =
|
||||
to_dma_iommu_mapping(dev_from_gk20a(g));
|
||||
u64 addr = nvgpu_mem_get_addr_sgl(g, (*sgt)->sgl);
|
||||
struct tegra_vgpu_cmd_msg msg;
|
||||
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)
|
||||
msg.handle = vgpu_get_handle(g);
|
||||
p->addr = addr;
|
||||
p->size = size;
|
||||
p->iova = mapping ? 1 : 0;
|
||||
p->iova = 0;
|
||||
err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg));
|
||||
if (err || msg.ret)
|
||||
addr = 0;
|
||||
|
||||
Reference in New Issue
Block a user