253687 Commits

Author SHA1 Message Date
jmcneill
0b20af2a4c add A10 and A20 support 2017-10-06 21:21:22 +00:00
jmcneill
671537be4d Add sun4i (A10) and sun7i (A20) GPIO support. 2017-10-06 21:20:59 +00:00
jmcneill
cd50aa8726 add platform support for allwinner,sun4i-a10 and allwinner,sun7i-a20 2017-10-06 21:12:23 +00:00
kre
bd208c6933 Three fixes and a change to ~ expansions
1. A serious bug introduced 3 1/2 months ago (approx) (rev 1.116) which
   broke all but the simple cases of ~ expansions is fixed (amazingly,
   given the magnitude of this problem, no-one noticed!)

2. An ancient bug (probably from when ~ expansion was first addedin 1994, and
   certainly is in NetBSD-6 vintage shells) where ${UnSeT:-~} (and similar)
   does not expand the ~ is fixed (note that ${UnSeT:-~/} does expand,
   this should give a clue to the cause of the problem.

3. A fix/change to make the effects of ~ expansions on ${UnSeT:=whatever}
   identical to those in UnSeT=whatever   In particular, with HOME=/foo
   ${UnSeT:=~:~} now assigns, and expands to, /foo:/foo rather than ~:~
   just as VAR=~:~ assigns /foo:/foo to VAR.   Note this is even after the
   previous fix (ie: appending a '/' would not change the results here.)

   It is hard to call this one a bug fix for certain (though I believe it is)
   as many other shells also produce different results for the ${V:=...}
   expansions than  they do for V=... (though not all the same as we did).

   POSIX is not clear about this, expanding ~ after : in VAR=whatever
   assignments is clear, whether ${U:=whatever} assignments should be
   treated the same way is not stated, one way or the other.

4. Change to make ':' terminate the user name in a ~ expansion in all cases,
   not only in assignments.   This makes sense, as ':' is one character that
   cannot occur in user names, no matter how otherwise weird they become.
   bash (incl in posix mode) ksh93 and bosh all act this way, whereas most
   other shells (and POSIX) do not.   Because this is clearly an extension
   to POSIX, do this one only when not in posix mode (not set -o posix).
2017-10-06 21:09:45 +00:00
jmcneill
6dec99e3f1 Add driver for sun4i (A10) and sun7i (A20) clock controller. 2017-10-06 21:09:21 +00:00
christos
d98cfd15e6 bump libglapi, libGL libGLU because of the libstdc++ dual abi bump 2017-10-06 20:26:51 +00:00
christos
ebbd68dbd4 bump c++ libraries because of the libstdc++ dual abi bump 2017-10-06 20:24:46 +00:00
christos
72f283bf62 bump libraries that depend on libstdc++. 2017-10-06 19:21:17 +00:00
christos
cd7ac3d44d bump because libstdc++ 2017-10-06 19:19:36 +00:00
christos
26057c7540 bump because of libstdc++ 2017-10-06 19:16:35 +00:00
kre
5c624ca98d Add a new sub-test to validate ~ expansions.
Currently testing ~user is too much effort to contemplate (other than
assuming that it works in order to verify that it works...) so only bare ~
is being tested for now.   Maybe someday...

Right now (@ time of commit), this new test is expected to fail, as ~
expansions are horribly badly broken (have been for months, some forms
for much longer) in all but the simplest of uses.   Fix for that coming
very soon.
2017-10-06 17:05:05 +00:00
kre
4ad1e3d9c8 Make this test skip if running on a kernel without the SYSVMSG option.
(Assuming this behaves as intended the other tests which should behave
the same way will get upgrades as well.)
2017-10-06 17:00:28 +00:00
tsutsui
0cd6ed3805 Switch hp300 to HAVE_XORG_SERVER_VER=118.
Tested on HP 9000/425t with HP98550 catseye (topcat).
2017-10-06 13:00:57 +00:00
christos
cd25ec9105 bump libstdc++ to account for disabling the "dual abi". 2017-10-05 23:47:11 +00:00
christos
510540c911 re-run mknative to disable the libstdc++ "dual abi". Bump. 2017-10-05 23:46:34 +00:00
macallan
3e3d2ecc2e do what linux and freebsd do here:
- ignore the raw 'adc' sensors
- update all sensors in a single transaction instead of one by one
now we're getting relatively sane readings
2017-10-05 19:29:33 +00:00
christos
d93fc8b9c8 fix lint build. 2017-10-05 18:01:00 +00:00
jmcneill
4caf6c70ab add cpu regulator and operating points for nanopi neo 2017-10-05 13:25:33 +00:00
roy
b481130756 Cast away some compile warnings. 2017-10-05 09:59:04 +00:00
msaitoh
3014bc82c5 Use pcireg.h's macro. No functional change. 2017-10-05 06:37:45 +00:00
wiz
877c1e6101 Fix typo in comment. 2017-10-05 06:30:19 +00:00
msaitoh
7c17378f49 - Add PCI_MAPREG_ROM_ADDR_MASK macro and PCI_MAPREG_ROM_ADDR() macro.
- print PCI_MAPREG_ROM_ENABLE bit.
- Decode Expansion ROM Validation ECN.
- Add Native PCIe Enclosure Management ECN's extended capability type.
  Not decoded yet.
2017-10-05 06:14:30 +00:00
dholland
e4fcba91cd One of the things we should do when bumping libc is to boot the
obsolete cryptographic hashes out of libc, either entirely or to
some "insecure" library.
2017-10-05 04:38:08 +00:00
mrg
803cb099d6 s/u_int/unsigned/.
from Jan Danielsson.  increases/fixes portability.
2017-10-05 04:22:41 +00:00
ozaki-r
6bf0e671a0 Add missing NULL check
PR kern/52554
2017-10-05 03:42:14 +00:00
msaitoh
7f18730033 - Use per cpu ci->ci_max_cupid instead of global "cpuid_level" variable.
- Print AMD specific cpuid leafs:
        0x80000008 ebx
	0x8000000a edx
	0x80000007 ebx
2017-10-05 03:24:40 +00:00
christos
39acc162ef try a different style of __used. 2017-10-05 02:59:21 +00:00
jmcneill
c40978e807 add thermal sensor controller 2017-10-05 01:32:46 +00:00
jmcneill
7b9bf15041 enable sunxisid and sunxithermal 2017-10-05 01:30:45 +00:00
jmcneill
05641e303b Add driver for thermal sensor controller found in Allwinner H3, A64, and
A83T SoCs.
2017-10-05 01:30:26 +00:00
jmcneill
e2cc70dc0d Add thermal sensor clocks 2017-10-05 01:29:49 +00:00
jmcneill
3b0ef0a5e2 export sunxi_sid_read_tscalib 2017-10-05 01:29:25 +00:00
jmcneill
607cd651dc Add support for gated dividers and /1,/2,/4,/6 style divider fields. 2017-10-05 01:28:47 +00:00
jmcneill
f72fc94a0e Listen for PMFE_THROTTLE_* events and limit CPU frequency when throttling
is enabled.
2017-10-05 01:28:01 +00:00
jmcneill
062e17e4aa Add PMFE_THROTTLE_ENABLE / PMFE_THROTTLE_DISABLE events. 2017-10-05 01:26:53 +00:00
christos
9c2811ef9f Add NOBINARIES, useful to build tools are libraries which is what's needed
for mknative.
2017-10-04 23:54:33 +00:00
christos
36a9bd7395 add stdatomic.h 2017-10-04 23:44:38 +00:00
christos
507caaad52 Add stdatomic.h 2017-10-04 23:43:23 +00:00
christos
f8c6a2b31e const me harder! 2017-10-04 23:04:42 +00:00
christos
df46e7377d mark first as used for platforms that define PROGRESS to nothing (mvme68k) 2017-10-04 22:00:40 +00:00
christos
8018b9b342 use the variable for the source dir instead of duplicating it. 2017-10-04 21:42:20 +00:00
christos
d8288c95fa - gcc.old == gcc-5.3, so copy mknative-gcc{,.old} and adjust
- disable dual libstdc++ abi per joerg
  (https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html)
  will require a major libstdc++ major bump.
2017-10-04 21:29:43 +00:00
kamil
15e2febe9d pmap: Refresh debugging facilities
Print vm_aslr_delta_mmap from 'struct vmspace'.
Print the WANTVA bit of 'flags' from 'struct vm_map'.
Replace %x with %#x, this improves readability of hex vs dec numbers.

Sponsored by <The NetBSD Foundation>
2017-10-04 11:33:01 +00:00
msaitoh
2b4a7b077a - ixv_enableintr(): Fix a bug that ixv_enable_queue() is called with incorrect
argument. This bug was added in rev. 1.68.
- Don't check neither VTEICR nor VTEICS same as Linux. It seems that both
  registers can't be used to check which MSI-X vector is triggered. A bit is
  set on very low probability and the bit location is incorrect. Is this an
  errata?
2017-10-04 11:03:20 +00:00
pgoyette
cae76d1a95 Use do {...} while 0; construct for KERNHIST_LINK_STATIC()
NFCI
2017-10-04 09:59:24 +00:00
rkujawa
66eee72608 Update driver to support firmware v1.5+.
From Lukas F. Hartmann. With hopeful style fixes from me.
2017-10-04 09:44:09 +00:00
skrll
5354db38bd Call sysctl_kernhist_new for KERNHIST_LINK_STATIC. I can get usbhist from
vmstat(1) again.
2017-10-04 09:10:37 +00:00
msaitoh
bbb4721c42 Add 2.5GBASE-T and 5GBASE-T support. (forgotten in the last commit) 2017-10-04 08:47:26 +00:00
msaitoh
e2ef7204bc - Remove half-duplex setting for more than 1000Mbps in ixgbe_add_media_types()
because those medias are not in the spec.
- Add 2.5GBASE-T and 5GBASE-T support. Tested with X550-T1.

Example:
ixg0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	capabilities=fff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
	capabilities=fff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx>
	capabilities=fff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6,LRO>
	enabled=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
	enabled=7ff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx>
	enabled=7ff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
	ec_capabilities=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
	ec_enabled=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
	address: a0:36:9f:b0:f5:b0
	media: Ethernet 2.5GBASE-T full-duplex
	status: active
	supported Ethernet media:
		media 10Gbase-T
		media 10Gbase-T mediaopt full-duplex
		media 1000baseT
		media 1000baseT mediaopt full-duplex
		media 100baseTX
		media 100baseTX mediaopt full-duplex
		media 2.5GBASE-T mediaopt full-duplex
		media 5GBASE-T mediaopt full-duplex
		media autoselect
	inet 172.16.0.1/24 broadcast 172.16.0.255 flags 0x0
	inet6 fe80::a236:9fff:feb0:f5b0%ixg0/64 flags 0x0 scopeid 0x1
2017-10-04 07:13:00 +00:00
msaitoh
3a978cd9a9 Add 2.5GBASE-T and 5GBASE-T. 2017-10-04 07:08:01 +00:00