Page MenuHomeFreeBSD

afscoelho_gmail.com (Andre Silva)
User

Projects

User Details

User Since
Nov 25 2019, 10:59 AM (346 w, 4 d)

Recent Activity

Thu, Jul 16

afscoelho_gmail.com added a reviewer for D58256: hwpmc/amd: add PerfMonV2 global-control path: davichazbh_gmail.com.
Thu, Jul 16, 12:31 PM
afscoelho_gmail.com added a reviewer for D58028: hwpmc: add RAPL energy-counter class (AMD + Intel): davichazbh_gmail.com.
Thu, Jul 16, 12:29 PM

Wed, Jul 15

afscoelho_gmail.com updated the diff for D58256: hwpmc/amd: add PerfMonV2 global-control path.
Wed, Jul 15, 11:36 PM
afscoelho_gmail.com added a comment to D58256: hwpmc/amd: add PerfMonV2 global-control path.

Maybe I'm missing something but it doesn't look like this feature is completely implemented.

Wed, Jul 15, 10:48 PM
afscoelho_gmail.com added a reviewer for D58256: hwpmc/amd: add PerfMonV2 global-control path: anascime_amd.com.
Wed, Jul 15, 2:30 PM
afscoelho_gmail.com requested review of D58256: hwpmc/amd: add PerfMonV2 global-control path.
Wed, Jul 15, 1:46 PM

Tue, Jul 14

afscoelho_gmail.com added inline comments to D58029: libpmc: userland support and pmc.rapl.3 for the RAPL class.
Tue, Jul 14, 10:30 PM
afscoelho_gmail.com updated the diff for D58029: libpmc: userland support and pmc.rapl.3 for the RAPL class.

Address review: use explicit 'ctrspec != NULL' in rapl_allocate_pmc (mhorne, style(9)).

Tue, Jul 14, 10:24 PM
afscoelho_gmail.com updated the diff for D58029: libpmc: userland support and pmc.rapl.3 for the RAPL class.

Address review feedback: drop the unneeded (int) casts on pe in rapl_allocate_pmc, since the RAPL bounds are enum pmc_event members (mhorne); reword the microjoule-scaling sentence and describe wrap handling as a virtual 64-bit counter in pmc.rapl.3 (ali_mashtizadeh).

Tue, Jul 14, 7:51 PM

Mon, Jul 13

afscoelho_gmail.com added a comment to D58028: hwpmc: add RAPL energy-counter class (AMD + Intel).

LGTM. Ali, I will follow your lead that this is the most useful way to expose these counters.

Please also bump PMC_VERSION_MINOR in sys/sys/pmc.h.

Mon, Jul 13, 4:47 PM
afscoelho_gmail.com added inline comments to D58028: hwpmc: add RAPL energy-counter class (AMD + Intel).
Mon, Jul 13, 4:43 PM
afscoelho_gmail.com updated the diff for D58028: hwpmc: add RAPL energy-counter class (AMD + Intel).
Mon, Jul 13, 4:40 PM
afscoelho_gmail.com updated the diff for D58028: hwpmc: add RAPL energy-counter class (AMD + Intel).
Mon, Jul 13, 4:25 PM

Mon, Jul 6

afscoelho_gmail.com updated the diff for D58028: hwpmc: add RAPL energy-counter class (AMD + Intel).

Gate the RAPL class on a pmc_rapl_present() probe (AMDPM_RAPL CPUID bit on AMD/Hygon, unit-MSR rdmsr_safe on both vendors) instead of reserving a slot and dropping it on failure; move the guard tick prototype to the top of hwpmc_rapl.c; note RAPL in the amd64/i386 pmc_mdep.h class lists.

Mon, Jul 6, 4:02 PM
afscoelho_gmail.com added inline comments to D58028: hwpmc: add RAPL energy-counter class (AMD + Intel).
Mon, Jul 6, 4:00 PM

Fri, Jul 3

afscoelho_gmail.com abandoned D55603: amdrapl: Introduce amdrapl driver.

Superseded by an hwpmc-integrated implementation, per review feedback to integrate RAPL into hwpmc(4) rather than ship a standalone driver. The new work is a three-part stack:

