Commit Graph

293562 Commits

Author SHA1 Message Date
thorpej 2b1ed0f85c Rather than calling xc_barrier() in lwp_dtor(), set a pre-destruct hook
on the lwp_cache and invoke the barrier there.
2021-12-21 19:00:37 +00:00
thorpej 1af3a96973 Add pool_cache_setpredestruct(), which allows a pool cache to specify
a function to be called before the destructor for a batch of one or more
objects is called.  This can be used as a synchronization point by
subsystems that rely on the type-stable nature of pool cache objects or
subsystems that use other forms of passive serialization.
2021-12-21 18:59:22 +00:00
rillig 764d028677 lint: make function names a bit more concise
No binary change.
2021-12-21 16:50:11 +00:00
rillig 0889d20275 tests/lint: remove false assumptions from comments
https://stackoverflow.com/q/65868752
2021-12-21 16:25:14 +00:00
rillig 5862547a83 lint: sync comment with recent change of parameter name 2021-12-21 15:33:20 +00:00
roy 87df1469b9 Fix build of xlint/line1 with OBJDIR set. 2021-12-21 15:27:19 +00:00
rillig 688b335d12 lint: invert condition in build_name
No functional change.
2021-12-21 15:24:28 +00:00
rillig e35c0f08c3 lint: rename parameters in check_init_expr
An initialization has a left-hand and a right-hand side, reflect this in
the parameter names to avoid confusion.

No binary change.
2021-12-21 15:15:45 +00:00
hauke 5ab0766754 Default files to BSD group ownership in line with ffs, after the lead
of FreeBSD <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=139076>
(patch by hannken@)
2021-12-21 15:08:14 +00:00
tnn 686787b11d files.radeon: add clang -Wno-format for radeon_uvd.c
int vs. short mismatch in UVD firmware version printf.
Also change some makeoptions conditional copypasta i915drmkms -> radeon.
2021-12-21 13:56:58 +00:00
tnn 44cb090166 drm: sprinkle some -Wno-unused-function for clang
915_sw_fence.c: for debug_fence_init_onstack
drm_mm.c: for rb_hole_size_to_node
intel_hdmi.c: for intel_hdmi_hdcp2_protocol
intel_guc_submission.c: for rq_prio
nouveau_nvkm_subdev_instmem_base.c: for fake_ioread32_native
nouveau_nvkm_subdev_mmu_vmmnv04.c: for nv04_vmm_pgt_pte
2021-12-21 12:55:23 +00:00
tnn 4e84a7b4f2 drm_device.h: don't redefine vmem_t 2021-12-21 12:28:34 +00:00
nisimura b6a5bf5b68 correct register definition error and improve naming 2021-12-21 12:12:52 +00:00
tnn 083d5954ae i915_scheduler.c: node_to_request: duplicate 'const' declaration specifier 2021-12-21 12:06:29 +00:00
tnn 3bb695cbde i915_gem_shmem.c: shmem_get_pages: fix uninitialize use of "noreclaim" 2021-12-21 12:00:40 +00:00
tnn 2861f484cb i915_drm_resume_early: initialize ret
clang -Wsometimes-uninitialized says uninitialized use
on line 2043 when if statement on line 2037 is false
2021-12-21 11:44:18 +00:00
nisimura 7e68a6306f add interrupt logic stuff 2021-12-21 11:07:51 +00:00
skrll 05cd1227e3 Remove unneeded struct acpi_pci_intr forward declaration. 2021-12-21 11:02:38 +00:00
skrll 04b4c8f351 Remove an empty line 2021-12-21 10:16:05 +00:00
skrll 17792aad4e Wrap a long line 2021-12-21 10:14:43 +00:00
skrll b378d10e65 Change the usb_mem API to take a bus_dma_tag_t in usb_allocmem instead of
a struct usbd_bus *.

This allows an HCD to use more than one tag.
2021-12-21 09:51:22 +00:00
skrll 77bd13df38 Pass up bus_dma error from usb_block_allocmem rather than always returning
USBD_NOMEM on error.
2021-12-21 09:25:17 +00:00
skrll 81f49e9bdc Style. 2021-12-21 09:23:41 +00:00
skrll 50cde11391 KASSERT(BUS_ADDR_HI32(baddr) == 0) in, and apply some consistent code
style to all of ehci_alloc_{sqh,sqtd,itd,sitd}.

While ehci can address memory >4GB for control structures
EHCI_CTRLDSSEGMENT is always set to zero so ehci assumes it's using the
low 4GB.
2021-12-21 08:49:03 +00:00
skrll c513b60c69 Update uvm_pglistalloc_[cs]_ps to return EINVAL if [low, high] doesn't
match any memory.

Useful for bus_dmamem_alloc where a tag might not cover any memory.
This will be used in an update to ehci.

