mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Add DGPU_NEXT BIOS support
This adds bios support for DGPU_NEXT. JIRA NVGPU-5534 Change-Id: Iab1150d3e9644906ff0a44eced4411d77d12eb1b Signed-off-by: dt <dt@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2366635 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
@@ -31,6 +31,10 @@
|
||||
#include "bios_sw_gv100.h"
|
||||
#include "bios_sw_tu104.h"
|
||||
|
||||
#if defined(CONFIG_NVGPU_NEXT) && defined(CONFIG_NVGPU_NON_FUSA)
|
||||
#include "nvgpu_next_gpuid.h"
|
||||
#endif
|
||||
|
||||
static void nvgpu_bios_parse_bit(struct gk20a *g, u32 offset);
|
||||
|
||||
int nvgpu_bios_devinit(struct gk20a *g,
|
||||
@@ -69,6 +73,9 @@ bool nvgpu_bios_check_dgpu(struct gk20a *g, u32 ver)
|
||||
|
||||
case NVGPU_GPUID_GV100:
|
||||
case NVGPU_GPUID_TU104:
|
||||
#if defined(CONFIG_NVGPU_NEXT) && defined(CONFIG_NVGPU_NON_FUSA)
|
||||
case NVGPU_NEXT_DGPU_GPUID:
|
||||
#endif
|
||||
is_supported = true;
|
||||
break;
|
||||
|
||||
@@ -189,6 +196,17 @@ int nvgpu_bios_sw_init(struct gk20a *g)
|
||||
case NVGPU_GPUID_TU104:
|
||||
nvgpu_tu104_bios_sw_init(g, g->bios);
|
||||
break;
|
||||
|
||||
#if defined(CONFIG_NVGPU_NEXT) && defined(CONFIG_NVGPU_NON_FUSA)
|
||||
case NVGPU_NEXT_DGPU_GPUID:
|
||||
/*
|
||||
* TODO
|
||||
* After IFR region removal from bios image this can
|
||||
* be replaced with nvgpu_tu104_bios_sw_init.
|
||||
*/
|
||||
err = tu104_bios_verify_devinit(g);
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
default:
|
||||
goto clean_bios;
|
||||
|
||||
Reference in New Issue
Block a user