Page MenuHomeFreeBSD
Feed Advanced Search

Jun 12 2020

dougm updated the summary of D25245: strip color bit from rb tree pointers for linuxkpi.
Jun 12 2020, 4:40 PM
dougm added a reviewer for D25245: strip color bit from rb tree pointers for linuxkpi: alc.
Jun 12 2020, 4:39 PM

Jun 10 2020

dougm committed rS362000: Fixup r361997 by balancing parens. Duh..
Fixup r361997 by balancing parens. Duh.
Jun 10 2020, 3:36 AM
dougm committed rS361997: Restore an RB_COLOR macro, for the benefit of a bit of DIAGNOSTIC code.
Restore an RB_COLOR macro, for the benefit of a bit of DIAGNOSTIC code
Jun 10 2020, 2:50 AM

Jun 9 2020

dougm added a comment to D25204: Supply RB_COLOR macro.

I'm also happy to just change the subr_stats.c code. Having RB_TREE and ARB_TREE bound tightly like this makes another RB_TREE change I'm considering impossible.

Jun 9 2020, 11:47 PM
dougm committed rS361984: To reduce the size of an rb_node, drop the color field. Set the least.
To reduce the size of an rb_node, drop the color field. Set the least
Jun 9 2020, 8:19 PM
dougm closed D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.
Jun 9 2020, 8:19 PM

Jun 7 2020

dougm updated the diff for D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.

Don't depend on anyone else's bool type.

Jun 7 2020, 5:29 PM

Jun 6 2020

dougm updated the diff for D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.

Remove redundant assignments.

Jun 6 2020, 8:44 AM

Jun 5 2020

dougm updated the diff for D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.

This change makes a newly inserted node black, not red, and lets RB_INSERT_COLOR make it red if it needs to be. So rb_link_node no longer needs to be concerned with redness - the default black color is correct. Nowhere else in sys/ is code that depend on rb_color, rb_is_red or rb_is_black, so delete them and the tree.h macros that had been defined to enable them.

Jun 5 2020, 10:58 PM
dougm updated the diff for D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.

Fix color in rb_link_node.
Fix indentation.

Jun 5 2020, 5:33 PM
dougm added a reviewer for D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node: markj.
Jun 5 2020, 6:40 AM

Jun 4 2020

dougm updated the diff for D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.

Fix order of arguments in the RB_SET_COLOR invocation in rbtree.h.

Jun 4 2020, 7:48 AM

Jun 3 2020

dougm updated the diff for D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.

Replace "typeof" with "__typeof".

Jun 3 2020, 6:39 AM
dougm updated the diff for D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.

Restore COLOR in a way that linux compatibilty headers demand.

Jun 3 2020, 6:23 AM
dougm updated the diff for D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.

Correct an error in determining the redness of the successor of an interior node being deleted.

Jun 3 2020, 2:39 AM

Jun 2 2020

dougm updated subscribers of D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.
Jun 2 2020, 5:36 PM
dougm updated the summary of D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.
Jun 2 2020, 5:27 PM
dougm requested review of D25105: Replace the rb_color field in an rb_node with a tag in the parent's pointer to the rb_node.
Jun 2 2020, 5:25 PM
dougm committed rS361727: Remove from RB_REMOVE_COLOR some null checks where the pointer checked.
Remove from RB_REMOVE_COLOR some null checks where the pointer checked
Jun 2 2020, 5:18 PM
dougm closed D25089: Drop unneeded null tests from RB_REMOVE_COLOR.
Jun 2 2020, 5:18 PM

Jun 1 2020

dougm added a reviewer for D25089: Drop unneeded null tests from RB_REMOVE_COLOR: markj.
Jun 1 2020, 8:17 PM
dougm updated the diff for D25089: Drop unneeded null tests from RB_REMOVE_COLOR.

I apologize for failing to test for successful compilation.

Jun 1 2020, 7:19 PM
dougm updated the diff for D25089: Drop unneeded null tests from RB_REMOVE_COLOR.

Change the null test back to a redness test, in a way to encourage the compiler to skip the test when possible.

Jun 1 2020, 6:13 PM
dougm updated the diff for D25089: Drop unneeded null tests from RB_REMOVE_COLOR.

Discard the second part of the change and see if the first part is broken.

Jun 1 2020, 9:08 AM
dougm updated the summary of D25089: Drop unneeded null tests from RB_REMOVE_COLOR.
Jun 1 2020, 5:23 AM
dougm updated the diff for D25089: Drop unneeded null tests from RB_REMOVE_COLOR.

