Skip to content

Conversation

@VinitAmd
Copy link
Contributor

@VinitAmd VinitAmd commented Oct 6, 2025

No description provided.

@maxzhen maxzhen requested a review from houlz0507 October 6, 2025 20:51
@VinitAmd VinitAmd force-pushed the npu_matix branch 2 times, most recently from 6f9f36b to 8c62136 Compare October 7, 2025 07:24
@VinitAmd VinitAmd changed the title [DO NOT MERGE] Npu metrics debug [DO NOT MERGE] Add real time pmf npu metrics Oct 7, 2025
@VinitAmd VinitAmd changed the title [DO NOT MERGE] Add real time pmf npu metrics Add real time pmf npu metrics Oct 7, 2025
@VinitAmd VinitAmd marked this pull request as ready for review October 8, 2025 05:33
@VinitAmd VinitAmd changed the title Add real time pmf npu metrics Add real time pmf npu metrics for xrt-smi power estimate. Oct 9, 2025
Copilot AI review requested due to automatic review settings November 24, 2025 06:26
Copy link
Contributor

Copilot AI left a 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.

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

Successfully merging this pull request may close these issues.

2 participants