In D46625#1094801, @imp wrote:In D46625#1094783, @andrew 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.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Dec 11 2024
Dec 11 2024
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.
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 10 2024
Dec 10 2024
vmcb.h: fix typo in the comment, try two
vmcb.h: fix typo in the comment
prison_proc_iterate(): make it work for prison0
amdiommu: correctly initialize iommu.unit
vm_map(9): grammar corrections
Dec 9 2024
Dec 9 2024
Let me explain my PoV.
amd64: re-enable la57, try two
vm_map(9): some refresh
vm/vm_map.h: drop vm_flags_t
vm_map: convert several bool members into flags
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
vm_map: overlap system map mutex and user man sx
vm_map: wrap map->system_map checks into wrapper
Dec 8 2024
Dec 8 2024
For the udata part, I agree.
Dec 7 2024
Dec 7 2024
vm_map_is_system()
Remove vm_flags_t
Some updates to vm_map(9)
amdiommu: correctly initialize iommu.unit
Of course there are more deadlocks/live locks behind this change. But we wouldn't see them until this fix is done.
Add wrapper map_is_system_map().
Convert system_map and needs_wakeup to flags.
Dec 6 2024
Dec 6 2024
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?
prison_proc_iterate(): make it work for prison0
Add a knob to select panicing behavior.
We can add a knob to control the behavior, panic/not panic.
vm: rename MAP_STACK_GROWS_DOWN to MAP_STACK_AREA
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…
sys/vm: remove support for growing-up stacks
Dec 5 2024
Dec 5 2024
kib added a comment to D24459: (WIP) tty: split the tty lock up, make the primary tty lock sleepable.
In D24459#1092727, @kevans wrote: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
Alan' notes. Remove outdated comment. Fix kassert message.
kib added a comment to D24459: (WIP) tty: split the tty lock up, make the primary tty lock sleepable.
In D24459#1092724, @kevans wrote: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.
Update comment about permissions for stack gap entries.
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?
Rename MAP_STACK_GROWS_DOWN to MAP_STACK_AREA
Remove MAP_ENTRY_GROWS_UP
Dec 4 2024
Dec 4 2024
Reword comment.
Drop _DN suffixes, a separate commit.
Dec 3 2024
Dec 3 2024
In D47879#1091770, @olce wrote:I've checked that nobody takes the address of the unaligned members.
kib committed rG2657d38625cf: mlx5en: move runtime capabilities checks into helper functions (authored by kib).
mlx5en: move runtime capabilities checks into helper functions
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
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
mlx5e: Use M_WAITOK when allocating TLS tags
mlx5e: Immediately initialize TLS send tags
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
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
mlx5_en: style function prototype
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
fileno(3): set errno when returning -1
kib committed rG077cbcaefb25: amdiommu: Fix device table segment base register offsets (authored by jah).
amdiommu: Fix device table segment base register offsets
kib committed rGfb0014d04e84: stdio(3): correct summary information for fileno(3) (authored by kib).
stdio(3): correct summary information for fileno(3)
dmar: set acpi ivar domain on identify()
acpica: add domain ivar
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
amd64: add machine/pte.h
Dec 2 2024
Dec 2 2024
kern___realpathat(): honor uio_seg argument
kib committed rG057da12eeaa6: kern___realpathat(): do not copyout past end of string (authored by kib).
kern___realpathat(): do not copyout past end of string
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()
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 1 2024
Dec 1 2024
Nov 30 2024
Nov 30 2024
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 29 2024
Nov 29 2024
In D47842#1090667, @markj wrote: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.
May be a per-uid sysctl memlock limit is better.
BTW, why don't we account sysctl wired memory into the user wire limit?
fileno(3): set errno when returning -1
kib committed rG35ac34a23bc0: stdio(3): correct summary information for fileno(3) (authored by kib).
stdio(3): correct summary information for fileno(3)