freebsd-dev/sys
Kyle Evans 8dff0b6761 efifb: add a tunable to select the framebuffer cache attribute
Mapping the framebuffer with WC (Write Combined) memory type can, in
practice, cause some memory transactions to be rate-limited at a
fraction of the fb write rate.  WC allows one core to queue up many
globally visible write transactions, and in the process some unrelated
transactions may end up having to wait for all of the queued up PCI
writes to be flushed.

Add an hw.efifb.cache_attr tunable to allow mapping the framebuffer as
uncacheable instead.  We should likely be taking a more careful approach
of checking the memory map to determine which cacheability attributes
are feasible, but the knob lets us use our historically functional
behavior while offering a convenient way to switch on a stock kernel.

The only valid values for hw.efifb.cache_attr at this time are "uc" and
"wc".

Original patch by Marc De La Gueronniere <mdelagueronniere@verisign.com>
along with previous testing.

Reviewed by:	imp
MFC after:	1 week
Sponsored by:	Verisign, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D17884
2023-03-01 00:04:49 -06:00
..
amd64 bhyve: fix restore of kernel structs 2023-02-28 13:37:53 +01:00
arm bcm_dma: don't dereference NULL softc 2023-02-24 13:20:40 -04:00
arm64 arm64: set FPEN if we're stuck with HCR_EL2.E2H 2023-02-28 16:16:14 -06:00
bsm
cam
cddl dtrace: implement riscv dtrace_getustackdepth() 2023-02-06 15:26:53 -04:00
compat linprocfs(4): Fixup process size in the /proc/pid/stat file 2023-02-26 16:42:22 +03:00
conf superio,ftgpio: Add support for Fintek F81865 GPIO 2023-02-28 10:17:53 -07:00
contrib powerpc64*: port mlx5, OFED, KTLS and krping 2023-02-26 23:38:33 +01:00
crypto OpenSSL: Regen assembly files for OpenSSL 1.1.1t 2023-02-07 13:55:17 -05:00
ddb ddb: ansify 2023-02-08 00:09:23 +00:00
dev efifb: add a tunable to select the framebuffer cache attribute 2023-03-01 00:04:49 -06:00
dts
fs pseudofs: Fix LOR in VOP_READDIR. 2023-02-26 15:30:53 +00:00
gdb
geom Move kstack_contains() and GET_STACK_USAGE() to MD machine/stack.h 2023-02-02 00:59:26 +02:00
gnu
i386 i386 kernel config: clean up whitespace 2023-02-24 08:36:29 -06:00
isa
kern jail: Improve readability 2023-02-28 18:20:07 +08:00
kgssapi nfsd: Enable the NFSD_VNET vnet front end macros 2023-02-18 14:59:36 -08:00
libkern
modules superio,ftgpio: Add support for Fintek F81865 GPIO 2023-02-28 10:17:53 -07:00
net iflib: fix regression with new pfil(9) KPI 2023-02-28 08:56:20 -08:00
net80211 net80211: ieee80211_swscan_bg_scan() track return variable under lock 2023-02-23 21:12:23 +00:00
netgraph Move kstack_contains() and GET_STACK_USAGE() to MD machine/stack.h 2023-02-02 00:59:26 +02:00
netinet netinet: Remove the IP(V6)_RSS_LISTEN_BUCKET socket option 2023-02-28 15:57:21 -05:00
netinet6 netinet: Remove the IP(V6)_RSS_LISTEN_BUCKET socket option 2023-02-28 15:57:21 -05:00
netipsec ipsec: only update lastused when it changes 2023-02-16 07:33:51 +00:00
netlink netlink: make the maximum allowed netlink socket buffer runtime tunable. 2023-02-27 10:48:31 +00:00
netpfil pfsync: ensure 'error' is always initialised 2023-02-16 09:16:35 +01:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto Complete removal of opt_compat.h 2023-02-13 19:07:38 +03:00
powerpc powerpc64*: port mlx5, OFED, KTLS and krping 2023-02-26 23:38:33 +01:00
riscv riscv kernel config: clean up whitespace 2023-02-24 08:36:29 -06:00
rpc nfsd: Add VNET_SYSUNINIT() macros for vnet cleanup 2023-02-20 13:11:22 -08:00
security IfAPI: Add if_get/setmaclabel() and use it. 2023-01-31 15:02:15 -05:00
sys time: s/ppsratecheck/eventratecheck 2023-02-24 19:26:36 +00:00
teken
tests
tools
ufs ufs: ansify 2023-02-13 18:35:54 +00:00
vm Drop space in "vm object" lock name to improve wchan 2023-02-15 08:31:17 -05:00
x86 apic: prevent divide by zero in CPU frequency init 2023-02-25 09:47:40 -07:00
xdr xdr: ansify 2023-02-13 18:37:31 +00:00
xen
Makefile
README.md

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.

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
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(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures