freebsd-skq/sys
Robert Watson 95fadd99d5 Merge robustness improvements for the ALTERA JTAG UART driver from
CheriBSD, which attempt to work around an inherent race in the UART's
control-register design in detecting whether JTAG is currently,
present, which will otherwise lead to moderately frequent output
drops when running in polled rather than interrupt-driven operation.
Now, these drops are quite infrequent.

commit 9f33fddac9215e32781a4f016ba17eab804fb6d4
Author: Robert N. M. Watson <robert.watson@cl.cam.ac.uk>
Date:   Thu Jul 16 17:34:12 2015 +0000

    Add a new sysctl, hw.altera_jtag_uart.ac_poll_delay, which allows the
    (default 10ms) delay associated with a full JTAG UART buffer combined
    with a lack of a JTAG-present flag to be tuned.  Setting this higher
    may cause some JTAG configurations to be more reliable when printing
    out low-level console output at a speed greater than the JTAG UART is
    willing to carry data.  Or it may not.

commit 73992ef7607738b2973736e409ccd644b30eadba
Author: Robert N. M. Watson <robert.watson@cl.cam.ac.uk>
Date:   Sun Jan 1 15:13:07 2017 +0000

    Minor improvements to the Altera JTAG UART device driver:

    - Minor rework to the logic to detect JTAG presence in order to be a bit
      more resilient to inevitable races: increase the retry period from two
      seconds to four seconds for trying to find JTAG, and more agressively
      clear the miss counter if JTAG has been reconnected.  Once JTAG has
      vanished, stop prodding the miss counter.

    - Do a bit of reworking of the output code to frob the control register
      less by checking whether write interrupts are enabled/disabled before
      changing their state.  This should reduce the opportunity for races
      with JTAG discovery (which are inherent to the Altera
      hardware-software interface, but can at least be minimised).

    - Add statistics relating to interrupt enable/disable/JTAG
      discovery/etc.

    With these changes, polled-mode JTAG UART ttys appear substantially
    more robust.

MFC after:	1 week
Sponsored by:	DARPA, AFRL
2017-01-28 12:43:19 +00:00
..
amd64 Apply r210555 to 64 bit linux support: 2017-01-24 16:13:59 +00:00
arm Configure the timer capture pin to input mode in the timer control 2017-01-27 04:08:24 +00:00
arm64 Remove a static function declaration for a function not implemented. 2017-01-23 16:40:20 +00:00
boot Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
bsm
cam Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
cddl Fix an off-by-one in an assertion on fasttrap tracepoint sizes. 2017-01-27 17:58:41 +00:00
compat Introduce __read_mostly and __exclusive_cache_line macros. 2017-01-27 14:53:09 +00:00
conf Honor LINKS=x y in dtb modules. We need this for compatibility links 2017-01-28 05:07:53 +00:00
contrib Fix lookup of original destination address when using a redirect rule. 2017-01-27 14:12:34 +00:00
crypto Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
ddb Revert r311952. 2017-01-14 22:06:25 +00:00
dev Merge robustness improvements for the ALTERA JTAG UART driver from 2017-01-28 12:43:19 +00:00
fs Remove mistakenly merged field. 2017-01-19 20:03:26 +00:00
gdb
geom Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
gnu Add Ingenic X1000 DTS files (unofficial). 2016-11-19 15:03:49 +00:00
i386 Garbage collect the FPU_ERROR_BROKEN option. 2017-01-28 03:53:53 +00:00
isa Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
kern hwpmc: annotate pmc_hook and pmc_intr as __read_mostly 2017-01-27 22:14:42 +00:00
kgssapi
libkern Use time_t for intermediate values to avoid overflow in clock_ts_to_ct 2017-01-24 18:05:29 +00:00
mips As with GENERIC on other architectures, include COMPAT_FREEBSD10 and 2017-01-28 11:38:51 +00:00
modules Remove more pc98 support. 2017-01-28 09:58:00 +00:00
net ifnet: move the new ifnet_event EVENTHANDLER_DECLARE to net/if_var.h 2017-01-28 07:26:42 +00:00
net80211 [net80211] prepare configuration checks for VHT, fragment-offload and seqno-offload. 2017-01-27 01:24:24 +00:00
netgraph mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION. 2017-01-20 00:02:11 +00:00
netinet Add a knob to change default behavior of inheriting listen socket's tcp stack 2017-01-27 23:10:46 +00:00
netinet6 After the in_control() changes in r257692, an existing address is 2017-01-25 19:04:08 +00:00
netipsec Add direction argument to ipsec_setspidx_inpcb() function. 2017-01-08 12:40:07 +00:00
netnatm
netpfil Initialize IPFW static rules rmlock with RM_RECURSE flag. 2017-01-17 10:50:28 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Move the ConnectX-3 and ConnectX-2 driver from sys/ofed into sys/dev/mlx4 2016-09-30 08:23:06 +00:00
opencrypto Add support for the fpu_kern(9) KPI on arm64. It hooks into the existing 2016-10-20 09:22:10 +00:00
powerpc Avoid using non-zero argument for __builtin_frame_address(). 2017-01-23 04:03:12 +00:00
riscv Add RISC-V support for truss(1) 2017-01-24 09:41:44 +00:00
rpc
security Audit 'fd' and 'cmd' arguments to fcntl(2), and when generating BSM, 2016-11-22 00:41:24 +00:00
sparc64 Trim a few comments on platforms that did not implement mmap of /dev/kmem. 2017-01-13 21:52:53 +00:00
sys ifnet: move the new ifnet_event EVENTHANDLER_DECLARE to net/if_var.h 2017-01-28 07:26:42 +00:00
teken
tests
tools Replace using of objdump with elfdump 2017-01-10 18:46:40 +00:00
ufs ffs_vnops: Simplify extattr access 2017-01-19 16:46:05 +00:00
vm hwpmc: partially depessimize munmap handling if the module is not loaded 2017-01-24 22:00:16 +00:00
x86 Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
xdr
xen "Buses" is the preferred plural of "bus" 2017-01-15 17:54:01 +00:00
Makefile Remove pc98 support completely. 2017-01-28 02:22:15 +00:00