258564 Commits

Author SHA1 Message Date
msaitoh
b14fb4765d Add a maunal page for ixv(4). 2018-05-09 05:59:28 +00:00
msaitoh
5998f93ac1 Fix typo. s/TPL/TLP/ 2018-05-09 03:50:51 +00:00
thorpej
5fb4561798 If we don't get informed (via device properties) of child I2C devices,
don't assign an empty array to iba.iba_child_devices, as it will prevent
indirect configuration of the I2C bus from occurring.

Tested on Raspberry Pi (bcm2835), identical logical fix replicated
(and compile-tested) elsewhere.

PR port-arm/53171
2018-05-09 02:53:00 +00:00
thorpej
417749e5df The probe this driver uses is potentially destructive; at the very
least, filter on the I2C address the device is expected at before we
unleash its fury.
2018-05-09 02:46:22 +00:00
christos
8234f5ded0 handle field rename. 2018-05-09 01:04:01 +00:00
sevan
d135d5f327 Add the type of information returned about maintainer. 2018-05-09 00:24:50 +00:00
mrg
1f3c181244 in dir_search(), don't assume a directory existing is useful, instead
confirm that there is a non zero makefile in there.  (this assumes
the makefile is called "Makefile", which is assumed in other places
in crunchgen.c already, so this doesn't make it worse.)

this fixes build issues when an empty subdir exists because some files
were moved subdir at some stage (ktrace, rcorder), and a non-prune
update may look in the wrong dir.

bump version (lots of updates between now and the previous update.)
2018-05-08 23:05:17 +00:00
jmcneill
01b5a99c24 Add audio clocks 2018-05-08 22:07:02 +00:00
jmcneill
aac640031a Pass set_rate calls on fixed factor clocks through to the parent clock (adjusting accordingly) 2018-05-08 22:05:25 +00:00
christos
42d14e79e6 make as not having pmap statistics available 2018-05-08 19:35:17 +00:00
christos
4656c477fd get the maxrss from the vmspace field, and handle platforms that don't
have pmap statistics here.
2018-05-08 19:34:54 +00:00
christos
87287ec175 don't store the rssmax in the lwp rusage, it is a per proc property. Instead
utilize an unused field in the vmspace struct to store it. Also conditionalize
on platforms that have pmap statistics available.
2018-05-08 19:33:57 +00:00
maxv
097a6835fe Mitigation for the SS bug, CVE-2018-8897. We disabled dbregs a month ago
in -current and -8 so we are not particularly affected anymore.

The #DB handler runs on ist3, if we decide to process the exception we
copy the iret frame on the correct non-ist stack and continue as usual.
2018-05-08 17:20:44 +00:00
maxv
0039128179 Use M_MOVE_PKTHDR. 2018-05-08 16:47:58 +00:00
kamil
0f2b5450fb Stop using the register keyword in ksh(1)
ksh also does some strange things with it, like put it in argument lists.

No functional change intended.

PR bin/53237 ksh: remove register keyword by Nia Alarie
2018-05-08 16:37:59 +00:00
ryo
cc7da5d4e5 TGran64 indication was actually the opposite 2018-05-08 11:42:43 +00:00
msaitoh
dac6e4e570 Fix a bug that TX might stall because WM_TXQ_NO_SPACE is not cleared in
if_init() (though I've never seen this problem). Clear txq->txq_flags in
wm_init_tx_queue(). OK'd by knakahara.
2018-05-08 11:36:39 +00:00
pgoyette
e255882ebd Fix mis-placed right paren. kern/53271 2018-05-08 10:41:56 +00:00
msaitoh
15f4019c5d - Fix broken watchdog timer. This change detects TX device timeout correctly.
NOTE: It's supporsed not to be called {ixgbe,ixv}_rearm_queues() in the
  timer. Those are not required if any chip have no bug. In reality,
  ixgbe_rearm_queues() is required on 82599 and newer chip AND other than
  queue 0 to prevent device timeout. When it occured, packet was sent but the
  descriptor's DD bit wasn't set even though IXGBE_TXD_CMD_EOP and
  IXGBE_TXD_CMD_RS were set. After forcing interrupt by writing EICS register
  in ixgbe_rearm_queues(), DD is set. Why? Is this an undocumented errata? It
  might be possible not call rearm_queues on 82598 or queue 0, we call in any
  cases in case the problem occurs. On ixv(4), I have not seen this problem yet
  (though I tested only on X550_X(Xeon D 12xx)'s virtual function), but we
  do rearm in case TX device timeout happen.
- ixv(4): Call callout_stop() earlier in ixv_stop() like ixgbe_stop().
- KNF.
2018-05-08 09:45:54 +00:00
msaitoh
04b1aa7526 rxipsum and rxtusum are not interrupt counter, so use EVCNT_TYPE_MISC
instead of EVCNT_TYPE_INTR.
2018-05-08 07:59:56 +00:00
maxv
2b9c280811 Remove three useless debug messages, remove meaningless XXXs, and remove
ieee80211_note_frame (unused).
2018-05-08 07:02:07 +00:00
maxv
7cc5177d0c Don't remove M_PKTHDR manually, use m_remove_pkthdr instead.
ok ryo@
2018-05-08 06:11:45 +00:00
maxv
f5ad45f878 Simplify: use M_MOVE_PKTHDR directly.
ok knakahara@
2018-05-08 06:08:19 +00:00
snj
9e98533ad3 make fortune fatter 2018-05-08 05:24:22 +00:00
msaitoh
4fd9e9d5d1 - Fix a bug that bnx(4) panics on shutdown. Stop callout before restroy.
Reported by Andreas Gustafsson in PR#53265.
- Make sure not to re-arm the callout when we are about to detach. Same as
  if_bge.c rev. 1.292.
- Use pci_intr_establish_xname().
2018-05-08 04:11:09 +00:00
mlelstv
b23590a505 Bail if we have a zero-length memory resource. 2018-05-08 03:27:17 +00:00
christos
ccca93f2fc add tests for maxrss, msgsnd 2018-05-08 01:02:38 +00:00
uwe
05df44f648 Fix unsigned wraparound on window size calculations.
This is another instance where tp->rcv_adv - tp->rcv_nxt can wrap
around after successful zero-window probe from the peer.  The first
one was fixed by chs@ in revision 1.112 on 2004-05-08.

While here, CSE and de-obfuscate the code a bit.
2018-05-07 23:42:13 +00:00
christos
e0983e96df Load the struct rusage text, data, and stack fields from the vmspace struct.
Before they were all 0. We update them when we call getrusage() or on
process exit() so that the children rusage is accounted for.
2018-05-07 21:03:45 +00:00
christos
61768d92a9 update maxrss (used to always be 0). Patterned after the OpenBSD changes. 2018-05-07 21:00:14 +00:00
maxv
86243c5040 Fix possible buffer overflow. We need to make sure the inner IPv4 packet
doesn't have options, because we validate only an option-less header.
2018-05-07 19:34:03 +00:00
jmcneill
76e21d1974 Don't sleep with IPL_VM lock held. 2018-05-07 15:03:19 +00:00
jmcneill
6c32e8625c Build fix 2018-05-07 12:58:58 +00:00
maxv
f7de5e97df Clean up, improve a bit, and document m_remove_pkthdr. 2018-05-07 10:53:45 +00:00
maxv
0c71ec6e1e Remove misleading comments. 2018-05-07 10:21:08 +00:00
maxv
45e9b67bb8 Copy some KASSERTs from m_move_pkthdr into m_copy_pkthdr, and reorder the
latter to reduce the diff with the former.
2018-05-07 09:57:37 +00:00
maxv
aba691a3a7 Use m_remove_pkthdr.
ok knakahara@ (for L2TP)
2018-05-07 09:51:02 +00:00
maxv
d9e33aef12 Fix double-free, m_tag_delete_chain is already called by m_free. 2018-05-07 09:41:10 +00:00
maxv
436305f8d3 Remove a dummy reference to XF_IP4, explain briefly why we don't use
ipe4_xformsw, and remove unused includes.
2018-05-07 09:33:51 +00:00
maxv
20668b06aa Remove now unused 'isr', 'skip' and 'protoff' arguments from ipip_output. 2018-05-07 09:25:04 +00:00
maxv
defd3aa31c Remove unused 'mp' argument from all the xf_output functions. Also clean
up xform.h a bit.
2018-05-07 09:16:46 +00:00
maxv
a3d9b92c8d Clarify IPIP: ipe4_xformsw is not allowed to call ipip_output, so replace
the pointer by ipe4_output, which just panics. Group the ipe4_* functions
together. Localify other functions.

ok ozaki-r@
2018-05-07 09:08:06 +00:00
kre
ed050bc6ea Fix usage for rump. Fixes test breakage caused by previous commit. 2018-05-06 20:55:42 +00:00
christos
2ed636d665 grow AF_UNIX receive buffer size 2018-05-06 19:16:36 +00:00
christos
5e984cf5ac add missed patch 2018-05-06 15:14:12 +00:00
christos
f9fbf0f005 fix misapplied patch 2018-05-06 14:46:58 +00:00
sevan
73b9df469c drop redundant repeat-until loop for now. read_request & process_function
functions need further investigation as to why this is not required. In the C
daemon, at the end of main.c this is the exact behaviour that's used.

heads up <wiz> regarding infinite loop.
2018-05-06 14:41:01 +00:00
jmcneill
5a236e5088 POKS IRQ register / bit differ between AXP803 and AXP805/806. Handle these
differences.
2018-05-06 14:25:48 +00:00
kamil
2f1d1558aa Remove an element from struct emul: e_tracesig
e_tracesig used to be implemented for Darwin compat. Nowadays the Darwin
compatiblity layer is gone and there are no other users.

This functionality isn't used where it shall be used in the existing
codebase.

If we want to emulate debugging interfaces in compat layers we would need
to implement that from scratch anyway. We would need to be bug compatible
with other OSes too.

Proposed on tech-kern@.

Welcome to NetBSD 8.99.16!

Sponsored by <The NetBSD Foundation>
2018-05-06 13:40:50 +00:00
jmcneill
3949b50631 Use enable gpio to turn the display on/off 2018-05-06 10:45:32 +00:00