Date: Thu, 9 May 2013 23:08:53 +0300 From: Petko Bordjukov <bordjukov@gmail.com> To: svn-src-head@freebsd.org Cc: adrian@freebsd.org Subject: Fwd: svn commit: r250385 - head/sys/mips/conf Message-ID: <CAAgmp6sZZKLUAdj0KDATD8Svo%2B6GkXJU-ZKtxnP7A=q45cAG4w@mail.gmail.com> In-Reply-To: <C8BD512E-8E58-4748-B10E-D10246EAE834@gmail.com> References: <CAAgmp6u9RNwAhiDWwc6S%2B_2onH9sdcuR7ehYOtimQGw78so=sQ@mail.gmail.com> <CAAgmp6vQ-8DAxgEQhg1TcJaQ%2BJ7ESA5x3ZZC0NwUn6tcSS05zg@mail.gmail.com> <CAJ-VmonCQiR9yOLEG7HF6n1Li85tshT0WgFFaoE8xGnfW2Luqw@mail.gmail.com> <E9F4AEC4-1F86-4B65-A931-DE4A3B2FD035@gmail.com> <CAAgmp6s2L0sDiOxH9VwRen5-BpagkAHfoiCkn=RncyEY_Tw5sA@mail.gmail.com> <C8BD512E-8E58-4748-B10E-D10246EAE834@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
FYI ---------- Forwarded message ---------- From: Luiz Otavio O Souza <loos.br@gmail.com> Date: Thu, May 9, 2013 at 10:24 PM Subject: Re: svn commit: r250385 - head/sys/mips/conf To: Petko Bordjukov <bordjukov@gmail.com> Petko, Thanks! Well, there isn't too much to do or test with this driver, but you can see and set the media options for each port with etherswitchcfg(8). Soon i'll try to write the driver for the switch on routerstation, i'm now working on the RSPRO switch driver. Regards, Luiz On May 9, 2013, at 3:47 PM, Petko Bordjukov wrote: > Hello Luiz, > > Thank you, this patch fixed it. I will play around with it and report if something goes > wrong (testing is the least I cloud do). It looks OK though. > > > On Thu, May 9, 2013 at 7:49 PM, Luiz Otavio O Souza <loos.br@gmail.com> wrote: > Hello Petko and Adrian, > > Sorry for the delay... > > I guess i forgot to add the arge mdio hints, this is why it fail on device_get_parent() while attaching the miiproxy. > > Please verify if the attached patch fix your issue. > > And thanks for testing it. > > Luiz > > > > > > > On May 9, 2013, at 1:06 PM, Adrian Chadd wrote: > > > Can you do a 'show regs' ? > > > > > > > > > > Adrian > > > > > > On 9 May 2013 01:08, Petko Bordjukov <bordjukov@gmail.com> wrote: > >> I guess I forgot to CC you :) > >> > >> ---------- Forwarded message ---------- > >> From: Petko Bordjukov <bordjukov@gmail.com> > >> Date: Thu, May 9, 2013 at 4:09 AM > >> Subject: svn commit: r250385 - head/sys/mips/conf > >> To: svn-src-head@freebsd.org > >> > >> > >> Hello, > >> > >> This commit leads to a TLB miss at device_get_parent on boot on the RS. > >> > >> RedBoot> load -p 6969 kernel/kernel > >> Using default protocol (TFTP) > >> Entry point: 0x80050100, address range: 0x80050000-0x8056ae38 > >> RedBoot> exec > >> Now booting linux kernel: > >> Base address 0x80050000 Entry 0x80050100 > >> Cmdline : console=ttyS0,115200 init=/init > >> CPU platform: Atheros AR7161 rev 2 > >> CPU Frequency=680 MHz > >> CPU DDR Frequency=170 MHz > >> CPU AHB Frequency=85 MHz > >> platform frequency: 680000000 > >> CPU reference clock: 40 MHz > >> arguments: > >> a0 = 00000002 > >> a1 = 80050028 > >> a2 = 80050000 > >> a3 = 0000001b > >> Cmd line: console=ttyS0,115200 init=/init > >> Environment: > >> memsize = 0x04000000 > >> modetty0 = 0,n,8,1,hw > >> ethaddr = ommitted > >> board = Ubiquiti AR71xx-based board > >> Cache info: > >> picache_stride = 4096 > >> picache_loopcount = 16 > >> pdcache_stride = 4096 > >> pdcache_loopcount = 8 > >> cpu0: MIPS Technologies processor v116.147 > >> MMU: Standard TLB, 16 entries > >> L1 i-cache: 4 ways of 512 sets, 32 bytes per line > >> L1 d-cache: 4 ways of 256 sets, 32 bytes per line > >> Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG> > >> Config3=0x20 > >> KDB: debugger backends: ddb > >> KDB: current backend: ddb > >> Copyright (c) 1992-2013 The FreeBSD Project. > >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > >> The Regents of the University of California. All rights reserved. > >> FreeBSD is a registered trademark of The FreeBSD Foundation. > >> FreeBSD 10.0-CURRENT #1 r250385: Thu May 9 04:04:12 EEST 2013 > >> root@virtbsd10:/usr/obj/mips.mips/usr/src/sys/ROUTERSTATION mips > >> gcc version 4.2.1 20070831 patched [FreeBSD] > >> WARNING: WITNESS option enabled, expect reduced performance. > >> MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: > >> MEMGUARD map base: 0xc0400000 > >> MEMGUARD map limit: 0xc6a67000 > >> MEMGUARD map size: 104860 KBytes > >> real memory = 67108864 (65536K bytes) > >> avail memory = 56496128 (53MB) > >> random device not loaded; using insecure entropy > >> nexus0: <MIPS32 root nexus> > >> clock0: <Generic MIPS32 ticker> on nexus0 > >> Timecounter "MIPS32" frequency 340000000 Hz quality 800 > >> Event timer "MIPS32" frequency 340000000 Hz quality 800 > >> apb0 at irq 4 on nexus0 > >> uart0: <16550 or compatible> on apb0 > >> uart0: console (115200,n,8,1) > >> gpio0: <Atheros AR71XX GPIO driver> on apb0 > >> gpio0: [GIANT-LOCKED] > >> gpio0: gpio pinmask=0x0 > >> gpioc0: <GPIO controller> on gpio0 > >> gpiobus0: <GPIO bus> on gpio0 > >> gpioled0: <GPIO led> at pin(s) 2 on gpiobus0 > >> ehci0: <AR71XX Integrated USB 2.0 controller> at mem 0x1b000000-0x1bffffff > >> irq 1 on nexus0 > >> usbus0: set host controller mode > >> usbus0: EHCI version 1.0 > >> usbus0: set host controller mode > >> usbus0 on ehci0 > >> pcib0 at irq 0 on nexus0 > >> pcib0: ar71xx_pci_attach: missing hint 'baseslot', default to > >> AR71XX_PCI_BASE_SLOT > >> pci0: <PCI bus> on pcib0 > >> ath0: <Atheros 2413> irq 1 at device 18.0 on pci0 > >> ath0: AR2413 mac 7.8 RF2413 phy 4.5 > >> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0056 > >> ath1: <Atheros 9220> irq 2 at device 19.0 on pci0 > >> ath1: [HT] enabling HT modes > >> ath1: [HT] 1 stream STBC receive enabled > >> ath1: [HT] 1 stream STBC transmit enabled > >> ath1: [HT] 2 RX streams; 2 TX streams > >> ath1: AR9220 mac 128.2 RF5133 phy 13.0 > >> ath1: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > >> arge0: <Atheros AR71xx built-in ethernet interface> at mem > >> 0x19000000-0x19000fff irq 2 on nexus0 > >> miiproxy0: <MII/MDIO proxy, MII side> on arge0 > >> arge0: can't attach proxy > >> arge0: finishing attachment, phymask 100000, proxy null > >> arge0: unable to attach PHY 20: 6 > >> device_attach: arge0 attach returned 6 > >> arge1: <Atheros AR71xx built-in ethernet interface> at mem > >> 0x1a000000-0x1a000fff irq 3 on nexus0 > >> miiproxy1: <MII/MDIO proxy, MII side> on arge1 > >> Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode) > >> [ thread pid 0 tid 100000 ] > >> Stopped at device_get_parent: jr ra > >> db> where > >> Tracing pid 0 tid 100000 td 0x80570170 > >> db_trace_thread+30 (?,?,?,?) ra 807057b800000018 sp 0 sz 0 > >> 8007b19c+114 (0,?,ffffffff,?) ra 807057d000000020 sp 100000000 sz 1 > >> 8007a4e4+388 (?,?,?,?) ra 807057f0000000a8 sp 0 sz 0 > >> db_command_loop+70 (?,?,?,?) ra 8070589800000018 sp 0 sz 0 > >> 8007cfe0+f4 (?,?,?,?) ra 807058b0000001a8 sp 0 sz 0 > >> kdb_trap+110 (?,?,?,?) ra 80705a5800000030 sp 0 sz 0 > >> trap+f18 (?,?,?,?) ra 80705a88000000b8 sp 0 sz 0 > >> MipsKernGenException+134 (0,8100d880,8049ece8,fa) ra 80705b40000000c8 sp > >> 100000001 sz 1 > >> device_get_parent+0 (?,?,?,?) ra 80705c0800000000 sp 0 sz 0 > >> pid 0 > >> db> > >> > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAgmp6sZZKLUAdj0KDATD8Svo%2B6GkXJU-ZKtxnP7A=q45cAG4w>