An assignment to black can be dropped in one case, but not the other, so fix that.

Jun 1 2020, 3:55 AM
dougm added a reviewer for D25089: Drop unneeded null tests from RB_REMOVE_COLOR: markj.
Jun 1 2020, 3:34 AM
dougm requested review of D25089: Drop unneeded null tests from RB_REMOVE_COLOR.
Jun 1 2020, 3:31 AM

May 30 2020

dougm closed D25032: Simpilfy RB_REMOVE.
May 30 2020, 1:48 AM
dougm committed rS361640: RB_REMOVE invokes RB_REMOVE_COLOR either when child is red or child is.
RB_REMOVE invokes RB_REMOVE_COLOR either when child is red or child is
May 30 2020, 1:48 AM

May 27 2020

dougm added a reviewer for D25032: Simpilfy RB_REMOVE: markj.
May 27 2020, 9:38 PM
dougm requested review of D25032: Simpilfy RB_REMOVE.
May 27 2020, 9:31 PM

May 21 2020

dougm committed rS361324: For the case when RB_REMOVE requires a nontrivial search to find the.
For the case when RB_REMOVE requires a nontrivial search to find the
May 21 2020, 5:34 AM
dougm closed D24845: Reorder manipulations in RB_REMOVE.
May 21 2020, 5:34 AM

May 18 2020

dougm updated the diff for D24845: Reorder manipulations in RB_REMOVE.

Use a local variable for RB_PARENT(old, field).

May 18 2020, 7:15 PM

May 16 2020

dougm added a reviewer for D24845: Reorder manipulations in RB_REMOVE: markj.
May 16 2020, 7:37 PM

May 15 2020

dougm requested review of D24845: Reorder manipulations in RB_REMOVE.
May 15 2020, 5:27 AM

Feb 24 2020

dougm committed rS358268: The last argument to swp_pager_getswapspace is always 1. Remove that argument..
The last argument to swp_pager_getswapspace is always 1. Remove that argument.
Feb 24 2020, 4:01 AM
dougm closed D23810: drop swp_pager_getswapspace parameter.
Feb 24 2020, 4:01 AM

Feb 23 2020

dougm created D23810: drop swp_pager_getswapspace parameter.
Feb 23 2020, 8:32 PM

Feb 22 2020

dougm accepted D23763: Allow swap_pager_putpages() to allocate one block at a time..

This change makes the second argument to swp_pager_getswapspace redundant. A future change might as well eliminate it.

Feb 22 2020, 9:50 PM

Feb 1 2020

dougm added a comment to D23391: shortcuts in dmar_gas matching.
In D23391#514739, @kib wrote:

Subsequent testing by Peter appears to have absolved r357173 of blame, so I'm going ahead with this commit.

Do you mean that isci(4) was broken anyway ? Are any other drivers were reported as broken ?

Feb 1 2020, 10:01 PM
dougm closed D23391: shortcuts in dmar_gas matching.
Feb 1 2020, 9:48 PM
dougm committed rS357389: In dmar_gas_lowermatch, skip searching a subtree if all its addresses are….
In dmar_gas_lowermatch, skip searching a subtree if all its addresses are…
Feb 1 2020, 9:47 PM
dougm added a comment to D23391: shortcuts in dmar_gas matching.

Subsequent testing by Peter appears to have absolved r357173 of blame, so I'm going ahead with this commit.

Feb 1 2020, 9:44 PM
dougm abandoned D23435: search for bug in r357173.

Search abandoned. No evident bug here.

Feb 1 2020, 9:42 PM
dougm updated the diff for D23435: search for bug in r357173.

A complete undo. Not even comment and style changes get preserved. If this too leads to a test failure, then I consider r357173 absolved. If not, then I question my sanity.

Feb 1 2020, 7:27 PM
dougm updated the diff for D23435: search for bug in r357173.

Revert everything from the original patch except a comment, and a few places where null pointer checks had "!= NULL" added.

Feb 1 2020, 5:46 PM
dougm updated the diff for D23435: search for bug in r357173.

Redo. I left an extra AUGMENT hanging around. Undo iommu, undo delete, leave augment.

Feb 1 2020, 10:01 AM
dougm updated the diff for D23435: search for bug in r357173.

This time, revert the iommu changes. Leave the tree changes alone.

Feb 1 2020, 8:19 AM
dougm updated the diff for D23435: search for bug in r357173.

