Commit Graph

304183 Commits

Author SHA1 Message Date
rillig 18692033dc indent: fix line number counting in function definition
In a function definition that is split on two lines, if the first line
ends with a '*', the following line break didn't include the line
number.
2023-12-03 20:42:31 +00:00
thorpej bf9518a62c Add the notion of "private boundary tags" to vmem. This allows vmem to
be used VERY early in boot; such consumers statically allocate the vmem
arena and boundary tags, and then explicitly add those static, private
boundary tags to the arena tag free list using the new function vmem_add_bts().

Vmem arenas that use private boundary tags will NOT consume the statically
allocated bootstrap tags used by the vmem system itself; the assumption is
that the consumer of such an arena knows what they're doing, and is responsible
for all necessary resource management.  A macro, VMEM_EST_BTCOUNT(), is
provided to help such consumers size the static boundary tag store based
on the expected number of spans and early allocations.  Once the private
tags are exhausted, the arena will dynamically allocate tags as usual.
2023-12-03 19:34:08 +00:00
rillig 5a2e7833b2 lint: in declarations, replace tab with space
Previously, in some cases, the keywords 'const' or 'struct' were
followed by a tab, which doesn't make sense.

No functional change.
2023-12-03 18:17:41 +00:00
thorpej 06f1a2dac8 Split the boundary tag "type" field into "type" and "flags" fields.
Initialize the flags field to 0 before inserting into an arena's free
tag list.

NFC, but makes diff for a future enhancement smaller.
2023-12-03 15:06:45 +00:00
thorpej 4a50480344 bt_freetrim(): Restructure the loop as a LIST_FOREACH_SAFE() rather
than a while().  No real change in behavior now, but makes upcoming
enhancements easier.
2023-12-03 14:35:54 +00:00
rillig 0fde876303 tests/indent: test compound expressions 2023-12-03 14:26:10 +00:00
rillig 5f975974aa lint: re-wrap comments
No functional change.
2023-12-03 13:12:40 +00:00
rillig 9b1ee10116 lint: move function body brace to the left
No functional change.
2023-12-03 12:24:48 +00:00
rillig a71c2934a4 lint: indent statement continuations consistently
No binary change.
2023-12-03 12:03:38 +00:00
rillig 9cb5ea81fb tests/libcurses: sync documentation with reality
Unknown escape sequences in string literals trigger an error, since
testlang_conf.l 1.22 from 2021-02-25.

The '\b' is recognized since testlang_conf.l 1.26 from 2021-11-15.
2023-12-03 09:42:36 +00:00
tsutsui 7b628e9e33 Use defined ${GPTSECTORS} rather than hardcoded 2048. 2023-12-03 07:20:23 +00:00
tsutsui 2701e1fd91 Document USE_GPTMBR and GPTSECTORS. 2023-12-03 07:17:11 +00:00
thorpej 6da7222657 Assert that the vmem_btag_pool has been initialized before we attempt
to allocate from it.
2023-12-03 02:50:09 +00:00
thorpej 4ea367cb79 Use vmem(9) rather than extent(9) to manage IOMMU mappings. 2023-12-03 02:17:06 +00:00
thorpej 318c13d4b1 Use vmem(9) rather than extent(9) to manage IOMMU mappings. 2023-12-03 02:03:18 +00:00
thorpej 37abeb738d Use vmem(9) rather than extent(9) to manage SGMAP space. 2023-12-03 00:49:46 +00:00
rillig 8a47554360 tests/lint: add more test cases for nonportable character comparison 2023-12-02 23:54:49 +00:00
thorpej 4b1cae5595 Use vmem(9) rather than extent(9) to manage the GAPS PCI DMA buffer. 2023-12-02 22:42:02 +00:00
rillig 9a1f8b7045 lint: extract nonportable char comparison to separate function
No functional change.
2023-12-02 21:53:15 +00:00
rillig a497ecafaf lint: remove redundant empty lines
No functional change.
2023-12-02 21:50:20 +00:00
rillig bed87f3850 lint: rename NOSCL to NO_SCL
For symmetry with NO_TSPEC.  No functional change.
2023-12-02 21:47:05 +00:00
thorpej f3195415c3 Use vmem_xalloc_addr() to reserve the first Sbus DVMA page. 2023-12-02 21:02:53 +00:00
thorpej 7f2518835c Add a vmem_xalloc_addr() function, which allocates a specific address
from an arena.  This is just a convenience wrapper around vmem_xalloc(),
that's just a bit more obvious how to use and performs some additional
sanity checks.
2023-12-02 21:02:12 +00:00
thorpej bbb1b1e0f9 vmem_init() requires the caller to include <sys/vmem_impl.h> in order
to know the storage size of "struct vmem", so put the prototype for
vmem_init() there as well.
2023-12-02 19:11:52 +00:00
thorpej 7abe897db3 Minor changes to let this build as the "subr_vmem" test program again. 2023-12-02 19:06:17 +00:00
christos 20b493dddb remove dup copy. 2023-12-02 16:18:17 +00:00
thorpej 7dd9a27ce7 Use vmem(9) rather than extent(9) to manage DVMA mappings. 2023-12-02 15:50:57 +00:00
christos 0d9ef1fe04 PR/57735: Jose Louis Duran: check if fts_read(3) had an error.
(FreeBSD commit https://github.com/freebsd/freebsd-src/commit/\
    2dfa4b66b3d0caaaae6ce2df476b5615f8415a19)
2023-12-02 13:34:48 +00:00
christos 7580dafe31 PR/57735: Jose Louis Duran: Add missing xref to mtree.5
(FreeBSD commit https://github.com/freebsd/freebsd-src/commit/\
    da232c04ab9eba3d3a7fc73881daff847071e9fd)
