User Details
- User Since
- Dec 14 2014, 5:52 AM (622 w, 3 d)
Today
There is a new pmap_invalidate_range() in pmap_enter_largepage() that should be TLBI_TTL_UNKNOWN.
Yesterday
Sun, Nov 15
Sat, Nov 14
Revise comment.
Explain newpte change.
Fri, Nov 13
Thu, Nov 12
Wed, Nov 11
Tue, Nov 10
Mon, Nov 9
Sun, Nov 8
Sun, Nov 1
Thu, Oct 29
Tue, Oct 20
@dougm needs to look at this.
Oct 19 2026
Oct 18 2026
Oct 12 2026
Oct 11 2026
Oct 10 2026
Oct 9 2026
Oct 7 2026
Oct 6 2026
pmap_enter() should similarly be using a local invalidation when it is upgrading a R/O mapping to R/W. Comparing the amd64 and arm64 pmap_enter()s is what led me to discover all of this.
Oct 4 2026
Oct 3 2026
Here is Claude's summary of a log that I collected on the DevKit:
I've been reviewing places where we already sync the icache or might need to.
Oct 2 2026
Do any of you have access to a machine with IDC, but not DIC, e.g., an older Ampere I think? The results on a small Cortex-X1/A78 system are at best inclusive.
@andrew, Is this what you were asking for? A 16 processor AWS a1.4xlarge, which is Cortex A72-based, sees a small reduction in system time using arm64_pipt_icache_sync_range(). Specifically, the reduction is about 0.75%.
Sep 30 2026
Sep 26 2026
Sep 25 2026
Here is a link to the paper I published a while back on PTE coalescing. At that time, the changes in Linux to exploit small folios were just beginning to get merged.
I've also tested the prior version of this patch on a 32-core machine (c6g.8xlarge), where icache coherence is maintained by the hardware and the sync operation is simply a dsb and an isb. I just wanted to make sure that the patch didn't negatively effect performance on such machines. I compared 18 buildworld runs on HEAD with 22 runs using this patch. The kernel was -NODEBUG, MALLOC PRODUCTION was enabled, and LLVM assertions were disabled. System time actually fell by 7.8 seconds, from 2,060 to 2,052 seconds, because we avoided a couple hundred million dsb and isb instructions at the cost of the flag maintenance. That is 0.4%, which is four times larger than the random error you would expect. User time fell by 21 seconds, or 0.05%, which is probably real but too small to assert a similar claim relative to the random error. Wall-clock time did not change measurably.
PGA_ICACHE_SYNCED and KASSERTs
Rename PGA_MACHDEP0004 to PGA_PMAP_PRIV1.
Sep 24 2026
Sep 23 2026
Sep 20 2026
Sep 9 2026
Tested. It works.
Sep 8 2026
Yes, this will work. I will actually test it later today.
Sep 7 2026
Introduce pmap_page_is_mapped_locked().
Sep 6 2026
I recently updated my Microsoft Dev Kit, and because of this change I'm seeing:
bus_dmamem_alloc failed to align memory properly.
The warning stems from an allocation by the nvme driver:
KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x44 bounce_bus_dmamem_alloc() at bounce_bus_dmamem_alloc+0x258 nvme_ctrlr_start() at nvme_ctrlr_start+0xbc8 nvme_ctrlr_start_config_hook() at nvme_ctrlr_start_config_hook+0x5ec run_interrupt_driven_config_hooks() at run_interrupt_driven_config_hooks+0x94 boot_run_interrupt_driven_config_hooks() at boot_run_interrupt_driven_config_hooks+0x30 mi_startup() at mi_startup+0x1ec virtdone() at virtdone+0x70
An added printf reports:
vaddr: 0xffffa000847d3f40, paddr: 1047d3f40, alignment: 1000
In this case, the misalignment appears to be harmless because page size alignment isn't actually needed.
Sep 4 2026
Aug 31 2026
I'm testing this patch on an EC2 a1.4xlarge (16x Cortex A72) machine to see the greatest impact. (This is the entire machine, so there isn't any variance due to other VMs on the machine.) I added a COUNTER_U64 to track icache flushes by the pmap. As expected, this patch results in an increased icache flush count, since we were not flushing on creating executable superpage mappings. During a -j16 buildworld on a -NODEBUG kernel, PRODUCTION malloc, and LLVM with assertions disabled, the number of flushes goes from ~190M to ~230M and wall clock time goes from ~2:09:10 to ~2:10:00. In particular, system time increased by ~6%.
Aug 29 2026
I uncovered this while resurrecting an old patch for reducing the number of icache flushes. If all goes well, I will post that in a week or two.
I'm curious as to why this isn't also a problem for the uses of .arch_extension in arm64/vfp.c, arm64/mte.c, and include/atomic.h?
Aug 18 2026
Revise a comment.
Aug 15 2026
Move td = curthread; out of the critical section.
