Page MenuHomeFreeBSD

dougm (Doug Moore)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 30 2017, 3:18 PM (359 w, 2 d)

Tauist. Bit twiddler. Advocate for continued logarithms.

Recent Activity

Today

dougm updated the diff for D45213: vm: pair up conversion macros.

Make changes to address feedback.

Mon, May 20, 6:22 AM

Sat, May 18

dougm updated the diff for D45235: libkern: add ilog2 helpers.

Rename (function) ilog2 so that it differs from (macro) ilog2. Rename the other functions too, and make the parameter name the same across all ilog2 functions/macros.

Sat, May 18, 12:46 AM

Fri, May 17

dougm updated the diff for D45235: libkern: add ilog2 helpers.

Drop the ilog2 definition from log2.h.

Fri, May 17, 8:03 PM
dougm added inline comments to D45235: libkern: add ilog2 helpers.
Fri, May 17, 8:02 PM
dougm requested review of D45235: libkern: add ilog2 helpers.
Fri, May 17, 7:49 PM
dougm added inline comments to D45170: libkern: add ilog2 helpers.
Fri, May 17, 6:53 PM
dougm added inline comments to D45170: libkern: add ilog2 helpers.
Fri, May 17, 6:41 PM

Thu, May 16

dougm requested review of D45213: vm: pair up conversion macros.
Thu, May 16, 7:46 AM

Wed, May 15

dougm added inline comments to D45170: libkern: add ilog2 helpers.
Wed, May 15, 4:27 PM

Tue, May 14

dougm added a reviewer for D45170: libkern: add ilog2 helpers: markj.
Tue, May 14, 10:05 PM
dougm committed rGb5a1f0406b9d: arm64_pmap: narrow scope of bti_same test (authored by dougm).
arm64_pmap: narrow scope of bti_same test
Tue, May 14, 4:24 AM
dougm closed D45160: arm64_pmap: narrow scope of bti_same test.
Tue, May 14, 4:24 AM

Mon, May 13

dougm updated the diff for D45160: arm64_pmap: narrow scope of bti_same test.

Remove unneeded KASSERT.

Mon, May 13, 5:41 PM

Sun, May 12

dougm added a comment to D45170: libkern: add ilog2 helpers.

@whu: This change would drop the definition of ilog2 that you included in sys/dev/mana/gdma_util.h. However, that function, called ilog2(x), actually returns x + log2(x), because it initializes 'log' to x, and not to 0.

Sun, May 12, 9:29 PM
dougm updated subscribers of D45170: libkern: add ilog2 helpers.
Sun, May 12, 9:24 PM
dougm added a comment to D45170: libkern: add ilog2 helpers.

powerpc64 is a trickier beast. You need to 'make TARGET=powerpc TARGET_ARCH=powerpc64 ...' (explicitly specify TARGET_ARCH)

Sun, May 12, 9:22 PM
dougm added a comment to D45170: libkern: add ilog2 helpers.

PPC LGTM. If you haven't, test a buildkernel with MPC85XX (powerpc) and QORIQ64 (powerpc64) just to be safe.

Sun, May 12, 8:58 PM
dougm updated the diff for D45170: libkern: add ilog2 helpers.

Change ilog2 to ilog2l where appropriate. Drop bslr, since it's just another name for ilog2l.

Sun, May 12, 8:23 PM
dougm updated the diff for D45170: libkern: add ilog2 helpers.

Others have used the ilog2 name for the same function. Drop those other definitions.

Sun, May 12, 7:17 PM
dougm requested review of D45170: libkern: add ilog2 helpers.
Sun, May 12, 6:47 PM
dougm updated the diff for D41237: radix_tree: for lookup_le find low bits better.

Update to leave out vm_radix.c.

Sun, May 12, 8:53 AM

Sat, May 11

dougm updated the diff for D40574: vm_phys: drop range checks from free pages loop.

Calculate the loop bound a little more efficiently. Reorder some computations within the loop to use fewer registers.

Sat, May 11, 6:27 PM
dougm requested review of D45160: arm64_pmap: narrow scope of bti_same test.
Sat, May 11, 6:57 AM
dougm closed D44699: arm64: add page-to-pte convenience macros.
Sat, May 11, 6:07 AM
dougm committed rGc1ebd76c3f28: arm64: add page-to-pte convenience macros (authored by dougm).
arm64: add page-to-pte convenience macros
Sat, May 11, 6:07 AM
dougm updated the diff for D44699: arm64: add page-to-pte convenience macros.

