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
F166863117: D58027.id182818.diff
Mon, Aug 17, 6:33 AM
Unknown Object (File)
Wed, Aug 12, 11:32 PM
Unknown Object (File)
Sun, Aug 9, 7:35 PM
Unknown Object (File)
Sun, Aug 9, 4:42 AM
Unknown Object (File)
Sat, Aug 8, 6:52 PM
Unknown Object (File)
Sat, Aug 8, 3:50 PM
Unknown Object (File)
Sat, Aug 8, 3:47 PM
Unknown Object (File)
Sat, Aug 8, 4:56 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 75176
Build 72059: arc lint + arc unit

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.Mon, Jul 27, 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.Tue, Jul 28, 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.