Skip to content
Open
Changes from 1 commit
Commits
Show all changes
431 commits
Select commit Hold shift + click to select a range
d346229
Revert "pseudofs: defer initialization until first mount"
kevans91 Sep 4, 2025
407c4d1
openssl: Disable KTLS in bootstrap libraries
markjdb Sep 4, 2025
7e97c6a
kerberos5: Fix the Heimdal pkgbase build
llfw Sep 4, 2025
b21629d
arm64: Make the padding in struct ms_page explicit
zxombie Sep 4, 2025
59ddbef
arm64: Add padding to struct mdproc
zxombie Sep 4, 2025
e2761a8
rtw89: Remove an unneeded __DECONST
bsdjhb Sep 4, 2025
b3605a7
arm64: Add a macro to create cpu_feat
zxombie Sep 4, 2025
9204a31
arm64: Add a sysctl to see if features are enabled
zxombie Sep 4, 2025
4bc68fa
arm64: Support managing features from loader
zxombie Sep 4, 2025
c76b024
arm64: Add a function to check a range of CPU revs
zxombie Sep 4, 2025
1ae3694
arm64: Clean up HW DBM errata detection
zxombie Sep 4, 2025
efb1c4b
arm64: Update the Neoverse-N1 1542419 errata check
zxombie Sep 4, 2025
7156a5f
bridge: Print a warning if member_ifaddrs=1
llfw Sep 4, 2025
93a734f
bridge: Set member_ifaddrs=1 by default
llfw Sep 4, 2025
f6d4c9c
arm64: Remove CPU_MATCH_RAW
zxombie Sep 4, 2025
8df4dc9
arm64: Create a TLBI invalidate for the kernel
zxombie Sep 4, 2025
fa23bfb
arm64: Replace cpu_tlb_flushID in initarm
zxombie Sep 4, 2025
a884f69
arm64: Add a multiple TLBI workaround
zxombie Sep 4, 2025
65688fc
share/sendmail: Use consistent ordering when processing files
markjdb Sep 4, 2025
1bd74d2
jail: add kqueue(2) support for jails
Sep 4, 2025
d5dd6ad
Like for -P et al, state that -deElL are syscons only options.
Sep 4, 2025
a14d561
vtnet: Do "hardware" accounting for the total number of received octets
Sep 4, 2025
2a346c8
vtnet: Prefer "hardware" accounting for the multicast and total numbe…
Sep 4, 2025
851dc7f
jail: add jail descriptors
Sep 4, 2025
d4bfebf
snd_hda: Fix a sporadic panic during kldunload
TijlCoosemans May 24, 2025
aef8078
moused(8): Add support for evdev protocol
wulf7 Sep 4, 2025
641f525
cyapa(4): Add support for reporting data with sysmouse protocol
wulf7 Sep 4, 2025
3aa0a0a
tcp: add gone_in note for net.inet.tcp.sack.revised for fbsd16
rscheff Sep 4, 2025
8b4e4c2
Update main to 16
cperciva Sep 4, 2025
8ec7a83
jaildesc: fix a misplaced error check and a spurious finit call
Sep 5, 2025
f20d125
devd: Remove gross hack
bsdimp Sep 5, 2025
edd8c4c
moused: Fix movement of moused/moused to moused/moused/moused
bsdimp Sep 5, 2025
4cb50d7
tcp: improve compilability
tuexen Sep 5, 2025
2a0ed0b
kenv: Sprinkle const qualifiers where appropriate
gmshake Sep 5, 2025
7bbfcc5
mtx: Sprinkle const qualifiers where appropriate
gmshake Sep 5, 2025
bec0532
rmlock: Sprinkle const qualifiers where appropriate
gmshake Sep 5, 2025
3c3686b
rwlock: Sprinkle const qualifiers where appropriate
gmshake Sep 5, 2025
306f0c4
sx: Sprinkle const qualifiers where appropriate
gmshake Sep 5, 2025
0e88a0e
CI: Increase 'Setup QEMU' timeout to 15 minutes
tonyhutter Sep 5, 2025
11b5c50
ci: use real head sha instead of GITHUB_SHA when generating CI type
Harry-Chen Sep 4, 2025
dfc2c32
ci: fix syntax issues in zfs-qemu.yml
Harry-Chen Sep 4, 2025
ffba31c
Add upcoming renaming notice for arc_summary and arcstat
Harry-Chen Sep 3, 2025
c69b7ea
Install zarcstat and zarcsummary symlinks in Makefile
Harry-Chen Sep 3, 2025
b9c6b0e
Install zarcstat and zarcsummary in deb / rpm build rules
Harry-Chen Sep 3, 2025
7fa1552
sys/power.h: Add `_KERNEL` guards
obiwac Sep 5, 2025
6714e12
gstripe: remove bio->bio_ma_n assignment
mcimerman Aug 2, 2025
a930cc8
GEOM_UNION: Should free sc in g_union_ctl_create when error happened.
wy-chung Sep 2, 2025
3ed0cdf
Update vmimage.subr
Unicorn9x Sep 1, 2025
8647a0b
bpi-r2-pro: added support dts for bpi-r2-pro
Martinfx Aug 25, 2025
89ff068
x86: Fix bug in print_vmx_info()
liweitianux Aug 22, 2025
1167a7d
GEOM: add a new function g_new_geom
wy-chung Jul 23, 2025
656f7f4
call g_new_geom instead for callers that pass regular string to g_new…
wy-chung Jul 29, 2025
cacfd42
tests/sys/mqueue: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
215a065
tests/sys/netlink: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
308c9c9
tests/sys/opencrypto: use require.kmods property instead of ad-hoc ch…
svmhdvn Jul 21, 2025
26d3dfa
tests/sys/aio: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
c444bfc
tests/pf/ioctl: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
559b0f6
tests/sys/netmap: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
74898ce
tests/sndstat: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
7a1a6d1
tests/socket_accf: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
4079513
tests/sys/net: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
427be10
tests/sys/netinet: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
f53228c
tests/vmm_cred_jail: use require.kmods property instead of ad-hoc checks
svmhdvn Jul 21, 2025
9ae3c30
gpioled: use hw pin inversion if available
stephane-rochoy-stormshield Aug 12, 2025
6a5c193
gpioled: document the invmode hint in gpioled(4)
stephane-rochoy-stormshield Aug 12, 2025
c23eda9
pf: fix possible pd->pcksum NULL deref
kprovost Sep 2, 2025
af60084
Add description for WITH_PTHREADS_ASSERTIONS
cperciva Sep 5, 2025
9e792f7
sys/netinet6: Fix SLAAC for interfaces with no /64 LL address
Sep 5, 2025
910cf34
LinuxKPI: pci: implement for_each_pci_dev() and improve pci_get_device()
Sep 4, 2025
2f9064a
LinuxKPI: pci: implement pcim_iomap()
Jul 31, 2025
7e21158
LinuxKPI: pci: implement [linuxkpi_]pcim_request_all_regions()
Jul 31, 2025
bbeeb58
LinuxKPI: pci: allocate entire pci_dev hiereachy up to root port on a…
Sep 4, 2025
6272346
LinuxKPI: pci: allow children to be attached to a pci_dev
Sep 4, 2025
736b16e
LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()
Sep 4, 2025
c1264b6
LinuxKPI: acpi; fix type to acpi_get_handle()
Sep 4, 2025
81cb7c4
LinuxKPI: rename from_timer() to timer_container_of()
Sep 4, 2025
5cb64a1
LinuxKPI: timer KPI *_timer -> timer_*
Sep 4, 2025
39e9290
LinuxKPI: cleanup: implement __free() and DEFINE_FREE(); use for kfree()
Sep 4, 2025
3f48a0f
LinuxKPI: add DEFINE_LOCK_GUARD_0 for rcu
Sep 4, 2025
ff5bcb7
LinuxKPI: add __struct_size
Aug 18, 2025
70c508e
LinuxKPI: sync overflow.h from Linux v6.16
Sep 4, 2025
7c47393
LinuxKPI: kunit: add static_stub.h and more dummy headers
Sep 4, 2025
2a44e10
LinuxKPI: maths64: implement roundup_u64()
Sep 4, 2025
4ab64e3
LinuxKPI: devres: divorce dem_kfree from lkpi_devm_kmalloc_release
Sep 4, 2025
5e82eec
stand: Remove Spleen 32x64 fonts from INDEX
Jehops Sep 5, 2025
dff11c4
rtwn: enable seqno offload; migrate to use ieee80211_output_seqno_ass…
Jun 5, 2025
7c448f5
vtnet: fix compilation for NOIP configs
tuexen Sep 6, 2025
0737e2a
sys/cpu.h: Some style(9) fixes
gmshake Sep 6, 2025
7b4562e
git-blame-ignore-revs: sys/cpu.h style(9) fixes
gmshake Sep 6, 2025
ac2f284
BSD.usr.dist: remove obsolete usr/share/examples/drivers entry
DimitryAndric Sep 7, 2025
4341f92
share/mk: Fix a heuristic in bsd.cpu.mk
markjdb Sep 7, 2025
6d62463
newsyslog.conf(5): Don't suppress space after <compress> directive
DimitryAndric Sep 7, 2025
11ace56
contrib/libxo: fix API header files inclusions in C++ source files
aokblast Sep 7, 2025
5a01194
unbound: Update to 1.23.1
dag-erling Sep 7, 2025
14b61b2
man: Add -l option
ischwarze Sep 7, 2025
d661670
[net80211] Quieten the logging from ieee80211_vht_get_vhtflags()
Aug 25, 2025
fdb3b69
Update the installed manpages to match OpenSSL 3.5.1
ngie-eign Sep 7, 2025
fd9e09c
kern: replace several EBADF with EINVAL
kostikbel Sep 7, 2025
dc38cf1
man: Fix usage message
dag-erling Sep 8, 2025
3860afe
Revert "LinuxKPI: pci: allocate entire pci_dev hiereachy up to root p…
Sep 8, 2025
228302e
random: Make the min-entropy estimate configurable
markjdb Sep 8, 2025
8635f86
random: Make the entropy source registration interface more uniform
markjdb Sep 8, 2025
c942d9e
random: Fix synchronization of hc_source_mask
markjdb Sep 8, 2025
27e2afa
random.4: Document the kern.random.nist_healthtest_enabled tunable
markjdb Sep 8, 2025
f865264
random: Allow pure entropy sources to provide a min-entropy estimate
markjdb Sep 8, 2025
480928a
random: Exclude the timestamp from healthtest for pure sources
markjdb Sep 8, 2025
0cba688
makeobjops.awk: Style nits in generated files
gmshake Sep 8, 2025
ef083de
Add random Intel Elkhart Lake device IDs.
dmitryluhtionov Sep 8, 2025
ced72fd
tunables: remove legacy FreeBSD aliases
robn Sep 8, 2025
b2f5dc5
src.opts.mk: Remove REPRODUCIBLE_BUILD from the default list
markjdb Sep 7, 2025
0143c9e
Revert "vtnet: fix compilation for NOIP configs"
tuexen Sep 8, 2025
f217bc7
Revert "vtnet: improve checksum offloading"
tuexen Sep 8, 2025
3008f30
vtnet: improve checksum offloading
msvoelker Sep 8, 2025
614e9b3
vtnet: fix compilation for NOIP configs
tuexen Sep 8, 2025
e3c3e86
Fix wrong dedup_table_size for legacy dedup
tuxoko Sep 8, 2025
952ce99
nvme: Linux compat: don't filter & 0x3.
bsdimp Sep 8, 2025
8266fa5
cmd: force zarcstat/zarc_summary recreation at install
robn Sep 8, 2025
4729d5e
leap-seconds: Update to leap-seconds.3960835200 from IERS
Sep 7, 2025
e76e631
run: enable seqno offload
Jun 8, 2025
5d31e67
rsu: enable seqno offload
Jun 9, 2025
b73f52a
rsu: implement A-MPDU TX; add TODO items for further work
Jun 9, 2025
9bfb140
net80211: add support for drivers to disable sending NULL data frames
Aug 27, 2025
c745a68
iommu_get_requester(): make it more resilient against arbitrary dev arg
kostikbel Sep 5, 2025
f51d7d5
kern_thr_exit(): clear kASTs in advance
kostikbel Sep 8, 2025
b0474e1
geom: only set TDP_GEOM for user threads
kostikbel Sep 8, 2025
54cc3da
moused: fix GCC build
VexedUXR Sep 9, 2025
d440953
vm_domainset: Only probe domains once when iterating, instead of up t…
OlCe2 Jul 7, 2025
d0b691a
vm_domainset: Simplify vm_domainset_iter_next()
OlCe2 Jul 7, 2025
637d985
vm_domainset: Refactor iterators, multiple fixes
OlCe2 Jul 8, 2025
f304c5b
bsdinstall: Drop outdated comments about ZFS dataset compression
michael-o Aug 31, 2025
08356a7
qlnxe: Unconditionally enable extended media types
gmshake Sep 9, 2025
6e3c8c0
qlnxe: Support SIOCGIFXMEDIA ioctl
gmshake Sep 9, 2025
e1c5e04
qlnxe: Report speeds in decimal format
gmshake Sep 9, 2025
26d56de
certctl: Use __DECONST rather than reimplementing
jrtc27 Sep 9, 2025
2024887
certctl: Include sys/types.h
markjdb Sep 9, 2025
c1eff1d
sys: NOTES: Fix comment for wlan_* devices; GENERIC*: Re-order 'wlan_…
OlCe2 Sep 9, 2025
1cf67b5
NOTES: Fix whitespace in "options MAC_DO"
OlCe2 Sep 9, 2025
59f8f5d
zfs_vnops_os.c: Add support for the _PC_CLONE_BLKSIZE name
rmacklem Sep 9, 2025
de974a0
ddb ps: Print again the effective GID, separately
OlCe2 Aug 26, 2025
a242431
Fix the build on 32-bit FreeBSD with GCC
asomers Sep 9, 2025
1c3c698
hwpmc: On attach, ensure owner is a target effective GID's member
OlCe2 Aug 26, 2025
1c40b15
hwpmc: On attach, fix allowing a PMC's owner to attach it to itself
OlCe2 Sep 9, 2025
d9e11f0
hwt: On attach, ensure owner is a target effective GID's member
OlCe2 Aug 26, 2025
67f8bd5
nfs: newnfs_setroot(): Remove an obsolete comment
OlCe2 Aug 26, 2025
71db323
nfscl: Restore sending the effective GID to the server
OlCe2 Aug 26, 2025
d859d4c
procfs: Restore printing the effective GID in 'status'
OlCe2 Aug 26, 2025
5568b44
imgact_elf: procstat groups: Restore sending the effective GID
OlCe2 Aug 26, 2025
63a40ca
kinfo_proc: Restore outputting the effective GID
OlCe2 Aug 26, 2025
7676df2
kvm_proclist(): Restore outputting the effective GID
OlCe2 Aug 28, 2025
faf7e99
'kern.proc.groups' sysctl knob: Restore outputting the effective GID
OlCe2 Aug 26, 2025
9bfbc68
sockstat: fix the -j option with piped output after libxo integration
asomers Sep 9, 2025
e29bfa5
Fix warnings about sha2_is_supported on FreeBSD/i386
asomers Sep 9, 2025
d81b84d
loader/efi: build with -Wall
VexedUXR Sep 9, 2025
7d48a56
stand: remove unused variables
VexedUXR Sep 9, 2025
cd9b43e
loader/efi: return error from efi_find_framebuffer
VexedUXR Sep 9, 2025
b4c5d58
loader/efi: plug memory leak
VexedUXR Sep 9, 2025
1814196
loader/efi: remove is_last parameter from find_currdev
VexedUXR Sep 9, 2025
101a35e
efi: translate errno to EFI status on exit
VexedUXR Sep 9, 2025
46347b3
ixgbe: Fix incomplete speed coverage in link status logging
bf-ybhosale Sep 9, 2025
16f600d
jaildesc: replace EBADF with EINVAL
Sep 9, 2025
d8d5324
jaildesc: fix typo and style(9) violations.
Sep 9, 2025
cc6e21c
release: Remove a duplicate package listing in oracle.conf
markjdb Sep 9, 2025
0adec3d
freebsd-update: sort options alphabetically
ngie-eign Sep 9, 2025
4b83891
ZTS: Fix fault_limits timeouts
tonyhutter Sep 9, 2025
9e5e95c
config: restore ZFS_AC_KERNEL_DENTRY tests
robn Jul 31, 2025
7939bad
Linux 6.17: d_set_d_op() is no longer available
robn Jul 31, 2025
f113980
cpucontrol: fix -DDEBUG build
glebius Sep 9, 2025
0833a3f
nanobsd: Alphebetize -I
bsdimp Sep 9, 2025
90593b1
nanobsd: Expose do_image_prep on command line
bsdimp Sep 9, 2025
685e60e
ngctl: Fix build without JAIL
gmshake Sep 10, 2025
275f7d7
ixgbe: Remove unused function ixgbe_is_media_cage_present
bf-ybhosale Sep 10, 2025
80661e2
loader/efi: fix non-x86 build
VexedUXR Sep 10, 2025
9365a32
ports.7: Fix example of passing variables on the command line
0mp Sep 10, 2025
6577e32
iflib: report output drops and handle ENOBUFS properly
Sep 10, 2025
f48b1a3
Fix possible out of bounds read in armv8_crc32c
w4123 Sep 10, 2025
3c152a3
fcntl(F_SETFL): Don't unconditionally invoke FIONBIO and FIOASYNC
bsdjhb Sep 10, 2025
5f9a05e
tslog: Move sysinit_tslog_shim() into kern_tslog.c
gmshake Sep 10, 2025
7099953
zfs: merge openzfs/zfs@7939bad5e
mmatuska Sep 10, 2025
187ee62
dhclient: improve UDP checksum handling
tuexen Sep 10, 2025
0b68e3c
libnv: Fix handling of nvlist_dump() and nvlist_send() for child nvlists
markjdb Sep 10, 2025
3877025
dtrace: Use a size_t to represent a buffer size in the printm action
markjdb Sep 10, 2025
b653a28
re: Make sure re_rxeof() is called in net epoch context
markjdb Sep 10, 2025
3d39856
vmm: Suspend the VM before destroying it
markjdb Sep 10, 2025
c1532f7
ixgbe: Correct ixgbe_link_speed_to_str comment
kev009 Sep 10, 2025
d549de7
libc: Remove readdir_r(3)
dag-erling Sep 10, 2025
dd8c666
src.sys.mk: Support src.conf in SRCTOP
dag-erling Sep 10, 2025
a8a18ee
packages: Turn off MANSPLITPKG by default
llfw Sep 10, 2025
c3d5387
tcp: minor cleanup
tuexen Sep 10, 2025
9480465
pf: Remove dead code in pf_pull_hdr().
kprovost Aug 19, 2025
6669467
pfctl: Use pfctl_fopen
kprovost Aug 19, 2025
7aac81a
pfctl: support recusive printing of tables
kprovost Aug 20, 2025
d3020ca
pf tests: recusrive table printing test
kprovost Aug 20, 2025
4889545
pfctl: fix killing state by source and destination address
kprovost Aug 20, 2025
53e44c5
pf tests: test state killing by source and destination address
kprovost Aug 20, 2025
c8fb5a4
ifconfig: also fix removing IPv6 addresses without netlink
kprovost Sep 10, 2025
d81b337
jaildesc: remove file-mode-based access controls
Sep 10, 2025
fc68f8a
rmuser.sh: Improve prompt consistency with adduser
concussious Sep 9, 2025
08b8843
pkg(7): Add support for pkg+ prefix to bootstrap pubkey
spmzt Sep 11, 2025
2e72bd4
pci_vendors: update to 2025-07-11
bapt Sep 11, 2025
70afc95
usb_vendors: update to 2025-07-26
bapt Sep 11, 2025
def2868
Lahiru: BOOT_PROF updated importing GENERIC
bllgg Jul 6, 2025
a9577ca
Reduced the delay in the test_controller(KBDC p)
bllgg Aug 14, 2025
372c80f
Added the parameter from /boot/loader.conf named hw.atkbd.fast_delay
bllgg Aug 25, 2025
4c8104d
Simplified the tunable delay conditions
bllgg Aug 25, 2025
7119cd6
BOOT_PROF: added the variable atkbd_short_delay and macros ATKBD_DEL…
bllgg Aug 27, 2025
3d612c3
BOOT_PROF: added ATKBD_DELAY to empty both buffers
bllgg Aug 28, 2025
f2936e4
BOOT_PROF: Cleared the code with FreeBSD styles and removed TS logs
bllgg Aug 28, 2025
fa0d7e7
BOOT_PROF: Cleared the code with FreeBSD styles and removed TS logs -…
bllgg Aug 28, 2025
9fe27ed
BOOT_PROF: Instrument the device initialization with TSLOG to identif…
bllgg Aug 28, 2025
ecc8869
BOOT_PROF: Instrument the usb initialization with TSLOG to identify t…
bllgg Aug 28, 2025
458007b
BOOT_PROF: Instrument the mount process of the root file system with …
bllgg Aug 28, 2025
0862497
BOOT_PROF: Instrument the initialization process of AT keyboard and P…
bllgg Aug 28, 2025
20a8b23
BOOT_PROF: Corrected the typo and shortened the long code lines
bllgg Aug 28, 2025
d962160
BOOT_PROF: Updated the man doc for atkbdc
bllgg Aug 29, 2025
30fb0f4
Merge remote-tracking branch 'origin/bllgg-dev-atkbd-psm' into bllgg-…
bllgg Sep 11, 2025
6207325
release: Made it possible to specify more attributes in metalog entries
markjdb Sep 11, 2025
1d6b6ea
release: Create /firstboot in common VM image creation code
markjdb Sep 11, 2025
682da5a
vendor/bc: upgrade to version 7.1.0
stesser Sep 11, 2025
fdc4a7c
contrib/bc upgrade to version 7.1.0
stesser Sep 11, 2025
1a6ffcb
usr.bin/gh-bc: fix invocation of test scripts
stesser Sep 11, 2025
2d06844
usr.bin/gh-bc: update for version 7.1.0
stesser Sep 11, 2025
d20c825
Revert "libc: Remove readdir_r(3)"
dag-erling Sep 11, 2025
3c38dce
LinuxKPI: 802.11: avoid recursive wiphy lock
Sep 11, 2025
ed19c4f
loader.efi: improve StartImage error message
Sep 4, 2025
e584c46
sys/efi.h: Some style(9) tweaks
gmshake Sep 11, 2025
dd14103
git-blame-ignore-revs: sys/efi.h style(9) tweaks
gmshake Sep 11, 2025
5daf8ed
ossl: Add GCM support on powerpc64/powerpc64le (POWER8+)
madscientist159 Sep 10, 2025
5ca390f
bnxt: Fix the request length in bnxt_hwrm_func_backing_store_cfg()
markjdb Sep 11, 2025
3449a3a
ichwd: address unused function warning by marking as __unused
aokblast Sep 10, 2025
7f81b25
snd_hda: Add patch for Framework 16 AMD Ryzen AI 300 Series
aokblast Sep 8, 2025
9f3330f
nuageinit: Remove duplicate description of users.{user}.groups
DtxdF Sep 11, 2025
a5cc9b7
nuageinit: chmod sudoers directory instead of chmod (again) sudoers file
DtxdF Sep 11, 2025
95230b2
nuageinit: Allow the use of network parameters from network-config
DtxdF Sep 11, 2025
9a829e8
nuageinit: Add doas support
DtxdF Sep 11, 2025
1855506
nuageinit: Add me to copyright list
DtxdF Sep 11, 2025
a74c8b8
backlight(9): add cross-ref to backlight(8)
bsdlme Sep 11, 2025
55bd607
uptime: Mention libxo support in manual page
dag-erling Sep 11, 2025
1014003
Revert "linux: fix reporting NL_RTM_DELLINK to Netlink sockets"
glebius Sep 11, 2025
5a38857
cxgbe tom: Halve the size of offload transmit software descriptors
bsdjhb Sep 11, 2025
e2a2a75
cxgbe tom: Support sending "raw" WR mbufs on plain TCP and TLS sockets
bsdjhb Sep 11, 2025
a7aab22
cxgbe tom: Export alloc_raw_mbuf for use in other TOE drivers
bsdjhb Sep 11, 2025
d869395
cxgbe tom: Send auxiliary TLS work requests as raw WR mbufs
bsdjhb Sep 11, 2025
8b41ba8
lib/msun: cpow{,f,l}(CMLX(0.0, 0.0)) should return 1.0
Sep 11, 2025
2223875
sys/bus.h: Some style(9) fixes
gmshake Sep 12, 2025
64dca4e
git-blame-ignore-revs: sys/bus.h style(9) fixes
gmshake Sep 12, 2025
dbcaac1
jail: simplify EVFILT_JAIL events
Sep 12, 2025
317eb5d
BOOT_PROF: Reduced the dealy in AT keyboard and PS2 mouse initializat…
bllgg Aug 14, 2025
54b1dbf
BOOT_PROF: Instrument the initialization process of AT keyboard and P…
bllgg Aug 28, 2025
0873dc6
BOOT_PROF: Updated the man doc for atkbdc
bllgg Aug 29, 2025
1525338
Merge remote-tracking branch 'origin/bllgg-dev-atkbd-psm' into bllgg-…
bllgg Sep 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions sys/dev/atkbdc/atkbdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@

