diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-11-09 15:23:07 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-14 18:46:55 -0500 |
commit | 5944f49f558370966d1ab943b2ec91afcdfd782d (patch) | |
tree | f2924b53da9fca36500bc6e85fa74dded87f5a1e /drivers/gpu/nvgpu/common | |
parent | b22c5911dd2d6f1c4bc218f020228ec23e7e0802 (diff) |
gpu: nvgpu: wrapper for checking if bpmp running
Add nvgpu_is_bpmp_running API for checking if bpmp
is running or not. This API will call tegra_bpmp_running()
and return the value retured by tegra_bpmp_running()
Bug 2018223
Change-Id: I42c1dbec65733fdc89a8fc3846e8c3afb2dcfb8d
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1595349
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/soc.c | 6 |
1 files changed, 6 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 | } | ||