pool_setipl for src/sys/uvm

2016-06-12 Thread David Gwynne
this adds pool_setipl to the pools in src/sys/uvm. this assumes that the various things are only allocated and freed from a process context. if any of these are released from an interrupt we should probably set them to IPL_VM. ok? Index: uvm_amap.c ===

Re: armv7 / efi failure on imx6q SabreLite

2016-06-12 Thread Jonathan Gray
On Sun, Jun 12, 2016 at 07:48:24PM +0200, Matthieu Herrb wrote: > Hi, > > I'm trying to convert my SabreLite board to boot via efiboot, but > without success so far. > > I'm using the nitrogen6q u-boot from ports > > the boot loader is loaded and runs but it > fails to find the sata disk to load

splraise for sparc

2016-06-12 Thread David Gwynne
this is kind of like the change i just made to sparc64. sparc created instances of inline functions for each of the splfoo calls. this provides an splraise call and turns splfoo into a macro to splraise(IPL_FOO). the spl code is quite long so i turned it into functions instead of inlines. could

Re: IP_SENDSRCADDR [2/2] : add cmsg support

2016-06-12 Thread Jeremie Courreges-Anglas
Vincent Gross writes: > On Sun, 12 Jun 2016 15:29:32 +0200 (CEST) > Mark Kettenis wrote: > >> > Date: Sun, 12 Jun 2016 14:59:55 +0200 >> > From: Vincent Gross >> > >> > This diff adds support for IP_SENDSRCADDR cmsg on UDP sockets. As >> > for udp6_output(), we check that the source address+po

Re: IP_SENDSRCADDR [2/2] : add cmsg support

2016-06-12 Thread Reyk Floeter
> Am 12.06.2016 um 16:36 schrieb Vincent Gross : > > On Sun, 12 Jun 2016 15:29:32 +0200 (CEST) > Mark Kettenis wrote: > >>> Date: Sun, 12 Jun 2016 14:59:55 +0200 >>> From: Vincent Gross >>> >>> This diff adds support for IP_SENDSRCADDR cmsg on UDP sockets. As >>> for udp6_output(), we check t

Re: IP_SENDSRCADDR [2/2] : add cmsg support

2016-06-12 Thread Vincent Gross
On Sun, 12 Jun 2016 15:29:32 +0200 (CEST) Mark Kettenis wrote: > > Date: Sun, 12 Jun 2016 14:59:55 +0200 > > From: Vincent Gross > > > > This diff adds support for IP_SENDSRCADDR cmsg on UDP sockets. As > > for udp6_output(), we check that the source address+port is > > available only if inp_la

Re: lockmgr() api removal

2016-06-12 Thread Christian Weisgerber
On 2016-06-08, Christian Weisgerber wrote: >> That's still testing server side for the contents of the ports tree, >> isn't it? Not as heavily stressed as putting it on the server would >> be, but it still gives it a bit of a workout. > > I have now put the patch on the central server in the pack

Re: Set prio when bypassing pf(4)

2016-06-12 Thread Stuart Henderson
Yes, just need time at a safe computer to commit from. I suspect it isn't the ASR causing the problem (not least because newer Cisco default is to use high priority for these packets) but rather something else on the network in the path to it. On 12 June 2016 18:09:48 BST, Daniel Gillen wrote:

armv7 / efi failure on imx6q SabreLite

2016-06-12 Thread Matthieu Herrb
Hi, I'm trying to convert my SabreLite board to boot via efiboot, but without success so far. I'm using the nitrogen6q u-boot from ports the boot loader is loaded and runs but it fails to find the sata disk to load the kernel: => fatload sata 0:1 0x1080 efi/boot/bootarm.efi reading efi/boot

Re: Set prio when bypassing pf(4)

2016-06-12 Thread Daniel Gillen
On 07.06.2016 23:02, Stuart Henderson wrote: > > btw, since this is a perfect fit for the vlan priority for pppoe > control packets that I was looking at recently, here's a diff > to use it there. > > Index: if_sppp.h > === > RCS fil

Re: cbfb: coreboot framebuffer console

2016-06-12 Thread joshua stein
Here's a new version with feedback from Miod and Ted. It also fixes a bug on a Broadwell Chromebook (tested by Edward Wandasiewicz) which has proper inteldrm but no vga, so cbfb was getting chosen as the console early on but then not detaching when inteldrm wanted to take over. This detaches cbfb

Re: IP_SENDSRCADDR [1/2] : move cmsg handling code

2016-06-12 Thread Vincent Gross
On Sun, 12 Jun 2016 15:00:14 +0200 Vincent Gross wrote: Damn you autowrap ! get off my diff ! (thanks jca@ for spotting) > This diff moves the cmsg handling code on top of udp_output(). I split > the whole IP_SENDSRCADDR thung in two chunks so that it's easier to > audit. > > ok ? > diff --g

Re: IP_SENDSRCADDR [2/2] : add cmsg support

2016-06-12 Thread Mark Kettenis
> Date: Sun, 12 Jun 2016 14:59:55 +0200 > From: Vincent Gross > > This diff adds support for IP_SENDSRCADDR cmsg on UDP sockets. As for > udp6_output(), we check that the source address+port is available only > if inp_laddr != * > > Ok ? Why do we need this? cmsg stuff is fragile, so we want t

IP_SENDSRCADDR [1/2] : move cmsg handling code

2016-06-12 Thread Vincent Gross
This diff moves the cmsg handling code on top of udp_output(). I split the whole IP_SENDSRCADDR thung in two chunks so that it's easier to audit. ok ? diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 2db5998..1feea11 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/ud

IP_SENDSRCADDR [2/2] : add cmsg support

2016-06-12 Thread Vincent Gross
This diff adds support for IP_SENDSRCADDR cmsg on UDP sockets. As for udp6_output(), we check that the source address+port is available only if inp_laddr != * Ok ? diff --git a/share/man/man4/ip.4 b/share/man/man4/ip.4 index 111432b..154b0d1 100644 --- a/share/man/man4/ip.4 +++ b/share/man/man4/i