Fri, Jul 3, 6:31 PM
afscoelho_gmail.com added reviewers for D58029: libpmc: userland support and pmc.rapl.3 for the RAPL class: gnn, mhorne, alfredo, janeri_gmail.com, raghavendra.kt_amd.com, pmc.
Fri, Jul 3, 6:18 PM
afscoelho_gmail.com added reviewers for D58027: x86: add AMD RAPL MSR definitions to specialreg.h: gnn, mhorne, alfredo, janeri_gmail.com, raghavendra.kt_amd.com, pmc.
Fri, Jul 3, 6:18 PM
afscoelho_gmail.com added reviewers for D58028: hwpmc: add RAPL energy-counter class (AMD + Intel): mhorne, alfredo, janeri_gmail.com, raghavendra.kt_amd.com, pmc.
Fri, Jul 3, 6:15 PM
afscoelho_gmail.com requested review of D58029: libpmc: userland support and pmc.rapl.3 for the RAPL class.
Fri, Jul 3, 6:00 PM
afscoelho_gmail.com requested review of D58028: hwpmc: add RAPL energy-counter class (AMD + Intel).
Fri, Jul 3, 6:00 PM
afscoelho_gmail.com requested review of D58027: x86: add AMD RAPL MSR definitions to specialreg.h.
Fri, Jul 3, 6:00 PM

Thu, Jun 25

afscoelho_gmail.com added a comment to D55603: amdrapl: Introduce amdrapl driver.

Just to follow up with our call can you quickly layout the plan for integrating with:

  1. hwpmc
  2. You don't need to implement it but are we going to use one driver for Intel/AMD? I'd like the hwpmc counters exposed in a unified way like Linux does.
Thu, Jun 25, 8:34 PM

Tue, Jun 23

afscoelho_gmail.com added a comment to D55603: amdrapl: Introduce amdrapl driver.

Note that package power readings are strongly affected by CPU idle state.

Tue, Jun 23, 2:04 PM
afscoelho_gmail.com added a comment to D55603: amdrapl: Introduce amdrapl driver.

Just a summary of this driver interface.

Tue, Jun 23, 1:10 PM
afscoelho_gmail.com updated subscribers of D55603: amdrapl: Introduce amdrapl driver.
Tue, Jun 23, 2:57 AM
afscoelho_gmail.com updated subscribers of D55603: amdrapl: Introduce amdrapl driver.
Tue, Jun 23, 2:57 AM
afscoelho_gmail.com updated the summary of D55603: amdrapl: Introduce amdrapl driver.
Tue, Jun 23, 2:51 AM
afscoelho_gmail.com abandoned D57760: amdrapl: add AMD RAPL energy/power telemetry driver.

Abandoning this duplicate review. The driver update has been moved to the original continued review D55603, which now sits on top of D57758 and D57759.

Tue, Jun 23, 2:50 AM
afscoelho_gmail.com added a comment to D55603: amdrapl: Introduce amdrapl driver.

Correcting the stack: this driver update continues D55603 and depends on the prerequisite AMD RAPL MSR definitions in D57759.

Tue, Jun 23, 2:50 AM
afscoelho_gmail.com updated the diff for D55603: amdrapl: Introduce amdrapl driver.

Correct stack onto D55603 and add Co-authored-by trailer for ShengYi Hung.

Tue, Jun 23, 2:50 AM
afscoelho_gmail.com updated the diff for D57759: x86: add AMD RAPL MSR and feature-bit definitions.

Correct stack onto D55603 and add Co-authored-by trailer for ShengYi Hung.

Tue, Jun 23, 2:50 AM
afscoelho_gmail.com updated the diff for D57758: x86: add cpu_get_pkg_id() and cpu_get_core_id() topology helpers.

Correct stack onto D55603 and add Co-authored-by trailer for ShengYi Hung.

Tue, Jun 23, 2:50 AM
afscoelho_gmail.com requested review of D57760: amdrapl: add AMD RAPL energy/power telemetry driver.
Tue, Jun 23, 2:36 AM
afscoelho_gmail.com requested review of D57759: x86: add AMD RAPL MSR and feature-bit definitions.
Tue, Jun 23, 2:36 AM
afscoelho_gmail.com requested review of D57758: x86: add cpu_get_pkg_id() and cpu_get_core_id() topology helpers.
Tue, Jun 23, 2:36 AM

