253658 Commits

Author SHA1 Message Date
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
msaitoh
14fe90e75f All Ethernet media more than 1000Mbps don't support half duplex.
For the convinience, ifconfig without "mediaopt fullduplex" sets IFM_FDX
automatically for those medias. Without this change, "ifconfig xxN mediaopt
10Gbase-T" (without "mediaopt fullduplex") returns EINVAL if a
driver doesn't call ifmedia_add() without IFM_FDX because ifmedia_match()
returns NULL.
2017-10-04 07:07:16 +00:00
msaitoh
35701a32de Fix a bug that X550EM (Denverton) can't force 10BaseT. 2017-10-04 06:19:47 +00:00
ozaki-r
dd153b0f96 Include socketvar.h for softnet_lock 2017-10-04 02:25:07 +00:00
jmcneill
56e667ec30 add Security ID EFUSE node 2017-10-03 23:42:35 +00:00
jmcneill
4f0c0b5e16 Add a simple Security ID EFUSE driver. 2017-10-03 23:42:17 +00:00
christos
73776b1cca From FreeBSD:
netsmb: Fix buggy/racy smb_strdupin()

smb_strdupin() tried to roll a copyin() based strlen to allocate a buffer
and then blindly copyin that size.  Of course, a malicious user program
could simultaneously manipulate the buffer, resulting in a non-terminated
string being copied.

Later assumptions in the code rely upon the string being nul-terminated.

Just use copyinstr() and drop the racy sizing.

PR:		222687
Reported by:	Meng Xu <meng.xu AT gatech.edu>
Security:	possible local DoS
Sponsored by:	Dell EMC Isilon
2017-10-03 15:27:10 +00:00
maya
6e25a9dd5f Simplify. 2017-10-03 11:02:36 +00:00
maya
2f8550bbff Accept also ../xsrc in our sanity check, we use this as a default too,
if it exists.
2017-10-03 10:59:04 +00:00
joerg
bf5991674e Be consistent with our header. 2017-10-03 10:28:30 +00:00
ozaki-r
83c2b87ac0 Constify isr at many places (NFC) 2017-10-03 08:56:52 +00:00
ozaki-r
7f4c0fa033 Fix SP is broken on transport mode
isr->saidx was modified accidentally in ipsec_nextisr.

Reported by christos@
Helped investigations by christos@ and knakahara@
2017-10-03 08:34:28 +00:00
ozaki-r
13270c3990 Don't abuse key_checkrequest just for looking up sav
It does more than expected for example key_acquire.
2017-10-03 08:25:21 +00:00
ozaki-r
289fe53240 Pull out ipsec_fill_saidx_bymbuf (NFC) 2017-10-03 07:32:53 +00:00
mlelstv
ff454992cd clarify that alignment is the number of bytes to align to. 2017-10-03 06:55:04 +00:00
msaitoh
04e0dbf410 Fix a problem that mailbox interrupt never occured. Bit definitions of PF's
interrupt related registers and VF's interrupt registers a completely
different. VF's registers (VF{EICR, EICS, EIMS, EIMC, EIAC, EIAM})'s bits are
just MSI-X vector bitmask, so read/write correctly. Read VTEICR instead of
VTEICS in ixv_msix_mbx (note that "PF" has a errata that EICS is required to
read the cause). Don't write IXGBE_VTEICR in ixv_msix_mbx() because we use
auto-clear for mailbox interrupt.

 We have gotten link status change by timer instead of interrupt before
this fix...
2017-10-03 03:12:29 +00:00
msaitoh
a17157486b Make mailbox statistic counters evcnt(9).
Example:
 > ixv0 message TXs                                            23    0 misc
 > ixv0 message RXs                                          2911    0 misc
 > ixv0 ACKs                                                   23    0 misc
 > ixv0 REQs                                                   22    0 misc
 > ixv0 RSTs                                                    0    0 misc
2017-10-03 02:55:37 +00:00
christos
2dfeb58bd4 fix fpurge declaration 2017-10-03 01:43:03 +00:00
jmcneill
6068b631f5 Add operating points for OrangePi Plus2E and enable cpufreq scaling. 2017-10-02 22:51:15 +00:00
jmcneill
4445c6f20f add cpufreqdt and sy8106a 2017-10-02 22:50:29 +00:00
jmcneill
53f52772b5 Add generic DT cpu frequency and voltage scaling driver. 2017-10-02 22:49:38 +00:00
jmcneill
5d55713f67 Add driver for Silergy SY8106A regulator 2017-10-02 22:48:02 +00:00
jmcneill
55c5ba04d6 Set iflg-rwc for sun6i-a31 compatible devices. 2017-10-02 22:41:25 +00:00
christos
d9a3cc43b7 Simplify. 2017-10-02 22:32:04 +00:00
christos
cd84452b4c regen 2017-10-02 22:21:31 +00:00
christos
692f2d0a6f handle __fpurge being declared in <stdio_ext.h> 2017-10-02 22:19:45 +00:00
christos
e771911261 make this compile. 2017-10-02 22:14:32 +00:00
joerg
42f0ecedd8 Include time.h for time.
XXX Doesn't build with newer zlib, remove?
2017-10-02 22:04:51 +00:00
joerg
1cb2a8c221 Include time.h for time. Drop sys/types.h and expect basic working
system headers.
2017-10-02 22:03:10 +00:00
joerg
d8b81801d6 Really don't include ioctl code for tools build. 2017-10-02 22:02:05 +00:00