Page MenuHomeFreeBSD
Feed Advanced Search

Dec 11 2024

kib accepted D46625: stand/efi: Limit where we load the arm64 kernel.
Dec 11 2024, 5:21 PM
kib added a comment to D46625: stand/efi: Limit where we load the arm64 kernel.
In D46625#1094801, @imp wrote:

Not currently as no kernels support it. We could add an elf note when we support LPA2 in locore.S to tell loader the kernel supports executing from a higher address.

That would be great.

Dec 11 2024, 5:06 PM
kib accepted D48023: cpu_set_upcall / linux_clone_thread: Remove calls to cpu_thread_clean.
Dec 11 2024, 3:46 PM
kib added a comment to D48023: cpu_set_upcall / linux_clone_thread: Remove calls to cpu_thread_clean.

amd64 cpu_set_upcall() also calls cpu_thread_clean(), basically for the fresh thread. I suspect this call was copied.

Dec 11 2024, 3:46 PM
kib added a comment to D48022: cpu_machdep.9: New manpage describing the semantics of several cpu_*.

I feel that the better place for this stuff would be cpu_machdep(9) rather then comments in the header.

Dec 11 2024, 3:04 PM

Dec 10 2024

kib committed rGe02029e6f487: vmcb.h: fix typo in the comment, try two (authored by kib).
vmcb.h: fix typo in the comment, try two
Dec 10 2024, 8:50 AM
kib committed rG36b39281a666: vmcb.h: fix typo in the comment (authored by kib).
vmcb.h: fix typo in the comment
Dec 10 2024, 8:23 AM
kib accepted D48002: buf_ring: Remove an unneeded barrier.
Dec 10 2024, 3:56 AM
kib committed rGb50851e8ebfa: prison_proc_iterate(): make it work for prison0 (authored by kib).
prison_proc_iterate(): make it work for prison0
Dec 10 2024, 2:41 AM
kib committed rGfff3323694f7: amdiommu: correctly initialize iommu.unit (authored by kib).
amdiommu: correctly initialize iommu.unit
Dec 10 2024, 2:41 AM
kib committed rG8cee8527d09f: vm_map(9): grammar corrections (authored by kib).
vm_map(9): grammar corrections
Dec 10 2024, 2:39 AM

Dec 9 2024

kib added a comment to D47940: sys: Remove redundant type casting to sysinit_cfunc_t.

Let me explain my PoV.

Dec 9 2024, 6:05 AM
kib committed rG9114e15a8694: amd64: re-enable la57, try two (authored by kib).
amd64: re-enable la57, try two
Dec 9 2024, 4:24 AM
kib accepted D47989: hwpmc_x86: Register interrupt handler using the dynamic NMI registration interface.
Dec 9 2024, 3:34 AM
kib accepted D47394: x86: Add routines for querying XSAVE feature information.
Dec 9 2024, 3:34 AM
kib committed rG32873ecb20ae: vm_map(9): some refresh (authored by kib).
vm_map(9): some refresh
Dec 9 2024, 3:29 AM
kib committed rGfae0cc5fd82d: vm/vm_map.h: drop vm_flags_t (authored by kib).
vm/vm_map.h: drop vm_flags_t
Dec 9 2024, 3:29 AM
kib committed rGd939fd2d4512: vm_map: convert several bool members into flags (authored by kib).
vm_map: convert several bool members into flags
Dec 9 2024, 3:29 AM
kib committed rGb4431e95542a: vm/vm_map.h: extend number of digits in vm_map flags definitions (authored by kib).
vm/vm_map.h: extend number of digits in vm_map flags definitions
Dec 9 2024, 3:29 AM
kib committed rG6ed68e6f5d47: vm_map: overlap system map mutex and user man sx (authored by kib).
vm_map: overlap system map mutex and user man sx
Dec 9 2024, 3:29 AM
kib committed rGc5b19cef3609: vm_map: wrap map->system_map checks into wrapper (authored by kib).
vm_map: wrap map->system_map checks into wrapper
Dec 9 2024, 3:29 AM
kib closed D47934: vm_map: overlap system map mutex and user man sx.
Dec 9 2024, 3:29 AM

Dec 8 2024

kib added a comment to D47945: sys/sys/kernel.h: Remove intermediate type casting.

For the udata part, I agree.

Dec 8 2024, 4:35 AM

Dec 7 2024