Jun 9 2026

afscoelho_gmail.com updated subscribers of D55603: amdrapl: Introduce amdrapl driver.
Jun 9 2026, 1:24 PM
afscoelho_gmail.com added a comment to D55603: amdrapl: Introduce amdrapl driver.

Hi @aokblast, just a heads-up that I've taken ownership of this revision to carry it forward. Thanks for laying the groundwork with the initial driver; I'll credit you with a Co-authored-by: trailer on the commit. I'll be pushing an updated diff shortly. Feel free to stay subscribed, your feedback is welcome!

Jun 9 2026, 1:19 PM
afscoelho_gmail.com commandeered D55603: amdrapl: Introduce amdrapl driver from aokblast.
Jun 9 2026, 1:10 PM

Jun 8 2026

afscoelho_gmail.com added a comment to D55603: amdrapl: Introduce amdrapl driver.

Hi @aokblast, thanks for starting amdrapl!. I've been working on top of this driver and would like to carry the review forward to land. Would you be willing to reassign this revision to me, or add me so I can arc update it? Happy to keep you as co-author on the commit (I've added a Co-authored-by: trailer crediting you). I did work that covers on-demand energy sampling and socket-aware package mapping for example

Jun 8 2026, 8:04 PM
afscoelho_gmail.com updated subscribers of D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

@alfredo

Jun 8 2026, 4:22 PM

Jun 5 2026

afscoelho_gmail.com added a member for pmc: afscoelho_gmail.com.
Jun 5 2026, 3:38 PM

May 26 2026

afscoelho_gmail.com added a comment to D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

@ali_mashtizadeh.com

May 26 2026, 12:35 PM

May 25 2026

afscoelho_gmail.com added a comment to D55603: amdrapl: Introduce amdrapl driver.

Hi @aokblast, I've found your rapl driver for amd and I'm interested in continuing the work. It's been sitting since March and I'd like to pick it up. Are you still planning to work on it, or would you be OK with me taking over? Thanks

May 25 2026, 6:51 PM

May 22 2026

afscoelho_gmail.com updated the diff for D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

v2: inline start helpers, simplify NMI re-arm path

May 22 2026, 6:55 PM
afscoelho_gmail.com added a comment to D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

Thanks Andre for all the hard work sorry to point out one more change.

I’m concerned with those wrmsr’s and I think it was a Zen2 errata I remember I was able to reproduce. I think you should just have avoided refactoring the start code in this change or just keep the middle bit that sets the main ctl values, the zero’ing.

If you’re going to work on RAPL, can I take a lock on hwpmc_ibs.[ch] so I can rebase and merge tools.

@mhorne @imp

I need to push the my tools its going to be a series of patches and fix two things:

  • Improve the man page based on my experience with the tools
  • Add the heuristics I got from userspace to cleanup the events reported to honor CAP_USER/SYSTEM this is needed even with Bit63 filtering.
May 22 2026, 6:51 PM

May 21 2026

afscoelho_gmail.com added a comment to D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

Thanks for the review, Ali.

May 21 2026, 5:41 PM
afscoelho_gmail.com updated the diff for D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

Address ali_mashtizadeh.com review feedback

May 21 2026, 5:36 PM
afscoelho_gmail.com updated the diff for D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

Address ali_mashtizadeh.com review feedback

May 21 2026, 5:35 PM

May 19 2026

afscoelho_gmail.com added a comment to D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

Thanks for the review, mhorne. Addressed all six comments in the latest diff. PTAL when you get a chance.

May 19 2026, 7:53 PM
afscoelho_gmail.com updated the diff for D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

Address mhorne review feedback

May 19 2026, 7:49 PM
afscoelho_gmail.com added inline comments to D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.
May 19 2026, 7:38 PM
afscoelho_gmail.com updated subscribers of D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable.

@mashtizadeh_gmail.com

May 19 2026, 1:34 PM
afscoelho_gmail.com edited reviewers for D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable, added: mhorne; removed: gnn.
May 19 2026, 1:32 PM

May 13 2026