Move macro definitions, as suggested.

Sat, May 11, 5:33 AM

Mon, Apr 22

dougm committed rGdd03eafacba9: riscv: create a convenience composite macro (authored by dougm).
riscv: create a convenience composite macro
Mon, Apr 22, 12:59 AM
dougm closed D44700: riscv: create a convenience composite macro.
Mon, Apr 22, 12:59 AM

Apr 13 2024

dougm updated the diff for D44700: riscv: create a convenience composite macro.

Restore pmap_load calls dropped from pmap_unwire_ptp.

Apr 13 2024, 7:25 PM

Apr 10 2024

dougm accepted D44667: vm_reserv_reclaim_contig: Return NULL not false.
Apr 10 2024, 9:40 AM · Contributor Reviews (src)

Apr 9 2024

dougm updated the diff for D44699: arm64: add page-to-pte convenience macros.

Combine two short lines into one.

Apr 9 2024, 9:27 PM
dougm requested review of D44700: riscv: create a convenience composite macro.
Apr 9 2024, 6:15 PM
dougm requested review of D44699: arm64: add page-to-pte convenience macros.
Apr 9 2024, 6:10 PM

Apr 7 2024

dougm committed rG1526667bc6e2: vm_reserv: Add vm_reserv_is_populated (authored by dougm).
vm_reserv: Add vm_reserv_is_populated
Apr 7 2024, 5:30 PM
dougm closed D44575: arm64 pmap: Add ATTR_CONTIGUOUS support [Part 2].
Apr 7 2024, 5:29 PM
dougm added inline comments to D44575: arm64 pmap: Add ATTR_CONTIGUOUS support [Part 2].
Apr 7 2024, 8:43 AM

Apr 6 2024

dougm added inline comments to D44575: arm64 pmap: Add ATTR_CONTIGUOUS support [Part 2].
Apr 6 2024, 8:02 PM
dougm accepted D44646: swap_pager: Unbusy readahead pages after an I/O error.
Apr 6 2024, 7:13 PM
dougm added inline comments to D44575: arm64 pmap: Add ATTR_CONTIGUOUS support [Part 2].
Apr 6 2024, 8:18 AM
dougm added inline comments to D44575: arm64 pmap: Add ATTR_CONTIGUOUS support [Part 2].
Apr 6 2024, 7:15 AM
dougm added inline comments to D44575: arm64 pmap: Add ATTR_CONTIGUOUS support [Part 2].
Apr 6 2024, 7:05 AM

Jan 29 2024

dougm accepted D43636: vm_phys: Add a vm_phys_seg_paddr_to_vm_page() helper.
Jan 29 2024, 4:54 PM

Jan 28 2024

dougm accepted D43636: vm_phys: Add a vm_phys_seg_paddr_to_vm_page() helper.
Jan 28 2024, 6:28 PM
dougm added inline comments to D38852: vm: improve kstack_object pindex calculation scheme to avoid pindex holes.
Jan 28 2024, 5:22 AM
dougm added inline comments to D38852: vm: improve kstack_object pindex calculation scheme to avoid pindex holes.
Jan 28 2024, 5:09 AM

Dec 21 2023

dougm updated the diff for D41335: vm_phys: speed up unfree_page search.

Refresh, seeking review.

Dec 21 2023, 5:03 AM
dougm committed rG6dd15b7a233a: vm_phys; fix uncalled free_contig (authored by dougm).
vm_phys; fix uncalled free_contig
Dec 21 2023, 3:43 AM
dougm closed D42891: vm_phys; fix uncalled free_contig.
Dec 21 2023, 3:43 AM

Dec 19 2023

dougm updated the diff for D42891: vm_phys; fix uncalled free_contig.
Dec 19 2023, 6:37 PM

Dec 18 2023

dougm added a reviewer for D42891: vm_phys; fix uncalled free_contig: markj.
Dec 18 2023, 9:05 PM

Dec 15 2023

dougm updated the test plan for D42891: vm_phys; fix uncalled free_contig.
Dec 15 2023, 10:08 AM

Dec 4 2023

dougm requested review of D42891: vm_phys; fix uncalled free_contig.
Dec 4 2023, 5:16 AM

