Commit Graph

297455 Commits

Author SHA1 Message Date
skrll 91e76cbe90 Provide pci_intr_setattr 2022-08-16 13:50:54 +00:00
kre 6fd15c9e7d Change the NEWS parser to handle the more recent (as in going back several
years now) format (wording) that is used there, rather than that which
preceded it.   With this we get the intended "what changed" in the generated
CVS commit message, rather than lots of emptiness.
2022-08-16 13:23:12 +00:00
kre 72cc3a624f Correct a typo in a comment. NFC. 2022-08-16 13:19:41 +00:00
christos 4d81b9d72e new tzcode 2022-08-16 11:09:08 +00:00
christos 8c24072a8b Welcome to tzcode-2022c
Work around a bug in onetrueawk that broke commands like
'make traditional_tarballs' on FreeBSD, macOS, etc.
(Problem reported by Deborah Goldsmith.)

Add code to tzselect that uses experimental structured comments in
zone1970.tab to clarify whether Zones like Africa/Abidjan and
Europe/Istanbul cross continent or ocean boundaries.
(Inspired by a problem reported by Peter Krefting.)

Fix bug with 'zic -d /a/b/c' when /a is unwritable but the
directory /a/b already exists.

Remove zoneinfo2tdf.pl, as it was unused and triggered false
malware alarms on some email servers.
2022-08-16 11:07:40 +00:00
christos 0129e5c6c8 Welcome to 2022b:
zic has a new option '-R @N' to output explicit transitions < N.
(Need suggested by Almaz Mingaleev.)

'zic -r @N' no longer outputs bad data when N < first transition.
(Problem introduced in 2021d and reported by Peter Krefting.)

zic now checks its input for NUL bytes and unterminated lines, and
now supports input line lengths up to 2048 (not 512) bytes.

gmtime and related code now use the abbreviation "UTC" not "GMT".
POSIX is being revised to require this.

When tzset and related functions set vestigial static variables
like tzname, they now prefer specified timestamps to unspecified ones.
(Problem reported by Almaz Mingaleev.)

zic no longer complains "can't determine time zone abbreviation to
use just after until time" when a transition to a new standard
time occurs simultanously with the first DST fallback transition.
2022-08-16 10:56:21 +00:00
nat 728612bd0e No need address every time to specify broadcast and netmask.
Previously ifconfig would fail silently.

Addresses PR bin/10911.
2022-08-16 10:47:10 +00:00
riastradh 96cfa1ee8a crashme(9): New kernel_lock_spinout crasher.
This assumes that something will eventually try to take the kernel
lock and, after spinning for a while, spin out and crash -- so for
now it's only enabled under LOCKDEBUG, without which the kernel lock
spins forever.
2022-08-16 10:24:17 +00:00
christos 55b9c1e826 whitespace changes from tzcode2022a->tzcode2022b 2022-08-16 09:03:04 +00:00
skrll 774be5af86 Provide pci_intr_setattr (which does nothing atm) 2022-08-16 08:42:25 +00:00
skrll 55f4a5514e Use designated initializers for hppa_pci_chipset_tag structs. 2022-08-16 08:40:33 +00:00
skrll 1603cc37a1 Trailing whitespace 2022-08-16 08:35:38 +00:00
knakahara 0e0c55e4fb micro optimaize for pfil_run_hooks(), ok'ed by ozaki-r@n.o and ryo@n.o.
That can improve IPv4 forwarding throughput 5% - 10%.
2022-08-16 04:35:57 +00:00
riastradh 103e1634c2 usbnet(9): Omit needless usbnet_core_mutex function.
While here, use inline, not __inline__, since this is not a header
file where inline might be redefined by the user.
2022-08-16 00:44:20 +00:00
riastradh c9ace18090 KERNEL_LOCK(9): Send an IPI to print holder's stack trace on spinout. 2022-08-16 00:26:39 +00:00
pgoyette 94acf54171 Remove stray debug line (already commented out) 2022-08-15 18:06:04 +00:00
rin 25c7592921 Rework avdma to fix PR port-mac68k/56131 as well as add synchronous
transfer support.

According to analysis by Michael Zucca, PSC (DMAC for Quadra/Centris AV)
seems to require that DMA buffer is
  (1) aligned to 16-byte boundaries, and
  (2) multiple of 16 bytes in size.
If the buffer does not satisfy these constraints, esp.c rev 1.63 and
prior carry out partial PIO to align or shave off it.

However, partial PIO does not always work correctly for combination of
NCR53C94 and PSC, which results in failures observed as port-mac68k/56131.

Also, PIO spoils synchronous transfer, which is timing critical.

Therefore, for buffers that do not satisfy the boundary conditions,
completely stop using PIO and use DMA with ``bounce'' buffers.

This fixes port-mac68k/56131 and enables sync transfer as a big bonus.

Note that bounce DMA does not hurt performance at all. For filesystem
and swap I/O, buffers always satisfy the constraints above, and bounce
DMA is necessary only
  (a) when disk is attached, or
  (b) for special utilities like fsck(8) or fdisk(8),
as far as I can tell.

Also:

- Stop providing ``DMA-friendly'' sc_imess and sc_omess; transfer for
  MSGIN or MSGOUT does not almost certainly satisfy boundary condition
  (2). Again, this does not affect performance at all.

- SCSI bus frequency is 20MHz (i.e., 5MB/s for sync transfer) for AV
  models, according to ``Quadra 840AV Service Source''.
2022-08-15 12:16:25 +00:00
macallan 7819ca7e77 nuke pasto in gffb_init() 2022-08-15 11:55:52 +00:00
riastradh c9a823a416 workqueue(9): workqueue_wait and workqueue_destroy may sleep.
But might not, so assert sleepable up front.
2022-08-15 11:43:56 +00:00
rin 77af628781 Remove stray newline. No binary changes. 2022-08-15 11:29:53 +00:00
rin d8e63c8b7a For avdma, bus_dmamap_create(9) with nsegments = 1, as PSC supports
only one physically contiguous segment in a single DMA transaction.