afscoelho_gmail.com published D56914: hwpmc: Add Zen6 IBS ctl2 filters and alternate disable for review.
May 13 2026, 6:58 PM

Feb 25 2021

afscoelho_gmail.com updated the diff for D25785: Fix mpr driver endianness.

Add mpr driver into GENERIC64LE configuration.

Feb 25 2021, 7:57 PM · PowerPC

Feb 15 2021

afscoelho_gmail.com updated the diff for D26040: Fix mprutil endianness.

Fixes after review. Make mps_read_extended_config_page return IOCStatus already byte-swapped. Other missing swaps fixed. Updated man page with TODO about flash operations not working on BE.

Feb 15 2021, 6:09 PM · PowerPC

Nov 23 2020

afscoelho_gmail.com added inline comments to D26531: mrsas: Add big-endian support.
Nov 23 2020, 6:01 PM · PowerPC
afscoelho_gmail.com updated the diff for D26531: mrsas: Add big-endian support.
Nov 23 2020, 5:58 PM · PowerPC

Nov 13 2020

afscoelho_gmail.com added a comment to D26531: mrsas: Add big-endian support.

Any comment on this?

Nov 13 2020, 12:49 PM · PowerPC

Nov 12 2020

afscoelho_gmail.com added a comment to D25785: Fix mpr driver endianness.

Someone any additional comment on this?

Nov 12 2020, 2:33 PM · PowerPC

Oct 30 2020

afscoelho_gmail.com updated the diff for D25785: Fix mpr driver endianness.

Review fixes.

Oct 30 2020, 5:58 PM · PowerPC

Oct 22 2020

afscoelho_gmail.com added inline comments to D25785: Fix mpr driver endianness.
Oct 22 2020, 5:52 PM · PowerPC

Oct 21 2020

afscoelho_gmail.com added a reviewer for D25785: Fix mpr driver endianness: scottl.
Oct 21 2020, 4:23 PM · PowerPC
afscoelho_gmail.com added a reviewer for D26531: mrsas: Add big-endian support: sumit.saxena_broadcom.com.
Oct 21 2020, 4:21 PM · PowerPC

Oct 1 2020

afscoelho_gmail.com updated the summary of D26531: mrsas: Add big-endian support.
Oct 1 2020, 1:28 PM · PowerPC

Sep 23 2020

afscoelho_gmail.com requested review of D26531: mrsas: Add big-endian support.
Sep 23 2020, 5:11 PM · PowerPC
afscoelho_gmail.com abandoned D23990: powerpc: EARLY_AP_STARTUP support investigation.
Sep 23 2020, 4:15 PM · PowerPC

Aug 12 2020

afscoelho_gmail.com requested review of D26040: Fix mprutil endianness.
Aug 12 2020, 1:39 PM · PowerPC

Aug 3 2020

afscoelho_gmail.com updated the diff for D25785: Fix mpr driver endianness.

Review comments fixes.

Aug 3 2020, 6:11 PM · PowerPC

Jul 28 2020

afscoelho_gmail.com updated the diff for D25785: Fix mpr driver endianness.

Comments and indentation.

Jul 28 2020, 6:55 PM · PowerPC

Jul 27 2020

afscoelho_gmail.com added inline comments to D25785: Fix mpr driver endianness.
Jul 27 2020, 6:30 PM · PowerPC

Jul 23 2020

afscoelho_gmail.com requested review of D25785: Fix mpr driver endianness.
Jul 23 2020, 12:18 PM · PowerPC

Jul 2 2020

afscoelho_gmail.com added inline comments to D25416: Make access to VirtIO configuration to mips architecture..
Jul 2 2020, 2:45 PM · PowerPC, MIPS

Jun 5 2020

afscoelho_gmail.com added a comment to D23401: Make access to VirtIO configuration with proper endianness on big endian platforms.

This commit appears to have broken using QEMU MALTA (MIPS64 BE) with -device virtio-rng-pci.
With this change I get an infinite loop on boot that goes away if I revert it:

Jun 5 2020, 5:28 PM · PowerPC

Apr 1 2020

afscoelho_gmail.com added a comment to D23990: powerpc: EARLY_AP_STARTUP support investigation.

What do you plan to do to continue this work?