Nov 29 2023

dougm added inline comments to D42698: bitstring: Support large bit strings..
Nov 29 2023, 3:34 AM

Nov 25 2023

dougm committed rG210fce73ae0e: vm_phys: fix freelist_contig (authored by dougm).
vm_phys: fix freelist_contig
Nov 25 2023, 1:27 AM

Nov 24 2023

dougm added inline comments to D42706: Avoid waiting on physical allocations that can't possibly be satisfied.
Nov 24 2023, 3:33 AM

Nov 23 2023

dougm added inline comments to D42698: bitstring: Support large bit strings..
Nov 23 2023, 7:55 AM
dougm added inline comments to D42706: Avoid waiting on physical allocations that can't possibly be satisfied.
Nov 23 2023, 7:42 AM

Nov 15 2023

dougm committed rG2a4897bd4e1b: vm_phys: fix freelist_contig (authored by dougm).
vm_phys: fix freelist_contig
Nov 15 2023, 9:38 AM
dougm closed D42509: vm_phys: fix freelist_contig.
Nov 15 2023, 9:38 AM

Nov 13 2023

dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Fix typos identified by @markj.

Nov 13 2023, 5:21 PM

Nov 12 2023

dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Edit a couple of comments.

Nov 12 2023, 10:06 PM

Nov 11 2023

dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Add assertion. Add/update some comments.

Nov 11 2023, 10:36 PM
dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Fix a comment, suggested by @alc.

Nov 11 2023, 9:47 PM
dougm updated the diff for D42509: vm_phys: fix freelist_contig.

For @alc, change a semicolon to empty braces.

Nov 11 2023, 8:20 PM
dougm added inline comments to D42509: vm_phys: fix freelist_contig.
Nov 11 2023, 8:19 PM
dougm updated the diff for D42509: vm_phys: fix freelist_contig.

