opnsense-src/sys
Andriy Gapon 2de6637133 aw_spi: improve I/O stability
This driver does not use DMA at the moment, so some care is needed to
prevent TX FIFO underruns and RX FIFO overflows.
Several improvements are done in oder to minimize chances of those.

First, the interrupt handling is moved to a filter to minimize latency.
Second, FIFO trigger thresholds are configured for both FIFOs.
The TX FIFO threshold is set to 3/4-th of its size and the RX FIFO
threshold is set to 1/4-th of its size.
The interrupt conditions are changed from the empty FIFO and full FIFO
for the TX and RX correspondingly to going below and above the thresholds.

While here I renamed AW_SPI_IER_RF_ERQ to AW_SPI_IER_RF_RDY which is
closer to what the documentation uses, RF_RDY_INT_EN in the interrupt
control register and RX_RDY in the interrupt status register.

(cherry picked from commit 08ff54dc5b)
2022-01-03 10:47:59 +02:00
..
amd64 amd64 sigtramp: comment-out annotations for registers with DWARF number >= 32 2022-01-02 21:03:01 +02:00
arm aw_spi: improve I/O stability 2022-01-03 10:47:59 +02:00
arm64 MFC: arm64 fixes for TSLOG 2021-12-29 14:53:18 -08:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam mmc_sim: fix setting of the mutex name 2021-12-25 11:04:29 +02:00
cddl Fix dtrace fbt return probes on arm64 2021-12-29 10:06:00 +00:00
compat amd64 ia32 vdso: add unwind annotations to the signal trampoline 2022-01-02 18:43:01 +02:00
conf Enforce that vdso does not contain runtime relocations 2022-01-02 18:43:02 +02:00
contrib iwlwifi: plug memory modified after free 2021-12-30 18:28:51 +00:00
crypto Add assembly optimized code for OpenSSL on powerpc, powerpc64 and powerpc64le 2021-12-29 14:45:29 +01:00
ddb ddb: reliably fail with ambiguous commands 2021-07-02 14:13:24 -07:00
dev xen/blkfront: Remove CTLFLAG_NEEDGIANT from sysctl. 2022-01-02 16:39:28 -05:00
dts add rk3328 overlay for enabling analog sound 2021-11-21 12:04:42 +02:00
fs nfs: don't truncate directory cookies to 32-bits in the NFS server 2022-01-02 20:09:15 -07:00
gdb gdb: report specific stop reason for watchpoints 2021-04-21 10:20:33 -03:00
geom GEOM: Switch g_io_deliver() locking from cp to pp. 2021-12-07 23:06:25 -05:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 x86: Deduplicate clock.h 2021-12-27 10:48:00 -05:00
isa Remove more remnants of sio(4) 2021-04-14 09:19:49 -04:00
kern Add kern.elf{32,64}.vdso knobs to enable/disable vdso preloading 2022-01-02 18:43:01 +02:00
kgssapi State kgssapi dependency on xdr. 2020-09-17 22:29:38 +00:00
libkern Switch to an ifunc in the kernel for crc32c 2021-08-30 12:22:21 +01:00
mips Clean up a couple of MD warts in vm_fault_populate(): 2021-12-27 19:35:55 -05:00
modules iwlwifi: attach to the build 2021-12-30 18:29:01 +00:00
net if_pflog: fix packet length 2021-12-11 10:38:50 +01:00
net80211 net80211: adjust a printf to toeee80211_note 2021-12-30 18:27:02 +00:00
netgraph ng_l2tp: improve seq structure locking. 2021-12-20 01:21:38 +07:00
netinet IPv4: fix redirect sending conditions 2021-12-29 10:52:52 +00:00
netinet6 netinet6: Fix a typo in a sysctl description 2021-12-03 16:53:41 +01:00
netipsec ipsec: fix a logic error in key_do_getnewspi 2021-12-19 14:44:52 +00:00
netpfil pfsync: fix incorrect enabling of defer mode 2021-12-13 14:49:27 +01:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-06-02 09:34:47 -04:00
nfs nfs: don't truncate directory cookies to 32-bits in the NFS server 2022-01-02 20:09:15 -07:00
nfsclient nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfsserver nfs: Mark unused statistics variable as reserved 2020-11-18 04:35:49 +00:00
nlm nlm: clean up empty lines in .c and .h files 2020-09-01 22:14:52 +00:00
ofed socket: Rename sb(un)lock() and interlock with listen(2) 2021-10-07 09:56:47 -04:00
opencrypto ktls: Split encrypt vs decrypt OCF counters. 2021-11-23 15:11:54 -08:00
powerpc Clean up a couple of MD warts in vm_fault_populate(): 2021-12-27 19:35:55 -05:00
riscv busdma: Remove outdated comments about Giant. 2021-12-23 20:05:17 -05:00
rpc rpc: Delete AUTH_NEEDS_TLS(_MUTUAL_HOST) auth_stat values 2021-12-29 17:23:30 -08:00
security Thread creation privilege for realtime group 2021-12-19 04:42:52 +02:00
sys Pass vdso address to userspace 2022-01-02 18:43:01 +02:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests routing: add IPv6 fib validation procedure. 2021-09-07 21:02:58 +00:00
tools Enforce that vdso does not contain runtime relocations 2022-01-02 18:43:02 +02:00
ufs ffs_softdep: Fix a typo in a source code comment 2021-11-28 12:43:32 +01:00
vm setrlimit: Take stack gap into account. 2021-12-30 16:24:59 +01:00
x86 modules: increase MAXMODNAME and provide backward compat 2021-12-30 18:26:18 +00:00
xdr xdr: clean up empty lines in .c and .h files 2020-09-01 22:13:28 +00:00
xen xen: remove .swp file from public headers 2021-01-11 18:14:11 +01:00
Makefile