Commit Graph

253867 Commits

Author SHA1 Message Date
skrll 9f3bfb0c1b Simplify array initialisation 2017-10-15 09:33:25 +00:00
maxv 269f14c219 Descend the page tree from L4 to L1, instead of allocating a separate
branch and linking it at the end. This way we don't need to allocate VA
from the (tiny) prekern map.
2017-10-15 06:37:32 +00:00
abhinav 697b7416c7 Update current version of mandoc to 1.14.3 2017-10-15 06:15:37 +00:00
pgoyette de283441cd Defer initialization of pf_status.host_id
The call to cprng_fast32() requires that per-cpu data has been initialized
by corng_fast_init(), which doesn't get called until after the first part
of auto-configuration is done, long after pfattach() calls cprng_fast32().

Fixed PR kern/52620

XXX This needs pull-up to the -8 branch.
2017-10-15 04:30:05 +00:00
pgoyette d21b747c46 Nit-picking: avoid split infinitive 2017-10-15 03:57:47 +00:00
maya 4e9f8b500d reorder to avoid null deref before null test 2017-10-15 01:28:32 +00:00
lukem 96a9fff146 rc(8): more foo.sh clarification
- Use "inline.sh" instead of "foo.sh".
- Clarify that "inline.sh" scripts will terminate the boot if
  the script causes trhe current shell process to terminate.
- Use "service" instead of "bar.
- Use "sub-shell" instead of "subshell".

Inspired by feedback from kre@
2017-10-14 21:21:51 +00:00
christos 837bece478 PR/52618: Shinichi Doyashiki: Don't exit if adding interface to multicast
group fails. This happens with empty vlan interfaces

- make syscalls checks against -1
- fix errors to print %s: instead of <%s>

XXX: if_vlan is the only pseudo interface in net/ that returns such an
error..
2017-10-14 19:16:26 +00:00
ryo 638374d825 add test case for new format 'f' and 'F' 2017-10-14 18:41:44 +00:00
ryo 40a86c4b50 doesn't work new format 'F' with a strings of length 1, or a string beginning with 'F' 2017-10-14 18:41:41 +00:00
skrll 5d214b2c48 Fix a comment 2017-10-14 15:35:02 +00:00
jdolecek 59fc8a81da do not use the NCQ priority by default; seems it negatively affects
performance at least with some drives, so this needs better understood first
2017-10-14 13:20:32 +00:00
jdolecek fd181cba14 only call drive reset with AT_POLL when the command itself was
polled, so that the logic for AT_POLL matches how e.g. ata_dmaerr() is
called; this was the original intent of the change in 1.428.2.25,
to make the error handling safe wrt. polled xfers

this is stopgap fix for ATA channel wedge after DMA error, as reported
by Martin Husemann in PR kern/52606, and PR kern/52605

problem happened due to ata_reset_channel() being called once in ata_dmaerr()
with flags == 0, which freezed channel and set flag to reset via thread,
then ata_reset_channel() was called via wdc_drive_reset() with AT_POLL, which
just executed the reset and cleared the flag, without clearing the extra
freeze; that logic will be refactored in separate commit
2017-10-14 13:15:14 +00:00
flxd 05aa47e6f6 Add TC-USB. 2017-10-14 08:22:38 +00:00
msaitoh f1e16215bc Add the following instruction bits in Structured Extended Flags Enumeration
Leaf from "Intel Architecture Instruction Set Extensions and Future Features
Programming Reference" (319433-030):
	AVX512_IFMA
	AVX512_VBMI
	AVX512_VBMI2
	GFNI
	VAES
	VPCLMULQDQ
	AVX512_VNNI
	AVX512_BITALG
	AVX512_VPOPCNTDQ
	AVX512_4VNNIW
	AVX512_4FMAPS
2017-10-13 13:53:54 +00:00
maxv f184c30907 Introduce two functions, and dedup code. 2017-10-13 10:39:26 +00:00
maxv 1b305151b2 Constify offset, it must not change. 2017-10-13 10:04:27 +00:00
kre 6cb901de75 cast pointers to uintptr_t, not uint64_t - then allow integer promotions
take care of any size differences.

