unclear code in vega10 pp
In vega10_populate_smc_link_levels(): there's this bit
j = i - 1;
while (i < NUM_LINK_LEVELS) {
pp_table->PcieGenSpeed[i] = pcie_table->pcie_gen[j];
pp_table->PcieLaneCount[i] = pcie_table->pcie_lane[j];
result = vega10_populate_single_lclk_level(hwmgr,
pcie_table->lclk[j], &(pp_table->LclkDid[i]));
if (result) {
pr_info("Populate LClock Level %d Failed!\n", i);
return result;
}
i++;
}It seems 'j' isn't changing so it's spamming multiple entries in the lclkdid[] array based on the same entries from the pcie_table->pcie*[j].
Is that intentional or is a ++ or -- to j missing?
Cheers,
Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 04aae9c8-9d67-e3d7-e2b4-a6d14b58b3ed-5C7GfCeVMHo@public.gmane.org
After seeing this style a few other places in the same file are they just padding out the rest of the array with the highest setting?
Tom
Quoted 18 lines · Tom St Denis
In
vega10_populate_smc_link_levels(): there's this bitj = i - 1;
while (i <NUM_LINK_LEVELS) { pp_table->PcieGenSpeed[i] = pcie_table->pcie_gen[j]; pp_table->PcieLaneCount[i] = pcie_table->pcie_lane[j];result =
vega10_populate_single_lclk_level(hwmgr, pcie_table->lclk[j], &(pp_table->LclkDid[i])); if (result) {
pr_info("Populate LClock Level %d Failed!\n", i); return result;
}
i++;
}It seems 'j' isn't changing so it's spamming multiple entries in the lclkdid[] array based on the same entries from the pcie_table->pcie*[j].
Quoted 8 lines
Is that intentional or is a ++ or -- to j missing?
Cheers,
Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1bd6c44f-87cc-4dbc-50f6-b2dbd822e0c8-5C7GfCeVMHo@public.gmane.org
Yes.
Best Regards
Rex
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Tom St Denis
Sent: Wednesday, September 06, 2017 12:23 AM
To: [email protected]
Subject: Re: unclear code in vega10 pp
After seeing this style a few other places in the same file are they just padding out the rest of the array with the highest setting?
Tom
Quoted 19 lines · Tom St Denis
In
vega10_populate_smc_link_levels(): there's this bitj = i - 1;
while (i <NUM_LINK_LEVELS) { pp_table->PcieGenSpeed[i] = pcie_table->pcie_gen[j]; pp_table->PcieLaneCount[i] = pcie_table->pcie_lane[j];result =
vega10_populate_single_lclk_level(hwmgr, pcie_table->lclk[j], &(pp_table->LclkDid[i])); if (result) {
pr_info("Populate LClock Level %d Failed!\n", i); return result;
}
i++;
}It seems 'j' isn't changing so it's spamming multiple entries in the lclkdid[] array based on the same entries from the pcie_table->pcie*[j].
Quoted 8 lines
Is that intentional or is a ++ or -- to j missing?
Cheers,
Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx