From owner-svn-src-head@FreeBSD.ORG Thu May 9 20:08:55 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 404FA7A7; Thu, 9 May 2013 20:08:55 +0000 (UTC) (envelope-from bordjukov@gmail.com) Received: from mail-qa0-x234.google.com (mail-qa0-x234.google.com [IPv6:2607:f8b0:400d:c00::234]) by mx1.freebsd.org (Postfix) with ESMTP id CE9F6F47; Thu, 9 May 2013 20:08:54 +0000 (UTC) Received: by mail-qa0-f52.google.com with SMTP id g10so1900312qah.11 for ; Thu, 09 May 2013 13:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Pdj+yHhmxZy3NoUnp7+mzOPaIEwce1vLYptopqeTIsk=; b=Stc3dyK/5JXzlo0kcGrQQ7bYoo3rngilyHLQvdG50sxxZTTatioBL+OkU4kuo6FWen NV+7p7I+dBG8nHyVXA852MgHZAk4fuQPYMEF+RmBC6JM6vVb13ZEBc+oOc91Ff+ElNoD MjgUEcOsY4cNmMm/aWbygLx17cDy2wFq2oM/cHRDbEg1Q8T1mHw756It5fkmg4oiM721 O7t639sx6wY3lw4b+hhOseKPafgK9YwGYXul8i2xBdqEet0kpag0KzfxpAylXQPGkNdT qNULTRnScvy7kMDXm15vau4JThpr7dmOxMSyzX3rAvYpEwupFjmvSelA+w0vRXQqGb95 o+wg== MIME-Version: 1.0 X-Received: by 10.49.88.105 with SMTP id bf9mr10986272qeb.52.1368130133882; Thu, 09 May 2013 13:08:53 -0700 (PDT) Received: by 10.49.53.42 with HTTP; Thu, 9 May 2013 13:08:53 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 May 2013 23:08:53 +0300 Message-ID: Subject: Fwd: svn commit: r250385 - head/sys/mips/conf From: Petko Bordjukov To: svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: adrian@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 May 2013 20:08:55 -0000 FYI ---------- Forwarded message ---------- From: Luiz Otavio O Souza Date: Thu, May 9, 2013 at 10:24 PM Subject: Re: svn commit: r250385 - head/sys/mips/conf To: Petko Bordjukov 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 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 wrote: > >> I guess I forgot to CC you :) > >> > >> ---------- Forwarded message ---------- > >> From: Petko Bordjukov > >> 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 > >> 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: > >> clock0: 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: on apb0 > >> gpio0: [GIANT-LOCKED] > >> gpio0: gpio pinmask=0x0 > >> gpioc0: on gpio0 > >> gpiobus0: on gpio0 > >> gpioled0: at pin(s) 2 on gpiobus0 > >> ehci0: 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: on pcib0 > >> ath0: 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: 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: at mem > >> 0x19000000-0x19000fff irq 2 on nexus0 > >> miiproxy0: 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: at mem > >> 0x1a000000-0x1a000fff irq 3 on nexus0 > >> miiproxy1: 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> > >> > > >