Commit Graph

286193 Commits

Author SHA1 Message Date
rin
8db1b17786 Map framebuffer to virtual space when fb(4) is present,
even if it is not console.
2021-03-05 06:40:15 +00:00
rin
0cec5ffe6c Call bus_space_mallocok() appropriately. 2021-03-05 06:30:45 +00:00
rin
ffbe1066a9 For very MD codes for Explora, reorder things, and use more common codes for
ibm4xx and ibm40x for clarity as well as better comparison with other boards.

No functional changes intended.
2021-03-05 06:26:56 +00:00
rin
1d2f4258e8 Avoid doubly bus_space_map(9) when pckbc(4) is already attached as console. 2021-03-05 06:17:02 +00:00
rin
6b841f2c45 pckbcintr() must be running with IPL_TTY, not IPL_SERIAL. Otherwise,
tty(4) routines are unexpectedly interrupted, which results in
"locking against myself" errors for tty_lock.
2021-03-05 06:14:47 +00:00
rin
12c9d0e154 For Explora 451, call calc_delayconst() before pckbc_cnattach(), which
depends on delay() and DELAY().

Unfortunately, proplib(9) API is not available for MD codes, that are
called before consinit() (since pool(9) is not initialized yet).

Therefore, hard-code CPU frequency to calc_delayconst() in case
"processor-frequency" is not initialized.
2021-03-05 06:06:34 +00:00
rin
0a6c5be26c Fix hard freeze in pic_handle_intr() for PPC_IBM403.
Not clearly documented in reference manual, but DCR_EXISR register is
not updated immediately after some bits are cleared by mtdcr, no matter
whether sync (= eieio) and/or isync are issued.

Therefore, we have to manage our own status mask in the interrupt handler.
This is what we did in obsoleted powerpc/ibm4xx/intr.c.

With this change, my Explora 451 works just fine with serial console!
Fix for framebuffer console will be committed soon.
2021-03-05 05:35:50 +00:00
thorpej
dfe157ae0d Split set_timebase() into get_timebase_frequency() and init_decrementer().
Call get_timebase_frequency() much earlier.
2021-03-05 02:58:13 +00:00
thorpej
2cd91599fd Move ofppc-specific CPU spinup code to ofppc/machdep.c 2021-03-05 01:33:33 +00:00
thorpej
34e1127563 Don't include mvgbe in this kernel config; that driver has an explicit
warning for the MULTIPROCESSOR case.
2021-03-05 01:31:43 +00:00
palle
c8dcbb0278 sun4v: add vnet driver from openbsd - compiles but probably does not work yet - still WIP (now with NetBSD cvs tag and compiles for 32-bit SUN4U 2021-03-04 20:59:39 +00:00
skrll
8d5dbff40a Trailing whitespace 2021-03-04 20:30:39 +00:00
palle
6902eb251d sun4v: add vnet driver from openbsd - compiles but probably does not work yet - still WIP 2021-03-04 20:17:00 +00:00
palle
7d7625a754 sun4v: update TODO - removed leftover OpenFirmware interface comment and add comment on idle handling 2021-03-04 20:00:51 +00:00
gdt
0793b92a36 std.xen: Move towards std.amd64
(No functional change.)
2021-03-04 19:01:41 +00:00
gdt
2a7390ec95 XEN3_DOM0: Move closer to GENERIC (NFC)
This is another step in making XEN3_DOM0 closer to GENERIC.  It is
just reordering lines, adding commented out lines, and adding a few
comments.  (Test-booted with no dmesg change.)

This pass is showing cases where there are substantive and likely
undesired changes (e.g., UFS_ACL is not defined in XEN3_DOM0).  Often
I added them but commented them out to preserve the NFC property of
this commit.  My plan is to finish the easy NFC stuff first before
addressing functional changes.
2021-03-04 16:02:10 +00:00
gdt
a31ee26e36 GENERIC: Tiny comment adjustment (NFC)
While making XEN3_DOM0 more like GENERIC, I noticed a few differences
where GENERIC was off -- trivial things like missing spaces in
comments, inconsistent comment workding.  This fixes those, both
because they are valid fixes in their own right once noticed, and to
make the diff to XEN smaller.
2021-03-04 15:58:50 +00:00
nia
9bdcec1f86 ctwmrc: disable NoTitleFocus to prevent multiple windows having focus
some investigation help from Rhialto
2021-03-04 08:35:58 +00:00
skrll
8a6bddd021 Use BUS_ADDR_{LO,HI}32. NFC. 2021-03-04 07:29:40 +00:00
skrll
6076a2933e Use __BIT(). NFC. 2021-03-04 07:24:38 +00:00
thorpej
e1faa2613d Don't forget to 0-terminate the BAT mapping list passed to oea_batinit()! 2021-03-04 03:13:54 +00:00
msaitoh
0430b45007 Revert accidentally committed debug code. Sorry. 2021-03-04 01:37:42 +00:00
msaitoh
d88fa6d672 Add missing opt_inet.h. 2021-03-04 01:35:31 +00:00
christos
e5814c28b5 Add some jemalloc stubs so we can link as a jemalloc replacement 2021-03-03 21:46:43 +00:00
gdt
0971f40e55 XEN3_DOM0: Move closer to GENERIC (NFC)
This commit reorders some lines, and brings in commented lines from
GENERIC to reduce the diff.  It also brings in two agp lines,
commented out, and with a warning that they are intentionally omitted.
2021-03-03 12:31:19 +00:00
simonb
6e33305585 For vmstat -h/-H, calculate the hash element size correctly instead of
assuming that everything that isn't a list is a tailq.  Fixes random
reads from kmem that either fail or return incorrect data for the vcache
hash table.
2021-03-03 08:25:16 +00:00
nat
7ed931797f Opps....Remove irrelavent debug code and don't free_m before IFQ_DEQUEUE().
Identified and reported by Patrick Welche and remedy found by Martin Husemann.
2021-03-02 22:21:38 +00:00
gdt
8d25d3c3ab XEN3_DOM0: Fix pckbc console attachment logic
Copy PCKBD_CNATTACH_MAY_FAIL lines from GENERIC to XEN3_DOM0.

GENERIC defines PCKBD_CNATTACH_MAY_FAIL, which means that an attempt
to activate console input on pckbc will fail if there is no keyboard
present.  This is a problem on semi-modern machines that have pckbc
silicon but not ports, and thus almost always have a USB keyboard
also.  What I suspect are bugs in console attachment logic lead to
attempting to attach a ukbd while there already is a console keyboard,
and with DIAGNOSTIC this is (properly) fatal, so XEN3_DOM0 blows up
with a USB keyboard in current, and probably not in 9.

Live tested on a machine that previously paniced on boot.
2021-03-02 18:10:31 +00:00
gdt
be951fc2a5 XEN3_DOM0: Sync VERBOSE with GENERIC
Copy the *VERBOSE option block from GENERIC, and prune the scattered
verbose options in XEN3_DOM0, surely dating from a time they were
copied from an earlier GENERIC.  This amounts to adding PCIVERBOSE and
SCSIVERBOSE, and the diff from GENERIC to DOM0 boots is markedly
reduced.
2021-03-02 18:06:12 +00:00
christos
5d8f515b0c Only specify the dependencies if we are making the copy target. 2021-03-02 14:26:00 +00:00
rin
8994e0c03e Adjust tabs. Add NetBSD RCSID. No binary changes. 2021-03-02 13:44:58 +00:00
rin
dea2c7b807 Convert to intr_establish_xname(). 2021-03-02 12:01:02 +00:00
rin
5b00ec55f8 Stop registering same function twice, i.e., for pckbd(4) and pms(4),
via intr_establish().
2021-03-02 11:59:49 +00:00
jmcneill
02b4ea3438 Fix previous: Each line is "stride" bytes wide, not "width * depth".
While here, add a comment explaining what this test is doing.
2021-03-02 11:51:00 +00:00
msaitoh
04bd99af76 Fix jcl's starvation case in ixgbe_rxeof() again.
ix_txrx.c rev.1.64 preallocates jcl to prevent starvation but it's not
perfect. Don't use ixgbe_rx_discard() and just update the old descriptor
for reuse. It's also required for multiple descriptors case to refresh
subsequent descriptor(s). Reviewed by knakahara@.
2021-03-02 11:10:53 +00:00
uwe
d5a7953cd7 Use proper -width instead of the cargo-cult value. 2021-03-02 10:17:25 +00:00
uwe
e6330ecec4 Sort config file flags and command line options. 2021-03-02 10:14:59 +00:00
uwe
b3a91da400 Fix markup so that literals are typeset as literals. 2021-03-02 10:12:33 +00:00
skrll
d971f966d1 Ensure the "memory" clobber is on inline assembly store operations
No binary change of note with this change in MALTA32
2021-03-02 08:16:52 +00:00
knakahara
45f95ba0ee Fix build failure for options NET_MPSAFE. 2021-03-02 07:55:16 +00:00
rin
154b416600 Establish kernel MMU context before turning on MMU. 2021-03-02 07:44:08 +00:00
rin
525fa25264 Switch to genppc_cpu_configure(). 2021-03-02 07:38:48 +00:00
rin
f42e708f3f Turn imask into static.
XXX
Other macro etc. in powerpc/intr.h should also be moved into
powerpc/pic/intr.c, or protected by __INTR_PRIVATE.
2021-03-02 07:37:27 +00:00
rin
543561f91c Invoke calc_delayconst() before read_eeprom(), which uses delay(9).
Fix unintended looong waiting time during boot.
2021-03-02 07:27:24 +00:00
rin
89ec4cfcd0 Do not forcibly turn off PPC_4XX_NOCACHE option. 2021-03-02 07:23:22 +00:00
rin
1f194d9ab0 Use genppc_cpu_configure() instead of calling spl0() directly
(and optionally printing out imask).
2021-03-02 07:21:01 +00:00
simonb
60f64147e4 Revert previous, 11th time failed after commit. Problem must be elsewhere. 2021-03-02 07:16:24 +00:00
simonb
d71e98b9d4 Bump tentative flag timeout (-w) from 10 to 20 seconds. Changes this
test from failing roughly half the time to working 100% over 10 tests on
evbmips er4.
2021-03-02 07:02:14 +00:00
skrll
abed577279 Sanity check size vs width x height x depth. Buggy firmware exists. 2021-03-02 07:02:05 +00:00
macallan
df47c582a8 add gffb
tested on 20" 1.8GHz iMac G5
2021-03-02 06:31:25 +00:00