Commit Graph

287619 Commits

Author SHA1 Message Date
yamaguchi
77103423a2 clear authentication protocol when SPPP_AUTHPROTO_NONE is specified 2021-05-11 06:42:42 +00:00
yamaguchi
99fdb9d66a Drop packets that have no NCP not to start auto-dial 2021-05-11 06:33:17 +00:00
yamaguchi
0d7b654a12 Added missing if_oerror incrementing 2021-05-11 06:27:18 +00:00
yamaguchi
9500534129 Move RCA event after RCR event
A authentication failed by TO+ event between RCA and RCR events
 1. RCA event in REQ-SENT state
   - REQ-SENT => ACK-RCVD
 2. TO+ event
   - ACK-RCVD => REQ-SENT
 3. RCR+ event
   - REQ-SENT => ACK-SENT

By moving RCA after RCR, the state is transisted to OPENED
 1. RCR event
   - REQ-SENT => ACK-SENT
 2. TO+ event
   - state is not changed
 3. RCA event
   - ACK-SENT => OPENED
2021-05-11 06:21:28 +00:00
thorpej
ce4235044b Forward the bridge's devhandle to the downstream bus. 2021-05-11 06:03:54 +00:00
yamaguchi
5416d07a0e Add tests for "pppoectl {no}[ipcp|ipv6cp]" 2021-05-11 05:57:02 +00:00
yamaguchi
aa069c4991 Added keywords that are ipcp, noipcp, ipv6cp, noipv6cp
for configuring NCP
2021-05-11 05:51:42 +00:00
thorpej
63c2a287cf All of the OFW-enumerated busses now associate the OFW node with the
device at config_found() time, so we can remove all of the stuff from
device_register() that does it, leaving only the @pci case to fix that
up (similar situation with ACPI on ARM and x86).

Adapt the boot device matching code to use the devhandle from the
device_t rather than the previous mechanism, and add some comments
explaining what's going on and some assertions to validate the
comments.

Collapse the sun4v vdsk boot device detection into the normal "sd"
case because it's almost identical to the normal "sd" case anyhow.
2021-05-11 03:43:30 +00:00
rin
86042b19c0 Cherry-pick upstream fix for GCC10 regression to -misel option.
Assembler codes generated by GCC are identical with that of our local
fix in rev 1.26 for 32-bit processors, and no significant changes for
64-bit processors also.

master: https://gcc.gnu.org/g:6156df483fa50a08f561b6c248819f2992aa380d
gcc-10: https://gcc.gnu.org/g:5f665c1ca452673e9812cd92b07bd31441c0ac5b
(diffs are same)

commit r12-9-g6156df483fa50a08f561b6c248819f2992aa380d
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date:   Tue Apr 20 12:00:50 2021 +0000

    rs6000: Fix cpu selection w/ isel (PR100108)

    There are various non-IBM CPUs with isel as well, so it is easiest if we
    just don't consider that flag here (it is not needed).

    2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>

            PR target/100108
            * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
            OPTION_MASK_ISEL.
2021-05-11 01:47:20 +00:00
rin
5811b9203b In preparation to import upstream fix, revert our local fix in rev 1.26:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c#rev1.26

> Fix regression introduced to GCC10, where it wrongly recognizes 32-bit
> processors as POWER9 if -misel flag is specified.
2021-05-11 01:39:09 +00:00
rin
282acd838f Call bus_dmamap_unload(9) via ixgbe_dmamap_unload(), before freeing
DMA buffer. Also, when the buffer is already freed, do not call
bus_dmamap_unload(9) (no resource leaks with this change).

Otherwise, MMU fault occurs for some bus_dma(9) implementations.

With this fix, X550-T1 and X540-T1 work fine on alpha (at least
DS10 with PCI-PCIe reverse bridge).

Discussed with msaitoh. Thanks!
2021-05-11 01:30:30 +00:00
yamaguchi
bdaf362302 Added ioctl commands for configuring NCP of pppoe(4) 2021-05-11 01:27:45 +00:00
yamaguchi
daaf816306 back to r1.34 because of mistake of commit log 2021-05-11 01:23:21 +00:00
yamaguchi
8a818d09dc Revert previous commit because of mistake of commit log
back to r1.230(if_spppsubr.c) and r1.31(if_sppp.h)
2021-05-11 01:15:11 +00:00
yamaguchi
6921f43579 Added keywords that are ipcp, noipcp, ipv6cp, noipv6cp
for configuring NCP
2021-05-11 01:00:49 +00:00
yamaguchi
f381967972 Added missing '$' 2021-05-11 00:55:51 +00:00
thorpej
495d41e946 Specify the "fdt" interface attribute when configuring via FDT, since
mainbus also carries the "mainbus" interface attribute.
2021-05-10 23:58:52 +00:00
thorpej
65c738d19c Associate the OpenBoot / OpenFirmware node with attached devices
at config_found() time.
2021-05-10 23:53:44 +00:00
simonb
dfd617a3b0 Column alignment. 2021-05-10 14:27:47 +00:00
thorpej
964806864a sparc{,64} promlib -> devhandle_t glue 2021-05-10 13:59:30 +00:00
christos
627850c8ed fix clang build (on_signal is dead) 2021-05-09 15:40:27 +00:00
nia
6383164a17 ossaudio: Set handle on OSSv4 mixer devices 2021-05-09 12:51:45 +00:00
nia
5d7326fb2a libossaudio: Various OSSv4 fixes to allow reference programs to compile
- Define various new AFMT_*. These are not returned as supported
  formats by SNDCTL_DSP_GETFMTS, because it would be very silly to
  have Vorbis in the kernel.