Should fix builds of systems with 32 bit pointers (i386 et al).
2017-10-13 09:43:50 +00:00
msaitoh 524c760621 Show 2.5GBASE-T and 5GBASE-T correctly on ixv(4). Tested on a virtual function
on X550 T1.
2017-10-13 08:17:44 +00:00
kre c978ad88b3 Note possible need to clean objdir (or depends at least) for
external/bsd/acpica/bin/iasl after build structure change a few days ago.
2017-10-13 07:04:58 +00:00
msaitoh 4a1ccf504b Set baudrate correctly. A device which use mii(4) interface can set
if_baudrate atomatically by mii_phy_statusmsg(). ixg(4) and ixv(4) don't
use mii(4), so calling ifmedia_baudrate() directly is required.

 XXX need the same same work for wm(4)'s TBI and SERDEV devices.
2017-10-13 04:52:40 +00:00
knakahara 7963b39c7e fix no INET6 build. 2017-10-13 03:11:50 +00:00
christos d40754b094 Wse wide functions to avoid file corruption. Q+D because it does not
use wcwidth().
2017-10-13 00:11:56 +00:00
christos 19187d3576 new tmux 2017-10-12 22:18:27 +00:00
christos fe99a11758 merge conflicts 2017-10-12 22:17:34 +00:00
christos c9ad075b4f CHANGES FROM 2.5 TO 2.6, 05 October 2017
* Add select-pane -T to set pane title.

* Fix memory leak when lines with BCE are removed from history.

* Fix (again) the "prefer unattached" behaviour of attach-session.

* Reorder how keys are checked to allow keys to be specified that have a
  leading escape. GitHub issue 1048.

