Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification of ADLPMLogData #22

Open
crowbar27 opened this issue Nov 25, 2021 · 1 comment
Open

Clarification of ADLPMLogData #22

crowbar27 opened this issue Nov 25, 2021 · 1 comment

Comments

@crowbar27
Copy link

crowbar27 commented Nov 25, 2021

I am trying to obtain data on power consumption and could not find some information in the documentation on the fields of ADLPMLogData:

What unit is ulLastUpdated using? Are this milliseconds or something else like ticks from QueryPerformanceCounter?

What units are the values of ADL_PMLOG_ASIC_POWER, ADL_PMLOG_CPU_POWER, ADL_PMLOG_GFX_VOLTAGE, ADL_PMLOG_GFX_CURRENT, ADL_PMLOG_GFX_POWER, ADL_PMLOG_SOC_VOLTAGE, ADL_PMLOG_SOC_CURRENT, ADL_PMLOG_SOC_POWER? My assumption is that *_POWER is in Watts, because I got "17", which seems to be reasonable for an idle device. Unfortunately, I did not yet find a device reporting voltage and/or current.

And finally: when is ADLPMLogData written (for the first time)? There seems to be no synchronisation primitive to prevent partial reads. The sample seems to rely on the values being first written once ADL2_Adapter_PMLog_Start returns. Is this a safe assumption?

Thanks,
Christoph

@crowbar27
Copy link
Author

After some testing, I assume that the timestamps are in 100 ns units, because they have a remarkable resemblance of the Windows SYSTEMTIME converted to FILETIME, which are "100-nanosecond intervals since January 1, 1601 (UTC)". Can anyone confirm that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant