User Details
- User Since
- Jul 25 2015, 10:06 AM (590 w, 2 d)
Sat, Nov 14
Thu, Nov 12
I have run this through my checks... there are some findings:
Wed, Nov 11
There are some style issues, you can run run clang-format (not in base, e.g. clang-format19 -i tests/sys/kern/jail_jid_index.c tools/test/jail/jail_get_bench.c) and/or tools/build/checkstyle9.pl to see them:
- 25 lines over 80 columns
- 4 “trailing statements should be on next line”
- 3 “parentheses required on return”
- 2 each: “spaces required around =”, “complex macro needs parentheses”, foo * bar, and comment * alignment
- 1 each: “spaces required around ==”, and braces on a single-statement block
Tue, Nov 10
Mon, Nov 9
Can you please describe why this is needed? Where do you see a performance issue in-practice in a real-world scenario?
Tue, Nov 3
FWIW: I run simple_tx since our discussion about the watchdog on the system which triggered my watchdog changes. I can not tell anything about the performance (heavily under-equiped memory there), but I can not see any obvious ill-effects.
Thu, Oct 29
Oct 13 2026
Oct 10 2026
- Turin, family 1Ah models 00h–0Fh. If I read it correctly, the test calls these Zen 5, but mapfile.csv on the main branch sends them to the amdzen6 tables (added in 178d0b5b8da7 by Ali Mashtizadeh). The test’s result doesn’t change, because the events it expects are in both tables. Can you please check?
- pmu_mux_test: Again, if I read this correctly: Five cases only run on Zen 4. What they test depends on how many core counters there are, not on the CPU generation. Can you please check?
Sep 30 2026
Sep 29 2026
This is interesting. I asked Claude Code to help a bit with the review...
- tests/sys/pmc/Makefile drops existing tests, looks like an updated tree got only your makefile based on an older version
- similar for etc/mtree/BSD.tests.dist (loses changes from Sept 1-5)
- the Kyuafiles are not supposed to be committed (generated), so they should not be in the diff. I suspect an in-src-tree build instead of "make objdir" before the build.
- The helper pmcinfo_thread_count is not built. It moved from PROGS+= to PROGS_TESTSDIR+=, and nothing in share/mk reads that variable. The in-tree way is BINDIR= ${TESTSDIR} plus PROGS+=, as in tests/sys/cam/ctl/Makefile. That missing BINDIR is probably why Paulo's build installed it to /.
Sep 23 2026
Sep 19 2026
unmapped_block now denies the data segments instead of the handshake (tcpdatalen 1000-65535): 71 s -> 1.5 s, and an unfixed kernel panics on it
Superseeded by D59426
Sep 18 2026
Makefiles:
- tests/sys/Makefile descends into tests/sys/amd, which this diff no longer creates.
- tests/sys/pmc/Makefile says SUBDIR+= amd. bsd.test.mk reserves SUBDIR for helper/data dirs; only TESTS_SUBDIRS gets include("amd/Kyuafile") in the parent Kyuafile, so as posted kyua test from /usr/tests are not run. And it's ungated: MK_PMC is default-on everywhere, the C tests need do_cpuid() from <machine/cpufunc.h> (amd64/i386 only) → aarch64/riscv/powerpc break. The architecture guard needs to be here.
- pmc_pidtrack_test is a .c file listed under ATF_TESTS_SH. atf.test.mk makes it depend on pmc_pidtrack_test.sh, which doesn't exist. ATF_TESTS_C is the correct one.
Sep 17 2026
Please update to a recent version of the main branch. You created a new pmc/Makefile, but the tip of main has one already. As-is the patch does not apply, and is not self-sufficient. It also contains a build-host hack (include dir and lib dir pointing hardcoded to /usr/local, whereas ATF should be in the base and doesn't need that. I have seen several internal Jira IDs. Not sure if you want to have that in public. And tests are skipped unless amd.pmc.grouping.runtime is set (which nothing does in this patch). umcdf/amd_umcdf_common.h still uses /dev/cpuctl0 (do_cpuid() went into amd_pmc_test_common.h only). The family/model messages and the AuthenticAMD-25-00-1 fixture names still print hex where the map now has the names.
Sep 15 2026
- End of last month I added some tests/sys/pmc tests. While the items in this review seem to be AMD specific, they are testing parts of the PMC subsystem. I would expect the tests in the pmc directory (if you want in an amd subdirectory, but I have already some amd specific tests in the main OMC directory), than as it is vice versa.
- Is it feasible to use speaking names for model in amd_umcdf_map_zen()?
- hwpmc_exterr_test.c is a near-copy of the in-tree tests/sys/pmc/pmc_exterr_test.c. 13 of 14 case names identical; adds amd_missing_pmu_flag, drops amd_invalid_df_config_bits. Copyright/author line changed from the original.
- The directory never builds. tests/sys/Makefile gains TESTS_SUBDIRS+= ${_amd} but _amd is defined nowhere in the diff (the _pmc/_audit pattern needs the .if … _amd= amd .endif block, and _pmc is also gated on MK_PMC, which this isn't).
- tests/sys/amd/pmc/Makefile starts with a UTF-8 BOM and has no trailing newline. make may choke on the BOM.
- Content for other diffs shipped here. msr_snapshot.[ch] is not compiled ("see follow-on diff").
- The two umcdf/ headers seem to belong to to something that isn't in this diff, yet five pmc tests #include "../umcdf/amd_umcdf_common.h" for Zen-generation decoding. Not sure if the decde should belong together with amd_pmc_test_common.h or with this something else not included here.
- hwpmc_rdpmc_test is in the Makefile and the diff but not in the summary.
- Roughly half the suite is not AMD-specific. The callchain-UR regression (af3929c5152b, 66118c3f1011 — both vendor-neutral hwpmc_mod.c fixes), pmcstat TSC column, group-alloc atomicity, pidtrack, pmc(8) CLI smoke: they only use AMD event names. Under tests/sys/pmc/ with a per-vendor event table they'd cover Intel too. Having this in a vendor-specific subdirectory would need a reorg to add intel support. Better to not use a vendor specific directory (I do not ask someone from AMD to provide the Intel parts, but not making it harder to add them would be polite).
- Vendor detection via /dev/cpuctl0 (needs cpuctl.ko + root) in the C tests vs. kern.hwpmc.cpuid in the sh tests. <machine/cpufunc.h> do_cpuid() needs no device.
- AMDID2_* redefined instead of <machine/specialreg.h>.
- "../amd_pmc_test_common.h" relative includes and -I${SRCTOP}/tests/sys/amd — one is redundant.
Sep 12 2026
Sep 11 2026
I forgot to add the revision in the commit...
https://cgit.freebsd.org/src/commit/?id=26248c370fade359e5303094fb57102d7fcc9c78
Sep 10 2026
Limit the SNAP pullup length via min(m_pkthdr.len, ETHER_HDR_LEN + sizeof(struct llc)), per gallatin@.
Sep 9 2026
Sep 8 2026
Sep 6 2026
Sep 5 2026
The bad: label in the previous revision gets called for ether types 0x88e1 (HomePlug AV management frames) and 0x8912 (not named in sys/net/ethernet.h) via the default: case and with net.link.bridge.pfil_onlyip=1. This looks to me like a policy drop and not an error path. As such I removed that part. Correct me if I get this wrong... (447 such packets in 300s doesn't not sound like an error to me).
rework: the bad: counter is removed; only the fragmentation path is counted
Sep 4 2026
The following part may need to get a rework for this change... investigating...
D59389 has a similar fix for ipfw.
Unit test for the issue in D59389.
Narrowed per markj@: pull up ETHER_HDR_LEN first, the SNAP/LLC header only when the frame is long enough to carry one. No mb_unmapped_to_ext() call. Rebased on current main.
Sep 3 2026
After a bit more digging around. This does not seem only to be a particular problem for the bridge, this is a problem for everything pfil related...
ipfw_check_frame_mbuf() seems to have the same bug (depends on net.link.ether.ipfw=1).
pf's ethernet hook seems to be safe at first look (m_copydata()).
if_enc passes the chain without touching, safe.
dummynet: pulls 14 bytes, so probably safe.
ipfilter: no idea, maybe.
This is a test for the fix in D59332
Unit tests in D59333
Sep 2 2026
This fixes the hang at boot I've seen.
Sep 1 2026
But don't we want the second one to fail?
Why do I want the second one to succeed?
When I run a non-svc start in parllel, I would want only one to succeed (if we think about nginx, or mysql or such).
What if someone hits ctrl-c after taking the lock?
The patchset is now running on the host which needs the watchdog to trigger from time to time. It needs a while to run into the issue.
Aug 30 2026
Aug 29 2026
My build is still running on the old hardware where I can test this.
Quick check, if I get it right:
- this solves the issue where demand is false on the next period.
- this does not solve an issue where ~1 packet per period is send while more than one is in the queue (no idea if this is behavior we can see in the real world): growth every period → demand true every period → armed reaches 4 → still resets.
Aug 27 2026
Aug 23 2026
Aug 22 2026
My tests detect a regression:
