Re: arm: new FDT-enabled mainbus

2016-04-08 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 09:38:25PM +0200, Mark Kettenis wrote: > > Date: Fri, 8 Apr 2016 20:26:14 +0200 > > From: Patrick Wildt > > > > +void > > +mainbus_iterate(struct device *self, struct device *match, int node) > > +{ > > + for (; > > + node != 0; > > + node = OF_peer(node)) >

Re: arm: new FDT-enabled mainbus

2016-04-08 Thread Mark Kettenis
> Date: Fri, 8 Apr 2016 20:26:14 +0200 > From: Patrick Wildt > > +void > +mainbus_iterate(struct device *self, struct device *match, int node) > +{ > + for (; > + node != 0; > + node = OF_peer(node)) > + { > + /* skip nodes that are already handled by some driv

Re: arm/fdt: ... to prepare for fdt bus

2016-04-08 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 06:30:31PM +0200, Martin Pieuchot wrote: > On 08/04/16(Fri) 17:23, Patrick Wildt wrote: > > On Fri, Apr 08, 2016 at 03:30:24PM +0200, Mark Kettenis wrote: > > > > On Fri, Apr 08, 2016 at 03:29:05PM +0300, Artturi Alm wrote: > > > > > On Fri, Apr 08, 2016 at 01:44:11PM +0200,

Re: arm: new FDT-enabled mainbus

2016-04-08 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 02:00:54PM +0200, Patrick Wildt wrote: > Hi, > > this diff replaces the ARM mainbus with a new implementation. This > implementation works like the old version if there's no device tree. > > But if there is a device tree, this tree will be used to enumerate > and attach a

Remove long-dead and confusing code on rip6_ctlinput()

2016-04-08 Thread Vincent Gross
When using raw ip6 socket, one can connect(2) then send(2), or just sendto(2). The code below would try to find the non-connected raw ip6 socket corresponding to an incoming icmp6 message, to deliver the failure. This code has been disabled ever since it has been put in-tree, justifiably so because

Re: arm/fdt: ... to prepare for fdt bus

2016-04-08 Thread Martin Pieuchot
On 08/04/16(Fri) 17:23, Patrick Wildt wrote: > On Fri, Apr 08, 2016 at 03:30:24PM +0200, Mark Kettenis wrote: > > > On Fri, Apr 08, 2016 at 03:29:05PM +0300, Artturi Alm wrote: > > > > On Fri, Apr 08, 2016 at 01:44:11PM +0200, Patrick Wildt wrote: > > > > > > There are a few drivers that need spec

Re: fdt: implement helper to check and find compatible nodes

2016-04-08 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 06:09:38PM +0200, Martin Pieuchot wrote: > On 08/04/16(Fri) 17:14, Patrick Wildt wrote: > > On Fri, Apr 08, 2016 at 04:34:25PM +0200, Martin Pieuchot wrote: > > > On 08/04/16(Fri) 14:46, Patrick Wildt wrote: > > > > Hi, > > > > > > > > so that we can easily check if a node

Re: fdt: implement helper to check and find compatible nodes

2016-04-08 Thread Martin Pieuchot
On 08/04/16(Fri) 17:14, Patrick Wildt wrote: > On Fri, Apr 08, 2016 at 04:34:25PM +0200, Martin Pieuchot wrote: > > On 08/04/16(Fri) 14:46, Patrick Wildt wrote: > > > Hi, > > > > > > so that we can easily check if a node is compatible or to find nodes > > > that are compatible, I would like to add

Re: fdt: implement helper to check and find compatible nodes

2016-04-08 Thread Jonathan Gray
On Fri, Apr 08, 2016 at 05:14:03PM +0200, Patrick Wildt wrote: > On Fri, Apr 08, 2016 at 04:34:25PM +0200, Martin Pieuchot wrote: > > On 08/04/16(Fri) 14:46, Patrick Wildt wrote: > > > Hi, > > > > > > so that we can easily check if a node is compatible or to find nodes > > > that are compatible, I

Re: fdt: implement helper to check and find compatible nodes

2016-04-08 Thread Mark Kettenis
> Date: Fri, 8 Apr 2016 17:14:03 +0200 > From: Patrick Wildt > > On Fri, Apr 08, 2016 at 04:34:25PM +0200, Martin Pieuchot wrote: > > On 08/04/16(Fri) 14:46, Patrick Wildt wrote: > > > Hi, > > > > > > so that we can easily check if a node is compatible or to find nodes > > > that are compatible,

Re: arm/fdt: ... to prepare for fdt bus

2016-04-08 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 03:30:24PM +0200, Mark Kettenis wrote: > > Date: Fri, 8 Apr 2016 14:53:35 +0200 > > From: Patrick Wildt > > > > On Fri, Apr 08, 2016 at 03:29:05PM +0300, Artturi Alm wrote: > > > On Fri, Apr 08, 2016 at 01:44:11PM +0200, Patrick Wildt wrote: > > > > Hi, > > > > > > > > wi

Re: fdt: implement helper to check and find compatible nodes

2016-04-08 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 04:34:25PM +0200, Martin Pieuchot wrote: > On 08/04/16(Fri) 14:46, Patrick Wildt wrote: > > Hi, > > > > so that we can easily check if a node is compatible or to find nodes > > that are compatible, I would like to add helpers to the fdt routines. > > > > This way the drive

Re: fdt: implement helper to check and find compatible nodes

2016-04-08 Thread Martin Pieuchot
On 08/04/16(Fri) 14:46, Patrick Wildt wrote: > Hi, > > so that we can easily check if a node is compatible or to find nodes > that are compatible, I would like to add helpers to the fdt routines. > > This way the drivers can check if they "match" to a node by simply > calling: > > if (fdt_

Re: arm/fdt: ... to prepare for fdt bus

2016-04-08 Thread Mark Kettenis
> Date: Fri, 8 Apr 2016 14:53:35 +0200 > From: Patrick Wildt > > On Fri, Apr 08, 2016 at 03:29:05PM +0300, Artturi Alm wrote: > > On Fri, Apr 08, 2016 at 01:44:11PM +0200, Patrick Wildt wrote: > > > Hi, > > > > > > with the feedback received on the fdt bus, the fdt stuff will now be > > > replac

Re: arm/fdt: ... to prepare for fdt bus

2016-04-08 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 03:29:05PM +0300, Artturi Alm wrote: > On Fri, Apr 08, 2016 at 01:44:11PM +0200, Patrick Wildt wrote: > > Hi, > > > > with the feedback received on the fdt bus, the fdt stuff will now be > > replacing the mainbus. [..snip..] > > > > Patrick > > > > [..snip..] > > Hi, >

fdt: implement helper to check and find compatible nodes

2016-04-08 Thread Patrick Wildt
Hi, so that we can easily check if a node is compatible or to find nodes that are compatible, I would like to add helpers to the fdt routines. This way the drivers can check if they "match" to a node by simply calling: if (fdt_node_compatible(ma->ma_node, "samsung,exynos4210-ehci"))

Re: arm/fdt: ... to prepare for fdt bus

2016-04-08 Thread Artturi Alm
On Fri, Apr 08, 2016 at 01:44:11PM +0200, Patrick Wildt wrote: > Hi, > > with the feedback received on the fdt bus, the fdt stuff will now be > replacing the mainbus. [..snip..] > > Patrick > > [..snip..] Hi, have you planned ahead which route you are going to take with regards to how drivers

arm: new FDT-enabled mainbus

2016-04-08 Thread Patrick Wildt
Hi, this diff replaces the ARM mainbus with a new implementation. This implementation works like the old version if there's no device tree. But if there is a device tree, this tree will be used to enumerate and attach all device drivers. Currently drivers kind of depend on each other. This mea

Spurious serial console interrupts

2016-04-08 Thread Visa Hankala
Every now and then I see "spurious interrupt 34" messages on octeon serial console. The root cause seems to be in comstart() which enables the TX holding register empty interrupt before writing data to the TX register. If the register is empty initially, the early enabling can trigger a premature i

Re: arm: fix cortex bus match function

2016-04-08 Thread Mark Kettenis
> Date: Fri, 8 Apr 2016 13:44:11 +0200 > From: Patrick Wildt > > Hi, > > with the feedback received on the fdt bus, the fdt stuff will now be > replacing the mainbus. While doing that I noticed that the cortex > bus matches every time on config_found, which is because it doesn't > check the att

arm: fix cortex bus match function

2016-04-08 Thread Patrick Wildt
Hi, with the feedback received on the fdt bus, the fdt stuff will now be replacing the mainbus. While doing that I noticed that the cortex bus matches every time on config_found, which is because it doesn't check the attach args. ok? Patrick diff --git sys/arch/arm/cortex/cortex.c sys/arch/arm

Re: fdt: rename file to prepare for fdt bus

2016-04-08 Thread Mark Kettenis
> Date: Thu, 7 Apr 2016 18:31:22 +0200 > From: Patrick Wildt > > On Thu, Apr 07, 2016 at 06:00:25PM +0200, Mark Kettenis wrote: > > > > just be the enumeration mechanism for "mainbus". And I think armv7 > > should be the same. > > That sounds more like implementing the fdtbus functionality, but

Re: fdt: rename file to prepare for fdt bus

2016-04-08 Thread Martin Pieuchot
On 07/04/16(Thu) 18:31, Patrick Wildt wrote: > On Thu, Apr 07, 2016 at 06:00:25PM +0200, Mark Kettenis wrote: > > [...] > > I have no objections to rename fdt.c fdt_subr.c. However, I do object > > against having an "fdt" bus, at least for socppc. The fdt code should > > I don't propose an fdt b

Re: rework vlan(4) configuration

2016-04-08 Thread David Gwynne
On Thu, Apr 07, 2016 at 03:35:34PM +0200, Martin Pieuchot wrote: > On 05/04/16(Tue) 09:20, David Gwynne wrote: > > vlan config is now done via the vnet and parent ioctls. the idea > > is config can be set up while the vlan interface is down, and then > > "committed' when it is brought up and runnin

Altera Cyclone V

2016-04-08 Thread Jyri Hovila [Turvamies.fi]
Hi! I'm trying to figure out whether or not OpenBSD supports Altera's Cyclone V FPGA: https://www.altera.com/products/fpga/cyclone-series.html Any comments? -j.

Re: bpf and dropping packets

2016-04-08 Thread David Gwynne
On Mon, Apr 04, 2016 at 06:41:00PM +0200, Martin Pieuchot wrote: > On 04/04/16(Mon) 22:56, David Gwynne wrote: > > On Mon, Apr 04, 2016 at 08:07:47PM +1000, David Gwynne wrote: > > > > On 4 Apr 2016, at 6:41 PM, Martin Pieuchot wrote: > > > > On 04/04/16(Mon) 13:09, David Gwynne wrote: > > > >> #i