65366903 cem Oct. 23, 2019, 4:48 p.m.
This is just a bandaid; we should fix the driver(s) too.  Introduced in
r353685.

PR:		241403
X-MFC-With:	r353685
Reported by:	np and others
cgit ViewVC
de19b521 dim Oct. 23, 2019, 4:48 p.m.
corresponding WITHOUT_SHARED_TOOLCHAIN description, and regenerate
src.conf(5).

MFC after:	 3 days
cgit ViewVC
4196949c jhb Oct. 23, 2019, 4:43 p.m.
This fixes the target triple used when compiling riscv64sf with clang.

Discussed with:	mhorne
MFC after:	2 weeks
Sponsored by:	DARPA
cgit ViewVC
b96562eb jhb Oct. 23, 2019, 4:41 p.m.
The lr.w instruction used to read the value from memory sign-extends
the value read from memory.  GCC sign-extends the 32-bit comparison
value passed in whereas clang currently does not.  As a result, if the
value being compared has the MSB set, the comparison fails for
matching 32-bit values when compiled with clang.

Use a cast to explicitly sign-extend the unsigned comparison value.
This works with both GCC and clang.

There is commentary in the RISC-V spec that suggests that GCC's
approach is more correct, but it is not clear if the commentary in the
RISC-V spec is binding.

Reviewed by:	mhorne
Obtained from:	Axiado
MFC after:	2 weeks
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D22084
cgit ViewVC
c92f1304 kib Oct. 23, 2019, 4:06 p.m.
Create a sequence point by ending a full expression for call to
vspace() and use of the globals which are modified by vspace().

Reported and reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D22126
cgit ViewVC
168f19a5 cem Oct. 23, 2019, 4:05 p.m.
No functional change.  Related to D22122.

Reviewed by:	emaste, kib (earlier version both)
cgit ViewVC
8076c4e7 kib Oct. 23, 2019, 3:51 p.m.
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
cgit ViewVC
9d0a6b83 andrew Oct. 23, 2019, 1:21 p.m.
When we raise a data abort from the kernel we need to enable interrupts,
however we shouldn't be doing this when in the kernel debugger. In this
case interrupts can lead to a further panic as they don't expect to be
run from such a context.

MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
cgit ViewVC
a6013680 manu Oct. 23, 2019, 9:56 a.m.
This method check that boot_on or always_on is set to 1 and if it
is it will try to enable the regulator.
The binding docs aren't clear on what to do but Linux enable the regulator
if any of those properties is set so we want to do the same.
The function first check the status to see if the regulator is
already enabled it then get the voltage to check if it is in a acceptable
range and then enables it.
This will be either called from the regnode_init method (if it's needed by the platform)
or by a SYSINIT at SI_SUB_LAST

Reviewed by:	mmel
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D22106
cgit ViewVC
f66cb502 manu Oct. 23, 2019, 9:54 a.m.
MFC after:	1 week
cgit ViewVC
a2473554 manu Oct. 23, 2019, 9:54 a.m.
This is a default init method for regulator that don't really
need one.

MFC after:	1 week
cgit ViewVC
16b0c092 kib Oct. 23, 2019, 7:36 a.m.
Reviewed by:	alc, markj
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D22113
cgit ViewVC
b3bec79d kevans Oct. 23, 2019, 3:23 a.m.
operation & ~limit where limit is a bool is clearly not what was intended,
given the line prior. Correct it to use the calculated mask for validation.

The cap_sysctl tests should now be functional again.
cgit ViewVC
f7810883 kevans Oct. 23, 2019, 2:15 a.m.
Shuffle headers around to more appropriate #ifdef OPTION blocks (INET vs.
INET6) -- double checked LINT-{NOINET,NOINET6,NOIP}, all seem good.

Reported by:	cem
cgit ViewVC
e735aa5a kevans Oct. 23, 2019, 1:50 a.m.
Note that the cap_sysctl tests are currently failing and need some
attention.
cgit ViewVC