Page MenuHomeFreeBSD

x86: add AMD RAPL MSR definitions to specialreg.h
ClosedPublic

Authored by afscoelho_gmail.com on Jul 3 2026, 6:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 2, 10:06 AM
Unknown Object (File)
Wed, Sep 2, 7:51 AM
Unknown Object (File)
Wed, Sep 2, 1:33 AM
Unknown Object (File)
Fri, Aug 28, 12:39 PM
Unknown Object (File)
Thu, Aug 27, 7:24 PM
Unknown Object (File)
Wed, Aug 26, 8:38 AM
Unknown Object (File)
Sat, Aug 22, 3:59 AM
Unknown Object (File)
Wed, Aug 19, 7:31 PM
Subscribers

Details

Summary

specialreg.h is the tree's MSR registry and already carries the Intel
RAPL group. Add the AMD RAPL package/core energy and unit MSRs here so
the hwpmc RAPL class can reference them without a private driver copy.
Use the names Linux's msr-index.h gives these registers.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jul 9 2026, 6:22 PM

hi, it would be better to commit D57759, right? I can commit that patch for you.

Hi, thanks for the offer. I would prefer not to commit D57759. I plan to discard it and continue with D58027 as part of the current hwpmc RAPL stack, since D58027 has the structure I want for this work

This revision now requires review to proceed.Jul 27 2026, 7:10 PM

Ok! I would like to confirm something with you before committing:

  1. Author info: Andre Silva <andasilv@amd.com>
  2. Sponsored by: Advanced Micro Devices (AMD)

Are the both desired information you expected?

Ok! I would like to confirm something with you before committing:

  1. Author info: Andre Silva <andasilv@amd.com>
  2. Sponsored by: Advanced Micro Devices (AMD)

Are the both desired information you expected?

Yes, they are. Thanks!

This revision was not accepted when it landed; it landed in state Needs Review.Jul 28 2026, 3:02 PM
This revision was automatically updated to reflect the committed changes.

Ok! I would like to confirm something with you before committing:

  1. Author info: Andre Silva <andasilv@amd.com>
  2. Sponsored by: Advanced Micro Devices (AMD)

Are the both desired information you expected?

Yes, they are. Thanks!

Sorry to interfere @aokblast, but I was ready to commit the whole series and just did so.

Ok! I would like to confirm something with you before committing:

  1. Author info: Andre Silva <andasilv@amd.com>
  2. Sponsored by: Advanced Micro Devices (AMD)

Are the both desired information you expected?

Yes, they are. Thanks!

Sorry to interfere @aokblast, but I was ready to commit the whole series and just did so.

Sure. It is fine. I just want to make sure who contributes FreeBSD spend much time on waiting.