Slightly improves performance.
2022-08-15 11:22:45 +00:00
rin fc570dfe9e Minor cosmetic changes. NFC.
- Use switch instead of if-else-if chain.
- Dedup codes a bit.
2022-08-15 11:18:12 +00:00
riastradh 161f015566 nvme(4): KASSERT(A && B) -> KASSERT(A); KASSERT(B) 2022-08-15 10:15:59 +00:00
lukem 262db5143c build.sh: improve help and usage
Split help into synopsis and help.
Only display the synopsis for usage errors (not the full help).
Print usage errors to stderr not stdout.
Don't print a usage error for -? before the help message.
Improve error messages for unknown options and missing arguments.
Remove trailing "." present in some error messages.
Alway use 'quote' instead of `quote' in some error messages.
2022-08-15 10:06:00 +00:00
knakahara 34a4fc8855 Fix stall on PPPOE_STATE_PADR_SENT, suggested by martin@n.o, thanks.
Just drop such large PADO frames, ok'ed by yamaguchi@n.o.

I left if_pppoe.c:r1.182 code because that fixes other issues such as
pppoe(4) stall in PPPOE_STATE_PADR_SENT when the PADO sender never
replys.
2022-08-15 08:28:41 +00:00
tsutsui 78b45bccf6 Regen from MILAN.in rev 1.30.
> Specify options FONT_VT220L8x16 to get similar glyphs as past font_8x16.c.
2022-08-15 04:58:52 +00:00
tsutsui 88fc8d897e Specify options FONT_VT220L8x16 to get similar glyphs as past font_8x16.c. 2022-08-15 04:40:20 +00:00
tsutsui 5cd3f03255 Improve VGA console settings for Milan, especially for sysinst.
- use explicit WSDISPLAY_FONTENC_IBM font that MI vga(4) assumes
  (so that box drawing characters are rendered properly)
- set ATC and DAC palette settings for proper colors
  (copied from MI vga_subr.c for now because HADES doesn't use mi vga(4))

Tested on Milan with S3 Trio64.  (XXX: needs working HADES with ET4000)
2022-08-15 04:37:46 +00:00
riastradh 1f8b29488e x86/genfb: Disable shadowfb by default.
The motivation for this was obviated by mapping the framebuffer
write-combining instead of uncacheable.

If this still appears to be needed, most likely the mapping is still
wrong and that should be fixed directly, or this should be enabled
only in the circumstances where the mapping can't be made right.
2022-08-14 23:09:30 +00:00
uwe 5787f4b7f0 make(1): mark up the variable expansion example 2022-08-14 22:11:20 +00:00
uwe e92ea9877b make(1): use .Dl for .MAKE.JOB.PREFIX examples 2022-08-14 21:57:26 +00:00
uwe 633d46b244 make(1): prettify .for index variable example 2022-08-14 21:53:58 +00:00
uwe b130886ead make(1): more .Va fixes 2022-08-14 21:48:05 +00:00
riastradh 366512517f mii(4): Wait for MIIF_DOINGAUTO to clear with MIIF_AUTOTSLEEP too.
Otherwise mii_phy_detach may return while mii_phy_auto_timeout_locked
is still in progress in another thread.

Reuse the storage for mii_nway_ch, which is unused if MIIF_AUTOTSLEEP
is set, for a new condvar in a union.  This doesn't change the kernel
ABI because sizeof(struct kcondvar) <= sizeof(struct callout) and
both have the same alignment, for an array of void *.
2022-08-14 20:34:26 +00:00
riastradh 3a885b13c6 mii(4): Sprinkle assertions in mii phy auto timeout. 2022-08-14 20:33:57 +00:00
uwe 60fc1c8536 make(1): mark up FRC in BUGS 2022-08-14 20:19:27 +00:00
uwe a67042efb2 make(1): Use .Dq instead of literal ASCII quotes 2022-08-14 20:07:18 +00:00
uwe db6d3d6b54 make(1): Be consistent about using .Va for make variables 2022-08-14 20:04:07 +00:00
rillig 0288f8100f make.1: fix accidental removal of the directive 'export' 2022-08-14 19:26:39 +00:00
skrll 5cc0f8af81 usbd_do_request_async got deleted back in 2013 so remove the commented out
reference to it here.
2022-08-14 19:12:23 +00:00
jmcneill b4fea417c5 nvme: Make sure that q_ccb_list is always accessed with the q lock held. 2022-08-14 12:08:57 +00:00
jmcneill 6aa6feb5ce Align output of "version" command. 2022-08-14 11:26:41 +00:00
uwe eb54120ac9 make(1): more .Ar fixes 2022-08-14 10:14:58 +00:00
nia be6f37654f Add bge(4) to the list of drivers that take advantage of NET_MPSAFE 2022-08-14 10:13:06 +00:00
nia 2e89e673ad doc: Recent changes from various 2022-08-14 10:07:58 +00:00
riastradh 32eac88bfb virtio(4): Print numeric device type, even if unrecognized. 2022-08-14 10:06:54 +00:00
uwe ad2bf568ed make(1): ".../" in -m option description is literal ".../" 2022-08-14 09:47:29 +00:00
uwe 04f8e27bbc make(1): Consistent formatting for -i and -s descriptions. 2022-08-14 09:11:33 +00:00
uwe 059d027760 make(1): Fix markup of the -d[flags] section.
The debug flags are literals, not syntactic variables (.Ar).
While here use .Dq for quoted words in the text.
2022-08-14 09:08:29 +00:00
skrll 84e10dde80 bge: Use BUS_DMA_WAITOK in attach routines. 2022-08-14 09:04:17 +00:00