gpu: nvgpu: add PDI reporting for vgpu

Read the PDI from vgpu constants.

Bug 2957580
Bug 2992739

Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Change-Id: Ief2edeaaa26e284707792f13d218c511fef073af
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2351214
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Lakshmanan M <lm@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Sami Kiminki
2020-05-27 14:10:19 +03:00
committed by Alex Waterman
parent d44960d424
commit 36a488392f
2 changed files with 5 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ void vgpu_remove_support_common(struct gk20a *g)
int vgpu_init_gpu_characteristics(struct gk20a *g)
{
int err;
struct vgpu_priv_data *priv = vgpu_get_priv_data(g);
nvgpu_log_fn(g, " ");
@@ -123,6 +124,9 @@ int vgpu_init_gpu_characteristics(struct gk20a *g)
nvgpu_set_enabled(g, NVGPU_SUPPORT_SPARSE_ALLOCS, false);
nvgpu_set_enabled(g, NVGPU_SUPPORT_SET_CTX_MMU_DEBUG_MODE, false);
/* per-device identifier */
g->per_device_identifier = priv->constants.per_device_identifier;
return 0;
}

View File

@@ -538,6 +538,7 @@ struct tegra_vgpu_constants_params {
u32 l2_en_mask[TEGRA_VGPU_L2_EN_MASK];
/** Max SM configuration count. */
u32 max_sm_diversity_config_count;
u64 per_device_identifier;
};
enum {