Commit Graph

164272 Commits

Author SHA1 Message Date
skrll 9893fe95de Reorder the bus_dmamap_sync sync operations
BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD to
 BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE

for consistency.
2024-03-03 10:09:42 +00:00
skrll b6b8c0c03e More KNF (whitespace around binary operators) 2024-03-03 10:02:11 +00:00
thorpej 1b34e3658a tlsb -> gbus. No functional change. 2024-03-02 22:58:29 +00:00
thorpej 01e56b5ebb Add the basic framework for the DEC KN7AA ("Ruby") systems -- DEC 7000
and DEC 10000.

This is a work-in-progress, but this should be sufficient for the system
to boot, using the PROM console routines (and then proceed to not find any
devices because we don't yet support the "Laser System Bus").
2024-03-02 20:15:33 +00:00
thorpej e6333d4801 Shuffle GBus-related files into their own directory in preparation for
other GBus attachments.  No functional change here; just minimal editing
to reflect path differences after moving the files.
2024-03-02 19:57:57 +00:00
mlelstv 0ec00ddcf5 Avoid overflow when computing kern.ipc.shmmax. Keep shmmax (bytes) and
shmall (pages) values aligned and use arithmetic everywhere instead
of shifts.
Should fix PR 57979
2024-03-02 08:59:47 +00:00
riastradh 24b94ff041 netinet6: Avoid NPD on `ifconfig ifN inet6 ... pltime 0 vltime 0'.
PR kern/53922
2024-03-01 23:50:27 +00:00
andvar 19aecbc6b0 s/securlevel/securelevel/ in comment. 2024-03-01 22:01:03 +00:00
mrg 04615d5639 check that l_nopreempt (preemption count) doesn't change after callbacks
check that the idle loop, soft interrupt handlers, workqueue, and xcall
callbacks do not modify the preemption count, in most cases, knowing it
should be 0 currently.

this work was originally done by simonb.  cleaned up slightly and some
minor enhancement made by myself, and with discussion with riastradh@.

other callback call sites could check this as well (such as MD interrupt
handlers, or really anything that includes a callback registration.  x86
version to be commited separately.)
2024-03-01 04:32:38 +00:00
andvar dc3781080e Fix couple typos in comments. 2024-02-29 22:02:41 +00:00
andvar 8e32e33049 s/hpcfb_refres_screen/hpcfb_refresh_screen/ in debug message. 2024-02-29 22:01:57 +00:00
gutteridge 3a6a773486 coretemp.c: fix grammar in a warning message
(I get several of these warnings on boot on a particular machine. Now,
it also seems that the code isn't retrieving the correct value, either;
TBD.)
2024-02-29 01:59:11 +00:00
dholland e91196a244 usbdevs: regen; usb_quirks.c: update to match
Regen for additional Logitech B100, and update the UQ_ALWAYS_ON entry
to refer to both device ids.
2024-02-28 21:52:40 +00:00
dholland f904ab5978 usbdevs: add another device id for LOGITECH B100.
The mouse I'm looking at says "Logitech B100" on the back but has a
different device id from the one already here.
2024-02-28 21:50:51 +00:00
riastradh 048ca36a11 urtwn(4): Ditch old queued commands on overflow.
Don't increment ring->queued past what the task will decrement.

This is a stop-gap measure; really, we should just have one task for
each operation that is deferred to the task thread.

PR kern/57965
2024-02-28 20:18:13 +00:00
jakllsch 190b1b914e Add Killer E2600, adapted from PR 57969 2024-02-28 18:55:11 +00:00
jakllsch 8ae14abd9a regen 2024-02-28 18:54:02 +00:00
jakllsch f8651d09a4 Add (Realtek/)Killer E2600 Ethernet 2024-02-28 18:51:34 +00:00
macallan 278b8452df support WSDISPLAYIO_SVIDEO so X can turn the monitor off
so far I only know how to turn off video output, not sync(s). Better than
nothing though.
2024-02-28 14:12:12 +00:00
thorpej f80a61f577 Revert the CLOCK_FORMAT0 work-around. 2024-02-28 13:07:07 +00:00
thorpej 3ced769fe7 Fix up the mac68k interrupt handlers to work with the new style common
clockframe layout and remove the CLOCK_FORMAT0 work-around.  As a nice
side-effect, this also eliminates the super-sketchy stack unwinding used
by rtclock_intr to get at the interrupt stack frame.
2024-02-28 13:05:39 +00:00
macallan a75f9c4ba3 add hardware cursor support, mostly for X 2024-02-28 10:25:36 +00:00
riastradh 69b2327d0b heartbeat(9): Restore still-applicable comment nixed in last commit.
The nesting depth is stored in ci_heartbeat_suspend which is 32-bit.
2024-02-28 04:14:47 +00:00
riastradh d6d810141e heartbeat(9): No kpreempt_disable/enable in heartbeat_suspend/resume.
This causes a leak of l_nopreempt in xc_thread when a CPU is offlined
and onlined again, because the offlining heartbeat_suspend and the
onlining heartbeat_resume happen in separate xcalls.

No change to callers because they are already bound to the CPU:

1. cnpollc does kpreempt_disable/enable itself around the calls to
   heartbeat_suspend/resume anyway

2. cpu_xc_offline/online run in the xcall thread, which is always
   bound to the CPU that is being offlined or onlined
2024-02-28 04:12:59 +00:00
christos 85b802e791 Put the standard NetBSD copyright on this file. Approved by John Brezak
via a message on LinkedIn.
2024-02-27 16:09:19 +00:00
nat 8e4f69fe14 Use proper clockframe size for those platforms that require it.
XXX This is a tempory measure, better to fix clock interrupts to take the
    common clockframe size.

OK thorpej@.
2024-02-27 16:07:02 +00:00
skrll 521a813eae Use __BIT. 2024-02-27 08:33:06 +00:00
skrll 921379d202 Enforce the device 32 bit DMA limitation via bus_dmatag_subregion if bus
can address more than 4GB.
2024-02-27 08:28:56 +00:00
skrll 093202349d KNF - spaces around binary operators. 2024-02-27 08:25:38 +00:00
skrll 2aa5dfd754 Remove unused "SHIFT" defines. The "MASK" versions exist. 2024-02-27 08:21:24 +00:00
charlotte 77e76b5c0d In case of trouble reading an MBR, make sure error field is set before reporting it 2024-02-26 21:55:05 +00:00
andvar 8167a3efd2 s/Transmi /Transmit / in comments. 2024-02-26 20:20:01 +00:00
andvar 45f271b64e s/asynchronious/asynchronous/ in comment. 2024-02-25 18:27:54 +00:00
mlelstv efe4686862 Don't crash in copyin/copyout when a NULL pointer is passed. 2024-02-25 14:35:31 +00:00
skrll 19cd387c48 Warn about building a kernel with the wrong toolchain.
Idea from mrg@
2024-02-25 14:27:41 +00:00
skrll fe6c577a15 Add ARM_HAS_VBAR 2024-02-25 14:19:08 +00:00
mlelstv 965fbc37fb Don't try to discover wedges when the unit isn't online. 2024-02-24 22:06:49 +00:00
mlelstv 995b989cb2 Deliver timestamps also to raw sockets.
Fixes PR 57955
2024-02-24 21:41:13 +00:00
mlelstv 217bab0335 Attribute debug message.
Fixes PR 57959
2024-02-24 21:39:05 +00:00
christos 3bb75881f8 avoid stringop truncation, fix copyright string to prevent assembler warnings. 2024-02-24 15:34:47 +00:00
andvar 386e06c283 Declare dt variable in PXARTC_DEBUG guarded blocks, since declarations were
removed in general one (likely as unused).

Fix dt.dt_year format specifier from %02d to expected %02lld.

Pass ch (todr_chip_handle_t), not sc (pxartc_softc) to rtc_wristwatch_gettime().

Fixes PXARTC_DEBUG enabled build (tested on zaurus).
2024-02-24 12:04:16 +00:00
andvar 2b4939ce9d Remove OMAP5EVM kernel config from README.evbarm, it was retired a while ago. 2024-02-24 08:56:07 +00:00
thorpej 57a3fc47c2 Define mode macros for CPOL and CPHA, and define SPI_MODE_* in terms
of CPOL and CPHA.  Add SPI_FREQ_*() helper macros to make setting the
transfer frequency less error prone.
2024-02-23 23:45:54 +00:00
andvar df634e507d s/optionms/options/ in copy-pasted comment. 2024-02-23 22:10:39 +00:00
andvar c989100c57 s/opetions/options/ in hw.ubsec node description. 2024-02-23 22:03:45 +00:00
andvar 9a3e0ce89e sc_init_md_hook expects two params since interface change in imxusbvar.h rev 1.7
thus adjust kobo_usb_init() and netwalker_usb_init() functions accordingly.

Fixes build for KOBO and NETWALKER(_MD) kernel configs.
Needs pullup to netbsd-10.
2024-02-22 23:16:10 +00:00
andvar 181973476e Add 0x prefix before hex physmem in couple more places.
For netwinder move physmem arg to new line to keep line <80 symbols.
2024-02-21 23:23:06 +00:00
macallan dafa96cff1 avoid one more instance of unnecessary blitter stalling 2024-02-21 13:24:40 +00:00
macallan e867efe101 keep track of hw settings for blitter, fill of fb access to avoid unnecessary
register writes
while there, remove some accidentially left in debug goop
2024-02-21 13:04:01 +00:00
msaitoh 1be67e827e igc(4): Print EtrackID. 2024-02-21 12:39:39 +00:00