Apr 1 2020, 8:18 PM · PowerPC

Mar 20 2020

afscoelho_gmail.com updated the diff for D24102: Set moea64_bpvo_pool_size based on physical memory.

Print information message about number of bpvo pool entries and memory used by this pool when booting in verbose mode.

Mar 20 2020, 8:50 PM · PowerPC
afscoelho_gmail.com added inline comments to D24102: Set moea64_bpvo_pool_size based on physical memory.
Mar 20 2020, 5:53 PM · PowerPC
afscoelho_gmail.com added inline comments to D24102: Set moea64_bpvo_pool_size based on physical memory.
Mar 20 2020, 2:48 PM · PowerPC

Mar 19 2020

afscoelho_gmail.com updated the diff for D24102: Set moea64_bpvo_pool_size based on physical memory.

Style (indentation, comparison) fixes.

Mar 19 2020, 12:42 PM · PowerPC

Mar 18 2020

afscoelho_gmail.com updated the diff for D24102: Set moea64_bpvo_pool_size based on physical memory.

Adjust moea64_bpvo_pool_size value only if hw_direct_map is false, otherwise set it to previous hard-coded value.

Mar 18 2020, 8:21 PM · PowerPC
afscoelho_gmail.com updated the summary of D24102: Set moea64_bpvo_pool_size based on physical memory.
Mar 18 2020, 4:58 PM · PowerPC

Mar 17 2020

afscoelho_gmail.com added reviewers for D24102: Set moea64_bpvo_pool_size based on physical memory: bdragon, jhibbits.
Mar 17 2020, 7:08 PM · PowerPC
afscoelho_gmail.com created D24102: Set moea64_bpvo_pool_size based on physical memory.
Mar 17 2020, 5:53 PM · PowerPC

Mar 13 2020

afscoelho_gmail.com added a member for PowerPC: afscoelho_gmail.com.
Mar 13 2020, 8:19 PM

Mar 6 2020

afscoelho_gmail.com created D23990: powerpc: EARLY_AP_STARTUP support investigation.
Mar 6 2020, 6:52 PM · PowerPC

Jan 31 2020

afscoelho_gmail.com updated the diff for D23401: Make access to VirtIO configuration with proper endianness on big endian platforms.

Removing blank line.

Jan 31 2020, 12:57 PM · PowerPC
afscoelho_gmail.com updated the diff for D23401: Make access to VirtIO configuration with proper endianness on big endian platforms.

Removing extra white spaces.

Jan 31 2020, 12:33 PM · PowerPC

Jan 30 2020

afscoelho_gmail.com added a comment to D23401: Make access to VirtIO configuration with proper endianness on big endian platforms.

Thanks @bryanv for the review.

Jan 30 2020, 6:48 PM · PowerPC
afscoelho_gmail.com updated the diff for D23401: Make access to VirtIO configuration with proper endianness on big endian platforms.

Use the vtpci_write_config in vtpci_write_header macros for consistency. Typo fixes.

Jan 30 2020, 6:45 PM · PowerPC
afscoelho_gmail.com updated the diff for D23401: Make access to VirtIO configuration with proper endianness on big endian platforms.

Use functions htole16 and htole32 when writing VirtIO header instead of le16toh and le32toh for better comprehension.

Jan 30 2020, 5:34 PM · PowerPC
afscoelho_gmail.com added a comment to D23401: Make access to VirtIO configuration with proper endianness on big endian platforms.
In D23401#513986, @alfredo.junior_eldorado.org.br wrote:

nice job @afscoelho_gmail.com !
I just tried your patch in a image uploaded to a POWER8 instance at https://openpower.ic.unicamp.br/minicloud/ and it worked out of the box.
Please check my comment on the diff.

Jan 30 2020, 5:24 PM · PowerPC
afscoelho_gmail.com added a comment to D23401: Make access to VirtIO configuration with proper endianness on big endian platforms.

Ohhhhhh, so THAT is why this has been such a headache?

This is an awesome find.

Jan 30 2020, 5:21 PM · PowerPC

Jan 28 2020

afscoelho_gmail.com created D23401: Make access to VirtIO configuration with proper endianness on big endian platforms.
Jan 28 2020, 5:39 PM · PowerPC