mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add hal for bios_init in TU104
Add hal function for bios_init in TU104. dGpu vdk doesnot have bios support. JIRA NVGPU-1564 Change-Id: I172de6eeeaf63e9b26ae697405baa936096fe447 Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1965595 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> 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
fc939e5fb6
commit
794f6837d6
@@ -26,6 +26,7 @@
|
||||
#include <nvgpu/gk20a.h>
|
||||
|
||||
#include "tu104/bios_tu104.h"
|
||||
#include "gp106/bios_gp106.h"
|
||||
|
||||
#include "nvgpu/hw/tu104/hw_gc6_tu104.h"
|
||||
|
||||
@@ -63,3 +64,12 @@ int tu104_bios_verify_devinit(struct gk20a *g)
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
int tu104_bios_init(struct gk20a *g)
|
||||
{
|
||||
if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return gp106_bios_init(g);
|
||||
}
|
||||
|
||||
@@ -26,5 +26,6 @@
|
||||
struct gk20a;
|
||||
|
||||
int tu104_bios_verify_devinit(struct gk20a *g);
|
||||
int tu104_bios_init(struct gk20a *g);
|
||||
|
||||
#endif /* NVGPU_BIOS_TU104_H */
|
||||
|
||||
@@ -308,7 +308,7 @@ static int tu104_init_gpu_characteristics(struct gk20a *g)
|
||||
|
||||
static const struct gpu_ops tu104_ops = {
|
||||
.bios = {
|
||||
.init = gp106_bios_init,
|
||||
.init = tu104_bios_init,
|
||||
.preos_wait_for_halt = NULL,
|
||||
.preos_reload_check = NULL,
|
||||
.devinit = NULL,
|
||||
|
||||
Reference in New Issue
Block a user