mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: Fix mismatch in Volt boardobj parsing
There is a mismatch between data parsed by nvgpu struct to pmu struct. This patch fixes this by correctly parsing the data from vbios and sending it to pmu. This was unnoticed till now and started poping up during refactoring. NVGPU-4492 Change-Id: I75648de41832eadd39aa499a5354705694699238 Signed-off-by: Abdul Salam <absalam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2289748 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: Ramesh Mylavarapu <rmylavarapu@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@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:
committed by
Alex Waterman
parent
f206c1df9c
commit
e21d70574c
@@ -332,7 +332,8 @@ static int _volt_policy_grp_pmudatainit_super(struct gk20a *g,
|
||||
struct nv_pmu_volt_volt_policy_boardobjgrp_set_header *pset =
|
||||
(struct nv_pmu_volt_volt_policy_boardobjgrp_set_header *)
|
||||
pboardobjgrppmu;
|
||||
struct nvgpu_pmu_volt *volt = (struct nvgpu_pmu_volt *)pboardobjgrp;
|
||||
struct voltage_policy_metadata *volt =
|
||||
(struct voltage_policy_metadata *)pboardobjgrp;
|
||||
int status = 0;
|
||||
|
||||
status = boardobjgrp_pmudatainit_e32(g, pboardobjgrp, pboardobjgrppmu);
|
||||
@@ -343,7 +344,7 @@ static int _volt_policy_grp_pmudatainit_super(struct gk20a *g,
|
||||
goto done;
|
||||
}
|
||||
pset->perf_core_vf_seq_policy_idx =
|
||||
volt->volt_policy_metadata.perf_core_vf_seq_policy_idx;
|
||||
volt->perf_core_vf_seq_policy_idx;
|
||||
|
||||
done:
|
||||
return status;
|
||||
|
||||
@@ -57,8 +57,8 @@ struct voltage_device_metadata {
|
||||
};
|
||||
|
||||
struct voltage_policy_metadata {
|
||||
u8 perf_core_vf_seq_policy_idx;
|
||||
struct boardobjgrp_e32 volt_policies;
|
||||
u8 perf_core_vf_seq_policy_idx;
|
||||
};
|
||||
|
||||
struct nvgpu_pmu_volt {
|
||||
|
||||
Reference in New Issue
Block a user