253730 Commits

Author SHA1 Message Date
agc
89894cf870 Also report versions of tcpdump, libpcap, and wpa_supplicant
Bump sys_info version to 20170928
2017-09-28 18:08:04 +00:00
maxv
6f5ab4ae3c Pack the useful variables at the end of the trampoline page; eliminates
a hard-coded dependency on KERNBASE. Note that I cannot test this change
on i386 right now, but it seems fine enough.
2017-09-28 17:48:20 +00:00
maxv
f030f29afb Clean up, and initialize the lwp0 fields in init_x86_64. 2017-09-28 17:35:08 +00:00
christos
d6d612dc81 - sanitize key debugging so that we don't print extra newlines or unassociated
debugging messages.
- remove unused functions and make internal ones static
- print information in one line per message
2017-09-28 17:21:42 +00:00
sborrill
0e0ce305cc Fix the most obvious integer overflow errors which can lead to superblock
corruption. Thanks to riastradh@

For example:

# df /data
Filesystem    1K-blocks       Used      Avail %Cap Mounted on
/dev/ccd0d   -19974939099004 -19982708701532 -737868756431824584   0% /data

# dumpfs -s /dev/rccd0d
file system: /dev/rccd0d
format  FFSv2
endian  little-endian
location 65536  (-b 128)
magic   19540119        time    Thu Sep 28 13:18:10 2017
superblock location     65536   id      [ 595fa4a5 3363fe37 ]
cylgrp  dynamic inodes  FFSv2   sblock  FFSv2   fslevel 5
nbfree  242773148       ndir    211185  nifree  650798800       nffree
215448
ncg     13933   size    2647654400      blocks  -4993734774751
bsize   32768   shift   15      mask    0xffff8000
fsize   4096    shift   12      mask    0xfffff000
frag    8       shift   3       fsbtodb 3
bpg     23754   fpg     190032  ipg     46848
minfree 5%      optim   time    maxcontig 2     maxbpg  4096
symlinklen 120  contigsumsize 2
maxfilesize 0x000800800805ffff
nindir  4096    inopb   128
avgfilesize 16384       avgfpdir 64
sblkno  24      cblkno  32      iblkno  40      dblkno  2968
sbsize  4096    cgsize  32768
csaddr  35792   cssize  225280
cgrotor 0       fmod    0       ronly   0       clean   0x01
wapbl version 0x1       location 2      flags 0x0
wapbl loc0 6354693888   loc1 131072     loc2 512        loc3 3
flags   none
fsmnt   /data
volname         swuid   0
2017-09-28 17:07:20 +00:00
christos
a52d29cf5f - add a constant for the vlan mask.
- enforce that we have a tag before we get it.
2017-09-28 16:26:14 +00:00
christos
1706b6f5e4 - only get the vtag if we have it like the other drivers
- mask the hardware vlan tag
2017-09-28 16:24:39 +00:00
christos
5ee97c1d12 only get vtag when we have vtag like the other drivers. 2017-09-28 16:23:57 +00:00
maya
ab208a3dad Restore CAVEATS section unmodified.
It apparently refers to VAX and its lack of a negative zero.
2017-09-28 15:03:18 +00:00
jmcneill
1e1980ee8d Fix register write location 2017-09-28 13:08:00 +00:00
maya
cf91bfe7da List a few more functions 2017-09-28 11:18:41 +00:00
maya
f56039ca90 Remove CAVEATS section
The man page for an individual function is not the right place to discuss
the issues with negative zero
2017-09-28 11:09:05 +00:00
msaitoh
6d10025f31 Print the following cpuid bits:
0x0000000d:1 eax	(xsaveopt, xsavec, xgetbv1, xsaves)
  0x0000000f:0 edx	(cqm_llc)
  0x0000000f:1 edx	(cqm_occup_llc)
  0x00000006   eax	(dtherm, ida, arat, pln, pts, hwp, hwp_notify,
			 hwp_act_window, hwp_epp, hwp_pkg_req)
