Commit Graph

304768 Commits

Author SHA1 Message Date
msaitoh bdd835b785 wm(4): Print RX packet buffer size. 2024-01-26 03:23:36 +00:00
jmcneill b5582b25cd wii: Remove objcopy after kernel build.
HBC will do the right thing.
2024-01-26 00:49:22 +00:00
riastradh e8c974429a tests/usr.bin/mtree: xfail PR 57877; omit needless debug print. 2024-01-26 00:32:46 +00:00
sjg 384f068bd8 Note that in both :U and :D newval may be empty 2024-01-25 21:00:59 +00:00
tsutsui 8df5b02599 Fix mmap(2) address for smg(4) as other framebuffers.
Now X.org server can render onto framebuffer (but inverted bitorder).
Should be pulled up to netbsd-10 and netbsd-9.
2024-01-25 19:12:49 +00:00
rillig efceecc2b3 tests/libutil/snprintb: clean up and extend tests
In case of a failure, print the details of the test case, including file
and line number of the actual test data. Do not write the format strings
directly to the output, as they contain non-printable bytes and embedded
null bytes.

After a failed test case, continue with the others.

Lay out the format strings according to their structure, to make them
more readable. Remove redundant "\0" at the end of the new-style format
strings.

Fix an off-by-one error in the test data: 0xf is FIFTEEN, not SIXTEEN.

Add a test for performing a restricted subset of rot13 in the format
string, to explore the limits of snprintb formatting.

What's still missing are tests for edge cases and error cases.
2024-01-25 18:13:14 +00:00
jmcneill c0f93ec191 wii: Add External interface bus and RTC support 2024-01-25 11:47:53 +00:00
sjg b0fb99a891 Indicate that for :U newval is optional 2024-01-25 07:35:46 +00:00
msaitoh d50b529bc3 igc(4): Count iqdrops.
TODO: RQDPC should be visible via evcnt(9).
2024-01-25 05:48:56 +00:00
mrg 4bcb661e85 blkdiscard: avoid asserting when passed a bsd disklabel raw device
PR#57856 shows when using blkdiscard on eg, /dev/ld0 it asserts because
'0' is not between 'a' and 'p'.  switch this to using DISKPART() on the
returned st_rdev, so it works on 'ld0c' or 'ld0' (rawpart=2.)
2024-01-25 02:42:17 +00:00
mrg 2bdf8003c6 determine the tty width instead off writing 100 chars before a new line. 2024-01-25 02:06:56 +00:00
mrg b0c21bdf09 add missing mtree subdir and it's Atffile. 2024-01-25 01:43:58 +00:00
riastradh 00b317fce9 mtree(8): Test the installed sets.
Except etc and xetc, which likely won't match for reasons that aren't
great, like etc including empty log files which in an installed
system have probably changed.

This test will probably fail, but we should make sure it doesn't!

PR misc/57877
2024-01-25 00:30:57 +00:00
jmcneill 276b55c3e3 wii: Add support for passing boot options to the kernel. 2024-01-24 21:53:34 +00:00
wiz 75186363f2 space -> tab cleanup 2024-01-24 21:04:08 +00:00
wiz 75d15ad686 zlib-1.3.1 out 2024-01-24 20:06:40 +00:00
christos a91d6c6d0a Unbreak sched_m2 (died because lwp_eproc() KASSERT in DIAGNOSTIC) and explain
what is going on. This has been broken since the introduction of l_mutex
5 months ago.
2024-01-24 16:11:48 +00:00
msaitoh b134f289f8 ixgbe: Add QPRDC into iqdrops.
A receive packet might drop at two different locations.
One is the packet buffer that packets are received into the chip first.
If the packet buffer is overflowed, the MPC register is incremented.
It's currently added to iqdrops. It's no problem.
Another is descriptor ring(s). A packet from the packet buffer is DMA'ed
into main memory base on the descriptor ring. If the ring is full, the packet
is dropped and the QPRDC register is incremented. It should be added to
iqdrops but it was not done. Fix it.
Reported by ozaki-r@.
2024-01-24 05:18:59 +00:00
christos ff905cdb8e add the script I used to convert the FreeBSD code. 2024-01-24 04:14:07 +00:00
rin 5e0085c398 style: Fix typo, NFC
"it it" --> "it is" (across a newline)
2024-01-24 04:00:43 +00:00
riastradh 3521f8238e ld@sdmmc(4): Hack around deadlock in cache sync on detach.
Yanking a card triggers the sdmmc discovery task, which runs in the
sdmmc task thread, to detach any attached child devices.

Detaching ld@sdmmc triggers a cache flush (via ldbegindetach ->
disk_begindetach -> ld_lastclose -> ld_flush -> ioctl DIOCCACHESYNC),
which is implemented by scheduling a task to do sdmmc_mem_flush_cache
and then waiting for it to complete.

The sdmmc_mem_cache_flush is done by an sdmmc task so it happens
after all previously scheduled I/O operations -- that way the cache
flush doesn't complete until the previously scheduled I/O operations
are complete.

However, when the cache flush task is issued from the discovery task,
this doesn't work, because the cache flush task can't start until the
discovery task has returned -- but the discovery task won't return
until the cache flush task has completed.

To work around this deadlock, which usually happens only when the
device has been yanked anyway so further I/O would be lost anyway,
just do the cache flush synchronously in DIOCCACHESYNC if we're
running in the task thread.

This isn't quite right -- implementation details of the task thread
shouldn't bleed into ld@sdmmc, and running the cache sync _before_
any subsequently scheduled I/O tasks is asking for trouble -- but it
should serve to avoid the deadlock in PR kern/57870 until we can fix
a host of concurrency bugs in sdmmc by fixing the locking scheme and
running discovery in a separate thread from tasks.

XXX pullup-10
2024-01-23 23:13:05 +00:00
rillig b2e1dd2563 tests/lint: revert accidental addition of test for lint message 356 2024-01-23 22:07:23 +00:00
jmcneill 73647a8fde wii: provide device names to intr_establish
wii$ intrctl list
interrupt id      CPU0  device name(s)
pi irq 14        64769* hollywood0
hollywood irq 36  5872* ehci0
hollywood irq 39 58907* sdhc0
hollywood irq 40     4* sdhc1
hollywood irq 49     0* resetbtn0
pi irq 5             0* bwai0
2024-01-23 21:56:07 +00:00
jmcneill 25c3d72026 wii: Simply DSP driver - no interrupt handler required. 2024-01-23 21:49:51 +00:00
jmcneill e3118eaa48 wii: Use A/V encoder volume controls instead of using a software filter. 2024-01-23 21:49:20 +00:00
jmcneill 297a048c70 wii: Add GPIO, I2C, and basic A/V encoder driver. 2024-01-23 21:48:12 +00:00
rillig c6c7f59fad lint: unconst parameters
These were leftovers from earlier refactorings and are no longer needed.

No binary change.
2024-01-23 20:03:42 +00:00
rillig 09702fc7eb lint: rename symt_t to symbol_kind
It was confusing to have two kinds of "symbol type" (s_type and s_symt),
so rename all related identifiers to be more distinctive.

No functional change.
2024-01-23 19:44:28 +00:00
christos 85f5e301f5 fix nested extern warnings 2024-01-23 17:24:38 +00:00
jschauma 824b2444d2 +HNDL harvest now, decrypt later 2024-01-23 15:58:17 +00:00
christos 3f3b0ded09 move inclusion of <machine/ieee.h> to the ieee source files instead of
including it in math_private.h which is also used by the vax which is not ieee.
2024-01-23 15:45:07 +00:00
christos 89f106fbc2 handle sizeof(off_t) > sizeof(size_t) 2024-01-23 15:32:54 +00:00
christos 37feec7425 Add vax 2024-01-23 15:32:18 +00:00
christos 72f355ee42 fix vax build (unused variable) 2024-01-23 15:31:58 +00:00
christos 844ea6ac6a more annotation for powerpc 2024-01-23 12:23:34 +00:00
nia 97ba353d2d indent 2024-01-23 08:08:36 +00:00
nia 397a64ed22 doc: Changes for January 2024-01-23 08:01:15 +00:00
rin 77bd5abb29 powerpc/ieee.h: Protect from multiple includes
Fix build failure triggered by import of libm long-double functions.
2024-01-23 04:15:54 +00:00
jmcneill 9e64f9af30 wii: Use screen dimming register for screen blanking. 2024-01-23 00:13:37 +00:00
jmcneill 40d8bddee5 wii: Add screenblank support. 2024-01-22 23:07:43 +00:00
jmcneill ed377828e6 wii: Add drivers for Broadway DSP and Audio interface.
0: [*] audio0 @ bwdsp0: Broadway DSP
       playback: 16, 2ch, 48000Hz
       record:   unavailable
       (P-) slinear_be 16/16, 2ch, { 48000 }
2024-01-22 21:28:15 +00:00
jmcneill f4703d2dea wii: Fix a comment 2024-01-22 21:23:03 +00:00
jdolecek c30505939c fix M_CSUM_BITS bitfield for M_CSUM_BLANK - \37 is the bit before \40
noticed by rillig@ thanks
2024-01-22 21:15:02 +00:00
christos dc7875969c PR/57871: Haelwenn Monnier: Don't use u_char because it is not defined in with
POSIX_C_SOURCE
2024-01-22 18:50:46 +00:00
kre 10af4d8cb4 Bump libm minor rev (libm.so.0.13 -> libm.so.0.14) after addition of
all the long double functions (with actual implementations).
2024-01-22 15:19:38 +00:00
kre 0c0171b424 Add multiple inclusion protection guard - the long double math routines
have a tendency to sometimes make that happen.

This seems to fix the sun3 build, and probably other m68k builds which
were working before the libm upgrades (it will do nothing for any that
were failing before that).
2024-01-22 14:37:25 +00:00
wiz d8acacd745 postfix-3.8.5 is out 2024-01-22 14:33:26 +00:00
kre fcd5401592 Simply an overly complex way of saying "0 or 1" into a cleaner version.
While here add a commment about how the __i386__ magic LD80C macro
might no longer work on all other arch's as well (if someone can verify
that it still does, or can fix it so that it still works on i386, but
also works everywhere else, then please remove that XXX comment.
The issue I am (perhaps imagining) is the (uint32_t) cast.
2024-01-22 14:26:18 +00:00
kre 86010b4a4e It seems that we need prototypes for long double math functions, even
when !__HAVE_LONG_DOUBLE -- they still exist, but just aren't...

This might unbreak several more builds.
2024-01-22 14:01:50 +00:00
kre 1bb3b9e157 This set of changes seem to be sufficient to make at least the
amd64 port build again after the long double math function infusion
from yesterday.

Feel free (without consulting me, I'm just hacking about) to revert
any of this and do it a better way.

Note: this is not intended to be complete, in particular, in <math.h>
I added prototypes only for the functions that are needed for a
successful build, not all of the new ones...
2024-01-22 12:15:19 +00:00