Change nothing but the parts of tree.h related to deletion, restoring those to their original implementation. Hope to find that udp test still passes.

Feb 1 2020, 3:22 AM

Jan 31 2020

dougm updated the diff for D23435: search for bug in r357173.

Undo those parts of r357173 made to sys/tree.h specifically intended to reduce code duplication in deletion, without undoing those parts specific to augmentation.

Jan 31 2020, 4:05 PM
dougm created D23435: search for bug in r357173.
Jan 31 2020, 6:34 AM

Jan 29 2020

dougm added a comment to D23391: shortcuts in dmar_gas matching.

Before I commit this patch, can you determine if the problem was present before or after r357173?

Jan 29 2020, 6:25 PM
dougm added a comment to D23391: shortcuts in dmar_gas matching.

The lines added here were also in https://reviews.freebsd.org/D23189?id=66970 which passed this test, so I'm stumped at the moment.

Jan 29 2020, 3:51 PM

Jan 28 2020

dougm created D23391: shortcuts in dmar_gas matching.
Jan 28 2020, 3:47 AM

Jan 27 2020

dougm committed rS357173: Correct the use of RB_AUGMENT in the RB_TREE macros so that is invoked.
Correct the use of RB_AUGMENT in the RB_TREE macros so that is invoked
Jan 27 2020, 3:09 PM
dougm closed D23189: Fix definition and use of RB_AUGMENT.
Jan 27 2020, 3:09 PM

Jan 26 2020

dougm updated the diff for D23189: Fix definition and use of RB_AUGMENT.

Restore the intel_gas changes that exploit RB_AUGMENT - the ones that eliminate the need to walk from leaf to root to update free_down, and the ones that eliminate the need to use RB_NEXT to update free_after fields. But don't change the topmost-fit search method of lowermatch, or use free_down to speed up uppermatch. The order in which the match functions consider entries is not changed.

Jan 26 2020, 4:49 AM

Jan 24 2020

dougm committed rS357073: Most uses of vm_map_clip_start follow a call to vm_map_lookup. Define.
Most uses of vm_map_clip_start follow a call to vm_map_lookup. Define
Jan 24 2020, 7:48 AM
dougm closed D22987: Define a function combining vm entry lookup and clip-start.
Jan 24 2020, 7:48 AM

Jan 23 2020

dougm updated the diff for D23189: Fix definition and use of RB_AUGMENT.

Discard everything about x86/iommu/intel_* and just leave the tree.h changes, so that they don't get trapped in a discussion of other things.

Jan 23 2020, 7:46 PM
dougm updated the diff for D22987: Define a function combining vm entry lookup and clip-start.

Resolve conflicts.

Jan 23 2020, 5:21 PM
dougm added inline comments to D23189: Fix definition and use of RB_AUGMENT.
Jan 23 2020, 4:34 PM

Jan 22 2020

dougm accepted D23321: Restructure fault to eliminate a goto and label..
Jan 22 2020, 7:42 PM
dougm accepted D23310: Move the backing_object chain traversal into its own function..

It seems harmless.

Jan 22 2020, 5:04 AM
dougm added inline comments to D23310: Move the backing_object chain traversal into its own function..
Jan 22 2020, 5:00 AM

Jan 21 2020

dougm accepted D23299: vm_map_submap(): Avoid unnecessary clipping..
Jan 21 2020, 7:45 PM
dougm added inline comments to D23299: vm_map_submap(): Avoid unnecessary clipping..
Jan 21 2020, 5:55 PM
dougm added inline comments to D23299: vm_map_submap(): Avoid unnecessary clipping..
Jan 21 2020, 5:32 PM
dougm added a reviewer for D22987: Define a function combining vm entry lookup and clip-start: markj.
Jan 21 2020, 5:23 PM

Jan 20 2020

dougm accepted D23282: Move readahead into its own function..
Jan 20 2020, 8:21 PM

Jan 18 2020

dougm added inline comments to D23189: Fix definition and use of RB_AUGMENT.
Jan 18 2020, 5:58 PM
dougm updated the diff for D23189: Fix definition and use of RB_AUGMENT.

Push the setting of a->entry->start down into dmar_gas_match_one. Add a documentary comment before that function.

Jan 18 2020, 5:57 PM
dougm updated the diff for D23189: Fix definition and use of RB_AUGMENT.

Fix the upper limits passed to dmar_gas_match_one from dmar_gas_uppermatch.

Jan 18 2020, 7:35 AM

Jan 17 2020

dougm updated the diff for D23189: Fix definition and use of RB_AUGMENT.

Stop sending the prev entry to dmar_gas_match_insert. I was sending the prev entry sometimes and the next entry sometimes, but the insert function was only using them for assertion checking anyway.

Jan 17 2020, 4:45 PM
dougm updated the diff for D23189: Fix definition and use of RB_AUGMENT.

Update assertion code to test first and last, rather than free_after.

Jan 17 2020, 3:52 PM
dougm updated the diff for D23189: Fix definition and use of RB_AUGMENT.

Rework intel_gas.c more than I had planned. Along with free_down, keep a first and last value for each entry describing the least and greatest value in the subtree rooted there. Update these in the augment routine. In lowermatch, look for the fit with greatest address less than the lowaddr, which I understand to be an upper bound on the address. In uppermatch, duplicate the lowermatch code, looking for the fit with least address greater than highaddr, which I understand to be a lower bound on the address.

Jan 17 2020, 8:43 AM

Jan 16 2020

dougm updated the diff for D23189: Fix definition and use of RB_AUGMENT.

Correct the augmentation after RB_INSERT so that the newly inserted node is augmented too, before its parent.

Jan 16 2020, 5:17 PM
dougm added a comment to D23189: Fix definition and use of RB_AUGMENT.
In D23189#508661, @kib wrote:

If RB_ code would do the walk, I am fine with it.

Did you tested this on a machine with DMAR enabled ? You may ask Peter, long-running high-load networking tests exercise the GAS allocator quite efficiently.

Jan 16 2020, 4:11 PM
dougm updated subscribers of D23189: Fix definition and use of RB_AUGMENT.
Jan 16 2020, 4:10 PM

Jan 15 2020

dougm updated the summary of D23189: Fix definition and use of RB_AUGMENT.
Jan 15 2020, 3:35 PM
dougm created D23189: Fix definition and use of RB_AUGMENT.
Jan 15 2020, 9:19 AM

Jan 2 2020

dougm updated the diff for D22987: Define a function combining vm entry lookup and clip-start.

Add an important omitted line.

Jan 2 2020, 9:35 PM

Jan 1 2020

dougm created D22987: Define a function combining vm entry lookup and clip-start.
Jan 1 2020, 7:48 AM

Dec 31 2019

dougm committed rS356243: The map-entry clipping functions modify start and end entries of an.
The map-entry clipping functions modify start and end entries of an
Dec 31 2019, 10:21 PM
dougm closed D22897: clip without corrupting map.
Dec 31 2019, 10:21 PM

Dec 30 2019

dougm updated the diff for D22897: clip without corrupting map.

Add comments.

Dec 30 2019, 10:17 PM

Dec 29 2019

dougm added a comment to D22897: clip without corrupting map.

Yes I think it should be fixed by r355985. At least, the bug fixed in r355985 could cause this panic. This is a VMIO buffer and so should contain managed pages.

Dec 29 2019, 10:01 PM

Dec 27 2019

dougm committed rS356131: MFC r355913.
MFC r355913
Dec 27 2019, 5:56 PM
dougm committed rS356130: MFC r355913.
MFC r355913
Dec 27 2019, 5:42 PM

Dec 22 2019

dougm committed rS356028: Fix typo using RB_INITIALIZER..
Fix typo using RB_INITIALIZER.
Dec 22 2019, 9:53 PM
dougm added a reviewer for D22897: clip without corrupting map: markj.
Dec 22 2019, 5:07 PM
dougm added a comment to D22897: clip without corrupting map.
In D22897#501357, @pho wrote:

With D22897.65888.diff I got this after 5 hours:

Dec 22 2019, 1:40 AM

Dec 21 2019

dougm added a reviewer for D22897: clip without corrupting map: alc.
Dec 21 2019, 5:36 PM
dougm created D22897: clip without corrupting map.
Dec 21 2019, 6:53 AM

Dec 20 2019

dougm planned changes to D22777: clip within the subtree rooted at entry.

This approach has a fatal flaw. It may be impossible to distinguish parent from child without a complete search-from-root.

Dec 20 2019, 7:22 PM

Dec 19 2019

dougm accepted D22886: Remove some unused functions..
Dec 19 2019, 11:22 PM
dougm committed rS355913: Including <sys/tmpfs.h> into non-kernel software leads to a.
Including <sys/tmpfs.h> into non-kernel software leads to a
Dec 19 2019, 4:40 PM