253514 Commits

Author SHA1 Message Date
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
ozaki-r
856a12a96d Synchronize on rtcache_generation with rtlock
It's racy if NET_MPSAFE is enabled.

Pointed out by joerg@
2017-09-25 04:15:33 +00:00
ozaki-r
4cfe7ee520 Use a dedicated mutex for rt_rawcb instead of softnet_lock if NET_MPSAFE 2017-09-25 01:57:54 +00:00
ozaki-r
475ed81624 Fix race condition on the rawcb list shared by rtsock and keysock
keysock now protects itself by its own mutex, which means that
the rawcb list is protected by two different mutexes (keysock's one
and softnet_lock for rtsock), of course it's useless.

Fix the situation by having a discrete rawcb list for each.
2017-09-25 01:56:22 +00:00
jmcneill
1a3d098173 Disable debug again 2017-09-25 00:12:21 +00:00
jmcneill
57030377dd USB works on Tegra X1 now. 2017-09-25 00:03:34 +00:00
jmcneill
272c2c9ec5 If the bus glue calls xhci_init with interrupts enabled, there is a window
between when xhci interrupts are enabled and the usb bus driver is
attached. If an irq occurs in this window, xhci will attempt to schedule
a softint with an invalid softint handle.

Add a quirk flag, XHCI_DEFERRED_START, that when set skips starting the
controller at the end of xhci_init. Bus glue that sets this is responsible
to call xhci_start after attaching the child usb devices.
2017-09-25 00:03:10 +00:00
nat
8ca3cdf594 Move play/rec mix ring buffers into a virtual channel sc_mixring. NFCI. 2017-09-24 23:40:41 +00:00
jmcneill
d77ae92edb More XUSB init. A USB3 memory stick seems to work now. 2017-09-24 20:09:53 +00:00
jmcneill
32f88b93d3 Enable XUSB power rails at attach 2017-09-24 20:09:22 +00:00
joerg
d03e05b4e5 Force _GNU_SOURCE on Linux, otherwise strptime is not defined and more
restrictive macros result in even nastier fallout.
2017-09-24 09:43:27 +00:00
christos
6bca62c78e const me harder. 2017-09-24 07:39:28 +00:00
jmcneill
0b0e6c1c62 Disable debug 2017-09-23 23:58:31 +00:00
jmcneill
95093c9f3c Match nvidia,tegra210-apbdma 2017-09-23 23:58:18 +00:00
jmcneill
c8fa470a33 Add APBDMA clock 2017-09-23 23:58:04 +00:00
jmcneill
a0345ea381 add wskbd at gpiokeys 2017-09-23 23:54:54 +00:00
jmcneill
b6e9d7090f For known Linux keycodes, report key press events through a wskbd device
instead of using sysmon pswitch hotkey events.
2017-09-23 23:54:30 +00:00