Commit Graph

74802 Commits

Author SHA1 Message Date
andvar 9644efb543 Pass periph_target from xs->xs_periph, since periph is not defined.
Fixes SPC_DEBUG build option.
2023-12-17 22:07:34 +00:00
andvar 98a046270d Remove accidentally added i in previous commit.. 2023-12-17 22:03:50 +00:00
andvar 9e5e920980 Fix DMAC_ARRAYCHAIN enabled build:
pass dmac->sc_dev instead of undefined self in dmac_start_xfer_offset().
remove unused chan/ch variables in dmac_program_arraychain().
initialize c to zero in dmac_start_xfer_offset() and add check that is bigger
than 0 before calling dma_cachectl() to fix potentially uninitialized error
(seems to be false positive though).
2023-12-17 22:01:56 +00:00
andvar 1c8a2705a0 s/FD_DEBUG/FDDEBUG/ for consistency. 2023-12-17 21:52:11 +00:00
andvar 82bbbd4849 Fix format specifiers and use BMD_UNIT(dev) macro to fix BMD_DEBUG build. 2023-12-17 21:51:29 +00:00
andvar 03e1d80d8c s/keyboad/keyboard/ in wsmux description comment. 2023-12-17 18:48:53 +00:00
andvar 10e8a7f20c Fix TRENDATA option build by moving TRENDATA code block with memlog() definition
over its usage in ka780_memerr() and making it static. Also return type is
changed to void and removed unnecessary break at the end of the method.

Finally fixed struct memlogtab initialization by adding missing braces around
each member in the array.

The code builds, but I am not sure weather it was fully finished.
2023-12-17 18:39:02 +00:00
andvar 05682c6705 Fix format specifier for ka820port_ptr->csr.
Fixed CRXDEBUG build option for vax.
2023-12-17 15:06:33 +00:00
andvar 87d769fc01 Fix printf format specifier for size. Fixes DEBUG_DMA build option. 2023-12-17 14:54:49 +00:00
andvar 0504d75067 Reshuffle ifdef HAVECACHE/DIAGNOSTIC blocks with the main purpose to make
code build without HAVECACHE/DIAGNOSTIC options, as well as some cleanup:
flags in pv_link is used for HAVECACHE only, declare/define it in the block.
flush_by_page declaration can omit ifdef when only conditional body is guarded.
segva is used only in DIAGNOSTIC/HAVECACHE in pmap_protect_mmu.
combine consecutive DIAGNOSTIC/HAVECACHE blocks were possible.

No functional changes intended.
2023-12-17 13:28:59 +00:00
skrll c7f83ce504 Free memory on failure 2023-12-16 18:02:02 +00:00
rin d102777cf6 powerpc: Make sure direct-mapped buffer fits within correct range
For OEA and OEA64_BRIDGE, only first 3GiB memory is direct-mapped.

Part of PR kern/57621
2023-12-15 09:43:59 +00:00
rin 5bbca87a4d powerpc: oea: For OEA64_BRIDGE, 1:1 map up to 3GiB memory
As done for OEA. Note that kva over 3GiB is reserved.

Provide PMAP_MAP_POOLPAGE for OEA64_BRIDGE at the same time, by
which direct-mapped memory is utilized in order to work around
starvation of 512MiB kernel virtual space.

PR kern/57621
2023-12-15 09:42:33 +00:00
rin c1d0b02ba2 powerpc/oea: pmap_create: Use PR_ZERO and drop memset(9), NFC
Part of PR kern/57621
2023-12-15 09:36:35 +00:00
rin eaff34a759 powerpc/oea: pmap: Fix mostly-pointless overhead of pmap_pvo_pool
(1) Drop __aligned(32) from struct pvo_entry; otherwise,
    sizeof(struct pvo_entry) is round-up'ed to a multiple of 32.

(2) Do not set sizeof(struct pvo_entry) to `align` argument for
    pool_init(9); it must be power of 2.

(3) Align pvo_entry to 32-byte boundary only if reasonably possible,
    i.e., OEA without DIAGNOSTIC (--> POOL_REDZONE) for now.

Part of PR kern/57621
2023-12-15 09:35:29 +00:00
rin 39c430d79c powerpc/oea: pmap: Rework pmap_pte_spill()
It was broken in many ways... Now, it gets working stable both for
OEA and OEA64_BRIDGE, as far as I can see.

Part of PR kern/57621
2023-12-15 09:33:29 +00:00
rin 9b2e61139c powerpc/oea: pmap: Drop unused argument for pmap_pvo_reclaim(), NFC
Part of PR kern/57621
2023-12-15 09:32:05 +00:00
rin 1820877c95 powerpc/oea: trap: pmap_{pte,ste}_spill() even in the interrupt context
Page table for oea is something like L2 TLB on memory; kernel and
processes share its entries, and process entries can be spilled out.

As done for MMU based on software-managed TLB, we need to restore
such entries even in the interrupt context.

Note that pmap_pte_spill() require no resouce to restore entries.
Still-not-implemented pmap_ste_spill() for OEA64 should also.

