707e567a dchagin May 8, 2022, 1:16 p.m.
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
cgit
3dc2a067 dchagin May 8, 2022, 12:39 p.m.
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
cgit
1579b320 dchagin May 8, 2022, 12:38 p.m.
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
cgit
9a9482f8 dchagin May 8, 2022, 12:37 p.m.
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
cgit
61f45f67 dchagin May 8, 2022, 10:38 a.m.
MFC after:		2 weeks
cgit
94f5f150 dchagin May 8, 2022, 10:37 a.m.
Fixed my typo in ed61e0ce1d. Here tsp is a pointer to the 64-bit timespec.

MFC after:		2 weeks
cgit
13aacd0c pho May 8, 2022, 7:54 a.m.
cbbce423 kp May 7, 2022, 4:17 p.m.
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
cgit
017e7d03 kp May 7, 2022, 4:17 p.m.
If 'options RSS' is set.

MFC after:	1 week
Sponsored by:	Orange Business Services
cgit
a6b0c8d0 kp May 7, 2022, 4:17 p.m.
If 'options RSS' is set.

MFC after:	1 week
Sponsored by:	Orange Business Services
cgit
2f44ad86 imp May 7, 2022, 3:55 p.m.
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
cgit
2e32d4e4 imp May 7, 2022, 3:32 p.m.
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
cgit
45ae223a imp May 7, 2022, 3:32 p.m.
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
cgit
6910fee6 imp May 7, 2022, 3:32 p.m.
kern.msgbuf_show_timestamp=1 turns on timestamps in kernel's message
buffer which dmesg(8) prints.

Sponsored by:		Netflix
cgit
a5ec261a br May 7, 2022, 10:18 a.m.
Tested on ARM Morello Board.

Sponsored by:	UKRI
cgit