diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c index a2a60aaa..42f59a26 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c | |||
@@ -59,18 +59,24 @@ static int gv11b_tegra_probe(struct device *dev) | |||
59 | return err; | 59 | return err; |
60 | } | 60 | } |
61 | 61 | ||
62 | err = nvgpu_nvhost_syncpt_unit_interface_get_aperture( | 62 | if (g->has_syncpoints) { |
63 | err = nvgpu_nvhost_syncpt_unit_interface_get_aperture( | ||
63 | g->nvhost_dev, | 64 | g->nvhost_dev, |
64 | &g->syncpt_unit_base, | 65 | &g->syncpt_unit_base, |
65 | &g->syncpt_unit_size); | 66 | &g->syncpt_unit_size); |
66 | if (err) { | 67 | if (err) { |
67 | dev_err(dev, "Failed to get syncpt interface"); | 68 | dev_err(dev, "Failed to get syncpt interface"); |
68 | return -ENOSYS; | 69 | return -ENOSYS; |
70 | } | ||
71 | g->syncpt_size = | ||
72 | nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(1); | ||
73 | nvgpu_info(g, "syncpt_unit_base %llx " | ||
74 | "syncpt_unit_size %zx size %x\n", | ||
75 | g->syncpt_unit_base, g->syncpt_unit_size, | ||
76 | g->syncpt_size); | ||
69 | } | 77 | } |
70 | g->syncpt_size = nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(1); | 78 | #else |
71 | gk20a_dbg_info("syncpt_unit_base %llx syncpt_unit_size %zx size %x\n", | 79 | g->has_syncpoints = false; |
72 | g->syncpt_unit_base, g->syncpt_unit_size, | ||
73 | g->syncpt_size); | ||
74 | #endif | 80 | #endif |
75 | 81 | ||
76 | platform->bypass_smmu = !device_is_iommuable(dev); | 82 | platform->bypass_smmu = !device_is_iommuable(dev); |