opnsense-src/sys
Navdeep Parhar 5241b210a4 cxgbe(4): Basic infrastructure for ULDs to participate in adapter reset.
The suspend/resume/reset implementation in the base driver (LLD)
currently works when only stateless features are in use.  This commit
adds basic infrastructure for stateful upper layer drivers (ULDs) to
participate in suspend/resume/reset.

* Add a uld_restart to indicate that the adapter has been restarted
  after a stop and the ULD should resume operations.
* Move the existing functionality in t4_suspend/t4_resume to stop_lld and
  restart_lld.  Use these and the new uld restart routines everywhere the
  adapter has to be stopped abruptly and restarted, namely:
  1. PCIE bus suspend/resume/reset methods invoked by the kernel.
  2. Manual internal-reset using driver sysctl.
  3. Automatic internal-reset on a fatal error.
* Implement an alternate internal-reset for use in VMs and for testing.

Typical reset sequence is:
stop_adapter(sc);
stop_lld(sc);
stop_all_uld(sc);
set_adapter_hwstatus(sc, false);

/* hw reset takes place here. */

restart_adapter(sc);
restart_lld(sc);
  set_adapter_hwstatus(sc, true);
restart_all_uld(sc);

MFC after:	1 month
Sponsored by:	Chelsio Communications
2024-07-21 20:24:03 -07:00
..
amd64 Retire non-NEW_PCIB code and remove config option 2024-07-18 18:55:12 +01:00
arm Retire unused non-PCI_RES_BUS code 2024-07-18 18:55:33 +01:00
arm64 Retire unused non-PCI_RES_BUS code 2024-07-18 18:55:33 +01:00
bsm timerfd: Move implementation from linux compat to sys/kern 2023-08-24 14:28:56 -06:00
cam cam/iosched: Use better malloc idiom 2024-07-20 13:59:18 -06:00
cddl sdt: Fix aframe handling after commit ddf0ed09bd 2024-07-08 11:40:24 -04:00
compat LinuxKPI: Fix resource leak on pci_iounmap-ing of PCI BAR 2024-07-21 16:10:44 +03:00
conf Retire non-NEW_PCIB code and remove config option 2024-07-18 18:55:12 +01:00
contrib zdb: Fix printf formatting of a uint64_t 2024-07-18 10:52:52 -04:00
crypto Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ddb db_pprint: Properly handle complex pointer types 2024-07-21 19:31:59 +02:00
dev cxgbe(4): Basic infrastructure for ULDs to participate in adapter reset. 2024-07-21 20:24:03 -07:00
dts dts: Fix arm/qcom-ipq4018-rt-ac58u.dts for recent device-tree versions 2024-07-17 13:55:49 +01:00
fs nfscl: Scan readdir reply filenames for invalid characters 2024-07-21 15:56:16 -07:00
gdb sys/gdb: Support hardware breakpoints 2024-04-12 09:32:55 +00:00
geom geom_io: Shift to pause_sbt to eliminate bogus min and update comment. 2024-05-24 08:31:55 -06:00
gnu sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
i386 Retire non-NEW_PCIB code and remove config option 2024-07-18 18:55:12 +01:00
isa new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00
kern pipe: convert pipelock flag argument to bool 2024-07-17 21:45:32 +00:00
kgssapi sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
libkern include: ssp: round out fortification of current set of headers 2024-07-13 00:16:24 -05:00
modules Retire non-NEW_PCIB code and remove config option 2024-07-18 18:55:12 +01:00
net pf: vnet-ify pf_hashsize, pf_hashmask, pf_srchashsize and V_pf_srchashmask 2024-07-17 16:00:49 +02:00
net80211 net80211: fix RSN capability parsing 2024-07-15 11:45:40 -07:00
netgraph bluetooth socket sysinit: correct memset initialization 2024-07-01 08:22:31 -07:00
netinet tcp: mark TCP stacks which can serve as a default stack 2024-07-21 15:06:10 +02:00
netinet6 sctp(4): Fix typos in source code comments 2024-07-21 10:57:22 +02:00
netipsec ipsec_offload: hide SA/SP offload lifecycle prints under verbose sysctl 2024-07-21 11:53:19 +03:00
netlink netlink: Wrap long lines 2024-07-14 14:29:15 -04:00
netpfil ipfilter(4): Fix typos in source code comments 2024-07-21 11:02:31 +02:00
netsmb sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nfs sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nfsclient sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
nfsserver sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
nlm sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ofed LinuxKPI: Remove owner argument from class_create function on KBI layer 2024-07-21 16:09:58 +03:00
opencrypto ktls: Remove the socket parameter to ktls_ocf_try() 2024-07-08 12:10:48 -04:00
powerpc Retire non-NEW_PCIB code and remove config option 2024-07-18 18:55:12 +01:00
riscv Retire non-NEW_PCIB code and remove config option 2024-07-18 18:55:12 +01:00
rpc svc.c: Check for a non-NULL xp_socket 2024-05-27 19:22:04 -07:00
security MAC/do: allow to call setuid if real user id is 0 2024-05-23 12:09:11 +02:00
sys Bump __FreeBSD_version after LinuxKPI changes. 2024-07-21 16:17:37 +03:00
teken Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tests callout: retire callout_async_drain() 2024-01-24 09:33:27 -08:00
tools arm_kernel_bothdr.awk: Update to latest ota 2024-04-16 21:30:17 -06:00
ufs uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-05-10 13:43:36 -07:00
vm vm_page: add vm_page_clearref() helper 2024-07-15 09:15:50 +03:00
x86 Retire unused non-PCI_RES_BUS code 2024-07-18 18:55:33 +01:00
xdr sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xen x86/xen: introduce non-hypercall based emergency print 2024-02-22 11:08:03 +01:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
README.md man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(4)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures