mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: forward declare nvgpu_gr_config for config
Add forward declaration for nvgpu_gr_config for gr config header for gv100. JIRA NVGPU-1884 Change-Id: I7f081e54f6a0d2be91c6f954661d1b9f4d89248f Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2081626 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> 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
db68a824df
commit
83d1a0efc6
@@ -67,7 +67,8 @@ struct nvgpu_gr_config *nvgpu_gr_config_init(struct gk20a *g)
|
||||
goto clean_up;
|
||||
}
|
||||
|
||||
config->sm_count_per_tpc = nvgpu_get_litter_value(g, GPU_LIT_NUM_SM_PER_TPC);
|
||||
config->sm_count_per_tpc =
|
||||
nvgpu_get_litter_value(g, GPU_LIT_NUM_SM_PER_TPC);
|
||||
if (config->sm_count_per_tpc == 0U) {
|
||||
nvgpu_err(g, "sm_count_per_tpc==0!");
|
||||
goto clean_up;
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <nvgpu/types.h>
|
||||
|
||||
struct gk20a;
|
||||
struct nvgpu_gr_config;
|
||||
|
||||
int gv100_gr_config_init_sm_id_table(struct nvgpu_gr_config *gr_config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user