Part of PR kern/57621
2023-12-15 09:31:02 +00:00
andvar 3194cf25b2 Use console_debugger() vs Debugger() which allows to avoid #ifdef DDB blocks.
From uwe@
2023-12-14 20:17:18 +00:00
mlelstv 7aa6293004 Align again with libsa (NFS_NOSYMLINK fix). 2023-12-14 08:06:23 +00:00
andvar 713cc3c7aa Add #ifdef DDB blocks around Debugger(); calls to make kernel build without DDB. 2023-12-13 23:11:35 +00:00
andvar fd86cb87a6 Make NBPFILTER build by adopting NetBSD's bpf_mtap() interface and definitions.
Condition is also not needed, since this check is performed inside function.
2023-12-13 22:53:04 +00:00
andvar 0aeb5daea0 Add (intptr_t) casts to fix "cast to pointer from integer of different size",
mainly for GENERIC64_32_* configs.
Also change segp->ds_len format specifier to %lld, which fixes DMA_DEBUG build.
2023-12-13 20:53:14 +00:00
andvar 40470a808e Removing obsolete TTY_DEBUG option from ALL kernels. 2023-12-13 10:53:15 +00:00
rin 817c79e386 arm: pmap: Fix clang build without DIAGNOSTIC 2023-12-13 06:42:40 +00:00
andvar cf4143716c remove TTY_DEBUG code from sun2/sparc64 zs.c code. it doesn't look relevant
to this particular drivers and likely is a leftover from some historical code.
2023-12-12 23:38:11 +00:00
andvar b51b3597f1 extract capacity variable to make VDSK_DEBUG enabled code build. 2023-12-12 21:34:34 +00:00
andvar 888272d5d9 s/maked/marked/ 2023-12-12 20:24:00 +00:00
mlelstv dcf3cbf86f Merge with generic libsa NFS code to minimize differences and to learn NFSv3. 2023-12-12 09:16:17 +00:00
andvar 024efb0e43 Surround fdc declaration and definition with FD_DEBUG blocks.
FD_DEBUG is defined by default, thus build passes, however would fail otherwise
since it is only used in debug block.
2023-12-11 22:29:39 +00:00
mlelstv 017edd802a Output is always 16bit, the internal audio data type may differ. 2023-12-11 13:06:06 +00:00
mlelstv 0f6d6d0b8f Report UART clock. 2023-12-11 12:53:08 +00:00
andvar 9a1d4f7670 fix format specifiers for OLDPRINTFS build option. 2023-12-10 23:19:12 +00:00
andvar ad71c36660 add static in from hatTest() and hatWedge() to fix TESTHAT option build. 2023-12-09 00:02:10 +00:00
andvar 0775964557 fix triple t typos in comment and debug message. 2023-12-08 22:11:15 +00:00
andvar 5e4abe6a3f fix triple s typos in comments. 2023-12-08 21:46:02 +00:00
thorpej 4532b18697 Change one vmem_free() in an error path that should be vmem_xfree(). 2023-12-08 17:19:11 +00:00
tsutsui 81df437087 Replace several magic numbers with macro to describe GPT's hybrid MBR boot. 2023-12-08 16:29:04 +00:00
thorpej 52630335cc Excise extent(9) from the mipsco bus_space -- it was completely unused,
so let's make the code smaller.
2023-12-08 01:38:20 +00:00
thorpej b9e0c91b06 extent(9) -> vmem(9) 2023-12-07 16:56:09 +00:00
thorpej 5c255dd2d0 extent(9) -> vmem(9) 2023-12-07 03:46:10 +00:00
thorpej 6b54fdb24a bus_space_alloc() -- vmem(9) requires an allocation stragegy flag, so
make sure to pass one.
2023-12-06 01:46:34 +00:00
andvar 7d1aae8851 s/pregress/progress/ in panic message. 2023-12-05 22:24:40 +00:00
andvar 2e1ce12b1d add explicit braces around SQ_DPRINTF() to fix dangling else compiler error.
fixes build with SQ_DEBUG option enabled for sgimips.
2023-12-05 21:54:53 +00:00
andvar 4e37e4be86 use kcpuset_isset() and pass second (NULL) argument to mips_fixup_exceptions()
to fix build for GENERIC(64).MP kernel configs.
2023-12-05 19:19:26 +00:00
andvar aa3d1fe6ec use kcpuset_isset() and pass second (NULL) argument to mips_fixup_exceptions()
to fix build for SBMIPS(64).MP kernel configs.
2023-12-05 19:16:48 +00:00
andvar a012e373f2 Add missing PTR_WORD command in front of 0.
Likely accidentally missed in the commit, since rev 1.9.

In theory needs pull-ups for netbsd-9, -10, but nobody noticed for 4 years...
2023-12-05 17:38:40 +00:00
thorpej 4637e22ee7 Add btvmei + btvmeii and vme to ALL. 2023-12-05 16:32:38 +00:00
thorpej 7663c1deeb Convert the Alpha port's bus_space back-end to manage address space
with vmem(9) arenas (using statically-allocated private boundary tags
for very early-in-boot) rather than extent(9).

As a side-effect, there's arguments to some initialization functions
that are no longer required, so garbage-collect those, update all the
call sites.
2023-12-04 00:32:10 +00:00
thorpej 4ea367cb79 Use vmem(9) rather than extent(9) to manage IOMMU mappings. 2023-12-03 02:17:06 +00:00