2017-09-28 10:59:38 +00:00
jmcneill
267dce13d6 use CLK_GATE_SIMPLE 2017-09-28 09:44:29 +00:00
msaitoh
761e1e94b4 Print ACPI_HEST_GHES_ASSIST flag (ACPI 6.2). 2017-09-28 06:55:08 +00:00
wiz
e4dcc564b8 Remove Tn. 2017-09-28 05:51:26 +00:00
christos
3b612085a8 Remove debugging log statement 2017-09-28 02:32:51 +00:00
macallan
ec933c7ffa if there is no 'compatible' property try to guess the codec from the i2c
address
2017-09-27 22:31:53 +00:00
macallan
53b0c4dcd2 add obio and some child devices 2017-09-27 22:18:15 +00:00
macallan
9e80246f5a identify as 'Audio Codec' and print out which codec we found 2017-09-27 22:11:31 +00:00
macallan
7b642a570f pass the right OF node to i2c devices 2017-09-27 22:10:19 +00:00
mlelstv
e30da9649b fix offset of segment count in NetBSD crashdump header. 2017-09-27 21:04:05 +00:00
maya
072aa72f29 move VAX notes to CAVEATS, clarify. 2017-09-27 18:55:50 +00:00
jmcneill
cd592b6c1a Tegra210 HDA support. 2017-09-27 10:50:06 +00:00
msaitoh
cf73666af4 Print device name in ixv_attach(). 2017-09-27 10:31:29 +00:00
jmcneill
3d03fc9a2a add SOC_THERM and TSENSOR clocks 2017-09-27 10:19:48 +00:00
jmcneill
a9f139f85e enable PHYs 2017-09-27 10:19:13 +00:00
maya
943496d3b4 Fix typo 2017-09-27 10:12:47 +00:00
ozaki-r
bbda3ec76e Take softnet_lock on pr_input properly if NET_MPSAFE
Currently softnet_lock is taken unnecessarily in some cases, e.g.,
icmp_input and encap4_input from ip_input, or not taken even if needed,
e.g., udp_input and tcp_input from ipsec4_common_input_cb. Fix them.

NFC if NET_MPSAFE is disabled (default).
2017-09-27 10:05:04 +00:00
ozaki-r
d546b2176b Add missing ifdef NET_MPSAFE 2017-09-27 09:55:52 +00:00
maya
411564dc9a Mention tgmath cproj, creal, cabs
following copysign example use of "real-floating" with "complex-floating"
2017-09-27 09:20:27 +00:00
maya
88374bbe62 Move VAX notes to CAVEATS, clarify that it just returns zero
The VAX isinf implementation is in sys/arch/vax/include/math.h.
2017-09-27 09:04:30 +00:00
maya
407509b76f Add an offensive acronym, 'ayfkm' 2017-09-27 08:43:19 +00:00
msaitoh
0fd02e45f9 Cosmetic change (tab and newline). 2017-09-27 08:14:18 +00:00
ozaki-r
5a66a7b0fc Fix deadlock between pserialize_perform and localcount_drain
A typical ussage of localcount_drain looks like this:

  mutex_enter(&mtx);
  item = remove_from_list();
  pserialize_perform(psz);
  localcount_drain(&item->localcount, &cv, &mtx);
  mutex_exit(&mtx);

This sequence can cause a deadlock which happens for example on the following
situation:

- Thread A calls localcount_drain which calls xc_broadcast after releasing
  a specified mutex
- Thread B enters the sequence and calls pserialize_perform with holding
  the mutex while pserialize_perform also calls xc_broadcast
- Thread C (xc_thread) that calls an xcall callback of localcount_drain tries
  to hold the mutex

xc_broadcast of thread B doesn't start until xc_broadcast of thread A
finishes, which is a feature of xcall(9). This means that pserialize_perform
never complete until xc_broadcast of thread A finishes. On the other hand,
thread C that is a callee of xc_broadcast of thread A sticks on the mutex.
Finally the threads block each other (A blocks B, B blocks C and C blocks A).

A possible fix is to serialize executions of the above sequence by another
mutex, but adding another mutex makes the code complex, so fix the deadlock
by another way; the fix is to release the mutex before pserialize_perform
and instead use a condvar to prevent pserialize_perform from being called
simultaneously.

