b509e538 adrian Feb. 4, 2022, 5:26 a.m.
This adds the ethernet MAC and ethernet switch definitions.

I've rewritten the header file and the DTS based on documentation
and the required driver fields rather than the GPL'ed
ones from openwrt.

Differential Revision: https://reviews.freebsd.org/D34111
Reviewed by: manu
cgit
29332c0d adrian Feb. 4, 2022, 5:26 a.m.
This adds support for the IPQ4018/IPQ4019 MDIO bus.  This is used to
talk to external PHYs and switches.  (There's an internal switch
in the IPQ4018/IPQ4019 as well, but it's accessible via MMIO/AXI.)

Differential Revision: https://reviews.freebsd.org/D34110
Reviewed by: manu
cgit
ad494d3b jkim Feb. 3, 2022, 11:43 p.m.
1e800a59 jkim Feb. 3, 2022, 11:43 p.m.
ec1f122b jkim Feb. 3, 2022, 11:43 p.m.
7e5933b3 jkim Feb. 3, 2022, 11:43 p.m.
No functional change.

Differential Revision:	https://reviews.freebsd.org/D32154
cgit
8e9740b6 jkim Feb. 3, 2022, 11:43 p.m.
A lot more generic cam related things were done in mmc_sim so this
simplifies the driver a lot.

Differential Revision:	https://reviews.freebsd.org/D32154
Reviewed by:		imp
cgit
aa473645 jhibbits Feb. 3, 2022, 11:25 p.m.
After b5d227b0 FreeBSD was panicking on boot with "Duplicate free" in
UMA.  Analyzing the asm, the '1' mask was treated as an integer, rather
than a long, causing 'slw' (shift left word) to be used for the shifting
instruction, not 'sld' (shift left double).  This means the upper bits
of the bitfield were not getting used, resulting in corruption of the
bitfield.

While fixing this, the 'and' check of the mask does not need to be
recorded, so don't record (drop the '.').
cgit
3b248a21 mav Feb. 3, 2022, 8:33 p.m.
There seem to be systems returning some garbage here.  I still don't
know why, but at least I hope this check fix indefinite printf loop.

MFC after:	2 weeks
cgit
fd723975 rscheff Feb. 3, 2022, 8:05 p.m.
missed one bitmask inversion while committing D34148

Differential Revision: https://reviews.freebsd.org/D34148
Differential Revision: https://reviews.freebsd.org/D34160
cgit
3b0ee680 rscheff Feb. 3, 2022, 7:06 p.m.
setsockopt() grants full access to the deprecated
TOS byte. For TCP, mask out the ECN codepoint, so that
only the DSCP portion can be adjusted.

Reviewed By: tuexen, hselasky, #manpages, #transport, debdrup
Sponsored by:        NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D34154
cgit
ea07ba11 jsm Feb. 3, 2022, 7:03 p.m.
after d950c5898a2d UINT64_C and bzero were no longer defined

Approved by:	kib
Differential Revision:	https://reviews.freebsd.org/D34155
cgit
529575be kib Feb. 3, 2022, 6:56 p.m.
Reported by:	brooks
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
cgit
87c5d39f jhb Feb. 3, 2022, 6:48 p.m.
GCC's -Wformat complains about NULL format strings passed to
iwl_fw_dbg_collect_trig (though the function handles NULL format
strings).  Curious that upstream iwlwifi in Linux is built with GCC
and explicitly opts into this warning via the __printf() attribute.

Reviewed by:	bz
Differential Revision:	https://reviews.freebsd.org/D34146
cgit
d43255b5 wosch Feb. 3, 2022, 5:02 p.m.
A lookup array is faster than a function with linear search.
The old function was not used for years - spring cleaning.
cgit