aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused bhndb_devclass.John Baldwin2022-05-093-4/+1
|
* Remove unused cfi_devclass.John Baldwin2022-05-095-6/+5
|
* asmc: Remove unused devclass argument to DRIVER_MODULE.John Baldwin2022-05-091-3/+1
|
* dev/amd*: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin2022-05-096-14/+6
|
* Split-out SID-getting code to a separate functions.Ruslan Bukin2022-05-091-13/+44
| | | | | | Also ensure we are dealing with PCI-class devices. Sponsored by: UKRI
* linux(4): Regen for prctl fix.Dmitry Chagin2022-05-094-6/+6
| | | | MFC after: 2 weeks
* linux(4): Fix 039e98e6.Dmitry Chagin2022-05-092-2/+2
| | | | | | The patch was about an year in my local queue and I still screwed up... MFC after: 2 weeks
* linux(4); Style.Dmitry Chagin2022-05-091-1/+1
| | | | MFC after: 2 weeks
* linux(4): Return native error from futex_atomic_op to avoid conversion by ↵Dmitry Chagin2022-05-094-25/+20
| | | | | | the caller. MFC after: 2 weeks
* linux(4): Fixed offset miscalculation in the preadv/pwritev syscalls.Dmitry Chagin2022-05-091-4/+11
| | | | MFC after: 2 weeks
* linux(4): Regen for prctl syscall.Dmitry Chagin2022-05-094-24/+24
| | | | MFC after: 2 weeks
* linux(4): Change prctl syscall definition to match Linux actual one.Dmitry Chagin2022-05-092-8/+8
| | | | | | Otherwise argX conversion leads to an unexpected behaviour. MFC after: 2 weeks
* linux(4): The futex_wait operation should restart.Dmitry Chagin2022-05-091-2/+0
| | | | | | | It's ok from the futex_wait perspective as umtxq_sleep method uses absolute sleep timeout. MFC after: 2 weeks
* domains: undocument dom_destroy() and fix .DdGleb Smirnoff2022-05-091-6/+1
| | | | Fixes: 24e1c6ae7d3f7731a0884a62e9d5273e5ca1335a
* sockbufs: make sbrelease_internal() privateGleb Smirnoff2022-05-092-2/+1
|
* sockets: remove the socket-on-stack hack from sorflush()Gleb Smirnoff2022-05-094-31/+24
| | | | | | | | | | | | | | | | 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
* sockets: don't call dom_dispose() on a listening socketGleb Smirnoff2022-05-092-3/+4
| | | | | | | | 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
* sockets: assert that any protocol with PR_RIGHTS has dom_dispose()Gleb Smirnoff2022-05-091-2/+6
| | | | | | | Through the entire history only PF_UNIX has this feature. Reviewed by: markj Differential revision: https://reviews.freebsd.org/D35123
* tests/unix_passfd: add test for shutdown(2) on a buffer with an fdGleb Smirnoff2022-05-091-0/+34
| | | | | | | | | 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
* ng_socket: don't assign NULL in C99 sparse initializerGleb Smirnoff2022-05-091-9/+0
|
* bluetooth: don't assign NULL in C99 sparse initializerGleb Smirnoff2022-05-091-5/+0
|
* unix/*: unp_internalize() can sleep, so allocate mbufs with M_WAITOKGleb Smirnoff2022-05-091-37/+12
|
* sockets: make SO_SND/SO_RCV a enumGleb Smirnoff2022-05-092-10/+7
| | | | | Not a functional change now. The enum will also be used for other socket buffer related KPIs.
* Fix bd82711aff98 serial number trailing spaces removal.Alexander Motin2022-05-091-1/+1
| | | | | For devices returning 16 byte serial numbers with 8 leading spaces this falsely removed everything due to looking at wrong offset.
* genet: fix output packet corruption in uncommon caseMike Karels2022-05-091-2/+1
| | | | | | | | | | | | | | 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
* asmc: Update Mac Pro 6 sensor definitionsAdam S2022-05-092-14/+14
| | | | | | | | | - 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
* Allocate resources selectively.Ruslan Bukin2022-05-093-7/+108
| | | | | | | | | 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
* Change __unused to __diagused.Ruslan Bukin2022-05-093-5/+5
| | | | | Pointed out by: jhb Sponsored by: UKRI
* linux(4): Use the right function to get the bit index in vdso binuptime.Dmitry Chagin2022-05-081-6/+6
| | | | | | This is modeled after a1f93266 (by kib@). MFC after: 2 weeks
* linux(4): Implement vdso getcpu for x86.Dmitry Chagin2022-05-0815-6/+172
| | | | | | This is modeled after f2395455 (by kib@). MFC after: 2 weeks
* linux(4): Refactor vdso_gettc_x86 includes.Dmitry Chagin2022-05-084-15/+5
| | | | | | | Factor out includes from common vdso_gettc_x86 file to the corresponding MD files. MFC after: 2 weeks
* linux(4): Add a helper intended for copying timespec's from the userspace.Dmitry Chagin2022-05-088-108/+47
| | | | | | | | There are many places where we copyin Linux timespec from the userspace and then convert it to the kernel timespec. To avoid code duplication add a tiny halper for doing this. MFC after: 2 weeks
* linux(4): Prevent time_t overflows on i386.Dmitry Chagin2022-05-081-0/+5
| | | | | | | As native i386 time_t is still 32-bit, check that the user-provided 64-bit tv_sec value fits to the kernel time_t, return EOVERFLOW if not. MFC after: 2 weeks
* linux(4): Zero out high order bits of nanoseconds in the compat mode.Dmitry Chagin2022-05-082-3/+8
| | | | | | | Assuming the kernel would use random data, the 64-bit Linux kernel ignores upper 32 bits of tv_nsec of struct timespec64 for 32-bit binaries. MFC after: 2 weeks
* linux(4): Add a helper intended for copying timespec's to the userspace.Dmitry Chagin2022-05-083-73/+50
| | | | | | | There are many places where we convert natvie timespec and copyout it to the userspace. To avoid code duplication add a tiny halper for doing this. MFC after: 2 weeks
* linux(4): Regen for ppoll_time64 syscall.Dmitry Chagin2022-05-082-3/+3
| | | | MFC after: 2 weeks
* linux(4): Fix ppoll_time64 syscall definition.Dmitry Chagin2022-05-081-1/+1
| | | | | | Fixed my typo in ed61e0ce1d. Here tsp is a pointer to the 64-bit timespec. MFC after: 2 weeks
* stress2: Added a test scenarioPeter Holm2022-05-082-0/+56
|
* epair: unbind prior to returning to userspaceKristof Provost2022-05-071-0/+3
| | | | | | | | | If 'options RSS' is set we bind the epair tasks to different CPUs. We must take care to not keep the current thread bound to the last CPU when we return to userspace. MFC after: 1 week Sponsored by: Orange Business Services
* in_rss: fix set but not used warningKristof Provost2022-05-071-2/+0
| | | | | | | If 'options RSS' is set. MFC after: 1 week Sponsored by: Orange Business Services
* epair: fix set but not used warningKristof Provost2022-05-071-2/+0
| | | | | | | If 'options RSS' is set. MFC after: 1 week Sponsored by: Orange Business Services
* dmesg: Better wording from reviewWarner Losh2022-05-071-3/+4
| | | | | | | | | | | | | | | | I pushed the last changes before I'd noticed the better wording suggestions in the review. Also include a note that not all lines will have a timestampe. Some multi-line messages are generated with sbuf, and when those are pushed, only the first line will have the timestamp. Document this quirky behavior as well since fixing it likely won't happen soon. CAM periph drivers generate all the lines in their announce message together so they aren't intermingled with other things, for example. Suggested by: allanjude, emaste, rpokala Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D35139 Differential Revision: https://reviews.freebsd.org/D35141
* param.h: Bump FreeBSD_Version to 1400058 for devclass newbus changesWarner Losh2022-05-071-1/+1
| | | | | | | | | | jhb changed the newbus ABI and it's affecting some ports. Bump the version to give them something to key off of for the removal of the devclass arg from some macros. In theory the change should have been ABI neutral, but there some build breakage with drm-kmod so better to bump than not. Sponsored by: Netflix
* msgbuf: Allow microsecond granularity timestampsWarner Losh2022-05-072-3/+14
| | | | | | | | | | | | | | | | | | | Today, kern.msgbuf_show_timestamp=1 will give 1 second granularity timestamps on dmesg lines. When kern.msgbuf_show_timestamp=2, we'll produce microsecond level graunlarity. For example: old (== 1): [13] Dual Console: Video Primary, Serial Secondary [14] lo0: link state changed to UP [15] bxe0: NIC Link is Up, 10000 Mbps full duplex, Flow control: ON - receive & transmit [15] bxe0: link state changed to UP new (== 2): [13.807015] Dual Console: Video Primary, Serial Secondary [14.544150] lo0: link state changed to UP [15.272044] bxe0: NIC Link is Up, 10000 Mbps full duplex, Flow control: ON - receive & transmit [15.272052] bxe0: link state changed to UP Sponsored by: Netflix
* dmesg: Document kern.msgbuf_show_timestampWarner Losh2022-05-071-1/+14
| | | | | | | kern.msgbuf_show_timestamp=1 turns on timestamps in kernel's message buffer which dmesg(8) prints. Sponsored by: Netflix
* Add FDT attachment driver for ARM System MMU v3.2 controller.Ruslan Bukin2022-05-075-15/+195
| | | | | | Tested on ARM Morello Board. Sponsored by: UKRI
* Change iommu list lock to SX as we need a sleepable lock so weRuslan Bukin2022-05-071-5/+6
| | | | | | can call to ofw_bus_iommu_map(). Sponsored by: UKRI
* Fix !INVARIANTS build.Ruslan Bukin2022-05-072-6/+6
| | | | Sponsored by: UKRI
* Check if iommu ctx is valid before passing it to functions.Ruslan Bukin2022-05-071-0/+5
| | | | | Differential Revision: https://reviews.freebsd.org/D35130 Sponsored by: UKRI
* Return error code from IOMMU_MAP and fix build.Ruslan Bukin2022-05-071-1/+3
| | | | Sponsored by: UKRI