kib accepted D47980: lindebugfs: Export symbols.
Dec 7 2024, 11:26 PM
kib accepted D47951: usb: serial: allow the open/close sleep to be interruptible.
Dec 7 2024, 11:24 PM
kib accepted D47950: usb: serial: propagate errors from ucom_queue_command().
Dec 7 2024, 11:23 PM
kib accepted D47952: usb: serial: make more commands execute synchronously.
Dec 7 2024, 11:22 PM
kib updated the diff for D47934: vm_map: overlap system map mutex and user man sx.

vm_map_is_system()
Remove vm_flags_t
Some updates to vm_map(9)

Dec 7 2024, 11:15 PM
kib added inline comments to D47951: usb: serial: allow the open/close sleep to be interruptible.
Dec 7 2024, 2:47 AM
kib added inline comments to D47950: usb: serial: propagate errors from ucom_queue_command().
Dec 7 2024, 2:39 AM
kib committed rG53adc0b898a4: amdiommu: correctly initialize iommu.unit (authored by kib).
amdiommu: correctly initialize iommu.unit
Dec 7 2024, 1:57 AM
kib added a comment to D47935: pmap_growkernel(): do not panic immediately, return error.

Of course there are more deadlocks/live locks behind this change. But we wouldn't see them until this fix is done.

Dec 7 2024, 12:08 AM
kib updated the diff for D47934: vm_map: overlap system map mutex and user man sx.

Add wrapper map_is_system_map().
Convert system_map and needs_wakeup to flags.

Dec 7 2024, 12:04 AM
kib added inline comments to D47934: vm_map: overlap system map mutex and user man sx.
Dec 7 2024, 12:01 AM

Dec 6 2024

kib added a comment to D47940: sys: Remove redundant type casting to sysinit_cfunc_t.

BTW, why does SYSINIT() enforces the cast? Isn't it more correct to not cast in the macro, and allow a compiler to check that the function passed matches the type?

Dec 6 2024, 10:09 PM
kib committed rG831531a82e0f: prison_proc_iterate(): make it work for prison0 (authored by kib).
prison_proc_iterate(): make it work for prison0
Dec 6 2024, 9:43 PM
kib closed D47943: prison_proc_iterate(): make it work for prison.
Dec 6 2024, 9:43 PM
kib updated the diff for D47935: pmap_growkernel(): do not panic immediately, return error.

Add a knob to select panicing behavior.

Dec 6 2024, 5:27 PM
kib added a comment to D47935: pmap_growkernel(): do not panic immediately, return error.

We can add a knob to control the behavior, panic/not panic.

Dec 6 2024, 5:05 PM
kib requested review of D47943: prison_proc_iterate(): make it work for prison.
Dec 6 2024, 5:03 PM
kib committed rGd302c0539307: vm: rename MAP_STACK_GROWS_DOWN to MAP_STACK_AREA (authored by kib).
vm: rename MAP_STACK_GROWS_DOWN to MAP_STACK_AREA
Dec 6 2024, 8:01 AM
kib committed rG030467548611: vm_map: remove _GN suffix from MAP_ENTRY_STACK_GAP and MAP_CREATE_STACK_GAP… (authored by kib).
vm_map: remove _GN suffix from MAP_ENTRY_STACK_GAP and MAP_CREATE_STACK_GAP…
Dec 6 2024, 8:01 AM
kib committed rG17e624ca858c: sys/vm: remove support for growing-up stacks (authored by kib).
sys/vm: remove support for growing-up stacks
Dec 6 2024, 8:01 AM
kib closed D47892: sys/vm: remove support for growing-up stacks.
Dec 6 2024, 8:00 AM

Dec 5 2024

kib added a comment to D24459: (WIP) tty: split the tty lock up, make the primary tty lock sleepable.

Actually, it looks like our driver callbacks typically do timeouts when they actually submit to the controller: https://cgit.freebsd.org/src/tree/sys/dev/usb/serial/uftdi.c#n1688 -- so most of these should be reasonably bounded. Perhaps still good to be defensive, since I'm not about to audit every path out of usb_serial.c

Dec 5 2024, 11:10 PM
kib requested review of D47935: pmap_growkernel(): do not panic immediately, return error.
Dec 5 2024, 11:04 PM
kib requested review of D47934: vm_map: overlap system map mutex and user man sx.
Dec 5 2024, 11:02 PM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Alan' notes. Remove outdated comment. Fix kassert message.

Dec 5 2024, 10:28 PM
kib added a comment to D24459: (WIP) tty: split the tty lock up, make the primary tty lock sleepable.
In D24459#1092714, @kib wrote:

So userspace might end up waiting uninterruptibly for hw to finish something?

