diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/soc.c | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/soc.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/soc.c b/drivers/gpu/nvgpu/common/linux/soc.c index 5ad9c019..6a2bc7c0 100644 --- a/drivers/gpu/nvgpu/common/linux/soc.c +++ b/drivers/gpu/nvgpu/common/linux/soc.c | |||
@@ -12,6 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <soc/tegra/chip-id.h> | 14 | #include <soc/tegra/chip-id.h> |
15 | #include <soc/tegra/tegra_bpmp.h> | ||
15 | 16 | ||
16 | #include <nvgpu/soc.h> | 17 | #include <nvgpu/soc.h> |
17 | 18 | ||
@@ -34,3 +35,8 @@ bool nvgpu_is_hypervisor_mode(struct gk20a *g) | |||
34 | { | 35 | { |
35 | return is_tegra_hypervisor_mode(); | 36 | return is_tegra_hypervisor_mode(); |
36 | } | 37 | } |
38 | |||
39 | bool nvgpu_is_bpmp_running(struct gk20a *g) | ||
40 | { | ||
41 | return tegra_bpmp_running(); | ||
42 | } | ||
diff --git a/drivers/gpu/nvgpu/include/nvgpu/soc.h b/drivers/gpu/nvgpu/include/nvgpu/soc.h index 34b525da..5001f27f 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/soc.h +++ b/drivers/gpu/nvgpu/include/nvgpu/soc.h | |||
@@ -28,5 +28,6 @@ bool nvgpu_platform_is_silicon(struct gk20a *g); | |||
28 | bool nvgpu_platform_is_simulation(struct gk20a *g); | 28 | bool nvgpu_platform_is_simulation(struct gk20a *g); |
29 | bool nvgpu_platform_is_fpga(struct gk20a *g); | 29 | bool nvgpu_platform_is_fpga(struct gk20a *g); |
30 | bool nvgpu_is_hypervisor_mode(struct gk20a *g); | 30 | bool nvgpu_is_hypervisor_mode(struct gk20a *g); |
31 | bool nvgpu_is_bpmp_running(struct gk20a *g); | ||
31 | 32 | ||
32 | #endif | 33 | #endif |