c7a62c92 glebius Aug. 10, 2022, 6:09 p.m.
Reviewed by:		rrs, tuexen
Differential revision:	https://reviews.freebsd.org/D36062
cgit
d38a784b manu Aug. 10, 2022, 5:25 p.m.
Needed by the module.
cgit
fbc50a69 manu Aug. 10, 2022, 5:25 p.m.
Needed by the module.
cgit
87f642ac manu Aug. 10, 2022, 5:22 p.m.
Changing mode on a pin (input/output/pullup/pulldown) is a bit slow.
Improve this by caching what we can.
We need to check if the pin is in gpio mode, do that the first time
that we have a request for this pin and cache the result. We can't do
that at attach as we are a child of rk_pinctrl and it didn't finished
its attach then.
Cache also the flags specific to the pinctrl (pullup or pulldown) if the
pin is in input mode.
Cache the registers that deals with input/output mode and output value. Also
remove some register reads when we change the direction of a pin or when we
change the output value since the bit changed in the registers only affect output
pins.
cgit
abc7a4a0 andrew Aug. 10, 2022, 4:02 p.m.
Define PAGE_SIZE and PAGE_MASK based on PAGE_SHIFT. With this we only
need to set one value to change one value to change the page size.

While here remove the unused PAGE_MASK_* macros.

Sponsored by:	The FreeBSD Foundation
cgit
7dc4d511 emaste Aug. 10, 2022, 2:39 p.m.
Fixes INVARIANTS build with Clang 15, which previously failed due to
set-but-not-used variable warnings.

Reviewed by:	dim
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D36097
cgit
d88eb465 glebius Aug. 10, 2022, 2:32 p.m.
Imagine we are in SYN-RCVD state and two ACKs arrive at the same time,
both valid, e.g. coming from the same host and with valid sequence.

First packet would locate the listening socket in the inpcb database,
write-lock it and start expanding the syncache entry into a socket.
Meanwhile second packet would wait on the write lock of the listening
socket.  First packet will create a new ESTABLISHED socket, free the
syncache entry and unlock the listening socket.  Second packet would
call into syncache_expand(), but this time it will fail as there
is no syncache entry.  Second packet would generate RST, effectively
resetting the remote connection.

It seems to me, that it is impossible to solve this problem with
just rearranging locks, as the race happens at a wire level.

To solve the problem, for an ACK packet arrived on a listening socket,
that failed syncache lookup, perform a second non-wildcard lookup right
away.  That lookup may find the new born socket.  Otherwise, we indeed
send RST.

Tested by:		kp
Reviewed by:		tuexen, rrs
PR:			265154
Differential revision:	https://reviews.freebsd.org/D36066
cgit
f998535a melifaro Aug. 10, 2022, 2:19 p.m.
destinations.

The current assumption is that kernel-handled rtadv prefixes along with
 the interface address prefixes are the only prefixes considered in
 the ND neighbor eligibility code.
Change this by allowing any non-gatewaye routes to be eligible. This
 will allow DHCPv6-controlled routes to be correctly handled by
 the ND code.
Refactor nd6_is_new_addr_neighbor() to enable more deterministic
 performance in "found" case and remove non-needed
 V_rt_add_addr_allfibs handling logic.

Reviewed By: kbowling
Differential Revision: https://reviews.freebsd.org/D23695
MFC after:	1 month
cgit
8d6b3a85 manu Aug. 10, 2022, 1:47 p.m.
Node names for gpio bank were made generic in Linux 5.16 so stop
using them to map the gpio controller to the pin controller bank unit.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
cgit
c9ccf3a3 manu Aug. 10, 2022, 12:32 p.m.
Sponsored by:   Beckhoff Automation GmbH & Co. KG
cgit
9066e824 manu Aug. 10, 2022, 12:31 p.m.
e67e8565 manu Aug. 10, 2022, 12:29 p.m.
Sponsored by:   Beckhoff Automation GmbH & Co. KG
cgit
b7d8b563 manu Aug. 10, 2022, 12:28 p.m.
8cc087a1 manu Aug. 10, 2022, 12:27 p.m.
Sponsored by:   Beckhoff Automation GmbH & Co. KG
cgit
dec44e53 manu Aug. 10, 2022, 12:25 p.m.