em0 hangs on 8-STABLE again

2012-01-29 Thread Lev Serebryakov
Hello, Freebsd-net. My home server lost connection on em0 this night again. It was persistent problem some times ago, but with version 7.2.3 it is first time, but with worse symptoms. It looks like undetected hardware hang-up: no packets could be sent or received, and no any output in dmesg

Re: Ethernet Switch Framework

2012-01-29 Thread Aleksandr Rybalko
On Sat, 28 Jan 2012 15:00:01 -0800 Juli Mallett jmall...@freebsd.org wrote: On Sat, Jan 28, 2012 at 14:12, Aleksandr Rybalko r...@ddteam.net wrote: As I see from your patch, mdio/miiproxy require special bits in MAC driver. When I design switch framework, I keeping in mind that MAC

Re: Ethernet Switch Framework

2012-01-29 Thread Stefan Bethke
Am 29.01.2012 um 00:00 schrieb Juli Mallett: On Sat, Jan 28, 2012 at 14:12, Aleksandr Rybalko r...@ddteam.net wrote: As I see from your patch, mdio/miiproxy require special bits in MAC driver. When I design switch framework, I keeping in mind that MAC drivers should be standard as possible

Re: Ethernet Switch Framework

2012-01-29 Thread Aleksandr Rybalko
On Sun, 29 Jan 2012 13:26:00 +0100 Stefan Bethke s...@lassitu.de wrote: Am 29.01.2012 um 00:00 schrieb Juli Mallett: On Sat, Jan 28, 2012 at 14:12, Aleksandr Rybalko r...@ddteam.net wrote: As I see from your patch, mdio/miiproxy require special bits in MAC driver. When I design switch

Re: Ethernet Switch Framework

2012-01-29 Thread Stefan Bethke
Am 29.01.2012 um 13:44 schrieb Aleksandr Rybalko: The MII connection between the ethernet controller and the switch chip (usually referred to as the CPU port) is hard-coded and has no media settings, so there's no question what if_media settings should be presented on the interface. Most

Re: em0 hangs on 8-STABLE again

2012-01-29 Thread Mike Tancsa
On 1/29/2012 4:38 AM, Lev Serebryakov wrote: Hello, Freebsd-net. My home server lost connection on em0 this night again. It was persistent problem some times ago, but with version 7.2.3 it is first time, but with worse symptoms. 7.3.0 from HEAD is quite stable for me. Hopefully it will

Re: Ethernet Switch Framework

2012-01-29 Thread Stefan Bethke
Am 29.01.2012 um 08:05 schrieb Warner Losh: I think that the main issue here is that we have an assumption that we have a tree structure. However, it is more of a DAG across different domains. The hierarchy works well when each device owns all the devices below it and only interacted

Re: Ethernet Switch Framework

2012-01-29 Thread Marius Strobl
On Sun, Jan 29, 2012 at 02:14:42PM +0100, Stefan Bethke wrote: Am 29.01.2012 um 08:05 schrieb Warner Losh: I think that the main issue here is that we have an assumption that we have a tree structure. However, it is more of a DAG across different domains. The hierarchy works well when

Re: Ethernet Switch Framework

2012-01-29 Thread Stefan Bethke
Am 29.01.2012 um 16:31 schrieb Marius Strobl: How about adding the MDIO provider via multi-pass probing? That idea of that model was to attach things like drivers for interrupt controllers before any other driver that requires that resource. This seems like a perfect match here and requires

Re: Ethernet Switch Framework

2012-01-29 Thread Marius Strobl
On Sun, Jan 29, 2012 at 05:00:38PM +0100, Stefan Bethke wrote: Am 29.01.2012 um 16:31 schrieb Marius Strobl: How about adding the MDIO provider via multi-pass probing? That idea of that model was to attach things like drivers for interrupt controllers before any other driver that requires

Re: Ethernet Switch Framework

2012-01-29 Thread Stefan Bethke
Am 29.01.2012 um 17:19 schrieb Marius Strobl: We really need to find a proper way of dealing with the constraints of the embedded- world rather than to sprinkle hacks all over the place. Why is the above is less of a hack than making the ordering in nexus configurable through a hint?

Re: Ethernet Switch Framework

2012-01-29 Thread Marius Strobl
On Sun, Jan 29, 2012 at 05:21:52PM +0100, Stefan Bethke wrote: Am 29.01.2012 um 17:19 schrieb Marius Strobl: We really need to find a proper way of dealing with the constraints of the embedded- world rather than to sprinkle hacks all over the place. Why is the above is less of a

Re: em0 hangs on 8-STABLE again

2012-01-29 Thread Jack Vogel
No, I told Mike I'd get it into 8.x, have just been busy, but will try and get it pushed up in the queue. Jack 2012/1/29 Lev Serebryakov l...@freebsd.org Hello, Mike. You wrote 29 января 2012 г., 16:54:59: My home server lost connection on em0 this night again. It was persistent

Re: em0 hangs on 8-STABLE again

2012-01-29 Thread Damien Fleuriot
On 1/29/12 7:21 PM, Jack Vogel wrote: No, I told Mike I'd get it into 8.x, have just been busy, but will try and get it pushed up in the queue. Jack 2012/1/29 Lev Serebryakov l...@freebsd.org Hello, Mike. You wrote 29 января 2012 г., 16:54:59: My home server lost connection on

Re: Ethernet Switch Framework

2012-01-29 Thread Adrian Chadd
I think for switches, that doesn't necessarily hold. ie, mii_attach() for single-PHY devices may work that way, but the weird and wonderful world of embedded switch SoC's doesn't. You're lucky in most instances since the bootloader does give you a mostly-working switch config. But I doubt that's

Re: em0 hangs on 8-STABLE again

2012-01-29 Thread Jack Vogel
Yes, the whole reason to get it into that stable is to make the 8.3 release. Jack On Sun, Jan 29, 2012 at 10:47 AM, Damien Fleuriot m...@my.gd wrote: On 1/29/12 7:21 PM, Jack Vogel wrote: No, I told Mike I'd get it into 8.x, have just been busy, but will try and get it pushed up in the

Re: Ethernet Switch Framework

2012-01-29 Thread Marius Strobl
On Sun, Jan 29, 2012 at 11:00:22AM -0800, Adrian Chadd wrote: I think for switches, that doesn't necessarily hold. Err, what exactly doesn't hold? The suggestion about using multi-pass probing was just for the case when there's a separate MDIO master other drivers depend on. The latter would

Re: kern/164569: [msk] [hang] msk network driver cause freeze in FreeBSD 9.0 i386

2012-01-29 Thread linimon
Old Synopsis: msk network driver cause freeze in FreeBSD 9.0 i386 New Synopsis: [msk] [hang] msk network driver cause freeze in FreeBSD 9.0 i386 Responsible-Changed-From-To: freebsd-i386-freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Mon Jan 30 04:10:16 UTC 2012