2023-12-02 13:26:09 +00:00
christos 6a63b824ad PR/57735: Jose Louis Duran: mtree -f file1 -f file2 does not consider type
changes.
(FreeBSD https://github.com/freebsd/freebsd-src/commit/\
    4f4b548b1d21ae16955b09f9b717524167a7d97e)
2023-12-02 13:23:59 +00:00
thorpej c7f4d81933 Use vmem(9) rather than extent(9) to manage DVMA mappings. 2023-12-01 23:56:30 +00:00
ws c001be21e5 Add option IPv6PreferTemporary to allow selection of
temporary vs. static IPv6 addresses on a host by host basis.
2023-12-01 12:07:19 +00:00
yamaguchi aa4d6cc71a lagg(4): eliminate unnecessary reset by the change of if_flags 2023-12-01 09:27:17 +00:00
thorpej aa94ed1e8e Use vmem(9) rather than extent(9) to manage DVMA mappings. 2023-12-01 06:47:59 +00:00
yamaguchi f4c6b81178 lagg(4): use sadl for lagg(4) configured by a user 2023-12-01 06:18:02 +00:00
thorpej 97a098268d Use vmem(9) rather than extent(9) to manage DVMA mappings. 2023-12-01 05:22:01 +00:00
rin b931da273c tools/Makefile: Correct inverted comment. NFC 2023-11-30 06:29:33 +00:00
mlelstv 3bcce0b38e Fix use-after-free (source->is_type) when detecting unsharable
interrupts. Doesn't solve the interrupt conflict itself, but
avoids a panic.
2023-11-29 11:40:37 +00:00
bouyer 541131335f Import nvidia firmware from linux-firmware repository at commit:
commit 2e92a49f90f73c8edc44b25c6e669d5e70893c90
Author: Gourav Samaiya <gsamaiya@nvidia.com>
Date:   Mon Apr 3 16:13:19 2023 +0530

    nvidia: update Tu10x and Tu11x signed firmware to support newer Turing HW

    Signed-off-by: Gourav Samaiya <gsamaiya@nvidia.com>
    Tested-by: Karol Herbst <kherbst@redhat.com>
    Signed-off-by: Josh Boyer <jwboyer@kernel.org>

Difference from previous import:
Import nvidia firmware from linux-firmware repository at commit:
commit 2e92a49f90f73c8edc44b25c6e669d5e70893c90
Author: Gourav Samaiya <gsamaiya@nvidia.com>
Date:   Mon Apr 3 16:13:19 2023 +0530

    nvidia: update Tu10x and Tu11x signed firmware to support newer Turing HW


commit 2c2be4215fe29870dcd9a059ff8778e73269ddc1
Author: Gourav Samaiya <gsamaiya@nvidia.com>
Date:   Wed Apr 6 14:44:32 2022 +0530

    nvidia: add GA102/GA103/GA104/GA106/GA107 signed firmware

    These NVIDIA-signed firmwares are required to enable the graphics engine
    on Ampere GA10{2/3/4/6/7} Gpus.

Note that our drm2 driver won't use the GA10{2/3/4/6/7} firmware yet.
The updated Tu10x and Tu11x signed firmware are needed for at last the
nvidia T400 graphic card.
2023-11-28 15:01:52 +00:00
martin 0596c633ff PR 57729: clean up PKG_PATH for official RC (and similar) versions,
like we do for the daily builds.
2023-11-28 14:10:18 +00:00
taca dd38e4432f root.cache: updated to 2023112702 (November 27, 2023) 2023-11-28 09:50:10 +00:00
taca a18ccbce03 Update to 2023112702 (November 27, 2023). 2023-11-28 09:48:57 +00:00
yamaguchi d3cb38e4a0 lagg(4): Fix missing IFNET_LOCK acquirement 2023-11-28 05:28:37 +00:00
riastradh 20941a42e9 pthread: Don't adjust user-allocated stack addresses by guardsize.
PR lib/57721

XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-11-28 02:54:33 +00:00
riastradh a76ca770cc libpthread/t_stack: Fix format string for size_t.
Tested this on i386 since that had been crashing before, but i386
doesn't see %zu for unsigned int as a problem.

PR lib/57721

XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-11-28 00:27:05 +00:00
riastradh 2852ab885f libpthread/t_stack: Appease gcc12 maybe-uninitialized warning.
The jmp_buf is not, in fact, uninitialized at the point of use, but
it doesn't hurt to narrow the scope a bit to between when the jmp_buf
is initialized by setjmp, and when the signal handler might be called
after sigaction.

Noted by prlw1.

PR lib/57721

XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-11-27 22:18:29 +00:00
riastradh 1ce2050a8e libpthread/t_stack: Omit needless cast in previous.
Arose from an earlier draft of the change.

PR lib/57721

XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-11-27 22:17:41 +00:00
riastradh 73a871b293 libpthread/t_stack: Make this more robust to the guard size bug.
Make sure to allocate enough space for the thread's stack for a guard
even though there shouldn't be one, so that when we run the thread,
it doesn't start with the stack pointer pointing into someone else's
allocation (like malloc) causing stack frames to trash another data
structure -- or causing the user of that data structure to trash the
stack frames.

PR lib/57721

XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-11-27 22:15:08 +00:00
christos 82eb5ce2b3 Restore original code now that the broken test has been fixed. 2023-11-27 19:46:14 +00:00
christos ecbffb52ab Don't use fmtcheck for strfmon format strings. It does not work. Fix a broken
test.
2023-11-27 19:45:36 +00:00