atom feed43 messages in org.freebsd.freebsd-archRe: Extending sys/dev/mii
FromSent OnAttachments
Stefan BethkeJan 4, 2012 8:03 am 
Adrian ChaddJan 4, 2012 9:07 am 
Marius StroblJan 4, 2012 1:59 pm 
Stefan BethkeJan 5, 2012 12:52 pm 
Stefan BethkeJan 6, 2012 4:56 am 
Stefan BethkeJan 6, 2012 5:02 am.diff
Marius StroblJan 6, 2012 10:27 am 
Stefan BethkeJan 6, 2012 12:35 pm 
Marius StroblJan 6, 2012 1:47 pm 
Stefan BethkeJan 6, 2012 1:52 pm 
Marius StroblJan 8, 2012 5:00 am 
Stefan BethkeJan 8, 2012 2:27 pm 
Adrian ChaddJan 10, 2012 5:18 pm 
Marius StroblJan 11, 2012 11:37 am 
Adrian ChaddJan 14, 2012 8:15 pm 
Warner LoshJan 14, 2012 9:13 pm 
Stefan BethkeJan 20, 2012 3:08 pm.patch
Warner LoshJan 20, 2012 5:43 pm 
Oleksandr TymoshenkoJan 20, 2012 8:12 pm 
Stefan BethkeJan 21, 2012 4:02 am 
Aleksandr RybalkoJan 21, 2012 5:12 am 
Oleksandr TymoshenkoJan 23, 2012 11:45 pm 
Aleksandr RybalkoJan 24, 2012 5:53 am 
Marius StroblJan 25, 2012 2:17 pm 
Warner LoshJan 25, 2012 2:28 pm 
Marius StroblJan 25, 2012 3:21 pm 
Hans Petter SelaskyJan 26, 2012 8:24 am 
Stefan BethkeJan 26, 2012 8:24 am 
Stefan BethkeJan 26, 2012 8:30 am 
Marius StroblJan 27, 2012 6:15 am 
Adrian ChaddFeb 10, 2012 9:22 pm 
Marius StroblFeb 11, 2012 3:17 am 
Aleksandr RybalkoFeb 11, 2012 4:45 am 
Adrian ChaddFeb 11, 2012 4:59 pm 
Warner LoshFeb 11, 2012 5:15 pm 
Adrian ChaddFeb 11, 2012 8:48 pm 
Warner LoshFeb 11, 2012 8:58 pm 
Juli MallettFeb 11, 2012 9:05 pm 
Adrian ChaddFeb 11, 2012 9:19 pm 
Aleksandr RybalkoFeb 12, 2012 9:51 am 
Aleksandr RybalkoFeb 12, 2012 10:04 am 
Juli MallettFeb 12, 2012 10:30 am 
Aleksandr RybalkoFeb 12, 2012 10:38 am 
Subject:Re: Extending sys/dev/mii
From:Aleksandr Rybalko (ra@ddteam.net)
Date:Feb 12, 2012 9:51:10 am
List:org.freebsd.freebsd-arch

On Sat, 11 Feb 2012 17:00:10 -0800 Adrian Chadd <adr@freebsd.org> wrote:

Hi Ray,

Would you please attach the latest diffs:

* to if_arge, to make it "work"; * to the mii API, if needed; * anything new - ie, the switch API, switch PHYs, etc.

I'd like to try and finally bring some sanity to the hardcoded PHY mask handling in if_arge (and make it actually work for AR71xx and AR724x - where AR71xx has one shared MDIO bus between both MACs, but AR724x has two independent MDIO busses..)

Hi Adrian,

yes, of course, here it is: if_arge patch + white space cleanup: http://my.ddteam.net/files/2012-02-12_sys_mips_atheros.patch Switch Framework itself: http://my.ddteam.net/files/2012-02-12_switch_framework.patch sys/conf/files, as separate item, because my have a bit more difference: http://my.ddteam.net/files/2012-02-12_switch_framework_sys_conf_files.patch

Just reminder, to enable it: 1. put "device switch" and driver into kernel config file, "device switch_ar8x16" for Atheros switch. 2. add hints (AR7240 for example): #------------------------------------------------ # No probe at all hint.miibus.0.phymask="0x00000000" hint.miibus.1.phymask="0x00000000"

#hint.floatphy.0.at="miibus0" hint.floatphy.0.phyno=0 hint.floatphy.0.master="switch" # Find switch0 hint.floatphy.0.master_unit=0 hint.floatphy.0.master_phys=0x00000010 # Sense PHY4 hint.floatphy.0.flags=0x00000000 hint.floatphy.0.speed=100

# Switch attached to MDIO bus on arge0 hint.switch.0.at="miibus0" hint.switch.0.phyno=1 hint.ar8x16_switch.0.mii_mode=0x012603e2

hint.floatphy.1.at="miibus1" hint.floatphy.1.phyno=0 hint.floatphy.1.master="switch" # Find switch0 hint.floatphy.1.master_unit=0 hint.floatphy.1.master_phys=0x0000000f # Link Sensing PHY0-PHY3 hint.floatphy.1.flags=0x00000004 # "Link on any PHYs" | # "Static link speed" hint.floatphy.1.speed=1000 #------------------------------------------------