59c2babc kd Sept. 7, 2022, 7:44 a.m.
With the addition of clkgen devices to the Armada38x, there is
no longer any need to use the get_tclk() hack.

Reviewed by:	manu
Obtained from:	Semihalf
Differential Revision: https://reviews.freebsd.org/D36456
cgit
4a4c6dc9 kd Sept. 7, 2022, 7:44 a.m.
This patch introduces basic gate control driver for Armada38x SoC.
Each gate controls coreclk output to a given peripheral.

Reviewed by:	manu
Obtained from:	Semihalf
Differential Revision: https://reviews.freebsd.org/D36455
cgit
07c5be33 kd Sept. 7, 2022, 7:44 a.m.
This patch introduces clkgen driver for Armada38x SoCs.
Clock topology consists of single coreclk which supplies
clock signal to CPU cores and peripherials.

Reviewed by:	manu
Obtained from:	Semihalf
Differential Revision: https://reviews.freebsd.org/D36453
cgit
299b6c9c kd Sept. 7, 2022, 7:44 a.m.
It is stored in the clock-frequency property.
In case of failure, fallback to the harcoded value stored in the
compat data.
Also, while here improve style.
Tested on LS1046ARDB and x86 PC.

Reviewed by:	mw
Obtained from:	Semihalf
Differential Revision: https://reviews.freebsd.org/D36326
cgit
a5a918b7 manu Sept. 7, 2022, 7:07 a.m.
Add VM_EXITCODE_IPI to permit returning unhandled IPIs to userland.
INIT and Startup IPIs are now returned to userland. Due to backward
compatibility reasons, a new capability is added for enabling
VM_EXITCODE_IPI.

MFC after:              2 weeks
Differential Revision:  https://reviews.freebsd.org/D35623
Sponsored by:           Beckhoff Automation GmbH & Co. KG
cgit
9cc9abf4 manu Sept. 7, 2022, 7:05 a.m.
vcpus could be restarted by the guest by sending an INIT SIPI SIPI
sequence to a vcpu. That's not supported by bhyve yet but it will be
supported in a future commit. So, create the vcpu threads only once on
startup to make restarting a vcpu easier.

MFC after:		2 weeks
Differential Revision:	https://reviews.freebsd.org/D35621
Sponsored by:		Beckhoff Automation GmbH & Co. KG
cgit
4385a9f8 delphij Sept. 7, 2022, 6:41 a.m.
Pointy hat to:	delphij
MFC after:	2 weeks
X-MFC-with:	c65e42dbde41
cgit
bced4d8b delphij Sept. 7, 2022, 6:31 a.m.
MFC after:	1 week
PR:		bin/266264
cgit
5457a3f2 delphij Sept. 7, 2022, 6:30 a.m.
(cherry picked from commit 19bf47777d0002ee884467e45e6ace702e40a4c1)
cgit
c65e42db delphij Sept. 7, 2022, 6:11 a.m.
Reviewed by: 	markj
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D36463
cgit
aa74cc6d glebius Sept. 7, 2022, 3:54 a.m.
Although originally socket was intended to use with ipfw(4) only, now
it also can be used with pf(4).  On a kernel without packet filters,
it still can be used to inject traffic.
cgit
999c9fd7 glebius Sept. 7, 2022, 3:54 a.m.
This compiles, but actually is a dead code.

Noticed by:	bz
Fixes:		e72c522858cb
cgit
322b5b7c glebius Sept. 7, 2022, 3:54 a.m.
Python's socketmodule isn't able to construct sockaddr when it doesn't
recognize the address family.  Until this is solved in python let the
tests use the compatibility way to create divert(4) socket.
cgit
1f7a710a cy Sept. 7, 2022, 2:57 a.m.
The SIOCSTAT1 ioctl is only used in ip_auth and is unused in ip_state.
The ip_state version was likely added to support a new statistic yet
to be developed in ipfstat(8) or for some sample userspace application
(similar in fashion to the sample provided for authentication rules).
There is no need to report individual state hash table bucket lengths
to any future userspace application.

If needed for any future debugging purposes a DTrace probe would be a
better vehicle.

This unused ioctl in ip_stat results in a panic.

PR:		266124
Reported by:	Robert Morris <rtm@lcs.mit.edu>
MFC after:	3 days
cgit
3e81ef62 cy Sept. 7, 2022, 2:56 a.m.
IPL_SELECT was used for HP-UX >= 11.11 only. Remove this de trop code.

MFC after:	3 days
cgit