mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add grmgr gops to query gpc id info
Added grmgr gops to query logical->physical gpc id information. JIRA NVGPU-5647 Change-Id: I24b56873ea0906028b8fbece8b83fea24b0d861b Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2416163 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Shashank Singh <shashsingh@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: Shashank Singh <shashsingh@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
df4d5f3c57
commit
85cfd98884
@@ -60,11 +60,23 @@ int nvgpu_init_gr_manager(struct gk20a *g)
|
||||
1U);
|
||||
}
|
||||
|
||||
/* In Legacy mode, Local GPC Id = physical GPC Id = Logical GPC Id */
|
||||
for (gpc_id = 0U; gpc_id < gr_syspipe->num_gpc; gpc_id++) {
|
||||
gr_syspipe->gpcs[gpc_id].logical_id =
|
||||
gr_syspipe->gpcs[gpc_id].physical_id = gpc_id;
|
||||
gr_syspipe->gpcs[gpc_id].gpcgrp_id = 0U;
|
||||
if (g->ops.grmgr.discover_gpc_ids != NULL) {
|
||||
if (g->ops.grmgr.discover_gpc_ids(g,
|
||||
gr_syspipe->num_gpc,
|
||||
gr_syspipe->gpcs) != 0) {
|
||||
nvgpu_err(g, "discover_gpc_ids -failed");
|
||||
return -EINVAL;
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
* For Legacy gpu,
|
||||
* Local GPC Id = physical GPC Id = Logical GPC Id.
|
||||
*/
|
||||
for (gpc_id = 0U; gpc_id < gr_syspipe->num_gpc; gpc_id++) {
|
||||
gr_syspipe->gpcs[gpc_id].logical_id =
|
||||
gr_syspipe->gpcs[gpc_id].physical_id = gpc_id;
|
||||
gr_syspipe->gpcs[gpc_id].gpcgrp_id = 0U;
|
||||
}
|
||||
}
|
||||
gr_syspipe->max_veid_count_per_tsg = g->fifo.max_subctx_count;
|
||||
gr_syspipe->veid_start_offset = 0U;
|
||||
|
||||
Reference in New Issue
Block a user