253883 Commits

Author SHA1 Message Date
msaitoh
f0f5e556f8 A part number field of DDR3 and DDR4 is not NUL terminated. All unused chars
are filled by 0x20. Print it correctly.

Before:
spdmem0 at iic0 addr 0x50: 8KTF51264AZ-1G6E1 E1M^@,DPAFEQZ021
spdmem1 at iic0 addr 0x51: ACR256X64D3U1333C9BA^AM^X
spdmem2 at iic0 addr 0x52: KP223C-ELD        BA^BM-~

After:
spdmem0 at iic0 addr 0x50: 8KTF51264AZ-1G6E1
spdmem1 at iic0 addr 0x51: ACR256X64D3U1333C9
spdmem2 at iic0 addr 0x52: KP223C-ELD
2017-10-16 08:33:48 +00:00
jdolecek
fc8e5b3175 fix comment - it's WDCTL_IDS which is supposed to disable interrupts 2017-10-16 05:52:43 +00:00
christos
bb321f6151 Setting AT_BASE on static binaries breaks TLS because they assume that
it is 0, will fix it differently.
2017-10-16 01:50:55 +00:00
abhinav
92a9b5c3ba Add copyright and rcs header to the test program.
Also, remove a test case which was not supposed to be there.
(While that test case works with the changes I committed, testing that
 test case with the test program is not possible in its current form. I'm
 working on that.)
2017-10-15 19:17:30 +00:00
abhinav
fa61555626 Add support for escaping special characters when doing filename completion.
For instance if the file name is "foo bar":
$ ls foo<TAB>
should get autocompleted to:
$ ls foo\ bar

Works for similar other characters too, which need escaping.

Also, add an accompanying test program to ensure the escaping is correct
in various scenarios (within quotes, without quotes, with other special characeters)

Thanks to Christos for reviews, help and feedback.
2017-10-15 18:59:00 +00:00
jdolecek
351abcce56 explicitely ignore polled xfers in wdcintr(), so it won't be processed
twice - seems setting WDSD_IBM actually has no effect at least
on some PCI-IDE, and the interrupt ends up being triggered when we release
the channel lock to call c_poll hook

fixes PR kern/52605, and should also fix the 'New panic in wdc_ata_bio_intr'
reported on current-users@
2017-10-15 18:02:33 +00:00
christos
c06842d6f7 try to re-open the pcap connection on error. 2017-10-15 15:26:10 +00:00
jdolecek
63bd69a800 move the extra thaw for scheduled ata_reset_channel() to the function itself,
so it's done regardless if the actual reset is run from thread context
or e.g. call with AT_POLL; fixes a hang after xfer failure and dma downgrade

add some debugging printfs, so freeze/thaw issues are easier to track
2017-10-15 14:41:06 +00:00
maxv
a4ef825bc2 Mmh, don't forget to clear the TLS gdt slots on Xen. Otherwise, when doing
a lwp32->lwp64 context switch, the new lwp can use the slots to reconstruct
the address of the previous lwp's TLS space (and defeat ASLR?).
2017-10-15 13:34:24 +00:00
maxv
f10c10f470 Use two separate functions: cpu_segregs32_zero and cpu_segregs64_zero. The
way segment registers work on amd64 will diverge between 32bit and 64bit
LWPs.
2017-10-15 12:49:53 +00:00
pgoyette
ae677eba76 Fix typo: s/one or mode/one or more/ 2017-10-15 12:01:43 +00:00
maxv
d8ee5df404 Remove this #undef on native amd64, but keep it on Xen. 2017-10-15 11:39:42 +00:00
maxv
c3992c95be Make sure the 32bit LWPs don't have MDL_IRET set. That's not a problem
right now, but will be in the future.
2017-10-15 11:36:15 +00:00
maxv
675bd60661 Add setds and setes, will be useful in the future. 2017-10-15 11:31:00 +00:00
jdolecek
d374073a97 revert the logic for wdc_wait_for_unbusy() in wdc_ata_bio_intr() to pre-NCQ,
wdcintr() and wdctimeout() need that; follows same change
in atapi_wdc.c rev. 1.128
2017-10-15 11:27:14 +00:00
maxv
395f538331 Add setusergs on Xen, and simplify. 2017-10-15 10:58:32 +00:00
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