As @alc suggests, remove a redundant assertion (aren't they all redundant?), and a pointless NULL check, and a comment which in no way improved performance.

Nov 11 2023, 8:00 PM
dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Apply @alc suggestions. Remove some inessential parts.

Nov 11 2023, 7:39 PM

Nov 10 2023

dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Fix an assertion identified by @markj.

Nov 10 2023, 8:00 PM
dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Address feedback from @alc.

Nov 10 2023, 7:37 PM
dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Re-enter an iterator for checking empty blocks.

Nov 10 2023, 3:49 AM
dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Add a missing assignment.

Nov 10 2023, 3:15 AM

Nov 9 2023

dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Apply suggestions from @markj.

Nov 9 2023, 8:25 PM
dougm updated the diff for D42509: vm_phys: fix freelist_contig.

Don't modify m_ret in the loop, in case iteration happens and that breaks FOREACH. Save the potential return value in m_val instead.

Nov 9 2023, 7:41 AM

Nov 8 2023

dougm requested review of D42509: vm_phys: fix freelist_contig.
Nov 8 2023, 5:15 PM

Oct 27 2023

dougm added a comment to D33947: Change free space search to avoid duplicate search.

The reporter of this bug:

Oct 27 2023, 3:58 PM

Sep 23 2023

dougm committed rGd9b8e5a74805: powerpc pmap: initialize kernel pmap radix trie (authored by dougm).
powerpc pmap: initialize kernel pmap radix trie
Sep 23 2023, 1:55 AM

Sep 21 2023

dougm added a comment to D41846: powerpc pmap: initialize kernel pmap radix trie.

Well, you need to ask re@ and since it was your fix, you should probably be the one to do it.

Sep 21 2023, 9:50 PM
dougm added a comment to D41846: powerpc pmap: initialize kernel pmap radix trie.

Can you also MFS to releng/14.0?

Sep 21 2023, 9:42 AM

Sep 20 2023

dougm committed rGa4c7a3f7f56a: powerpc pmap: initialize kernel pmap radix trie (authored by dougm).
powerpc pmap: initialize kernel pmap radix trie
Sep 20 2023, 2:12 AM

Sep 13 2023

dougm committed rG8763b9862f90: powerpc pmap: initialize kernel pmap radix trie (authored by dougm).
powerpc pmap: initialize kernel pmap radix trie
Sep 13 2023, 6:23 PM
dougm closed D41846: powerpc pmap: initialize kernel pmap radix trie.
Sep 13 2023, 6:22 PM
dougm requested review of D41846: powerpc pmap: initialize kernel pmap radix trie.
Sep 13 2023, 5:33 PM

Sep 12 2023

dougm committed rGe5635c3dab47: powerpc_mmu_radix: include vm_radix.h file (authored by dougm).
powerpc_mmu_radix: include vm_radix.h file
Sep 12 2023, 7:38 PM
dougm committed rGb24ed9c52dd2: powerpc_pmap: include proper vm_radix file (authored by dougm).
powerpc_pmap: include proper vm_radix file
Sep 12 2023, 1:14 PM
dougm committed rG10db91ecec98: vm_radix: add a missing paren (authored by dougm).
vm_radix: add a missing paren
Sep 12 2023, 9:22 AM
dougm committed rG429c871dddda: radix_trie: have vm_radix use pctrie code (authored by dougm).
radix_trie: have vm_radix use pctrie code
Sep 12 2023, 7:46 AM

Sep 11 2023

dougm added a reverting change for rGa494d30465f2: radix_trie: have vm_radix use pctrie code: rG6cec93da46c4: Revert "radix_trie: have vm_radix use pctrie code".
Sep 11 2023, 8:36 AM
dougm added a reverting change for D41344: radix_trie: have vm_radix use pctrie code: rG6cec93da46c4: Revert "radix_trie: have vm_radix use pctrie code".
Sep 11 2023, 8:36 AM
dougm committed rG6cec93da46c4: Revert "radix_trie: have vm_radix use pctrie code" (authored by dougm).
Revert "radix_trie: have vm_radix use pctrie code"
Sep 11 2023, 8:36 AM
dougm committed rGa494d30465f2: radix_trie: have vm_radix use pctrie code (authored by dougm).
radix_trie: have vm_radix use pctrie code
Sep 11 2023, 6:58 AM
dougm closed D41344: radix_trie: have vm_radix use pctrie code.
Sep 11 2023, 6:57 AM
dougm updated the diff for D41344: radix_trie: have vm_radix use pctrie code.

As @alc requested, drop the changes to the vm_page struct definition and the increment of the version number that accompanied it.

Sep 11 2023, 2:46 AM

Sep 9 2023

dougm updated the test plan for D41344: radix_trie: have vm_radix use pctrie code.
Sep 9 2023, 4:50 PM

Sep 8 2023

dougm added a comment to D41344: radix_trie: have vm_radix use pctrie code.

Are there any more issues to address before I commit this?

Sep 8 2023, 8:21 PM

Sep 6 2023

dougm updated the diff for D41344: radix_trie: have vm_radix use pctrie code.

Remove needless #include, __unused, blank line.

Sep 6 2023, 5:05 PM
dougm added inline comments to D41344: radix_trie: have vm_radix use pctrie code.
Sep 6 2023, 5:04 PM
dougm updated the diff for D41344: radix_trie: have vm_radix use pctrie code.

Bump __FreeBSD_version.
Reshuffle vm_page members as suggested.
Inline all the vm_radix functions that are wrappers for pctrie functions, leaving only a bit of storage management code in vm_radix.c.

Sep 6 2023, 4:21 PM

Sep 4 2023

dougm updated the diff for D41344: radix_trie: have vm_radix use pctrie code.

Rearrange ordering in vm_page one more time - to move pindex to the start and have order right after it. Without introducing gaps.

Sep 4 2023, 8:07 PM
dougm updated the diff for D41344: radix_trie: have vm_radix use pctrie code.

Move order and several others up with pindex to avoid creating a gap, and because future changes are likely to access 'order' in vm_radix calls, and having 'order' next to 'pindex' will be cache friendly. Didn't move enough up with pindex last time.

Sep 4 2023, 2:48 PM

Sep 3 2023

dougm updated the diff for D41344: radix_trie: have vm_radix use pctrie code.

Rearrange the members of vm_page. Move pindex to the beginning to avoid adding and subtracting in the vm_radix functions. Move order and 3 others up with pindex to avoid creating a gap, and because future changes are likely to access 'order' in vm_radix calls, and having 'order' next to 'pindex' will be cache friendly. Make order signed because, first, it is only ever assigned to, compare with, or printed as a signed value and, second, because negative values will be part of a planned future change.

Sep 3 2023, 6:34 AM