c8bc8741 glebius Sept. 9, 2022, 4:19 p.m.
- Don't use hardcoded hash mask
- free the memory on VNET destroy

Fixes:	1494f4776af32b49e3c5bbdf09d6b2995b374614
6501fcdc mhorne Sept. 9, 2022, 3:31 p.m.
It was observed that on RockPro64 hardware, the dwc interface is unable
to receive packets after being assigned a new MAC address. The fix is
simply to call mii_mediachg() before touching any device registers in
dwc_init_locked(). This is consistent with what the OpenBSD driver does.

PR:		263820
MFC after:	1 week
87705c5c mhorne Sept. 9, 2022, 3:31 p.m.
This enables attachment on the RPI4, thus enabling the bcm2835_pwm
driver too. Per the device tree documentation, these compat strings are
equivalent, and no further changes to the driver are required.


MFC after:	3 days
c73d20c8 imp Sept. 9, 2022, 3:23 p.m.
Sponsored by:		Netflix
78c30a6a zirias Sept. 9, 2022, 3:07 p.m.
Approved by:	tcberner (mentor)
600f1612 zirias Sept. 9, 2022, 2:59 p.m.
The non-atomic versions are required by drm-510-kmod to build on 32-bit

Approved by:		hselasky, manu, tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D36507
3fc17484 manu Sept. 9, 2022, 1:55 p.m.
This reverts commit a5a918b7a906eaa88e0833eac70a15989d535b02.

This cause some problem with vm using bhyveload.

Reported by:	pho, kp
83b65d0a manu Sept. 9, 2022, 1:54 p.m.
This reverts commit 653c36179d9ee587e4d5e4668fd73d6c3d318ef8.
81560c55 rrs Sept. 9, 2022, 12:59 p.m.
In doing some testing for a different problem, I have found rack retransmitting
all outstanding data every time a timeout occurs. The outstanding is sent 1ms
apart between each packet, and then the timeout runs off again. This causes
extra retransmissions when we should be waiting for an ack after sending the
very first segment.

Reviewed by: tuexen
Sponsored by: Netflix Inc
Differential Revision: https://reviews.freebsd.org/D36494
d3791ac4 des Sept. 9, 2022, 12:11 p.m.
Sponsored by:	Klara, Inc.
MFC after:	1 week
08e331f4 des Sept. 9, 2022, 12:09 p.m.
Sponsored by:	Klara, Inc.
f419a283 des Sept. 9, 2022, 12:06 p.m.
Sponsored by:	Klara, Inc.
MFC after:	1 week
7ea1cac2 bz Sept. 9, 2022, 11:54 a.m.
There are drivers are using (*pause)(x, y) function pointers and depending
on how "pause" is used it gets replaced by pause_sbt causing compile time
Given "pause" is a generic enough name change it from a #define to an
inline function to avoid replacements where it should not.

MFC after:	2 weeks
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D36489
6665c7a6 kd Sept. 9, 2022, 11:42 a.m.
The register map is fairly similar, with one difference in the local
sensor temperature register width.
Both devices support reading two sensors - "local" and "remote".
While here add support for the latter one.
The ADT7461 doesn't update the temperature correctly, unless a write
transaction is done before every read.
Do just that as a workaround for this issue.

Tested on LS1046ARDB.

Reviewed by:	manu
Obtained from:	Semihalf
Differential Revision: https://reviews.freebsd.org/D36464
c44ca4c2 arrowd Sept. 9, 2022, 8:07 a.m.
Approved by:	imp
Fixes:	20adba8bc1beb125d5e5ed8f12e747ae79ca6a10