Commit Graph

298621 Commits

Author SHA1 Message Date
andvar 730fdfa601 nix double n, i or g in "ing", in comments and documentation. 2022-10-26 22:09:37 +00:00
andvar 49811c99f0 fix various typos in comments and makefs README file. 2022-10-26 21:56:19 +00:00
gutteridge 20837f7b63 grutil.c: fix grammar in a comment 2022-10-26 21:18:49 +00:00
jmcneill e867d8fcc0 No need to constrain DMA tag to 32-bits on 32-bit platforms. 2022-10-26 20:54:52 +00:00
msaitoh 32ac1ccde3 Regen. 2022-10-26 14:50:46 +00:00
msaitoh cefc25eb2b Add AMD F17/Axh devices. 2022-10-26 14:50:26 +00:00
msaitoh 32eb930b17 Add AMD F17/1x and F17/9x CCP(PSP) support to amdccp(4). 2022-10-26 13:35:25 +00:00
msaitoh 01d8393939 Regen. 2022-10-26 13:23:09 +00:00
msaitoh d8b5dc1aa1 Add some AMD 17h/9xh devices from OpenBSD. 2022-10-26 13:22:31 +00:00
jmcneill 1393b11606 Inherit MAC address from Devicetree "local-mac-address" property. 2022-10-26 11:31:11 +00:00
jmcneill b6c267a199 Use generic Arasan SDHCI driver for Zynq-7000. 2022-10-26 10:55:23 +00:00
wiz eaed868ea5 expat-2.5.0 out (CVE-2022-43680) 2022-10-26 10:38:48 +00:00
skrll 196ee94dc2 MI PMAP hardware page table walker support.
This is based on code given to me by Matt Thomas a long time ago with
many updates and bugs fixes from me.
2022-10-26 07:35:19 +00:00
msaitoh f23a63c306 Add comment to ICH/PCH's lock stuff in wm_reset(). 2022-10-26 06:36:39 +00:00
riastradh 4f91c309aa vmwgfx(4): Partially adapt rbtree. 2022-10-25 23:39:13 +00:00
riastradh a19ec08765 linux asm/vmware.h: Fill this in with hypercall asm.
Not sure if it's necessary to support vmcall or vmmcall -- if so,
need to deal with binary patching inline asm, ugh.
2022-10-25 23:39:01 +00:00
riastradh 99851fd018 linux asm/uaccess.h: strncpy_from_user
(which does not actually have strncpy semantics, naturally, from what
I can gather)
2022-10-25 23:38:33 +00:00
riastradh 5f4852e265 linux/frame.h: STACK_FRAME_NON_STANDARD 2022-10-25 23:38:02 +00:00
riastradh 6db1fce331 linux/kernel.h: S16_MIN, S32_MIN, S64_MIN 2022-10-25 23:37:36 +00:00
riastradh 60bf48dc00 linux/suspend.h: Stubs for (un)register_pm_notifier. 2022-10-25 23:37:24 +00:00
riastradh daf90d8307 linux/pci.h: Stubs for pci_request/release_region(s). 2022-10-25 23:37:06 +00:00
riastradh 8b12ddb0ba linux/idr.h: Update ida_* API. 2022-10-25 23:36:32 +00:00
riastradh 1328700703 vmwgfx(4): Hand-cruft threaded irq with a workqueue(9). 2022-10-25 23:36:21 +00:00
riastradh 41014dce70 drm: New IRQ_WAKE_THREAD constant.
Not really wired up to anything but helps reduce diffs -- driver is
responsible for making decisions based on it, corresponding to
Linux's built-in `threaded irq'.
2022-10-25 23:36:09 +00:00
riastradh 3c1156fd6e vmwgfx(4): Port fd creation. 2022-10-25 23:35:57 +00:00
riastradh 677ff2f013 vmwgfx(4): Misc porting too.
- inl/outl -> bus_space_read/write
- struct device for DMA stuff -> bus_dma_tag_t
- spin_lock_destroy (and don't hold spin lock across kfree)
- driver load/unload, fops, &c.
- drm_irq_install/uninstall
2022-10-25 23:35:43 +00:00
riastradh 9f2db5d1f1 vmwgfx(4): Use bus_dma tag, not struct device, for dma_pool shims. 2022-10-25 23:35:29 +00:00
riastradh 57c465457f vmwgfx(4): Convert fence_queue and fifo_queue to drm_waitqueue_t. 2022-10-25 23:34:05 +00:00
riastradh e02149dab3 vmwgfx(4): Convert cmdbuf to drm_waitqueue_t. 2022-10-25 23:33:44 +00:00
riastradh 6c5ed79461 linux/spinlock.h: spin_lock_bh, spin_unlock_bh
Nothing special needed here; NetBSD mutex(9) at IPL_* giving spin
locks already blocks `BH' (i.e., softints -- although I'm not sure
softints are relevant to the one use of this in vmwgfx).
2022-10-25 23:33:29 +00:00
riastradh 752d42263c linux asm/io.h: Side-load linux/vmalloc.h like Linux does. 2022-10-25 23:33:18 +00:00
riastradh 41a0e28382 linux/dmapool.h: Start filling out stubs. 2022-10-25 23:32:37 +00:00
riastradh f0377a3a22 vmwgfx(4): dma_alloc/free_coherent -> bus_dma_* 2022-10-25 23:32:04 +00:00
riastradh 407655d7d1 linux/module.h: MODULE_VERSION 2022-10-25 23:31:49 +00:00
riastradh 77cb04f3dc vmwgfx: Set some warning and config flags. Nix vmwgfx_fb.c for now. 2022-10-25 23:31:38 +00:00
riastradh 267128c229 linux/export.h: Side-load linux/stringify.h.
Expected by some users.
2022-10-25 23:31:27 +00:00
riastradh 6a635ff5b8 extattr(9): KNF
No functional change intended.
2022-10-25 23:22:36 +00:00
riastradh 97a365077b extattr(9): Fix uninitialized uio_iovcnt. 2022-10-25 23:22:17 +00:00
riastradh 5e6f47cdfa console(4), constty(4): Rip off the kernel lock, take three. 2022-10-25 23:21:33 +00:00
riastradh 03cc61dfce constty(4): Make MP-safe, take three.
Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Changes second time around:
- Fix initialization of ok in cons.c cn_redirect.
- Fix reversed sense of conditional in subr_prf.c putone.

Changes third time around:
- Initialize ttyref_cv so we don't panic when trying to use it,
  leading to infinite loop when panic tries to take tty_lock to print
  the panic message while we already hold tty_lock.
2022-10-25 23:21:13 +00:00
jmcneill 8bae3e907c Remove unnecessary code in zynq_platform_device_register 2022-10-25 22:59:10 +00:00
jmcneill 2117825600 Fixup mixed up log messages. 2022-10-25 22:52:48 +00:00
jmcneill 39e2398210 Fixup some mixed up log messages. 2022-10-25 22:49:39 +00:00
jmcneill 479d037135 Add basic Zynq-7000 PS clock subsystem driver.
PR# kern/57068
2022-10-25 22:27:49 +00:00
nia 4441b2db86 -h doesn't sort numerically, pointed out by various 2022-10-25 19:33:00 +00:00
nia 44a8f0feb5 various tips/simplifications from UnitedBSD 2022-10-25 15:44:02 +00:00
kre c24fd5a773 Fix a merge or conversion problem (probably) - a .SH BUGS
(meaningless macro in mdoc) followed by the first line of the
real BUGS section somehow ended up inserted after the first
word of the STANDARDS section.   Delete the noise.
2022-10-25 08:07:07 +00:00
blymn 4b1b7fd71d Fix for lib/57050
Perform a sanity check on the window parameter being passed and return
ERR if it is null.  This prevents buggy code crashing.
2022-10-25 06:20:01 +00:00
msaitoh 69e70e08e8 ifq_drops was changed to use uint64_t. 2022-10-25 00:20:36 +00:00
uwe d6f32aceab strptime(3): make the fact that %z is an extension more prominent
Mention it near the format itself, not on the next screen (with an
awkward indentation too).
2022-10-24 23:18:31 +00:00