mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: assume no syncpt support if no "nvidia,host1x" in dt
It'll let gpu tests pass by using sem before enabling syncpt. Especially for vgpu, the plat data is shared across different GPUs, so we can use dt to override and disable syncpt. Jira VFND-3796 Change-Id: I2cc32a1ea1cc1097047427eb1e52ec50c3a0bf90 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: http://git-master/r/1507494 Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Nirav Patel <nipatel@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
102c512082
commit
f2f6843037
@@ -42,8 +42,11 @@ int nvgpu_get_nvhost_dev(struct gk20a *g)
|
||||
}
|
||||
|
||||
} else {
|
||||
host1x_pdev = to_platform_device(g->dev->parent);
|
||||
dev_warn(g->dev, "host1x reference not found. assuming host1x to be parent");
|
||||
if (g->has_syncpoints) {
|
||||
dev_warn(g->dev, "host1x reference not found. assuming no syncpoints support\n");
|
||||
g->has_syncpoints = false;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
g->nvhost_dev = nvgpu_kzalloc(g, sizeof(struct nvgpu_nvhost_dev));
|
||||
|
||||
Reference in New Issue
Block a user