From owner-freebsd-mips@FreeBSD.ORG Mon Apr 1 20:33:01 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6E9B88C8; Mon, 1 Apr 2013 20:33:01 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by mx1.freebsd.org (Postfix) with ESMTP id D7957F22; Mon, 1 Apr 2013 20:33:00 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id l18so2410236wgh.13 for ; Mon, 01 Apr 2013 13:32:59 -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=J2e1wVEUpVqp1mD1FThHRdfEA8Xo4lfuP0YflqQxp2s=; b=n9UF9jAJ6tMBLe3yuX68EOs2jsJj2A4pyXy++tmZMHpTm5q681lhbdtEX0yZENI2MX ST+EZ7TJ0hOvmcqQo3k75mtIda/ELZURSShINPQalRDWbEa0ZBWt35PZ/Bt+1wLciClX OyesFkG3kkZANgMGUpbohznhJM+b62i/exdT3fb3VNkB11910MUKfY0TP/TXf1tDPQRY L50v6oG4KkFhnk7ZOK/nKEyZYGqfvV+DISoO+YPchhmVtfvZxKUj3jwgwOCfsMv1TqlF nhpEZzJxm8Gyh/evC29WQDVrLC7SmSyN3szcjwLu0+zS8GGvVGPBvMive0NGT57X757y L71w== MIME-Version: 1.0 X-Received: by 10.194.71.110 with SMTP id t14mr17430090wju.53.1364848379885; Mon, 01 Apr 2013 13:32:59 -0700 (PDT) Received: by 10.216.244.70 with HTTP; Mon, 1 Apr 2013 13:32:59 -0700 (PDT) In-Reply-To: <201304011700.r31H00pi001969@freefall.freebsd.org> References: <201304011700.r31H00pi001969@freefall.freebsd.org> Date: Mon, 1 Apr 2013 17:32:59 -0300 Message-ID: Subject: Re: kern/177032: [arge] arge1 fails to attach on UBNT Routerstation From: Luiz Otavio O Souza To: Petko Bordjukov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: bug-followup@FreeBSD.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Apr 2013 20:33:01 -0000 On 1 April 2013 14:00, Petko Bordjukov wrote: > The following reply was made to PR kern/177032; it has been noted by GNATS. > > From: Petko Bordjukov > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: kern/177032: [arge] arge1 fails to attach on UBNT > Routerstation > Date: Mon, 01 Apr 2013 19:50:09 +0300 > > Hello Luiz, > > Thank you for your response. > > Using a 0x0 PHY mask does indeed eliminate the error and the interface > is present and operational. However, what are the implications of not > using a directly mapped PHY? > > Also, to my knowledge the phymask should be 15 << 16 and the miimode > should be RMII, however I was not able to get the interface running with > these values. > > -- > Best regards, > Petko > > There are no implications for this change on ROUTERSTATION as the switch (ADM9669) cannot be managed from its MDIO interface and all you have is a static two port switch on arge1. Even with the correct phymask, you cannot attach and use two simultaneous PHY on a single ethernet interface so i think that the phymask=0 is correct for this board. And no, the phymask on the ROUTERSTATION.hints is correct (0x3 << 16 == PHY 16 and 17) as there are only two ports connected on the switch (all the others PHYs on the switch are disconnected). I'm not sure about the correct miimode for ROUTERSTATION, but i think you're right, it should be RMII. I don't have physical access to this board anymore to test it myself (although a friend of mine has one of these). Regards, Luiz