257403 Commits

Author SHA1 Message Date
jdolecek
abf6f6277c regen 2018-03-17 19:37:49 +00:00
jdolecek
a13a1695df add LAN78xx family (Raspberry Pi 3B+) entries - PR kern/53105 2018-03-17 19:37:11 +00:00
christos
879e43ae3a move the compat code in compat. 2018-03-17 19:03:25 +00:00
christos
ab151d3e85 redo the cpu ucode compat code. 2018-03-17 19:00:23 +00:00
ryo
eabbe28c9b move from sys/arch/arm/arm32/armv7_generic_dma.c to sys/arch/arm/arm/arm_generic_dma.c,
and change variable name from armv7_generic_dma_tag to arm_generic_dma_tag

no functional change. (preliminary changes for merging aarch64)
2018-03-17 18:34:09 +00:00
christos
6195758a85 sync with x86; the version code could be merged. 2018-03-17 18:22:23 +00:00
maxv
53232bc18f Add missing opt_svs.h. 2018-03-17 17:12:39 +00:00
christos
698419424d tuck in all the compat microcode code in one place. 2018-03-17 15:56:32 +00:00
jmcneill
95923c6fe2 Add support for overriding the video mode by setting an ARCS environment
variable.

If the "crmfb_mode" environment variable is set, treat it as a mode
string in the form WIDTHxHEIGHT[@REFRESH] and generate monitor timings
using the VESA GTF formula. If set, this overrides the EDID preferred
mode.
2018-03-17 13:14:27 +00:00
jdolecek
f24079bab1 use setprogname()/getprogname(), do not hardcode the prognam name in fixed
strings
2018-03-17 11:07:26 +00:00
nakayama
2819bbab3f Disable wchar_t support since our C library does not treat wchar_t
as UCS-4 in the case of non-UTF-8 locales.

This feature was controlled by USE_WCHAR and disabled on NetBSD 7.
2018-03-17 11:06:48 +00:00
maxv
18e572265e Set the scopes before calling icmp6_error(). This fixes a bug similar to
the one I fixed in rev1.17: since the scopes were not set the packet was
never actually sent.

Tested with wireshark, now the ICMPv6 reply is correctly sent, as
expected.
2018-03-17 10:42:23 +00:00
maxv
9da1cd5b6c Fix the IPv6 payload computation in npf_tcpsaw. It was incorrect, and this
caused the "return-rst" rules to send back an RST with the wrong ACK when
the received SYN had an IPv6 option.
2018-03-17 10:21:09 +00:00
jdolecek
deaa1c3051 also remove now duplicate nvme_ccb_put() call from nvme_get_number_of_queues() 2018-03-17 09:45:44 +00:00
jdolecek
4fa80ed085 fix passthrough command usage also in nvme_get_number_of_queues(), fixes
memory corruption and possible panic on boot

PR kern/53059
2018-03-17 09:36:32 +00:00
wiz
71a7bedb79 binutils-2.30 out 2018-03-17 07:31:36 +00:00
ryo
d802a65f88 whitespace 2018-03-17 04:16:09 +00:00
uwe
c23d0de35c Drop "show or set the limit on" legalese from the description of each
and every option to ulimit built-in.  The show-or-set text is already
supplied *both* before and after the list.  Pedantically repeating it
for each option just adds a lot of visual clutter that gets in the way
of actually using this fragment of the manual page as a quick
reference.
2018-03-17 01:53:06 +00:00
uwe
f46f1cb2a2 Tweak "ulimit" synopsis. 2018-03-17 01:40:28 +00:00
uwe
8b4ce5dc95 Cleanup markup in the "Command Line Editing" section. 2018-03-17 01:32:42 +00:00
uwe
252ed5cb12 Cleanup markup in the "Job Control" section. 2018-03-17 01:03:08 +00:00
christos
374568837c CID/1427732: Don't dereference NULL execname if there is no emul_arg.
(there always is one in our emulations) from alnsn@
2018-03-17 00:30:50 +00:00
jdolecek
3b8b7556ca switch handling of passthrough commands to use queue, instead of polling
should fix PR kern/53059 by Frank Kardel
2018-03-17 00:28:03 +00:00
uwe
e2342ea669 Use .Dv, not .Ev, to refer to LINENO, it's not an environment variable. 2018-03-17 00:03:25 +00:00
uwe
1a2e30dffb Default values of PS1 and friends have only single space. Use .Li to
typeset them to make that space more visible in PostScript output.
2018-03-16 23:56:13 +00:00
uwe
455a88217c Use .Bd -literal for code example. 2018-03-16 23:36:13 +00:00
jdolecek
1bfffd71ff refactor the locking code around DIOCGCACHE handling to be reusable
for other infrequent commands

it uses single condvar for simplicity, and uses it both when waiting
for ccb or command completion - this is fine, since usually there
will be just one such command qeueued anyway

use this to finally properly implement DIOCCACHESYNC - return only after
the command is confirmed as completed by the controller
2018-03-16 23:31:19 +00:00
macallan
1120d43356 special-case bus 0, now we find AGP devices on G5 2018-03-16 22:15:07 +00:00
macallan
c137279a67 implement fan control, get calibration data from EEPROM via uni_n 2018-03-16 22:11:53 +00:00
macallan
60ed2cef81 get EEPROM data from uni_n instead of poking around in OF 2018-03-16 22:10:31 +00:00
macallan
653b75ce3c gather per-CPU EEPROM contents if we have them 2018-03-16 22:08:53 +00:00
jdolecek
b685be4f0e stop using q_nccbs_avail for deciding whether there are available ccbs;
no need to maintain a counter _and_ q_ccb_list

this fixes deadlock when all ccbs happen to be taken before completion
interrupt - nvme_q_complete() increased q_nccbs_avail only after
processing all the completed commands, by then there was nothing
left to actually kick the disk queue again into action

this also fixes ccb leak on command errors e.g. with bus_dmamem_alloc()
or bus_dmamel_load() - q_nccbs_avail was never decreased on the error path

fixes PR kern/52769 by Martin Husemann, thanks to Paul Goyette
for testing
2018-03-16 18:49:18 +00:00
ryo
509197b672 use designated initializer to make adaptability and flexibility for changing struct bus_space.
no functional change.
2018-03-16 17:56:31 +00:00
christos
5db8fdfe6f remove timestamping diff that should have not been committed. 2018-03-16 17:35:13 +00:00
christos
8cb1b0010b PR/53103: Timo Buhrmester: linux emulation of sendto(2) broken
The sockargs refactoring broke it, because sockargs only works with a user
address. Added an argument to sockargs to indicate where the address is
coming from. Welcome to 8.99.14.
2018-03-16 17:25:04 +00:00
tih
870d92dc2a Add packet filtering to tun(4) interfaces.
Calls to pfil_run_hooks() were missing in if_tun.c.  This meant that
filtering configuration could be added to e.g. /etc/npf.conf, but
would be ignored, because the filter never saw the packets.  This
change adds the required calls.

While here, correct the return value from tun_output(): it's been
returning 0 regardless of any error condition present, but will now
correctly propagate such information upward.

Thanks to maxv for guidance!

OK: christos, martin
2018-03-16 17:12:04 +00:00
tih
4c04b994c3 Fix the handling of the state returned from pfil_run_hooks().
pfil_run_hooks() invokes any registered packet filters on the packet
being handled.  It may return a (non-zero) errno, indicating that a
filter has decided that the packet should be discarded, and has freed
the mbuf.  While a non-error (0) return usually means that the packet
should be processed normally, a filter may still free the mbuf if the
packet is a fragment, and the filter is holding it for reassembly and
future evaluation.  Therefore, there must be separate tests for the
return value and for a possible discarded packet.  (See pfil(9).)

OK: christos, martin
2018-03-16 17:00:35 +00:00
maxv
d52fd606c5 Remove ipkdb from i386. Also remove unused references in amd64.
I already talked about doing that six months ago on port-i386@. Back then
it was as general cleanup, but now, with SVS etc, we do actually have
good reasons for simplifying the entry points.

Ok kamil@. (christos@ was in the conversation too)
2018-03-16 12:48:54 +00:00
maxv
08915c4c5b Remove the prototypes for cpu_uarea_*, I removed these functions two
minutes ago.
2018-03-16 12:21:50 +00:00
maxv
a2af8e550d Remove the __HAVE_CPU_UAREA_ROUTINES code from x86.
It was available only in amd64, and I disabled it a few months ago in
order to support SVS. Regardless of SVS this option was questionable,
since it made stack overflows more difficult to detect.
2018-03-16 12:19:35 +00:00
ryo
d5929c3502 fix compile error with options BOOT_DUMP 2018-03-16 12:10:16 +00:00
kre
1b14ecae60 Markup fixes (partly from uwe@) and change some tabs to spaces, they
seem to work better...
2018-03-16 12:06:18 +00:00
kre
f993985a6e Restore some (*roff) comments deleted in previous (partially unshave
the yak) for which the purpose was misunderstood.   But trim one more hair.
2018-03-16 11:53:57 +00:00
kre
f1861a8088 Give the yak a quick trim and shave, and make one or two minor
wording changes (which are, hopefully, improvements).
2018-03-16 11:19:24 +00:00
wiz
dc9706d87a Improve wording. Fix a Cm argument. 2018-03-16 10:42:20 +00:00
mrg
654940c20e remove obsolete ovbcopy(). it may be the very slightly bit
faster for larger copies, but slower for smaller ones.
i don't see any major benefit in keeping this code.

this is the final ovbcopy() reference in src.  you're welcome :-)
2018-03-16 09:29:24 +00:00
maxv
f917d855c9 Rename "handle_" -> "Xhandle_", and add the function names (introduced by
SVS) in db_machdep.c.

Should fix the DDB part of PR/53060.
2018-03-16 08:48:34 +00:00
msaitoh
2cb161c9d1 Regen. 2018-03-16 08:40:25 +00:00
msaitoh
96e781dda4 Intel 0x15c4 is SFI based and 0x15ce is KR based. 2018-03-16 08:40:06 +00:00
maxv
f4df18fbb6 Add one more page for the stack, to compensate for the fact that SVS's
stack switching mechanism consumes approximately one page.
2018-03-16 08:21:56 +00:00