diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv100')
-rw-r--r-- | drivers/gpu/nvgpu/gv100/hal_gv100.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv100/nvlink_gv100.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c index 99cd8731..dc404b7a 100644 --- a/drivers/gpu/nvgpu/gv100/hal_gv100.c +++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c | |||
@@ -816,6 +816,7 @@ static const struct gpu_ops gv100_ops = { | |||
816 | .isr = gp10b_priv_ring_isr, | 816 | .isr = gp10b_priv_ring_isr, |
817 | .decode_error_code = gp10b_priv_ring_decode_error_code, | 817 | .decode_error_code = gp10b_priv_ring_decode_error_code, |
818 | }, | 818 | }, |
819 | #if defined(CONFIG_TEGRA_NVLINK) | ||
819 | .nvlink = { | 820 | .nvlink = { |
820 | .discover_ioctrl = gv100_nvlink_discover_ioctrl, | 821 | .discover_ioctrl = gv100_nvlink_discover_ioctrl, |
821 | .discover_link = gv100_nvlink_discover_link, | 822 | .discover_link = gv100_nvlink_discover_link, |
@@ -835,6 +836,7 @@ static const struct gpu_ops gv100_ops = { | |||
835 | .shutdown = gv100_nvlink_shutdown, | 836 | .shutdown = gv100_nvlink_shutdown, |
836 | .early_init = gv100_nvlink_early_init, | 837 | .early_init = gv100_nvlink_early_init, |
837 | }, | 838 | }, |
839 | #endif | ||
838 | .chip_init_gpu_characteristics = gv100_init_gpu_characteristics, | 840 | .chip_init_gpu_characteristics = gv100_init_gpu_characteristics, |
839 | .get_litter_value = gv100_get_litter_value, | 841 | .get_litter_value = gv100_get_litter_value, |
840 | }; | 842 | }; |
diff --git a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c index 776d1d66..9d99242f 100644 --- a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c +++ b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c | |||
@@ -20,6 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifdef CONFIG_TEGRA_NVLINK | ||
24 | |||
23 | #include <nvgpu/nvgpu_common.h> | 25 | #include <nvgpu/nvgpu_common.h> |
24 | #include <nvgpu/bios.h> | 26 | #include <nvgpu/bios.h> |
25 | #include <nvgpu/firmware.h> | 27 | #include <nvgpu/firmware.h> |
@@ -2677,3 +2679,4 @@ nvlink_init_exit: | |||
2677 | return err; | 2679 | return err; |
2678 | } | 2680 | } |
2679 | 2681 | ||
2682 | #endif /* CONFIG_TEGRA_NVLINK */ | ||