"looks good" from chuq@
2021-12-21 08:27:49 +00:00
skrll 4f513c6a45 Fix a bug where pic_establish_intr would fail to call pic_establish_irq
if a free pic__iplsources slot was found, i.e. an interrupt handler at
the same ipl had been disestablished previously.
2021-12-21 07:11:02 +00:00
skrll 9dd90f9ad9 G/C pic_iplsource 2021-12-21 07:07:32 +00:00
skrll d31aeaa515 KNF 2021-12-21 06:51:16 +00:00
nisimura aa222e7857 improve consistency when attach error cases. 2021-12-21 06:00:45 +00:00
knakahara 790a91107d Fix net.*.rps_hash=toeplitz-othercpus on one CPU systems. 2021-12-21 04:09:32 +00:00
riastradh 344cf1cc84 tpm(4): Fix disabling of rnd source if tpm is deactivated.
Nothing prevents a second worker from being queued when the first one
is about to do rnd_detach_source.  Instead, just set a flag so future
requests don't bother running a new thread; if there's a concurrent
one that's already been scheduled on another CPU, well, too bad, we
get a couple extra log messages but that's fine.

A better way to do this would probably be to detect whether the tpm
is deactivated at attach time, but that requires reading more of the
tpm spec than I care to do when there are alternative ways to
procrastinate like scrubbing the toilet.
2021-12-20 23:05:55 +00:00
skrll 6b9fd43891 Slight code re-structure and wrap a long line. Interestingly this gives
the same binary before and after.
2021-12-20 22:40:46 +00:00
chs 0f62531801 drm: add missing KERNEL_LOCK around calls to config_found(). 2021-12-20 20:34:58 +00:00
christos 69f41f5953 Rename:
MKKDEBUG -> MKDEBUGKERNEL
    MKTOOLSDEBUG -> MKDEBUGTOOLS
while keeping compatibility with the old names. Add missing documentation.
Now all debugging tunables are prefixed with MKDEBUG.
2021-12-20 20:33:20 +00:00
christos 4aa4344fed Revert previous, not needed MKKDEBUG does it. 2021-12-20 20:20:35 +00:00
riastradh 6e2481d7c4 ieee1394: Need kernel lock around config_found. 2021-12-20 19:56:42 +00:00
riastradh 750db9d21c i915: Obviate need for __diagused on variables in GEM_BUG_ON. 2021-12-20 19:54:07 +00:00
rillig d161e75752 tests/lint: test excess braces around initializers 2021-12-20 19:48:05 +00:00
rillig f960c40512 lint: add grammar rule for the beginning of a designation
This will be necessary to properly implement handling of initializers
and braced initializer-lists.

No functional change for now since the designation is already reset
after each expression and '}'.  To handle initializations properly, the
designation must not be reset after each expression, it must advance to
the next member instead.
2021-12-20 19:34:01 +00:00
rhialto 195be17bb9 Set up multicast (input) filter on qt (DELQA-Turbo). 2021-12-20 17:12:41 +00:00
riastradh 23355edaeb i915: Mark a KASSERT-only variable __diagused.
Minor KNF fix while here.
2021-12-20 14:52:25 +00:00
christos 814fa5ccf1 PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x  0 root   wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x  0 root   wheel 208125880 Dec 19 12:50 ./netbsd.gdb
2021-12-20 14:41:26 +00:00
skrll ff12db80cc _bus_dmatag_subregion is always EOPNOTSUPP for !_ARM32_NEED_BUS_DMA_BOUNCE
No need to check {min,max}_addr. Compiler did the right thing, but...
2021-12-20 13:58:58 +00:00
skrll 64d4b3a002 aprint_verbose the DMA range used. 2021-12-20 13:19:09 +00:00
skrll 48c334db1e whitespace in a comment 2021-12-20 12:56:25 +00:00
riastradh 20b3eca72a drm: Apply the Intel pipe_drmhack in more places.
See sys/external/bsd/drm2/dist/drm/i915/intel/intel_display.h for
details.  Should reduce ctf type duplication a fair bit, maybe even
enough to get us under the 2^15 type limit.
2021-12-20 12:56:07 +00:00
skrll 11c5b3c722 Trailing whitespace 2021-12-20 12:50:35 +00:00
skrll 0654c6e4a8 KNF. Same binary before and after. 2021-12-20 12:01:01 +00:00
simonb 224d7a563d Explicitly use -I$S/external/bsd/dwc2/dist for dwc2 instead of possibly
getting that include path via DRM.  Fixes evbmips cavium kernel build.
2021-12-20 11:54:32 +00:00
skrll de6a49e804 Fix struct member prefix to be consistent. same code before and after. 2021-12-20 11:17:40 +00:00