* Support REP escape sequence (\033[b).

* Run alert hooks based on options rather than always, and allow further bells
  even if there is an existing bell.

* Add -d flag to display-panes to override display-panes-time.

* Add selection_present format when in copy mode (allows key bindings that do
  something different if there is a selection).

* Add pane_at_left, pane_at_right, pane_at_top and pane_at_bottom formats.

* Make bell, activity and silence alerting more consistent by: removing the
  bell-on-alert option; adding activity-action and silence-action options with
  the same possible values as the existing bell-action; adding a "both" value
  for the visual-bell, visual-activity and visual-silence options to trigger
  both a bell and a message.

* Add a pane_pipe format to show if pipe-pane is active.

* Block signals between forking and resetting signal handlers so that the
  libevent signal handler doesn't get called in the child and incorrectly write
  into the signal pipe that it still shares with the parent. GitHub issue 1001.

* Allow punctuation in pane_current_command.

* Add -c for respawn-pane and respawn-window.

* Wait for any remaining data to flush when a pane is closed while pipe-pane is
  in use.

* Fix working out current client with no target. GitHub issue 995.

* Try to fallback to C.UTF-8 as well as en_US.UTF-8 when looking for a UTF-8
  locale.

* Add user-keys option for user-defined key escape sequences (mapped to User0
  to User999 keys).

* Add pane-set-clipboard hook.

* FAQ file has moved out of repository to online.

* Fix problem with high CPU usage when a client dies unexpectedly. GitHub issue
  941.

* Do a dance on OS X 10.10 and above to return tmux to the user namespace,
  allowing access to the clipboard.

* Do not allow escape sequences which expect a specific terminator (APC, DSC,
  OSC) to wait for forever - use a small timeout. This reduces the chance of
  the pane locking up completely when sent garbage (cat /dev/random or
  similar).

* Support SIGUSR2 to toggle logging on a running server, also generate the
  "out" log file with -vv not -vvvv.

* Make set-clipboard a three state option: on (tmux both sends to outside
  terminal and accepts from applications inside); external (tmux sends outside
  but does not accept inside); and off.

* Fix OSC 4 palette setting for bright foreground colours. GitHub issue 954.

* Use setrgbf and setrgbb terminfo(5) capabilities to set RGB colours, if they
  are available. (Tc is still supported as well.)

* Fix redrawing panes when they are resized several times but end up with the
  size unchanged (for example, splitw/resizep -Z/breakp).

* Major rewrite of choose mode. Now includes preview, sorting, searching and
  tagging; commands that can be executed directly from the mode (for example,
  to delete one or more buffers); and filtering in tree mode.

* choose-window and choose-session are now aliases of choose-tree (in the
  command-alias option).

* Support OSC 10 and OSC 11 to set foreground and background colours.

* Check the U8 capability to determine whether to use UTF-8 line drawing
  characters for ACS.

* Some missing notifications for layout changes.

* Control mode clients now do not affect session sizes until they issue
  refresh-client -C. new-session -x and -y works with control clients even if
  the session is not detached.

* All new sessions that are unattached (whether with -d or started with no
  terminal) are now created with size 80 x 24. Whether the status line is on or
  off does not affect the size of new sessions until they are attached.

* Expand formats in option names and add -F flag to expand them in option values.

* Remember the search string for a pane even if copy mode is exited and entered
  again.

* Some further BCE fixes (scroll up, reverse index).

* Improvements to how terminals are cleared (entirely or partially).

CHANGES FROM 2.4 TO 2.5, 09 May 2017

* Reset updated flag when restarting #() command so that new output is properly
  recognised. GitHub issue 922.

* Fix ECH with a background colour.

* Do not rely on the terminal not moving the cursor after DL or EL.

* Fix send-keys and send-prefix in copy-mode (so C-b C-b works). GitHub issue
  905.

* Set the current pane for rotate-window so it works in command sequences.

* Add pane_mode format.

* Differentiate M-Up from Escape+Up when possible (that is, in terminals with
  xterm(1) style function keys). GitHub issue 907.

* Add session_stack and window_stack_index formats.

* Some new control mode notifications and corresponding hooks:
  pane-mode-changed, window-pane-changed, client-session-changed,
  session-window-changed.

* Format pane_search_string for last search term while in copy mode (useful
  with command-prompt -I).

* Fix a problem with high CPU usage and multiple clients with #(). GitHub issue
  889.

* Fix UTF-8 combining characters in column 0.

* Fix reference counting so that panes are properly destroyed and their
  processes killed.

* Clamp SU (CSI S) parameter to work around a bug in Konsole.

* Tweak line wrapping in full width panes to play more nicely with terminal
  copy and paste.

* Fix when we emit SGR 0 in capture-pane -e.

* Do not change TERM until after config file parsing has finished, so that
  commands run inside the config file can use it to make decisions (typically
  about default-terminal).

* Make the initial client wait until config file parsing has finished to avoid
  racing with commands.

* Fix core when if-shell fails.

* Only use ED to clear screen if the pane is at the bottom.

* Fix multibyte UTF-8 output.

* Code improvements around target (-t) resolution.

* Change how the default target (for commands without -t) is managed across
  command sequences: now it is set up at the start and commands are required
  to update it if needed. Fixes binding command sequences to mouse keys.

* Make if-shell from the config file work correctly.

* Change to always check the root key table if no binding is found in the
  current table (prefix table or copy-mode table or whatever). This means that
  root key bindings will take effect even in copy mode, if not overridden by a
  copy mode key binding.

* Fix so that the history file works again.

* Run config file without a client rather than using the first client, restores
  previous behaviour.

* If a #() command doesn't exit, continue to read from it and use its last full
  line of output.

* Handle slow terminals and fast output better: when the amount of data
  outstanding gets too large, discard output until it is drained and we are
  able to do a full redraw. Prevents tmux sitting on a huge buffer that the
  terminal will take forever to consume.

* Do not redraw a client unless we realistically think it can accept the data -
  defer redraws until the client has nothing else waiting to write.
2017-10-12 21:59:47 +00:00
christos 75e5f62326 put back the cast. 2017-10-12 20:54:36 +00:00
jmcneill 4f94358d1f Fix PA16 and PA17 function 2; was reserved (NULL), should be "emac". 2017-10-12 20:17:27 +00:00
skrll 7683c26986 G/C unused struct 2017-10-12 20:05:42 +00:00
skrll 6ce82ed9ae Trailing whitespace 2017-10-12 19:59:22 +00:00
christos 5e41530482 When growing the state, remember to grow the seed array, otherwise we'll end
up accessing memory we did not allocate.
2017-10-12 18:27:38 +00:00
knakahara b168165350 Add a locking notes for if_spppsubr 2017-10-12 09:53:55 +00:00
knakahara 3cdb7bbdc5 Add a locking notes for if_pppoe 2017-10-12 09:50:55 +00:00
knakahara 5fa45178cf sppp_lock is changed from mutex to rwlock now. Contributed by s-yamaguchi@IIJ.
Add locking notes later.
2017-10-12 09:49:43 +00:00
flxd e004f9f088 Exclude Enhanced Apple Sound Chip (EASC) without support for wavetable mode
used by asc(4).
2017-10-12 09:48:53 +00:00
knakahara 45be2dc76a Integrate two locks used to protect PPPoE softc. Contributed by s-yamaguchi@IIJ.
PPPOE_SESSION_LOCK protects variables used in PPP packet
processing, on the other hand PPPOE_PARAM_LOCK protects
the other variables used to establish a PPPoE session id.

Those locks isn't acquired in the same time because the
PPP packet processing doesn't work without PPPoE session id.
By the reason, the locks can be integrated into PPPOE_LOCK.

Add locking notes later.
2017-10-12 09:47:21 +00:00
ryo a3bfd3d76c return 0xffffffffffffffff (= -1). not 0x00000000ffffffff. 2017-10-12 05:51:51 +00:00
ryo 101f6c9891 fix compile error without USE_PAM (-Werror,-Wmissing-noreturn) 2017-10-12 05:00:23 +00:00
ozaki-r e3d0b2cc0d Mention NOMPSAFE 2017-10-12 03:31:39 +00:00
knakahara 3ceeffee3e add opencrypto(9)'s scalability comment 2017-10-12 03:27:00 +00:00
ozaki-r d7724639a3 Mention MP-ifications of bpf, vlan, opencrypto and ipsec 2017-10-12 03:07:39 +00:00
ozaki-r a46eb3599f Set IFEF_START_MPSAFE by default
Because vlan_start is already MP-safe, there is no reason to not do so.

Acked by s-yamaguchi@IIJ
2017-10-12 02:40:59 +00:00
msaitoh 96b0f7c6ab IOMMU cap dump fixes:
- Print Capability Register's value.
- Indent output correctly.
- s/cahced/cached/
- Print MSI Message number with 0x%02x
2017-10-12 02:40:34 +00:00
lukem aa650fa756 Clarify foo.sh behaviour
Improve wording of the warning for "foo.sh" behaviour,
to reduce ambiguity.
Per feedback from Sascha Wildner.
2017-10-11 23:42:33 +00:00
macallan 93121220b3 add missing break;s 2017-10-11 17:08:32 +00:00
maxv 129484f161 Use bootspace. 2017-10-11 16:56:26 +00:00
maxv eb4d683906 Make sure we're relocating a relocatable kernel. 2017-10-11 16:21:06 +00:00
maxv 493e10311f Remove this #if, these options belong to the kernel and not the prekern.
No real change since eblob is always here. And I was apparently drunk
when writing some comments.
2017-10-11 16:18:11 +00:00
maxv e1fecdba03 Add an alignment to fill strictly all of the padding; does not increase
the size of the prekern.
2017-10-11 16:13:16 +00:00
jmcneill d4396db265 Remove HUMMINGBIRD_A31 kernel config (supported by SUNXI kernel now) 2017-10-11 12:27:49 +00:00