mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
mobile promotions
parent
5bd547f0db
commit
8d6b654afb
@@ -135,7 +135,9 @@ enum nvgpu_profiler_pm_reservation_scope;
|
|||||||
#include <nvgpu/cbc.h>
|
#include <nvgpu/cbc.h>
|
||||||
#include <nvgpu/ltc.h>
|
#include <nvgpu/ltc.h>
|
||||||
#include <nvgpu/worker.h>
|
#include <nvgpu/worker.h>
|
||||||
|
#ifdef CONFIG_NVGPU_DGPU
|
||||||
#include <nvgpu/bios.h>
|
#include <nvgpu/bios.h>
|
||||||
|
#endif
|
||||||
#include <nvgpu/semaphore.h>
|
#include <nvgpu/semaphore.h>
|
||||||
#include <nvgpu/fifo.h>
|
#include <nvgpu/fifo.h>
|
||||||
#include <nvgpu/sched.h>
|
#include <nvgpu/sched.h>
|
||||||
|
|||||||
@@ -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
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
#ifndef NVGPU_GOPS_BIOS_H
|
#ifndef NVGPU_GOPS_BIOS_H
|
||||||
#define NVGPU_GOPS_BIOS_H
|
#define NVGPU_GOPS_BIOS_H
|
||||||
|
|
||||||
|
#ifdef CONFIG_NVGPU_DGPU
|
||||||
struct gops_bios {
|
struct gops_bios {
|
||||||
int (*bios_sw_init)(struct gk20a *g);
|
int (*bios_sw_init)(struct gk20a *g);
|
||||||
void (*bios_sw_deinit)(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);
|
u32 (*get_aon_secure_scratch_reg)(struct gk20a *g, u32 i);
|
||||||
bool (*wait_for_bios_init_done)(struct gk20a *g);
|
bool (*wait_for_bios_init_done)(struct gk20a *g);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* NVGPU_GOPS_BIOS_H */
|
#endif /* NVGPU_GOPS_BIOS_H */
|
||||||
|
|||||||
@@ -176,11 +176,11 @@ struct gpu_ops {
|
|||||||
struct gops_bus bus;
|
struct gops_bus bus;
|
||||||
/** Ptimer hal ops. */
|
/** Ptimer hal ops. */
|
||||||
struct gops_ptimer ptimer;
|
struct gops_ptimer ptimer;
|
||||||
struct gops_bios bios;
|
|
||||||
#ifdef CONFIG_NVGPU_CYCLESTATS
|
#ifdef CONFIG_NVGPU_CYCLESTATS
|
||||||
struct gops_css css;
|
struct gops_css css;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NVGPU_DGPU
|
#ifdef CONFIG_NVGPU_DGPU
|
||||||
|
struct gops_bios bios;
|
||||||
struct gops_xve xve;
|
struct gops_xve xve;
|
||||||
#endif
|
#endif
|
||||||
/** Falcon hal ops. */
|
/** Falcon hal ops. */
|
||||||
|
|||||||
Reference in New Issue
Block a user