User Details
- User Since
- Nov 28 2014, 6:55 PM (522 w, 3 d)
- Roles
- Disabled
Jun 19 2023
Jun 17 2023
MFC after: 1 week
Jun 16 2023
Looks good. Did you remember the appropriate entries in sys/conf/files and sys/modules/usb/xxx ?
Jun 12 2023
I see now how Linux defines this macro / function. Sorry, my bad. I was just looking at the change itself, and wondering what happens to negative time differences ...
Jun 9 2023
Maybe add:
MPASS(ceil >= floor);
Looks good!
Jun 7 2023
Are there any updates here?
@arichardson : Use SORT_BY_INIT_PRIORITY()
Change %03X to %07X to print subsystem values, now that I reverted the renumbering of the subsystem and order values.
Fix a bug in sysinit_insert_sorted().
Fix wording. SYSUNINITs are only called on module unload.
@emaste : You added something similar a while back for amd64. Adding you for review.
Change from .ctors to .init_array and .dtors to .fini_array . This is what the default FreeBSD kernel toolchain currently outputs. Also noted by @jrtc27 .
Finally, I'm highly unconvinced that it makes sense to dynamically register each sysinit individually.
What do you think about this change?
Keep "struct __hack" to force semicolon after SYSINIT() and SYSUNINIT().
This revision is abandoned in favor of D40463 .
FYI: Here is my second take on the issue D40463 . Please have a look if you are interested.
Removed some VNET related changes (not related to this change).
Jun 5 2023
Jun 4 2023
Jun 1 2023
There should be a newline before devm_ioremap( . Else looks good.
Why not just call del_timer_sync() instead of copying the code?
May 30 2023
Change looks good, and the questions raised have been answered.
May 27 2023
May 23 2023
CFLAGS is also a keyword. Which directory to look at first. Local or parent.
The patch as is should work fine.Though it is obviously a little confusing why we have both beforedepend and beforebuild dependencies.
You *could* put offset.inc and assym.inc into a list (naming the list is the hard bit 😉
May 22 2023
I will check this a bit more before pushing and see if more developers have anything to say.
May 21 2023
@imp : Get me right: Maybe I need to += them to a new variable?
May 20 2023
May 19 2023
Sorting 1125 sysinit items 117378 instructions with qsort() 5509157 instructions with bubble
May 18 2023
@bz : Another thing coming to mind, is to apply the greatest common divisor between x,y,z. This computation is pretty cheap. When you have exact fractions, it doesn't look so good seeing rounding errors.
May 17 2023
Please don't implement integers like floating point!
May 13 2023
May 11 2023
Adding Drew, due to changing set affinity for IRQ vectors. Any comments?
Can you rebase this patch?
May 10 2023
@markj: How did you come to that conclusion? On amd64 DMAP_MAX_ADDRESS is KV4ADDR(DMPML4I + NDMPML4E, 0, 0, 0) = 0xfffff80000000000 + NDMPML4E*0x8000000000. On arm64 it is 0xffffff0000000000UL.
Could you figure out if VM_MAX_KERNEL_ADDRESS is inclusive or exclusive.
sys/amd64/compile/GENERIC/machine/param.h:#define INKERNEL(va) (((va) >= DMAP_MIN_ADDRESS && (va) < DMAP_MAX_ADDRESS) \ sys/amd64/compile/GENERIC/machine/vmparam.h:#define DMAP_MAX_ADDRESS KV4ADDR(DMPML4I + NDMPML4E, 0, 0, 0) sys/amd64/compile/GENERIC/assym.inc:#define DMAP_MAX_ADDRESS 0xfffffc0000000000 sys/amd64/include/param.h:#define INKERNEL(va) (((va) >= DMAP_MIN_ADDRESS && (va) < DMAP_MAX_ADDRESS) \ sys/amd64/include/vmparam.h:#define DMAP_MAX_ADDRESS KV4ADDR(DMPML4I + NDMPML4E, 0, 0, 0) sys/arm64/include/vmparam.h:#define DMAP_MAX_ADDRESS (0xffffff0000000000UL) sys/arm64/include/vmparam.h:#define DMAP_MAX_PHYSADDR (dmap_phys_max) sys/cddl/contrib/opensolaris/uts/common/sys/idmap.h:#define IDMAP_MAX_DOOR_RPC (256 * 1024) sys/contrib/openzfs/include/os/freebsd/spl/sys/idmap.h:#define IDMAP_MAX_DOOR_RPC (256 * 1024) sys/dev/hid/hidmap.h:#define HIDMAP_MAX_MAPS 4 sys/powerpc/include/vmparam.h:#define DMAP_MAX_ADDRESS 0xc007ffffffffffffUL sys/powerpc/include/vmparam.h:#define DMAP_MAX_ADDRESS 0xbfffffffUL sys/riscv/include/vmparam.h:#define DMAP_MAX_ADDRESS (0xfffffff000000000UL) sys/riscv/include/vmparam.h:#define DMAP_MAX_PHYSADDR (dmap_phys_max)
I can test this today, and report back. I think your change is OK. There may be different ways to enumerate interrupts, and passing a pointer may make more sense, for example software interrupts not connected to any specific hardware - right?
Two comments: