-
Notifications
You must be signed in to change notification settings - Fork 93
Add real time pmf npu metrics for xrt-smi power estimate. #788
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
base: main
Are you sure you want to change the base?
Conversation
6f9f36b to
8c62136
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements real-time NPU power metrics retrieval using the AMD PMF (Power Management Framework) interface for kernel versions above 6.18.0. The changes enable xrt-smi to provide actual power estimates instead of placeholder values.
- Adds integration with AMD PMF NPU metrics API
- Implements power estimate query functionality with kernel version compatibility
- Removes unused clock frequency getter functions
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/driver/amdxdna/aie2_smu.c | Replaces removed clock frequency functions with new NPU metrics and power estimate retrieval functions |
| src/driver/amdxdna/aie2_pci.h | Updates function declarations to match new power metric interface and adds required headers |
| src/driver/amdxdna/aie2_pci.c | Integrates power estimate retrieval into sensor query logic |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: vinit shukla <[email protected]>
No description provided.