/* constants */

#define MAXKBDC 1 /* XXX */
#define MAXKBDC 1 /* XXX */
#define MILISECOND_MULTIPLIER 1000 /* micro second values will be multiplied to convert to mili seconds */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, 'milli'. also, be mindful about line lengths, in general, we want to fit into 80 chars

#define RESET_DELAY_DIVISION_FACTOR 40 /* keyboard reset delay time division factor */


/* macros */

Expand All @@ -80,6 +83,9 @@
#define write_command(k, d) \
(bus_space_write_1((k)->iot, (k)->ioh1, 0, (d)))

#define ATKBD_DELAY(x) (atkbd_short_delay ? (x) : (x) * MILISECOND_MULTIPLIER)
#define RESET_DELAY(x) (atkbd_short_delay ? (x) * MILISECOND_MULTIPLIER : (x) * MILISECOND_MULTIPLIER / RESET_DELAY_DIVISION_FACTOR)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with long macro body we use \ to continue on next line and next line will be indented


/* local variables */

/*
Expand All @@ -106,19 +112,19 @@ static int wait_for_kbd_ack(atkbdc_softc_t *kbdc);
static int wait_for_aux_data(atkbdc_softc_t *kbdc);
static int wait_for_aux_ack(atkbdc_softc_t *kbdc);

static int atkbd_fast_delay = 1; /* 1 = fast (default), 0 = slow */
static int atkbd_short_delay = 1; /* 1 = short delay (default), 0 = long delay */