Note that the deadlock has happened only if NET_MPSAFE is enabled.
2017-09-27 07:27:29 +00:00
msaitoh
597a86a670 - Print SAPIC EID of Processor Local APIC/SAPIC Affinity.
- Print GIC Interrupt Translation Service(ITS) Affinity (ACPI 6.2)
- KNF
- Whilte space cleanup.
2017-09-27 05:43:55 +00:00
maya
166de49ccc Mention wanting to remove isnanf too, reword 2017-09-26 18:03:30 +00:00
jmcneill
479a90aa5c More PCIe / XUSBPAD initialization goo for Tegra210. 2017-09-26 16:12:45 +00:00
maya
14e90145c6 Add man page link for hypotl.3 2017-09-26 16:01:58 +00:00
maya
3c4aaf3f6f omit mention of cabs (not relevant to this man page)
mention type-generic hypot
mention hypotl
2017-09-26 15:42:54 +00:00
maya
69be559832 Mention there's a type generic variant in tgmath.h
(XXX and in math.h, if you're netbsd)
2017-09-26 15:12:57 +00:00
kre
659488a459 In rev 1.0a of the Intel High Definition Audio Spec:
https://www.intel.com/content/www/us/en/standards/
		high-definition-audio-specification.html

page 186 shows the layout of the baseline block of the ELD (EDID Like Data)
struct - and allows a reserved (effectively padding) area at the end of the
struct.  This is required to keep the struct an even number of words long
(size measured in units of 32 bits) while allowing for a variable length
monitor name, followed by a variable number of 3 byte structs - the
combination of which is not likely to be a multiple of 4.

Code here assumed that there was no padding, and objected to the ELD
format if any padding bytes existed (hdafg_dd_parse_info() would return
EINVAL) causing a "failed to parse ELD data" message (if HDAFG_HDMI_DEBUG
is defined) from hdafg_assoc_dump_dd() making it difficult (or at least
confusing) to debug HDMI related audio issues (hdafg_assoc_dump_dd would
not print most of the data it is expected to print) although this would
most likely have no effect on actual operations.

Change a test from a != to < (there must be enough data, not exactly the
amount needed) for the EINVAL.   As a consequence, the length after the
SAD data is parsed (the 3 byte structs) is no longer required to be 0,
so remove the KASSERT() (previously it was just useless, the code guaranteed
a 0 value, now it is incorrect.)   While here also change a related
diagnostic message to be slightly more informative as to what is being shown.

OK jmcneill@
2017-09-26 09:24:22 +00:00
msaitoh
82fd8c9b22 - Correct NVM word size check in wm_nvm_version() to prevent
"EERD polling failed" error on attach. if_wm.c rev. 1.534 was not perfect.
  Reported by ozaki-r@.
- Print NVM offset and word count when EERD polling failed.

XXX pullup-8.
2017-09-26 08:25:56 +00:00
knakahara
a6e88d7809 VLAN ID uses pkthdr instead of mtag now. Contributed by s-yamaguchi@IIJ.
I just commit by proxy. Reviewed by joerg@n.o and christos@n.o, thanks.
See http://mail-index.netbsd.org/tech-net/2017/09/26/msg006459.html

XXX need pullup to -8 branch
2017-09-26 07:42:05 +00:00
nat
00629487c4 Call audio_mix for a third time - thus ensuring there is a block of data
in the mix ring before the audio interrupt occurs.

This addresses the instability seen in the audio atf tests.
2017-09-26 04:34:59 +00:00
christos
229703cd31 belatedly update ACPICA 2017-09-25 23:19:31 +00:00
maxv
16a900cef9 Clean up and split loadfile, reduces a patch I have. 2017-09-25 20:39:21 +00:00
jmcneill
42f8fa7c23 Enable pcie on tegra210 2017-09-25 08:55:27 +00:00
jmcneill
8b1dfa0ad2 Add clocks used by pcie 2017-09-25 08:55:07 +00:00
christos
7e10eace88 Factor out the read and write data code from the huge child_process function.
When we create a pipe to read data, restore the sigchld signal handler since
pclose expects to wait for the child (to avoid spurious error reporting later).
2017-09-25 08:30:46 +00:00