All of lore.kernel.org
 help / color / mirror / Atom feed
* unclear code in vega10 pp
@ 2017-09-05 16:18 Tom St Denis
       [not found] ` <04aae9c8-9d67-e3d7-e2b4-a6d14b58b3ed-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Tom St Denis @ 2017-09-05 16:18 UTC (permalink / raw)
  To: amd-gfx mailing list

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
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-06  1:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-05 16:18 unclear code in vega10 pp Tom St Denis
     [not found] ` <04aae9c8-9d67-e3d7-e2b4-a6d14b58b3ed-5C7GfCeVMHo@public.gmane.org>
2017-09-05 16:22   ` Tom St Denis
     [not found]     ` <1bd6c44f-87cc-4dbc-50f6-b2dbd822e0c8-5C7GfCeVMHo@public.gmane.org>
2017-09-06  1:12       ` Zhu, Rex

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.