mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: add gr manager gops for nvgpu-next-1
1) Included gr manager gops for nvgpu-next chip 2) Added conf flag to enable/disable MIG JIRA NVGPU-5646 Change-Id: I37d3b64fb8a49f97d37c89374241d0fc9c75891e Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2382270 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
71c8d998d4
commit
58ef68e162
@@ -291,6 +291,10 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_TEGRA_GR_VIRTUALIZATION_SERVER
|
|||||||
CONFIG_NVGPU_SM_DIVERSITY := 1
|
CONFIG_NVGPU_SM_DIVERSITY := 1
|
||||||
NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_SM_DIVERSITY
|
NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_SM_DIVERSITY
|
||||||
|
|
||||||
|
# Enable Multi Instance GPU support for normal build
|
||||||
|
CONFIG_NVGPU_MIG := 1
|
||||||
|
NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_MIG
|
||||||
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -173,6 +173,10 @@ enum nvgpu_profiler_pm_reservation_scope;
|
|||||||
|
|
||||||
#include "hal/clk/clk_gk20a.h"
|
#include "hal/clk/clk_gk20a.h"
|
||||||
|
|
||||||
|
#if defined(CONFIG_NVGPU_NEXT) && defined(CONFIG_NVGPU_MIG)
|
||||||
|
#include "include/nvgpu/nvgpu_next_gops_grmgr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
struct railgate_stats {
|
struct railgate_stats {
|
||||||
unsigned long last_rail_gate_start;
|
unsigned long last_rail_gate_start;
|
||||||
@@ -636,6 +640,11 @@ struct gpu_ops {
|
|||||||
} tpc;
|
} tpc;
|
||||||
#endif
|
#endif
|
||||||
void (*semaphore_wakeup)(struct gk20a *g, bool post_events);
|
void (*semaphore_wakeup)(struct gk20a *g, bool post_events);
|
||||||
|
|
||||||
|
#if defined(CONFIG_NVGPU_NEXT) && defined(CONFIG_NVGPU_MIG)
|
||||||
|
struct gops_grmgr grmgr;
|
||||||
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -143,6 +143,10 @@ struct gops_priv_ring {
|
|||||||
void (*decode_error_code)(struct gk20a *g, u32 error_code);
|
void (*decode_error_code)(struct gk20a *g, u32 error_code);
|
||||||
/** @endcond DOXYGEN_SHOULD_SKIP_THIS */
|
/** @endcond DOXYGEN_SHOULD_SKIP_THIS */
|
||||||
|
|
||||||
|
#if defined(CONFIG_NVGPU_NEXT)
|
||||||
|
#include "include/nvgpu/nvgpu_next_gops_priv_ring.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* NVGPU_GOPS_PRIV_RING_H */
|
#endif /* NVGPU_GOPS_PRIV_RING_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user