- Implement PLAYTGT and RECSRC. For each NetBSD audio device
  we only return one playback and recording source, "primary".

- Return preferred channel configuration in capabilities.
  Either DSP_CH_STEREO, DSP_CH_MONO, or DSP_CH_MULTI
  depending on the current hardware format.

- SNDCTL_DSP_HALT_* simply flushes the audio device.
2021-05-09 11:28:25 +00:00
martin
df9fc8fe01 Do not allow editing of start/size/fs-type for partitions that
are already carved in stone (e.g. defined in an outer MBR while we are
editing the inner disklabel).
2021-05-09 11:06:20 +00:00
martin
e2b83173c8 Keep MSDOS partition size and subtype consistent - some u-boot are picky. 2021-05-09 10:39:00 +00:00
martin
43fa2aa1e9 For FS_MSDOS report the MBR type as fs_sub_type. 2021-05-09 10:37:49 +00:00
christos
cc3abd3a65 Disable again initfini; breaks some archs and not worth dealing with when
we have both gcc's active in the tree.
2021-05-08 19:36:28 +00:00
nia
bd36d9a7d1 aiomixer: bound the drawn area to the screen size, rather than replacing it 2021-05-08 14:49:13 +00:00
nia
c920972433 aiomixer: do not adjust class widget pad height, draw to end of screen
ncurses refuses to paint pads if the height argument extends beyond
the bounds of the screen. it's probably not good for our curses either.

libcurses wresize() refuses to resize a pad beyond the bounds of the
screen even if it was created with a larger size. this is probably
a bug.

found by uwe
2021-05-08 14:38:26 +00:00
cjep
db32e0f652 Also include terminfo for platforms with static libraries (e.g. sun2). From uwe/nia. 2021-05-08 14:11:37 +00:00
nia
a7559334b0 aiomixer: fix background banding with slightly older libcurses
reported by uwe
2021-05-08 13:28:45 +00:00
skrll
4e15d77406 KNF 2021-05-08 13:10:29 +00:00
skrll
ae706e3c44 KNG 2021-05-08 13:09:58 +00:00
nia
2b7f454527 aiomixer: try to make sure the first pane is always "outputs"
In QEMU with an ac97 audio device, "inputs" is the first pane,
which is significantly less important especially when you don't
have input in QEMU most of the time.
2021-05-08 13:03:40 +00:00
nia
dbb501c421 aiomixer: Fix sorting of ac97 controls 2021-05-08 12:53:15 +00:00
nia
8f193ef2d3 doc: imported aiomixer 2021-05-08 12:45:04 +00:00
christos
e30fc55584 mention gdb hack discovered by rin. 2021-05-08 12:27:21 +00:00
christos
2d56ebfab5 PR/56153: Rin Okuyama: alpha miscompiles malloca() macro. 2021-05-08 12:23:47 +00:00
rin
0c720f9cde Turn on constty instead of ttyE0 as done for majority of other ports
in order to make both framebuffer and serial consoles happy.

Also, change TERM from vt220 to vt100 for console and constty
in accordance with other ports.
2021-05-08 10:08:33 +00:00
rin
2b8ef595e1 Add missing aiomixer.debug to fix debug build.
XXX
I *really* hope someone(TM) invent better replacement of
distrib/sets/lists...
2021-05-08 09:23:37 +00:00
rin
b707b569c5 Catch up with this commit:
http://www.nerv.org/netbsd/?q=id:20210507T165558Z.d4aba9e0e053181f2a98ee4ee43012b50949921b

by which per slot tcs_used flag was obsoleted.

No need to initialize __BIT(0) of sc_slots_used here; it is zero anyway
before calling tcattach().
2021-05-08 09:03:30 +00:00
mrg
ef48836c2e avoid accessing stack garbage.
on arm64eb resuming vi(1) would often crash.  in makech(), the 'csp'
variable is either set to current window data, or a local stack
variable's address '&blank'.  the window data has many lines of info
stored, and 'csp++' is used per line here.  unfortunately, a case
existed where 'csp++' operated on csp initialised from '&blank' which
eventually crashes when, on my display with 160 columns and 'csp + 155'
exceeds the mapped stack and crashes.

match the '!_cursesi_screen->curwin' conditional that initialises csp,
and avoid csp++ here.  assert() that csp != &blank in both places that
modify csp.

thanks to jdc@ and mlelstv@.

XXX: possibly also should avoid the putch() here as well.
2021-05-08 04:29:07 +00:00
thorpej
c06247ced2 Use pci_compatible_match(). 2021-05-08 00:27:02 +00:00
thorpej
c119c284e9 More symbol sanitizing. 2021-05-08 00:08:43 +00:00
christos
6bf278a2a9 enable initfini-array since all platforms support it. 2021-05-07 23:00:04 +00:00
thorpej
9db847685b Static'ify more symbols. 2021-05-07 22:46:10 +00:00
nia
209f7af6d7 hook up aiomixer 2021-05-07 21:51:20 +00:00
nia
e2c130f799 aiomixer: display the unit type for value controls 2021-05-07 19:37:03 +00:00
nia
5249aad00a aiomixer: use standout for headings, avoid banding in header
fixed a minor rendering problem when compiled against ncurses.

based mostly on feedback from uwe.
2021-05-07 17:47:30 +00:00
thorpej
b7b2b8a3d8 Liberally sprinkle static around to get more symbols out of the
global namespace.  A small bit of const poisoning in the TC code.
2021-05-07 16:58:33 +00:00