]>
CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
John Baldwin [Mon, 9 May 2022 21:26:44 +0000 (14:26 -0700)]
cgem: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:44 +0000 (14:26 -0700)]
al: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:44 +0000 (14:26 -0700)]
pbio: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:44 +0000 (14:26 -0700)]
etherswitch drivers: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
Remove unused miiproxy_devclass.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
Remove unused etherswitch_devclass.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
sbni: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
pcf: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
glxiic/glxsb: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
cp: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
ce: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
i386: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
geode: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 21:26:43 +0000 (14:26 -0700)]
pst: Remove unused devclass arguments to DRIVER_MODULE.
Konstantin Belousov [Mon, 9 May 2022 20:46:05 +0000 (23:46 +0300)]
UFS: clear fs_fmod once more, in the buffer data copy.
This is needed for in-kernel copy of the code, where allocation might
happen after fs_fmod is cleared in ffs_sbput() but before the write.
Reported by: markj
Reviewed by: chs, markj
PR: 263765
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35149
Konstantin Belousov [Sun, 8 May 2022 14:00:37 +0000 (17:00 +0300)]
ffs_use_bwrite: make the superblock snapshot more consistent
Copy in-memory struct fs to the superblock buffer under the UFS mutex.
Reviewed by: chs, markj
PR: 263765
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35149
John Baldwin [Mon, 9 May 2022 19:22:04 +0000 (12:22 -0700)]
tpm: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:04 +0000 (12:22 -0700)]
superio: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:04 +0000 (12:22 -0700)]
sume: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:04 +0000 (12:22 -0700)]
spi flash: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:04 +0000 (12:22 -0700)]
spigen: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:04 +0000 (12:22 -0700)]
sfxge: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:04 +0000 (12:22 -0700)]
safexcel: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:04 +0000 (12:22 -0700)]
safe: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:04 +0000 (12:22 -0700)]
rtwn: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
qlnx/qlxgb/qlxgbe/qlxge: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
qat: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
pwm: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
proto: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
p2sb: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
ow: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
otus: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
oce: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
nvdimm: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
ntb: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
ng_ubt: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
my: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
mxge: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:03 +0000 (12:22 -0700)]
mgb: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
mana: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
lio: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
ipmi: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
ioat: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
pchtherm/intelspi: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
smbus smb: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
jedec_dimm: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
viapm: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
nfsmb: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
isl: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
ichsmb/imcsmb/intpm/ismt: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
ichiic: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:02 +0000 (12:22 -0700)]
cyapa: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
alpm: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
hifn: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
ftwd/ichwd/itwd/viawd/wbwd: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
firewire: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
ena: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
dpms: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
dcons: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
ccr: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
cxgb: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
coretemp: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
chromebook_platform: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
gpio: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:01 +0000 (12:22 -0700)]
Remove unused gpioc_devclass.
John Baldwin [Mon, 9 May 2022 19:22:00 +0000 (12:22 -0700)]
Remove unused ofwgpiobus_devclass.
John Baldwin [Mon, 9 May 2022 19:22:00 +0000 (12:22 -0700)]
Remove unused spibus_devclass and ofw_spibus_devclass.
John Baldwin [Mon, 9 May 2022 19:22:00 +0000 (12:22 -0700)]
bwi/bwn: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:00 +0000 (12:22 -0700)]
bnxt: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:00 +0000 (12:22 -0700)]
bhnd: Remove unused devclass arguments to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:00 +0000 (12:22 -0700)]
Remove unused bhndb_devclass.
John Baldwin [Mon, 9 May 2022 19:22:00 +0000 (12:22 -0700)]
Remove unused cfi_devclass.
John Baldwin [Mon, 9 May 2022 19:22:00 +0000 (12:22 -0700)]
asmc: Remove unused devclass argument to DRIVER_MODULE.
John Baldwin [Mon, 9 May 2022 19:22:00 +0000 (12:22 -0700)]
dev/amd*: Remove unused devclass arguments to DRIVER_MODULE.
Ruslan Bukin [Mon, 9 May 2022 19:08:01 +0000 (20:08 +0100)]
Split-out SID-getting code to a separate functions.
Also ensure we are dealing with PCI-class devices.
Sponsored by: UKRI
Dmitry Chagin [Mon, 9 May 2022 18:48:15 +0000 (21:48 +0300)]
linux(4): Regen for prctl fix.
MFC after: 2 weeks
Dmitry Chagin [Mon, 9 May 2022 18:45:51 +0000 (21:45 +0300)]
linux(4): Fix
039e98e6 .
The patch was about an year in my local queue and I still screwed up...
MFC after: 2 weeks
Dmitry Chagin [Mon, 9 May 2022 18:16:48 +0000 (21:16 +0300)]
linux(4); Style.
MFC after: 2 weeks
Dmitry Chagin [Mon, 9 May 2022 18:16:31 +0000 (21:16 +0300)]
linux(4): Return native error from futex_atomic_op to avoid conversion by the caller.
MFC after: 2 weeks
Dmitry Chagin [Mon, 9 May 2022 18:11:37 +0000 (21:11 +0300)]
linux(4): Fixed offset miscalculation in the preadv/pwritev syscalls.
MFC after: 2 weeks
Dmitry Chagin [Mon, 9 May 2022 18:10:48 +0000 (21:10 +0300)]
linux(4): Regen for prctl syscall.
MFC after: 2 weeks
Dmitry Chagin [Mon, 9 May 2022 18:09:39 +0000 (21:09 +0300)]
linux(4): Change prctl syscall definition to match Linux actual one.
Otherwise argX conversion leads to an unexpected behaviour.
MFC after: 2 weeks
Dmitry Chagin [Mon, 9 May 2022 18:08:59 +0000 (21:08 +0300)]
linux(4): The futex_wait operation should restart.
It's ok from the futex_wait perspective as umtxq_sleep method uses
absolute sleep timeout.
MFC after: 2 weeks
Gleb Smirnoff [Mon, 9 May 2022 17:51:17 +0000 (10:51 -0700)]
domains: undocument dom_destroy() and fix .Dd
Fixes:
24e1c6ae7d3f7731a0884a62e9d5273e5ca1335a
Gleb Smirnoff [Mon, 9 May 2022 17:43:01 +0000 (10:43 -0700)]
sockbufs: make sbrelease_internal() private
Gleb Smirnoff [Mon, 9 May 2022 17:43:01 +0000 (10:43 -0700)]
sockets: remove the socket-on-stack hack from sorflush()
The hack can be tracked down to 4.4BSD, where copy was performed
under splimp() and then after splx() dom_dispose was called.
Stevens has a chapter on this function, but he doesn't answer why
this trick is necessary. Why can't we call into dom_dispose under
splimp()? Anyway, with multithreaded kernel the hack seems to be
necessary to avoid LORs between socket buffer lock and different
filesystem locks, especially network file systems.
The new socket buffers KPI sbcut() from
1d2df300e9b allow us to get
rid of the hack.
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35125
Gleb Smirnoff [Mon, 9 May 2022 17:42:57 +0000 (10:42 -0700)]
sockets: don't call dom_dispose() on a listening socket
sorflush() already did the right thing, so only sofree() needed
a fix. Turn check into assertion in our only dom_dispose method.
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35124
Gleb Smirnoff [Mon, 9 May 2022 17:42:48 +0000 (10:42 -0700)]
sockets: assert that any protocol with PR_RIGHTS has dom_dispose()
Through the entire history only PF_UNIX has this feature.
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35123
Gleb Smirnoff [Mon, 9 May 2022 17:42:48 +0000 (10:42 -0700)]
tests/unix_passfd: add test for shutdown(2) on a buffer with an fd
This has two goals:
- Exercize call to unp_dispose() via soshutdown() instead of sofree()
- Make sure that shutdown indeed dereferences the fd stored
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35122
Gleb Smirnoff [Mon, 9 May 2022 17:42:48 +0000 (10:42 -0700)]
ng_socket: don't assign NULL in C99 sparse initializer
Gleb Smirnoff [Mon, 9 May 2022 17:42:48 +0000 (10:42 -0700)]
bluetooth: don't assign NULL in C99 sparse initializer
Gleb Smirnoff [Mon, 9 May 2022 17:42:48 +0000 (10:42 -0700)]
unix/*: unp_internalize() can sleep, so allocate mbufs with M_WAITOK
Gleb Smirnoff [Mon, 9 May 2022 17:42:47 +0000 (10:42 -0700)]
sockets: make SO_SND/SO_RCV a enum
Not a functional change now. The enum will also be used for other socket
buffer related KPIs.
Alexander Motin [Mon, 9 May 2022 14:23:23 +0000 (10:23 -0400)]
Fix
bd82711aff98 serial number trailing spaces removal.
For devices returning 16 byte serial numbers with 8 leading spaces
this falsely removed everything due to looking at wrong offset.
Mike Karels [Mon, 9 May 2022 12:19:52 +0000 (07:19 -0500)]
genet: fix output packet corruption in uncommon case
The code for the "shift" block in the COPY macro set the pointer for
the next copy block to the wrong value. In this case, the link-layer
header would be overwritten by the network-layer header. This case is
difficult or impossible to exercise in the current driver without
changing the value of the hw.genet.tx_hdr_min sysctl. Correct the
pointer. While here, remove a line in the macro that was marked
"unneeded", which was actually wrong.
PR: 263824
Submitted by: jiahali@blackberry.com
MFC after: 2 weeks
Adam S [Mon, 9 May 2022 12:44:09 +0000 (08:44 -0400)]
asmc: Update Mac Pro 6 sensor definitions
- Make descriptions a bit more human-friendly.
- Don't attempt to probe fan safe speeds, this model does not provide
one.
PR: 260781
MFC after: 2 weeks
Ruslan Bukin [Mon, 9 May 2022 12:30:37 +0000 (13:30 +0100)]
Allocate resources selectively.
One of the SMMU interrupt lines (priq) is optional and may be ommited in FDT.
Tested on ARM Morello Board, which has three SMMU units: first two have four
interrupt lines, last one has three interrupt lines.
Sponsored by: UKRI
Ruslan Bukin [Mon, 9 May 2022 10:24:47 +0000 (11:24 +0100)]
Change __unused to __diagused.
Pointed out by: jhb
Sponsored by: UKRI
Dmitry Chagin [Sun, 8 May 2022 14:20:52 +0000 (17:20 +0300)]
linux(4): Use the right function to get the bit index in vdso binuptime.
This is modeled after
a1f93266 (by kib@).
MFC after: 2 weeks
Dmitry Chagin [Sun, 8 May 2022 14:20:52 +0000 (17:20 +0300)]
linux(4): Implement vdso getcpu for x86.
This is modeled after
f2395455 (by kib@).
MFC after: 2 weeks