Yes, though we could presumably implement usb_proc_mwait_sig() for an escape hatch. It would be an improvement even before this change, because open/close will both drop the tty lock and wait potentially uninterruptibly for the hardware.

Dec 5 2024, 5:12 AM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Update comment about permissions for stack gap entries.

Dec 5 2024, 4:45 AM
kib added inline comments to D47892: sys/vm: remove support for growing-up stacks.
Dec 5 2024, 4:42 AM
kib added a comment to D24459: (WIP) tty: split the tty lock up, make the primary tty lock sleepable.

So userspace might end up waiting uninterruptibly for hw to finish something?

Dec 5 2024, 3:13 AM
kib added inline comments to D47394: x86: Add routines for querying XSAVE feature information.
Dec 5 2024, 1:59 AM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Rename MAP_STACK_GROWS_DOWN to MAP_STACK_AREA

Dec 5 2024, 1:43 AM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Remove MAP_ENTRY_GROWS_UP

Dec 5 2024, 1:36 AM

Dec 4 2024

kib accepted D47884: rtld: Support multiple PT_GNU_RELRO program headers.
Dec 4 2024, 11:13 PM
kib added inline comments to D47892: sys/vm: remove support for growing-up stacks.
Dec 4 2024, 10:53 PM
kib added inline comments to D47892: sys/vm: remove support for growing-up stacks.
Dec 4 2024, 10:51 PM
kib added inline comments to D47892: sys/vm: remove support for growing-up stacks.
Dec 4 2024, 11:53 AM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Reword comment.
Drop _DN suffixes, a separate commit.

Dec 4 2024, 4:17 AM

Dec 3 2024

kib requested review of D47892: sys/vm: remove support for growing-up stacks.
Dec 3 2024, 11:33 PM
kib added inline comments to D47884: rtld: Support multiple PT_GNU_RELRO program headers.
Dec 3 2024, 8:09 PM
kib added inline comments to D47782: procctl.2: Editing pass.
Dec 3 2024, 7:53 PM
kib accepted D47880: cd9660: Remove some unneeded definitions.
Dec 3 2024, 7:44 PM
kib accepted D47879: cd9660: Make sure that struct ifid fits in generic filehandle structure.

I've checked that nobody takes the address of the unaligned members.

Dec 3 2024, 7:43 PM
kib committed rG2657d38625cf: mlx5en: move runtime capabilities checks into helper functions (authored by kib).
mlx5en: move runtime capabilities checks into helper functions
Dec 3 2024, 12:57 AM
kib committed rG7211ab584ecf: mlx5e tls: use non-sleeping malloc flag is it was intended (authored by glebius).
mlx5e tls: use non-sleeping malloc flag is it was intended
Dec 3 2024, 12:52 AM
kib committed rG9ff300614ba7: mlx5e tls: Ensure all allocated tags have a hw context associated (authored by gallatin).
mlx5e tls: Ensure all allocated tags have a hw context associated
Dec 3 2024, 12:52 AM
kib committed rG5cd87fd6df53: mlx5e: Use M_WAITOK when allocating TLS tags (authored by gallatin).
mlx5e: Use M_WAITOK when allocating TLS tags
Dec 3 2024, 12:52 AM
kib committed rG468d647a5a10: mlx5e: Immediately initialize TLS send tags (authored by gallatin).
mlx5e: Immediately initialize TLS send tags
Dec 3 2024, 12:52 AM
kib committed rGf16b81e620c6: mlx5en: only enable to toggle offload caps if they are supported (authored by kib).
mlx5en: only enable to toggle offload caps if they are supported
Dec 3 2024, 12:52 AM
kib committed rGe6bcfb14f27d: mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD (authored by kib).
mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD
Dec 3 2024, 12:52 AM
kib committed rG75cba37ccf90: mlx5_en: style function prototype (authored by kib).
mlx5_en: style function prototype
Dec 3 2024, 12:52 AM
kib committed rG18172439a303: amdiommu: use static array for device table base register offsets (authored by jah).
amdiommu: use static array for device table base register offsets
Dec 3 2024, 12:52 AM
kib committed rG9fb5c02356b0: fileno(3): set errno when returning -1 (authored by kib).
fileno(3): set errno when returning -1
Dec 3 2024, 12:52 AM
kib committed rG077cbcaefb25: amdiommu: Fix device table segment base register offsets (authored by jah).
amdiommu: Fix device table segment base register offsets
Dec 3 2024, 12:52 AM
kib committed rGfb0014d04e84: stdio(3): correct summary information for fileno(3) (authored by kib).
stdio(3): correct summary information for fileno(3)
Dec 3 2024, 12:52 AM
kib committed rGd5adab0e7824: dmar: set acpi ivar domain on identify() (authored by kib).
dmar: set acpi ivar domain on identify()
Dec 3 2024, 12:52 AM
kib committed rGdc75bb826441: acpica: add domain ivar (authored by kib).
acpica: add domain ivar
Dec 3 2024, 12:52 AM
kib committed rGebe9a47c0065: acpica: rename acpi_parse_pxm() to acpi_pxm_parse() and make it non-static (authored by kib).
acpica: rename acpi_parse_pxm() to acpi_pxm_parse() and make it non-static
Dec 3 2024, 12:52 AM
kib committed rGedb7173b8c99: amd64: add machine/pte.h (authored by kib).
amd64: add machine/pte.h
Dec 3 2024, 12:51 AM
kib accepted D47839: shm: Handle swap pager allocation failures.
Dec 3 2024, 12:37 AM

Dec 2 2024

kib added inline comments to D47782: procctl.2: Editing pass.
Dec 2 2024, 11:49 PM
kib accepted D47782: procctl.2: Editing pass.
Dec 2 2024, 1:57 AM
kib committed rG96b72aa66bc9: kern___realpathat(): honor uio_seg argument (authored by kib).
kern___realpathat(): honor uio_seg argument
Dec 2 2024, 1:47 AM
kib committed rG057da12eeaa6: kern___realpathat(): do not copyout past end of string (authored by kib).
kern___realpathat(): do not copyout past end of string
Dec 2 2024, 1:47 AM
kib committed rG7302cdd34994: amd64: switch pmap_map_io_transient() to use pmap_kenter_attr() (authored by kib).
amd64: switch pmap_map_io_transient() to use pmap_kenter_attr()
Dec 2 2024, 1:47 AM
kib committed rG8e9f1e10c624: amd64 pmap: assert and explain why pmap_qremove() is safe WRT supermappings (authored by kib).
amd64 pmap: assert and explain why pmap_qremove() is safe WRT supermappings
Dec 2 2024, 1:46 AM

Dec 1 2024

kib added inline comments to D47394: x86: Add routines for querying XSAVE feature information.
Dec 1 2024, 8:56 PM

Nov 30 2024

kib added inline comments to D47839: shm: Handle swap pager allocation failures.
Nov 30 2024, 9:10 PM
kib committed rGb0b932804bf6: mlx5: Fix handling of port_module_event (authored by Ariel Ehrenberg <aehrenberg@nvidia.com>).
mlx5: Fix handling of port_module_event
Nov 30 2024, 12:42 AM

Nov 29 2024

kib added inline comments to D47782: procctl.2: Editing pass.
Nov 29 2024, 10:31 PM
kib added a comment to D47842: sysctl: Do not serialize requests when running as root.
In D47842#1090650, @kib wrote:

May be a per-uid sysctl memlock limit is better.
BTW, why don't we account sysctl wired memory into the user wire limit?

It used to be that all user sysctl requests were serialized by a global lock, so it probably didn't matter very much since the wiring is always transient. Later, the sysctlmemlock was added, and we started serializing only those requests where oldsz > PAGE_SIZE. Perhaps we should modify vslock() to start counting these wirings, but I am not sure it is useful.

Nov 29 2024, 10:00 PM
kib accepted D47842: sysctl: Do not serialize requests when running as root.

May be a per-uid sysctl memlock limit is better.
BTW, why don't we account sysctl wired memory into the user wire limit?

Nov 29 2024, 5:32 PM
kib added a reviewer for D47822: fix build with LOCK_PROFILING but without KDTRACE_HOOKS: markj.
Nov 29 2024, 4:10 PM
kib accepted D47822: fix build with LOCK_PROFILING but without KDTRACE_HOOKS.
Nov 29 2024, 4:09 PM
kib added inline comments to D47839: shm: Handle swap pager allocation failures.
Nov 29 2024, 3:37 PM
kib committed rG7cd756ff4fe7: fileno(3): set errno when returning -1 (authored by kib).
fileno(3): set errno when returning -1
Nov 29 2024, 3:26 PM
kib committed rG35ac34a23bc0: stdio(3): correct summary information for fileno(3) (authored by kib).
stdio(3): correct summary information for fileno(3)
Nov 29 2024, 3:26 PM
kib closed D47834: fileno(3): set errno when returning -1.
Nov 29 2024, 3:26 PM