mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: gv11b: add scg support info in gpu characteristics
Indicated support for Simultaneous Compute and Graphics(SCG) in gpu characteristics for gv11b. Bug 2053932 Change-Id: I788e22242083dff775dd4cc5b9aa73c938028536 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1649805 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
98da3f8eed
commit
5cb742d228
@@ -172,6 +172,8 @@ static struct nvgpu_flags_mapping flags_mapping[] = {
|
||||
NVGPU_ECC_ENABLED_LTC},
|
||||
{NVGPU_GPU_FLAGS_SUPPORT_TSG_SUBCONTEXTS,
|
||||
NVGPU_SUPPORT_TSG_SUBCONTEXTS},
|
||||
{NVGPU_GPU_FLAGS_SUPPORT_SCG,
|
||||
NVGPU_SUPPORT_SCG},
|
||||
};
|
||||
|
||||
static u64 nvgpu_ctrl_ioctl_gpu_characteristics_flags(struct gk20a *g)
|
||||
|
||||
@@ -35,6 +35,7 @@ int vgpu_gv11b_init_gpu_characteristics(struct gk20a *g)
|
||||
|
||||
__nvgpu_set_enabled(g, NVGPU_SUPPORT_TSG_SUBCONTEXTS, true);
|
||||
__nvgpu_set_enabled(g, NVGPU_SUPPORT_IO_COHERENCE, true);
|
||||
__nvgpu_set_enabled(g, NVGPU_SUPPORT_SCG, true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -153,5 +153,6 @@ int gv11b_init_gpu_characteristics(struct gk20a *g)
|
||||
gk20a_init_gpu_characteristics(g);
|
||||
__nvgpu_set_enabled(g, NVGPU_SUPPORT_TSG_SUBCONTEXTS, true);
|
||||
__nvgpu_set_enabled(g, NVGPU_SUPPORT_IO_COHERENCE, true);
|
||||
__nvgpu_set_enabled(g, NVGPU_SUPPORT_SCG, true);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -150,10 +150,12 @@ struct gk20a;
|
||||
#define NVGPU_SUPPORT_ASPM 62
|
||||
/* subcontexts are available */
|
||||
#define NVGPU_SUPPORT_TSG_SUBCONTEXTS 63
|
||||
/* Simultaneous Compute and Graphics (SCG) is available */
|
||||
#define NVGPU_SUPPORT_SCG 64
|
||||
/*
|
||||
* Must be greater than the largest bit offset in the above list.
|
||||
*/
|
||||
#define NVGPU_MAX_ENABLED_BITS 64
|
||||
#define NVGPU_MAX_ENABLED_BITS 65
|
||||
|
||||
/**
|
||||
* nvgpu_is_enabled - Check if the passed flag is enabled.
|
||||
|
||||
@@ -152,6 +152,8 @@ struct nvgpu_gpu_zbc_query_table_args {
|
||||
#define NVGPU_GPU_FLAGS_SUPPORT_MAP_DIRECT_KIND_CTRL (1ULL << 23)
|
||||
/* NVGPU_GPU_IOCTL_SET_DETERMINISTIC_OPTS is available */
|
||||
#define NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_OPTS (1ULL << 24)
|
||||
/* SCG support is available */
|
||||
#define NVGPU_GPU_FLAGS_SUPPORT_SCG (1ULL << 25)
|
||||
/* SM LRF ECC is enabled */
|
||||
#define NVGPU_GPU_FLAGS_ECC_ENABLED_SM_LRF (1ULL << 60)
|
||||
/* SM SHM ECC is enabled */
|
||||
|
||||
Reference in New Issue
Block a user