Page MenuHomeFreeBSD

paulo_nlink.com.br (Paulo Fragoso)
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 1 2026, 12:50 PM (6 w, 2 d)

Recent Activity

Mon, Mar 23

paulo_nlink.com.br requested review of D56050: hwpmc.4: correct stale default values and update diagnostics.
Mon, Mar 23, 5:11 PM
paulo_nlink.com.br updated the diff for D56029: hwpmc: improve diagnostic messages for invalid tunables.

Address ali_mashtizadeh.com feedback:

Mon, Mar 23, 1:50 AM

Sun, Mar 22

paulo_nlink.com.br requested review of D56029: hwpmc: improve diagnostic messages for invalid tunables.
Sun, Mar 22, 2:32 PM

Mar 12 2026

paulo_nlink.com.br added a comment to D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.

You are correct, thank you for the observation. pmcstat does not exercise amd_get_msr() directly. The correct test path is via pmc_x86_get_msr() from libpmc, which issues a PMC_OP_GETMSR ioctl into the kernel amd_get_msr() code path.
Hardware validation was performed on AMD Ryzen 5 5600X (Family 19h, Zen 3), FreeBSD 16.0-CURRENT (hwpmc-amd-work-n284229-d18be873e2c2):

Mar 12 2026, 2:45 AM · pmc

Mar 3 2026

paulo_nlink.com.br updated the diff for D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.

Added documentation references per Adrian Chadd's review feedback.
Added AMD BKDG 24594 rev 3.37 page 440 and AMD PPR 57930-A0
references to amd_get_msr() comments.

Mar 3 2026, 5:18 PM · pmc

Mar 2 2026

paulo_nlink.com.br updated the summary of D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.
Mar 2 2026, 10:14 PM · pmc
paulo_nlink.com.br updated the diff for D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.

Updated fix based on Ali Mashtizadeh's review feedback.

Mar 2 2026, 10:11 PM · pmc
paulo_nlink.com.br added a comment to D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.

Thank you for pointing to the CMN-600 approach. I've looked at
hwpmc_cmn600.c and I think it will be a good approach for new
hwpmc_amd.c code.

Mar 2 2026, 7:20 PM · pmc
paulo_nlink.com.br added a comment to D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.

Thank you for the clarification. I now understand the RDPMC mapping
from AMD BKDG page 440, including the non-contiguous DF range
(ECX 6-9 and ECX 16-27).

Mar 2 2026, 3:52 AM · pmc
paulo_nlink.com.br updated the diff for D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.

Updated diff: simplified fix to return ri directly as flat RDPMC index.

Mar 2 2026, 2:09 AM · pmc
paulo_nlink.com.br updated the summary of D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.
Mar 2 2026, 2:06 AM · pmc
paulo_nlink.com.br updated the diff for D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.

Updated amd_get_msr() fix based on reviewer feedback from ali_mashtizadeh.

Mar 2 2026, 2:02 AM · pmc
paulo_nlink.com.br updated the diff for D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.

Updated amd_get_msr() fix based on reviewer feedback.

Mar 2 2026, 1:54 AM · pmc

Mar 1 2026

paulo_nlink.com.br updated paulo_nlink.com.br.
Mar 1 2026, 9:11 PM
paulo_nlink.com.br requested review of D55607: hwpmc_amd: fix amd_get_msr() MSR offset for newer counter bases.
Mar 1 2026, 6:47 PM · pmc