diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2018-02-20 23:39:22 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-07 19:03:45 -0400 |
commit | a5f3fe9506dcf87910eba24c80a4b30c03dcced1 (patch) | |
tree | 322374f40e46286ac0b98abe6e3dbce293943943 /drivers/gpu/nvgpu/include | |
parent | 15ec5722be8f483f6d9c1cd0bfd61a7e2bcbfca2 (diff) |
gpu: nvgpu: gv100: enable syncpt shim for nvlink
Get host1x node reference from c1_rp device tree node, and
enable syncpoints shim in case of nvlink.
JIRA EVLR-2441
JIRA EVLR-2585
Change-Id: Idbf1edf656557f2ed2d3bd27393c2f4d5d1ad75a
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1663360
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/nvhost.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvhost.h b/drivers/gpu/nvgpu/include/nvgpu/nvhost.h index 13de012a..ba6012ec 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvhost.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvhost.h | |||
@@ -89,11 +89,20 @@ int nvgpu_nvhost_syncpt_unit_interface_get_aperture( | |||
89 | struct nvgpu_nvhost_dev *nvhost_dev, | 89 | struct nvgpu_nvhost_dev *nvhost_dev, |
90 | u64 *base, size_t *size); | 90 | u64 *base, size_t *size); |
91 | u32 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id); | 91 | u32 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id); |
92 | int nvgpu_nvhost_syncpt_init(struct gk20a *g); | ||
92 | #else | 93 | #else |
93 | static inline int nvgpu_nvhost_syncpt_unit_interface_get_aperture( | 94 | static inline int nvgpu_nvhost_syncpt_unit_interface_get_aperture( |
94 | struct nvgpu_nvhost_dev *nvhost_dev, | 95 | struct nvgpu_nvhost_dev *nvhost_dev, |
95 | u64 *base, size_t *size) { return -EINVAL; } | 96 | u64 *base, size_t *size) |
96 | static inline u32 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id) { | 97 | { |
98 | return -EINVAL; | ||
99 | } | ||
100 | static inline u32 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id) | ||
101 | { | ||
102 | return 0; | ||
103 | } | ||
104 | static inline int nvgpu_nvhost_syncpt_init(struct gk20a *g) | ||
105 | { | ||
97 | return 0; | 106 | return 0; |
98 | } | 107 | } |
99 | #endif | 108 | #endif |