/* Create hw.atkbd sysctl node (defines _hw_atkbd) */
SYSCTL_NODE(_hw, OID_AUTO, atkbd, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
"AT keyboard controller");

/* loader tunable: hw.atkbd.fast_delay */
TUNABLE_INT("hw.atkbd.fast_delay", &atkbd_fast_delay);
/* loader tunable: hw.atkbd.short_delay */
TUNABLE_INT("hw.atkbd.short_delay", &atkbd_short_delay);

/* sysctl knob: hw.atkbd.fast_delay */
/* sysctl knob: hw.atkbd.short_delay */
SYSCTL_DECL(_hw_atkbd);
SYSCTL_INT(_hw_atkbd, OID_AUTO, fast_delay, CTLFLAG_RWTUN,
&atkbd_fast_delay, 0,
SYSCTL_INT(_hw_atkbd, OID_AUTO, short_delay, CTLFLAG_RWTUN,
&atkbd_short_delay, 0,
"Keyboard delays: 1=fast (default), 0=slow/conservative");

struct atkbdc_quirks {
Expand Down Expand Up @@ -1025,8 +1031,8 @@ reset_kbd(KBDC p)
if (retry < 0)
return FALSE;

int delay_us = 5000;
int max_wait_us = KBD_RESETDELAY*1000*KBD_MAXWAIT;
int delay_us = RESET_DELAY(KBD_RESETDELAY); /* if the atkbd_short_delay is activated, delay will be shorten */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line length there too

int max_wait_us = KBD_RESETDELAY * MILISECOND_MULTIPLIER * KBD_MAXWAIT;
int attempts = max_wait_us / delay_us;

while (attempts-- > 0) {
Expand Down Expand Up @@ -1060,7 +1066,7 @@ reset_aux_dev(KBDC p)
emptyq(&p->aux);
/* NOTE: Compaq Armada laptops require extra delay here. XXX */
for (again = KBD_MAXWAIT; again > 0; --again) {
DELAY(atkbd_fast_delay ? KBD_RESETDELAY : KBD_RESETDELAY * 1000);
DELAY(ATKBD_DELAY(KBD_RESETDELAY));
c = read_aux_data_no_wait(p);
if (c != -1)
break;
Expand All @@ -1075,7 +1081,7 @@ reset_aux_dev(KBDC p)

for (again = KBD_MAXWAIT; again > 0; --again) {
/* wait awhile, well, quite looooooooooooong */
DELAY(atkbd_fast_delay ? KBD_RESETDELAY : KBD_RESETDELAY * 1000);
DELAY(ATKBD_DELAY(KBD_RESETDELAY));
c = read_aux_data_no_wait(p); /* RESET_DONE/RESET_FAIL */
if (c != -1) /* wait again if the controller is not ready */
break;
Expand Down Expand Up @@ -1111,8 +1117,8 @@ test_controller(KBDC p)

emptyq(&p->kbd);

int delay_us = 5000;
int max_wait_us = KBD_RESETDELAY*1000*KBD_MAXWAIT;
int delay_us = RESET_DELAY(KBD_RESETDELAY);
int max_wait_us = KBD_RESETDELAY * MILISECOND_MULTIPLIER * KBD_MAXWAIT;
int attempts = max_wait_us / delay_us;

while (attempts-- > 0) {
Expand Down