gpu: nvgpu: compile out bios dependency from safety build

- bios not supported for safety, so removing all bios dependencies like
  inclusion of bios header file and gops_bios structure from safety build.

JIRA NVGPU-6302

Change-Id: I47c0be043dc2542ed34e5ef6d65b75ce8b57d276
Signed-off-by: Seeta Rama Raju <srajum@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2456059
(cherry picked from commit c7554856aac4745038f8ca802a3e0b3a9cbb7f3c)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2481700
Reviewed-by: Prateek Sethi <prsethi@nvidia.com>
Reviewed-by: Ankur Kishore <ankkishore@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:
Seeta Rama Raju
2020-12-07 17:42:43 +05:30
committed by mobile promotions
parent 5bd547f0db
commit 8d6b654afb
3 changed files with 6 additions and 2 deletions

View File

@@ -135,7 +135,9 @@ enum nvgpu_profiler_pm_reservation_scope;
#include <nvgpu/cbc.h>
#include <nvgpu/ltc.h>
#include <nvgpu/worker.h>
#ifdef CONFIG_NVGPU_DGPU
#include <nvgpu/bios.h>
#endif
#include <nvgpu/semaphore.h>
#include <nvgpu/fifo.h>
#include <nvgpu/sched.h>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -22,6 +22,7 @@
#ifndef NVGPU_GOPS_BIOS_H
#define NVGPU_GOPS_BIOS_H
#ifdef CONFIG_NVGPU_DGPU
struct gops_bios {
int (*bios_sw_init)(struct gk20a *g);
void (*bios_sw_deinit)(struct gk20a *g,
@@ -29,5 +30,6 @@ struct gops_bios {
u32 (*get_aon_secure_scratch_reg)(struct gk20a *g, u32 i);
bool (*wait_for_bios_init_done)(struct gk20a *g);
};
#endif
#endif /* NVGPU_GOPS_BIOS_H */

View File

@@ -176,11 +176,11 @@ struct gpu_ops {
struct gops_bus bus;
/** Ptimer hal ops. */
struct gops_ptimer ptimer;
struct gops_bios bios;
#ifdef CONFIG_NVGPU_CYCLESTATS
struct gops_css css;
#endif
#ifdef CONFIG_NVGPU_DGPU
struct gops_bios bios;
struct gops_xve xve;
#endif
/** Falcon hal ops. */