mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: vgpu: add vgpu_init_hal_os
The goal is to make vgpu_init_hal to be common across OSes, then we can commonize more functions. OSes have to implement vgpu_init_hal_os. For linux, it's empty. Jira GVSCI-82 Change-Id: I6c8263fa884a726a8bec4c57bbf840adb86a8a56 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1987234 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Aparna Das <aparnad@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Nirav Patel <nipatel@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
4883f14fbb
commit
907e8d7409
@@ -80,6 +80,7 @@ int vgpu_get_timestamps_zipper(struct gk20a *g,
|
||||
u32 source_id, u32 count,
|
||||
struct nvgpu_cpu_time_correlation_sample *samples);
|
||||
int vgpu_init_hal(struct gk20a *g);
|
||||
int vgpu_init_hal_os(struct gk20a *g);
|
||||
int vgpu_get_constants(struct gk20a *g);
|
||||
u64 vgpu_mm_bar1_map_userd(struct gk20a *g, struct nvgpu_mem *mem, u32 offset);
|
||||
int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info);
|
||||
|
||||
@@ -545,3 +545,8 @@ int vgpu_tegra_resume(struct device *dev)
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
int vgpu_init_hal_os(struct gk20a *g)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -363,6 +363,10 @@ int vgpu_init_hal(struct gk20a *g)
|
||||
break;
|
||||
}
|
||||
|
||||
if (err == 0) {
|
||||
err = vgpu_init_hal_os(g);
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user