mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
b22c5911dd
commit
5944f49f55
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
#include <soc/tegra/chip-id.h>
|
||||
#include <soc/tegra/tegra_bpmp.h>
|
||||
|
||||
#include <nvgpu/soc.h>
|
||||
|
||||
@@ -34,3 +35,8 @@ bool nvgpu_is_hypervisor_mode(struct gk20a *g)
|
||||
{
|
||||
return is_tegra_hypervisor_mode();
|
||||
}
|
||||
|
||||
bool nvgpu_is_bpmp_running(struct gk20a *g)
|
||||
{
|
||||
return tegra_bpmp_running();
|
||||
}
|
||||
|
||||
@@ -28,5 +28,6 @@ bool nvgpu_platform_is_silicon(struct gk20a *g);
|
||||
bool nvgpu_platform_is_simulation(struct gk20a *g);
|
||||
bool nvgpu_platform_is_fpga(struct gk20a *g);
|
||||
bool nvgpu_is_hypervisor_mode(struct gk20a *g);
|
||||
bool nvgpu_is_bpmp_running(struct gk20a *g);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user