From owner-freebsd-mips@FreeBSD.ORG Sun Mar 20 15:31:53 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 567CA1065670; Sun, 20 Mar 2011 15:31:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id E7DAD8FC24; Sun, 20 Mar 2011 15:31:52 +0000 (UTC) Received: by vxc34 with SMTP id 34so5347679vxc.13 for ; Sun, 20 Mar 2011 08:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=hokF0exBawLHJyjFiTzJd7IiIzpEuYB6Gri6GmYLXFk=; b=wmCWaTXGczZsAnhtHs05Zqt/4byhjxmnnzYUE2wdVI95mBFUheB6zlo6DL6jObrafF oOViNBraTMWiujANRjFVsb3hxxX6QhbifdDN19rYB03kYdsZT/eMKpbEW0cNUql11Ddh dUff1/gvxvkwLmuIhXvCM7/jkMFUNNADXnYmM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=VzB5cL4zvFubuHCVkUcKl6NcWwbVuJGU/QRugWwC17Oy4kBRMai7XNcscMJmV8hgVI VusSN8NtcBYVVOpd9GbmWVucHzRPlcIHYLigH75OXKwnTiF4NepXivma0bazanCkA6H3 8SYgweuYKW4YYw7ylLOktTBQj2IdRU/tKNFYI= MIME-Version: 1.0 Received: by 10.52.18.74 with SMTP id u10mr3311754vdd.216.1300635111838; Sun, 20 Mar 2011 08:31:51 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.165.34 with HTTP; Sun, 20 Mar 2011 08:31:51 -0700 (PDT) In-Reply-To: <20110314162936.d3f8fd5b.ray@dlink.ua> References: <20110314162936.d3f8fd5b.ray@dlink.ua> Date: Sun, 20 Mar 2011 23:31:51 +0800 X-Google-Sender-Auth: zk966uALnMllJAV0WL8mx2XgLrw Message-ID: From: Adrian Chadd To: Aleksandr Rybalko Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org, freebsd-mips@freebsd.org Subject: Re: [CFR]RT305xF support, w/o attachment X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 15:31:53 -0000 Hi all, I plan on tidying up the initial support patch (removing some of the stuff that snuck in from the ethernet, switch and wifi parts) and committing this sometime in the next week or so. I don't (yet) have hardware to test it myself. I'll just do a compile run and try to make sure it hasn't broken anything. I'll then take responsibility in case it breaks anything else in the build. Aleksandr will take responsibility for fixing bugs. :) Thankyou for your hard work Aleksandr! Adrian On 14 March 2011 22:29, Aleksandr Rybalko wrote: > > Hello, all. > > I am pleased to present support for Ralink RT3050F/RT3052F MIPS SoC's for > FreeBSD. > > This patches add support of > 1. GPIO/Interrupt/System/UART controllers + internal bus > http://my.ddteam.net/files/2011-03-14_RT305xF_support.patch > 2. RT305xF embedded ethernet controller > http://my.ddteam.net/files/2011-03-14_RT305xF_ether_support.patch > 3. RT2860 802.11n controller authors Damien Bergamini and Alexander > Egorenkov > http://my.ddteam.net/files/2011-03-14_rt2860.patch > only modification to work with RT2872 (embedded to RT305[02]F) wrote > by me. > > Also supported DWC like USB OTG controller, not included now, because have > many issues: > 1. Don't support SPIT transactions (FS device on HS Hub) yet. > 2. Don't support ISOC transactions yet. > 3. And have problems with some devices, possibly timing problem. > You can found it at > http://my.ddteam.net/hg/BASE/file/dd632189c3a0/head/sys/dev/usb/controller/ files dotg* > > > Also supported internal switch, not included now, because this part of not > done Switch API project. > You can found it at > http://my.ddteam.net/hg/BASE/file/dd632189c3a0/head/sys/dev/switch/ > > Remaining issues: > RT2860 support only Open(no crypto) mode for RT305[02]F > > Comments are welcome. > Want to know, what I do right or what wrong :) > > -- > Alexandr Rybalko > aka Alex RAY > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > From owner-freebsd-mips@FreeBSD.ORG Sun Mar 20 20:54:19 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55AF2106566C for ; Sun, 20 Mar 2011 20:54:19 +0000 (UTC) (envelope-from sergey.dyatko@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id D5D118FC0C for ; Sun, 20 Mar 2011 20:54:18 +0000 (UTC) Received: by bwz12 with SMTP id 12so5197031bwz.13 for ; Sun, 20 Mar 2011 13:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=5LTvz4fMgblTVNUGjXaUIqob+143dYSjtznqvt+btfo=; b=HNmyVelZ09Sz5rIq7r/9FyuDjlUss6We+knFytE4JH6R893CsSyftYvogleNFGw0OU rQOaRsELYAfV11JLH7s9YaEKv+07z4nlApZswo9bdEjPPDQ2V2oYQf1wRBoURHi8WbZ4 5H5kKknW/HPhz0iZtg9wK+14GqVo5ZVTf0RJo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=c/owemQfC1eWI4p9XCMISXI+H1bzNhLVjjkTwPbXhlO2dD64nmZuOsmmIurQNwrtoj E9sA2DSzyK/hscdiyO1aqHr9B1rs9JPldCj4gKLmey8B0t5p2Gx62Uu1Ky46ztY775/B KtwH0yrMld8BZT4HzZ4LaFmYJUEv2APBAp1f4= Received: by 10.204.187.194 with SMTP id cx2mr407437bkb.167.1300652925591; Sun, 20 Mar 2011 13:28:45 -0700 (PDT) Received: from localhost ([178.125.242.167]) by mx.google.com with ESMTPS id 16sm560241bkm.6.2011.03.20.13.28.43 (version=SSLv3 cipher=OTHER); Sun, 20 Mar 2011 13:28:44 -0700 (PDT) Date: Sun, 20 Mar 2011 22:28:59 +0200 From: "Sergey V. Dyatko" To: Adrian Chadd Message-ID: <20110320222859.4cf96caf@gmail.com> In-Reply-To: References: <20110314162936.d3f8fd5b.ray@dlink.ua> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-mips@freebsd.org Subject: Re: [CFR]RT305xF support, w/o attachment X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 20:54:19 -0000 On Sun, 20 Mar 2011 23:31:51 +0800 Adrian Chadd wrote: > Hi all, > Hi, Adrian > I plan on tidying up the initial support patch (removing some of the > stuff that snuck in from the ethernet, switch and wifi parts) and > committing this sometime in the next week or so. > > I don't (yet) have hardware to test it myself. I'll just do a compile > run and try to make sure it hasn't broken anything. > > I'll then take responsibility in case it breaks anything else in the > build. Aleksandr will take responsibility for fixing bugs. :) > > Thankyou for your hard work Aleksandr! > Last patch from Aleksandr 'works fine for me', so... may be rt2860 should be replaced to 'rt' for example ? rt0: flags= blah-blah-blah IHMO looks more .....nice(?) than rt28600: flags= > > Adrian > > On 14 March 2011 22:29, Aleksandr Rybalko wrote: > > > > > Hello, all. > > > > I am pleased to present support for Ralink RT3050F/RT3052F MIPS > > SoC's for FreeBSD. > > > > This patches add support of > > 1. GPIO/Interrupt/System/UART controllers + internal bus > > http://my.ddteam.net/files/2011-03-14_RT305xF_support.patch > > 2. RT305xF embedded ethernet controller > > http://my.ddteam.net/files/2011-03-14_RT305xF_ether_support.patch > > 3. RT2860 802.11n controller authors Damien Bergamini and Alexander > > Egorenkov > > http://my.ddteam.net/files/2011-03-14_rt2860.patch > > only modification to work with RT2872 (embedded to > > RT305[02]F) wrote by me. > > > > Also supported DWC like USB OTG controller, not included now, > > because have many issues: > > 1. Don't support SPIT transactions (FS device on HS Hub) yet. > > 2. Don't support ISOC transactions yet. > > 3. And have problems with some devices, possibly timing problem. > > You can found it at > > http://my.ddteam.net/hg/BASE/file/dd632189c3a0/head/sys/dev/usb/controller/ > > files dotg* > > > > > > Also supported internal switch, not included now, because this part > > of not done Switch API project. > > You can found it at > > http://my.ddteam.net/hg/BASE/file/dd632189c3a0/head/sys/dev/switch/ > > > > Remaining issues: > > RT2860 support only Open(no crypto) mode for RT305[02]F > > > > Comments are welcome. > > Want to know, what I do right or what wrong :) > > > > -- > > Alexandr Rybalko > > aka Alex RAY -- wbr, tiger From owner-freebsd-mips@FreeBSD.ORG Sun Mar 20 21:59:46 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83B05106566B; Sun, 20 Mar 2011 21:59:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 25FF78FC0C; Sun, 20 Mar 2011 21:59:45 +0000 (UTC) Received: by vxc34 with SMTP id 34so5502803vxc.13 for ; Sun, 20 Mar 2011 14:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=WfhJJ7fFUPvHIM8vlf7oV54j9qUv06oXox7mYVaBvUk=; b=fR5HIw14NJnwIrT+mtaKkbePNehw3Gknu2E6V5oBaNPgJJ19Y7qMjW55Wu6f4h9YcG YVF/rVxDWnRgcldfM/O9zFLxIfqVl5LoZOcDQk9jnzlWyrRTlG42GSmvVr9M7v1u2Lmo o0OZs0DcnFEYsvgtYQ2zuX+NodsuehXWrKSLM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=HL98DxRnpZsi/xqcx5PKn8bJZISnWL4ABx0mhbbn/OfdgbsX2HCA3PPU0ZiJ24srBj d3a0QH3mP3HY2WFmh19EmWLhFBnkFS8Z2GCOuval048h+q6VCKAmLzzzjW/49jSEPvNM gQSYIeZv4BIos0xHmRPGMZ060K3EljmVIn/lY= MIME-Version: 1.0 Received: by 10.52.18.74 with SMTP id u10mr3678828vdd.216.1300658385398; Sun, 20 Mar 2011 14:59:45 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.165.34 with HTTP; Sun, 20 Mar 2011 14:59:45 -0700 (PDT) In-Reply-To: <20110320222859.4cf96caf@gmail.com> References: <20110314162936.d3f8fd5b.ray@dlink.ua> <20110320222859.4cf96caf@gmail.com> Date: Mon, 21 Mar 2011 05:59:45 +0800 X-Google-Sender-Auth: 8nPI-v0K1z1oDpDj_bEMXeVFZ8o Message-ID: From: Adrian Chadd To: "Sergey V. Dyatko" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org, freebsd-mips@freebsd.org Subject: Re: [CFR]RT305xF support, w/o attachment X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 21:59:46 -0000 On 21 March 2011 04:28, Sergey V. Dyatko wrote: > Last patch from Aleksandr 'works fine for me', so... may be rt2860 > should be replaced to 'rt' for example ? > rt0: flags= blah-blah-blah IHMO looks more .....nice(?) than > rt28600: flags= > Yup, that's a good idea. Aleksandr, can you please do that? Adrian From owner-freebsd-mips@FreeBSD.ORG Sun Mar 20 23:43:52 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C1CE106566B for ; Sun, 20 Mar 2011 23:43:52 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id BEFB98FC14 for ; Sun, 20 Mar 2011 23:43:51 +0000 (UTC) Received: by fxm11 with SMTP id 11so5954574fxm.13 for ; Sun, 20 Mar 2011 16:43:50 -0700 (PDT) Received: by 10.223.55.12 with SMTP id s12mr4082376fag.124.1300662966991; Sun, 20 Mar 2011 16:16:06 -0700 (PDT) Received: from rnote.ddteam.net (28-115-133-95.pool.ukrtel.net [95.133.115.28]) by mx.google.com with ESMTPS id c21sm1980389fac.22.2011.03.20.16.16.05 (version=SSLv3 cipher=OTHER); Sun, 20 Mar 2011 16:16:06 -0700 (PDT) Date: Mon, 21 Mar 2011 01:16:01 +0200 From: Aleksandr Rybalko To: Adrian Chadd Message-Id: <20110321011601.6e72f00f.ray@ddteam.net> In-Reply-To: References: <20110314162936.d3f8fd5b.ray@dlink.ua> <20110320222859.4cf96caf@gmail.com> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "Sergey V. Dyatko" , freebsd-mips@freebsd.org, freebsd-current@freebsd.org Subject: Re: [CFR]RT305xF support, w/o attachment X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 23:43:52 -0000 On Mon, 21 Mar 2011 05:59:45 +0800 Adrian Chadd wrote: > On 21 March 2011 04:28, Sergey V. Dyatko > wrote: > > > > Last patch from Aleksandr 'works fine for me', so... may be rt2860 > > should be replaced to 'rt' for example ? > > rt0: flags= blah-blah-blah IHMO looks more .....nice(?) than > > rt28600: flags= > > > > Yup, that's a good idea. Aleksandr, can you please do that? Off-course I can, but seems better name will be rtw or rtn, because we already have if_rt (for RT3052 ether) which have iface name "rt". I think "rtn" is best. Maybe someone have better? > > > Adrian -- Aleksandr Rybalko From owner-freebsd-mips@FreeBSD.ORG Mon Mar 21 06:36:11 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7E49106566B for ; Mon, 21 Mar 2011 06:36:11 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3D28FC0A for ; Mon, 21 Mar 2011 06:36:11 +0000 (UTC) Received: by bwz12 with SMTP id 12so5426600bwz.13 for ; Sun, 20 Mar 2011 23:36:10 -0700 (PDT) Received: by 10.204.82.74 with SMTP id a10mr3396513bkl.96.1300687759425; Sun, 20 Mar 2011 23:09:19 -0700 (PDT) Received: from julie.lab.techwires.net (dslb-088-067-218-231.pools.arcor-ip.net [88.67.218.231]) by mx.google.com with ESMTPS id j13sm1034815faa.1.2011.03.20.23.09.17 (version=SSLv3 cipher=OTHER); Sun, 20 Mar 2011 23:09:18 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: freebsd-current@freebsd.org Date: Mon, 21 Mar 2011 07:04:22 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-RELEASE; KDE/4.5.5; amd64; ; ) References: <20110314162936.d3f8fd5b.ray@dlink.ua> <20110321011601.6e72f00f.ray@ddteam.net> In-Reply-To: <20110321011601.6e72f00f.ray@ddteam.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201103210704.23220.bschmidt@freebsd.org> Cc: Aleksandr Rybalko , "Sergey V. Dyatko" , freebsd-mips@freebsd.org Subject: Re: [CFR]RT305xF support, w/o attachment X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 06:36:12 -0000 On Monday 21 March 2011 00:16:01 Aleksandr Rybalko wrote: > On Mon, 21 Mar 2011 05:59:45 +0800 > Adrian Chadd wrote: > > > On 21 March 2011 04:28, Sergey V. Dyatko > > wrote: > > > > > > > Last patch from Aleksandr 'works fine for me', so... may be rt2860 > > > should be replaced to 'rt' for example ? > > > rt0: flags= blah-blah-blah IHMO looks more .....nice(?) than > > > rt28600: flags= > > > > > > > Yup, that's a good idea. Aleksandr, can you please do that? > > Off-course I can, but seems better name will be rtw or rtn, because we > already have if_rt (for RT3052 ether) which have iface name "rt". > > I think "rtn" is best. > > Maybe someone have better? rtw is a name for a Realtek driver. I'd prefer if can keep this driver in sync with the OpenBSD one where it is clearly derived from. So, rt28xx and rt30xx support has to be an extension to ral(4). That shouldn't be to hard to do, just throw in the code into dev/ral/ and hook it to the pci/ops code. -- Bernhard From owner-freebsd-mips@FreeBSD.ORG Mon Mar 21 09:29:19 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06796106564A; Mon, 21 Mar 2011 09:29:19 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id AE80B8FC19; Mon, 21 Mar 2011 09:29:18 +0000 (UTC) Received: from gw-lan1.kiev.dlink.ua ([192.168.10.10] helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Q1bQ8-0000zO-15; Mon, 21 Mar 2011 11:29:04 +0200 Date: Mon, 21 Mar 2011 11:29:11 +0200 From: Aleksandr Rybalko To: Bernhard Schmidt Message-Id: <20110321112911.141e3548.ray@dlink.ua> In-Reply-To: <201103210704.23220.bschmidt@freebsd.org> References: <20110314162936.d3f8fd5b.ray@dlink.ua> <20110321011601.6e72f00f.ray@ddteam.net> <201103210704.23220.bschmidt@freebsd.org> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Aleksandr Rybalko , "Sergey V. Dyatko" , freebsd-current@freebsd.org, freebsd-mips@freebsd.org, Adrian Subject: Re: [CFR]RT305xF support, w/o attachment X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 09:29:19 -0000 Hi, On Mon, 21 Mar 2011 07:04:22 +0100 Bernhard Schmidt wrote: >> On Monday 21 March 2011 00:16:01 Aleksandr Rybalko wrote: >> > On Mon, 21 Mar 2011 05:59:45 +0800 >> > Adrian Chadd wrote: >> > >> > > On 21 March 2011 04:28, Sergey V. Dyatko >> > > wrote: >> > > >> > > >> > > > Last patch from Aleksandr 'works fine for me', so... may be rt2860 >> > > > should be replaced to 'rt' for example ? >> > > > rt0: flags= blah-blah-blah IHMO looks more .....nice(?) than >> > > > rt28600: flags= >> > > > >> > > >> > > Yup, that's a good idea. Aleksandr, can you please do that? >> > >> > Off-course I can, but seems better name will be rtw or rtn, because we >> > already have if_rt (for RT3052 ether) which have iface name "rt". >> > >> > I think "rtn" is best. >> > >> > Maybe someone have better? >> >> rtw is a name for a Realtek driver. Realtek driver called urtw, but I agree with you to avoid confusion. >> >> I'd prefer if can keep this driver in sync with the OpenBSD one where >> it is clearly derived from. So, rt28xx and rt30xx support has to be an >> extension to ral(4). That shouldn't be to hard to do, just throw in the >> code into dev/ral/ and hook it to the pci/ops code. This driver closer to USB run(4), but this use USB and difference still big. In future, not so closer, I will try to join run, ral and my rt2860. But there is too much work and I need to find time for it. >> >> -- >> Bernhard So for now, best name is "rtn". If no objections, I send updated patch with new name. Thank you Bernhard! WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-mips@FreeBSD.ORG Mon Mar 21 10:02:57 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EDF6106566C; Mon, 21 Mar 2011 10:02:57 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4F8058FC14; Mon, 21 Mar 2011 10:02:55 +0000 (UTC) Received: by fxm11 with SMTP id 11so6268945fxm.13 for ; Mon, 21 Mar 2011 03:02:55 -0700 (PDT) Received: by 10.223.1.73 with SMTP id 9mr4735357fae.44.1300701679287; Mon, 21 Mar 2011 03:01:19 -0700 (PDT) Received: from jessie.localnet (p5B2ED396.dip0.t-ipconnect.de [91.46.211.150]) by mx.google.com with ESMTPS id e23sm2391449faa.18.2011.03.21.03.01.17 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 03:01:18 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: freebsd-current@freebsd.org Date: Mon, 21 Mar 2011 11:00:49 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.32-29-generic; KDE/4.4.5; i686; ; ) References: <20110314162936.d3f8fd5b.ray@dlink.ua> <201103210704.23220.bschmidt@freebsd.org> <20110321112911.141e3548.ray@dlink.ua> In-Reply-To: <20110321112911.141e3548.ray@dlink.ua> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103211100.49504.bschmidt@freebsd.org> Cc: Aleksandr Rybalko , "Sergey V. Dyatko" , freebsd-mips@freebsd.org Subject: Re: [CFR]RT305xF support, w/o attachment X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bschmidt@freebsd.org List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 10:02:57 -0000 On Monday, March 21, 2011 10:29:11 Aleksandr Rybalko wrote: > Hi, > > On Mon, 21 Mar 2011 07:04:22 +0100 > Bernhard Schmidt wrote: > > >> On Monday 21 March 2011 00:16:01 Aleksandr Rybalko wrote: > >> > On Mon, 21 Mar 2011 05:59:45 +0800 > >> > Adrian Chadd wrote: > >> > > >> > > On 21 March 2011 04:28, Sergey V. Dyatko > >> > > wrote: > >> > > > >> > > > >> > > > Last patch from Aleksandr 'works fine for me', so... may be rt2860 > >> > > > should be replaced to 'rt' for example ? > >> > > > rt0: flags= blah-blah-blah IHMO looks more .....nice(?) than > >> > > > rt28600: flags= > >> > > > > >> > > > >> > > Yup, that's a good idea. Aleksandr, can you please do that? > >> > > >> > Off-course I can, but seems better name will be rtw or rtn, because we > >> > already have if_rt (for RT3052 ether) which have iface name "rt". > >> > > >> > I think "rtn" is best. > >> > > >> > Maybe someone have better? > >> > >> rtw is a name for a Realtek driver. > Realtek driver called urtw, but I agree with you to avoid confusion. That rtw driver I'm speaking of is for older Realtek 8180/8185 PCI based chips. Granted, not in our tree, but it exists. urtw(4) is for 8187B/L USB chipsets. > >> > >> I'd prefer if can keep this driver in sync with the OpenBSD one where > >> it is clearly derived from. So, rt28xx and rt30xx support has to be an > >> extension to ral(4). That shouldn't be to hard to do, just throw in the > >> code into dev/ral/ and hook it to the pci/ops code. > This driver closer to USB run(4), but this use USB and difference still big. > > In future, not so closer, I will try to join run, ral and my rt2860. But there is too much work and I need to find time for it. Please don't. There is a reason the PCI and USB chipsets, even if derived from the same base chipset, have different drivers. The BUS specific implementation/restrictions are way too different/important. Trying to merge those will only make your head ache :) > > >> > > So for now, best name is "rtn". > > If no objections, I send updated patch with new name. I still don't think this is the way to go. Adding a totally independent driver now and replacing (or merging) it later simple won't work. Also, it is quite annoying from user point of view. I urge you to have a closer look at ral(4) and it's way of handling RT2500 and RT2600 specific differences. In it's simplest form you can copy the OpenBSD code 1:1 without any functional changes, heck, it's the source of this driver anyway. -- Bernhard From owner-freebsd-mips@FreeBSD.ORG Mon Mar 21 10:53:05 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 806F8106564A; Mon, 21 Mar 2011 10:53:05 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 0A40C8FC1C; Mon, 21 Mar 2011 10:53:04 +0000 (UTC) Received: from gw-lan1.kiev.dlink.ua ([192.168.10.10] helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Q1cjG-0001sJ-FR; Mon, 21 Mar 2011 12:52:54 +0200 Date: Mon, 21 Mar 2011 12:52:57 +0200 From: Aleksandr Rybalko To: bschmidt@freebsd.org Message-Id: <20110321125257.7f81884b.ray@dlink.ua> In-Reply-To: <201103211100.49504.bschmidt@freebsd.org> References: <20110314162936.d3f8fd5b.ray@dlink.ua> <201103210704.23220.bschmidt@freebsd.org> <20110321112911.141e3548.ray@dlink.ua> <201103211100.49504.bschmidt@freebsd.org> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Aleksandr Rybalko , freebsd-current@freebsd.org, "Sergey V. Dyatko" , freebsd-mips@freebsd.org Subject: Re: [CFR]RT305xF support, w/o attachment X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 10:53:05 -0000 On Mon, 21 Mar 2011 11:00:49 +0100 Bernhard Schmidt wrote: >> On Monday, March 21, 2011 10:29:11 Aleksandr Rybalko wrote: >> > Hi, >> > >> > On Mon, 21 Mar 2011 07:04:22 +0100 >> > Bernhard Schmidt wrote: >> > >> > >> On Monday 21 March 2011 00:16:01 Aleksandr Rybalko wrote: >> > >> > On Mon, 21 Mar 2011 05:59:45 +0800 >> > >> > Adrian Chadd wrote: >> > >> > >> > >> > > On 21 March 2011 04:28, Sergey V. Dyatko >> > >> > > wrote: >> > >> > > >> > >> > > >> > >> > > > Last patch from Aleksandr 'works fine for me', so... may be rt2860 >> > >> > > > should be replaced to 'rt' for example ? >> > >> > > > rt0: flags= blah-blah-blah IHMO looks more .....nice(?) than >> > >> > > > rt28600: flags= >> > >> > > > >> > >> > > >> > >> > > Yup, that's a good idea. Aleksandr, can you please do that? >> > >> > >> > >> > Off-course I can, but seems better name will be rtw or rtn, because we >> > >> > already have if_rt (for RT3052 ether) which have iface name "rt". >> > >> > >> > >> > I think "rtn" is best. >> > >> > >> > >> > Maybe someone have better? >> > >> >> > >> rtw is a name for a Realtek driver. >> > Realtek driver called urtw, but I agree with you to avoid confusion. >> >> That rtw driver I'm speaking of is for older Realtek 8180/8185 PCI >> based chips. Granted, not in our tree, but it exists. urtw(4) is for >> 8187B/L USB chipsets. >> >> > >> >> > >> I'd prefer if can keep this driver in sync with the OpenBSD one where >> > >> it is clearly derived from. So, rt28xx and rt30xx support has to be an >> > >> extension to ral(4). That shouldn't be to hard to do, just throw in the >> > >> code into dev/ral/ and hook it to the pci/ops code. >> > This driver closer to USB run(4), but this use USB and difference still big. >> > >> > In future, not so closer, I will try to join run, ral and my rt2860. But there is too much work and I need to find time for >> > it. >> >> Please don't. There is a reason the PCI and USB chipsets, even if >> derived from the same base chipset, have different drivers. The BUS >> specific implementation/restrictions are way too different/important. >> Trying to merge those will only make your head ache :) >> >> > >> > >> >> > >> > So for now, best name is "rtn". >> > >> > If no objections, I send updated patch with new name. >> >> I still don't think this is the way to go. Adding a totally independent >> driver now and replacing (or merging) it later simple won't work. Also, >> it is quite annoying from user point of view. >> >> I urge you to have a closer look at ral(4) and it's way of handling >> RT2500 and RT2600 specific differences. In it's simplest form you can >> copy the OpenBSD code 1:1 without any functional changes, heck, it's >> the source of this driver anyway. >> >> -- >> Bernhard I've look on difference between RT2[56]00 and RT2860 some time ago, but done it again, and found that we can only place RT2860/RT3090 support under same name (ral), but hardware have too big difference. And in case I do this patch for RT3052F SoC, when I placing RT2860 into ral, i get completely different driver (because SoC don't use PCI interface). So can You (or someone else) hint me, how to done this? switch (what to do) { case 'Remake run to support PCI and SoC interface': Much work to make driver bus independent; case 'Port OpenBSD one': driver do not support SoC (SoC device don't have MCU); break; case 'Place my RT2860 under dev/ral': different device in same driver; break; } Hint me please. WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-mips@FreeBSD.ORG Mon Mar 21 11:43:34 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EFFD1065676; Mon, 21 Mar 2011 11:43:34 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id E6C538FC08; Mon, 21 Mar 2011 11:43:33 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id p2LBhXmk018965; Mon, 21 Mar 2011 07:43:33 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id p2LBhXrk018917; Mon, 21 Mar 2011 11:43:33 GMT (envelope-from tinderbox@freebsd.org) Date: Mon, 21 Mar 2011 11:43:33 GMT Message-Id: <201103211143.p2LBhXrk018917@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 11:43:34 -0000 TB --- 2011-03-21 10:53:22 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2011-03-21 10:53:22 - starting HEAD tinderbox run for mips/mips TB --- 2011-03-21 10:53:22 - cleaning the object tree TB --- 2011-03-21 10:53:32 - cvsupping the source tree TB --- 2011-03-21 10:53:32 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2011-03-21 10:54:16 - building world TB --- 2011-03-21 10:54:16 - MAKEOBJDIRPREFIX=/obj TB --- 2011-03-21 10:54:16 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2011-03-21 10:54:16 - TARGET=mips TB --- 2011-03-21 10:54:16 - TARGET_ARCH=mips TB --- 2011-03-21 10:54:16 - TZ=UTC TB --- 2011-03-21 10:54:16 - __MAKE_CONF=/dev/null TB --- 2011-03-21 10:54:16 - cd /src TB --- 2011-03-21 10:54:16 - /usr/bin/make -B buildworld >>> World build started on Mon Mar 21 10:54:17 UTC 2011 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/hast_checksum.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/hast_compression.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/hast_proto.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/hastctl.c cc1: warnings being treated as errors /src/sbin/hastctl/hastctl.c: In function 'main': /src/sbin/hastctl/hastctl.c:469: warning: passing argument 2 of 'proto_client' from incompatible pointer type /src/sbin/hastctl/hastctl.c:469: error: too few arguments to function 'proto_client' *** Error code 1 Stop in /src/sbin/hastctl. *** Error code 1 Stop in /src/sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2011-03-21 11:43:32 - WARNING: /usr/bin/make returned exit code 1 TB --- 2011-03-21 11:43:32 - ERROR: failed to build world TB --- 2011-03-21 11:43:32 - 2171.77 user 533.27 system 3010.11 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Mon Mar 21 19:42:40 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3675106564A for ; Mon, 21 Mar 2011 19:42:40 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og109.obsmtp.com (exprod7og109.obsmtp.com [64.18.2.171]) by mx1.freebsd.org (Postfix) with ESMTP id 798718FC0C for ; Mon, 21 Mar 2011 19:42:40 +0000 (UTC) Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob109.postini.com ([64.18.6.12]) with SMTP ID DSNKTYeqL6Fkhmi2DqqRlC0kyGaM5GCV0hzT@postini.com; Mon, 21 Mar 2011 12:42:40 PDT Received: from p-emfe02-wf.jnpr.net (172.28.145.25) by P-EMHUB02-HQ.jnpr.net (172.24.192.36) with Microsoft SMTP Server (TLS) id 8.2.254.0; Mon, 21 Mar 2011 12:40:21 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe02-wf.jnpr.net ([fe80::c126:c633:d2dc:8090%11]) with mapi; Mon, 21 Mar 2011 15:41:37 -0400 From: Andrew Duane To: "freebsd-mips@freebsd.org" Date: Mon, 21 Mar 2011 15:41:32 -0400 Thread-Topic: phy_mem_desc_addr initialization Thread-Index: Acvn//rv3siFd2E+T1GKxGtP8kG9NQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {D4FF5F22-86EC-4C19-865D-14D293BBE1F3} x-cr-hashedpuzzle: AdUy AwsU BS3f C2BG DiTf D4qn EqAN FkVn G21q HVyU IX1+ IlSw J5Mk KCtY Kwj/ MdXA; 1; ZgByAGUAZQBiAHMAZAAtAG0AaQBwAHMAQABmAHIAZQBlAGIAcwBkAC4AbwByAGcA; Sosha1_v1; 7; {D4FF5F22-86EC-4C19-865D-14D293BBE1F3}; YQBkAHUAYQBuAGUAQABqAHUAbgBpAHAAZQByAC4AbgBlAHQA; Mon, 21 Mar 2011 19:41:32 GMT; cABoAHkAXwBtAGUAbQBfAGQAZQBzAGMAXwBhAGQAZAByACAAaQBuAGkAdABpAGEAbABpAHoAYQB0AGkAbwBuAA== acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: phy_mem_desc_addr initialization X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 19:42:41 -0000 I'm making good progress on my port to the first Juniper Octeon blade, but = I am stuck with what the real format of the memory descriptor blocks pointe= d to by phy_mem_desc_addr is. I can synthesize enough to get by, but I even= tually fall over because all of the info is not there. Can anyone perhaps print me out one from their Octeon board (an EBT-3000 wo= uld be ideal if at all possible), or point me to some actual documentation = on the fields? ................................... Andrew Duane Juniper Networks o +1 978 589 0551 m +1 603-770-7088 aduane@juniper.net From owner-freebsd-mips@FreeBSD.ORG Mon Mar 21 19:57:33 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F0ED106566B for ; Mon, 21 Mar 2011 19:57:33 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5824C8FC0A for ; Mon, 21 Mar 2011 19:57:33 +0000 (UTC) Received: by gwb15 with SMTP id 15so3011139gwb.13 for ; Mon, 21 Mar 2011 12:57:32 -0700 (PDT) Received: by 10.150.72.30 with SMTP id u30mr4364318yba.14.1300737452295; Mon, 21 Mar 2011 12:57:32 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.151.13.12 with HTTP; Mon, 21 Mar 2011 12:57:12 -0700 (PDT) In-Reply-To: References: From: Juli Mallett Date: Mon, 21 Mar 2011 12:57:12 -0700 X-Google-Sender-Auth: Odt8v-KwzJYA36FOi-MU5_DuGPY Message-ID: To: Andrew Duane Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-mips@freebsd.org" Subject: Re: phy_mem_desc_addr initialization X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 19:57:33 -0000 On Mon, Mar 21, 2011 at 12:41, Andrew Duane wrote: > I'm making good progress on my port to the first Juniper Octeon blade, bu= t I am stuck with what the real format of the memory descriptor blocks poin= ted to by phy_mem_desc_addr is. I can synthesize enough to get by, but I ev= entually fall over because all of the info is not there. > > Can anyone perhaps print me out one from their Octeon board (an EBT-3000 = would be ideal if at all possible), or point me to some actual documentatio= n on the fields? The code in sys/contrib/octeon-sdk is fairly straightforward. Really, though, probably what you should do is #ifdef octeon_memory_init for whatever config option is driving your non-standard Octeon platform. I think we talked about this previously, but it's possible there's some other use that you're running into trouble with. I'd be glad to help if you give me a pointer to the problematic usage. Thanks, Juli. From owner-freebsd-mips@FreeBSD.ORG Tue Mar 22 21:18:07 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 908FD106564A; Tue, 22 Mar 2011 21:18:07 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 4DABA8FC15; Tue, 22 Mar 2011 21:18:07 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id p2MLI6pL038371; Tue, 22 Mar 2011 17:18:06 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id p2MLI6fW038331; Tue, 22 Mar 2011 21:18:06 GMT (envelope-from tinderbox@freebsd.org) Date: Tue, 22 Mar 2011 21:18:06 GMT Message-Id: <201103222118.p2MLI6fW038331@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2011 21:18:07 -0000 TB --- 2011-03-22 20:28:25 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2011-03-22 20:28:25 - starting HEAD tinderbox run for mips/mips TB --- 2011-03-22 20:28:25 - cleaning the object tree TB --- 2011-03-22 20:28:33 - cvsupping the source tree TB --- 2011-03-22 20:28:33 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2011-03-22 20:28:48 - building world TB --- 2011-03-22 20:28:48 - MAKEOBJDIRPREFIX=/obj TB --- 2011-03-22 20:28:48 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2011-03-22 20:28:48 - TARGET=mips TB --- 2011-03-22 20:28:48 - TARGET_ARCH=mips TB --- 2011-03-22 20:28:48 - TZ=UTC TB --- 2011-03-22 20:28:48 - __MAKE_CONF=/dev/null TB --- 2011-03-22 20:28:48 - cd /src TB --- 2011-03-22 20:28:48 - /usr/bin/make -B buildworld >>> World build started on Tue Mar 22 20:28:49 UTC 2011 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/proto_common.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/proto_tcp4.c /src/sbin/hastctl/../hastd/proto_tcp4.c: In function 'tcp4_setup_new': /src/sbin/hastctl/../hastd/proto_tcp4.c:188: error: 'PROTO_TCP4_DEFAULT_PORT' undeclared (first use in this function) /src/sbin/hastctl/../hastd/proto_tcp4.c:188: error: (Each undeclared identifier is reported only once /src/sbin/hastctl/../hastd/proto_tcp4.c:188: error: for each function it appears in.) /src/sbin/hastctl/../hastd/proto_tcp4.c: In function 'tcp4_address_match': /src/sbin/hastctl/../hastd/proto_tcp4.c:513: error: 'PROTO_TCP4_DEFAULT_PORT' undeclared (first use in this function) *** Error code 1 Stop in /src/sbin/hastctl. *** Error code 1 Stop in /src/sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2011-03-22 21:18:06 - WARNING: /usr/bin/make returned exit code 1 TB --- 2011-03-22 21:18:06 - ERROR: failed to build world TB --- 2011-03-22 21:18:06 - 2180.20 user 545.24 system 2980.52 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Thu Mar 24 18:22:08 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EEF7106566B for ; Thu, 24 Mar 2011 18:22:08 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og106.obsmtp.com (exprod7og106.obsmtp.com [64.18.2.165]) by mx1.freebsd.org (Postfix) with ESMTP id 11C468FC13 for ; Thu, 24 Mar 2011 18:22:07 +0000 (UTC) Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob106.postini.com ([64.18.6.12]) with SMTP ID DSNKTYuLz7X1zc+JpgkP7ipP06oDTfhlpSyw@postini.com; Thu, 24 Mar 2011 11:22:08 PDT Received: from p-emfe01-wf.jnpr.net (172.28.145.24) by P-EMHUB03-HQ.jnpr.net (172.24.192.37) with Microsoft SMTP Server (TLS) id 8.2.254.0; Thu, 24 Mar 2011 11:19:07 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::8002:d3e7:4146:af5f]) by p-emfe01-wf.jnpr.net ([fe80::d0d1:653d:5b91:a123%11]) with mapi; Thu, 24 Mar 2011 14:20:27 -0400 From: Andrew Duane To: "freebsd-mips@freebsd.org" Date: Thu, 24 Mar 2011 14:19:02 -0400 Thread-Topic: TrueIDE support for CF cards? Thread-Index: AcvqT/OOr6DifQtNST+Nh8ROxeBOeA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {9A35426A-5D3B-460A-AE9C-220E0E444271} x-cr-hashedpuzzle: AOgT AwQI BNNf BOug B3tM DCGn DWGF ECvU FKRF FuWW Fu8C GC4i HWwD KNSU KsFL LRGT; 1; ZgByAGUAZQBiAHMAZAAtAG0AaQBwAHMAQABmAHIAZQBlAGIAcwBkAC4AbwByAGcA; Sosha1_v1; 7; {9A35426A-5D3B-460A-AE9C-220E0E444271}; YQBkAHUAYQBuAGUAQABqAHUAbgBpAHAAZQByAC4AbgBlAHQA; Thu, 24 Mar 2011 18:19:02 GMT; VAByAHUAZQBJAEQARQAgAHMAdQBwAHAAbwByAHQAIABmAG8AcgAgAEMARgAgAGMAYQByAGQAcwA/AA== acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: TrueIDE support for CF cards? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2011 18:22:08 -0000 It doesn't look like there is any support for TrueIDE CF cards/chips in the= current MIPS pool. Is that correct? Our platforms use CF in TrueIDE mode w= hich is somewhat different from the traditional CF/ATA support. I'm conside= ring bringing our code over, likely in a separate file (our code merges the= two and it is really messy). ................................... Andrew Duane Juniper Networks o +1 978 589 0551 m +1 603-770-7088 aduane@juniper.net From owner-freebsd-mips@FreeBSD.ORG Thu Mar 24 22:15:47 2011 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A75B61065674 for ; Thu, 24 Mar 2011 22:15:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 6B3018FC2C for ; Thu, 24 Mar 2011 22:15:47 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id p2OMES5b034669 for ; Thu, 24 Mar 2011 16:14:28 -0600 (MDT) (envelope-from imp@bsdimp.com) Message-ID: <4D8BC244.3080606@bsdimp.com> Date: Thu, 24 Mar 2011 16:14:28 -0600 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101211 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-mips@FreeBSD.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: TrueIDE support for CF cards? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2011 22:15:47 -0000 On 03/24/2011 12:19, Andrew Duane wrote: > It doesn't look like there is any support for TrueIDE CF cards/chips in the current MIPS pool. Is that correct? Our platforms use CF in TrueIDE mode which is somewhat different from the traditional CF/ATA support. I'm considering bringing our code over, likely in a separate file (our code merges the two and it is really messy). I guess I need more context here. CF cards in TrueIDE mode attached to ATA controllers have worked for more than a decade in FreeBSD, so likely I'm missing something... Warner > ................................... > > Andrew Duane > Juniper Networks > o +1 978 589 0551 > m +1 603-770-7088 > aduane@juniper.net > > > > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > > > From owner-freebsd-mips@FreeBSD.ORG Fri Mar 25 05:24:20 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 903AA1065670 for ; Fri, 25 Mar 2011 05:24:20 +0000 (UTC) (envelope-from bhanuprakashbodireddy@gmail.com) Received: from mail-px0-f172.google.com (mail-px0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 63CF48FC08 for ; Fri, 25 Mar 2011 05:24:20 +0000 (UTC) Received: by pxi6 with SMTP id 6so460011pxi.17 for ; Thu, 24 Mar 2011 22:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=syiP85l4JQlXVMXlM1Yw2yELtYLli/gJALCcK5URSF8=; b=o/VpEg4LpzptmAaO6N19y8kzeJV60zC8PiU9qnyvxbH2mZz1zsPEgbNGSd+dTytJkS MamB2y6w/RpJnZG/WOmtSbbhZ6OxoGSlc2fb0EjvbozSmuvah3rVZ6u3yTlZ8tCErAqM 9QGgGjzqLSPT1Fjei4dGCPIdySz9rM1Q8rhDM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=dypedc6JGY79xqhfJ7iU11im5atwwocxaYs50/Zk9lpb4XOeXSg5XheSONj3LzLQoJ sIfUzDLFO9EOiYKF2E75TBHRsEsOJWS0mPeXOeWoJGMOxC4rYCU9pq/2UFsesEMm0/XS 7sZ3Sp6nLzSB0jWSG+fxqaekisdESIkvTQbdw= MIME-Version: 1.0 Received: by 10.142.196.17 with SMTP id t17mr307897wff.15.1301029315663; Thu, 24 Mar 2011 22:01:55 -0700 (PDT) Received: by 10.142.135.3 with HTTP; Thu, 24 Mar 2011 22:01:55 -0700 (PDT) In-Reply-To: References: Date: Fri, 25 Mar 2011 10:31:55 +0530 Message-ID: From: bhanuprakash bodireddy To: Andrew Duane Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-mips@freebsd.org" Subject: Re: TrueIDE support for CF cards? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 05:24:20 -0000 Hi Andrew, I had a similar problem starting with my CN56XX h/w. I made some modifications to octeon_ebt3000_cf.c and could boot my board from the cf card. Iam sending you the updated file in a separate mail and will submit it to group for review once it has all the support. Thanks, Bhanu Prakash. On Thu, Mar 24, 2011 at 11:49 PM, Andrew Duane wrote: > It doesn't look like there is any support for TrueIDE CF cards/chips in the > current MIPS pool. Is that correct? Our platforms use CF in TrueIDE mode > which is somewhat different from the traditional CF/ATA support. I'm > considering bringing our code over, likely in a separate file (our code > merges the two and it is really messy). > > ................................... > > Andrew Duane > Juniper Networks > o +1 978 589 0551 > m +1 603-770-7088 > aduane@juniper.net > > > > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > From owner-freebsd-mips@FreeBSD.ORG Fri Mar 25 05:48:55 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C318D106566B for ; Fri, 25 Mar 2011 05:48:55 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 7D6898FC13 for ; Fri, 25 Mar 2011 05:48:55 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63] (may be forged)) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id p2P5gBk9039292; Thu, 24 Mar 2011 23:42:12 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Thu, 24 Mar 2011 23:42:11 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: bhanuprakash bodireddy X-Mailer: Apple Mail (2.1082) Cc: "freebsd-mips@freebsd.org" Subject: Re: TrueIDE support for CF cards? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 05:48:55 -0000 I'm thinking that we'd just have two separate 'attach' routines. The = cards in CF mode do the PC Card dance, and the other wouldn't. Since = the PC Card activation is minimal, this would let us share the whole = driver. Warner On Mar 24, 2011, at 11:01 PM, bhanuprakash bodireddy wrote: > Hi Andrew, >=20 > I had a similar problem starting with my CN56XX h/w. > I made some modifications to octeon_ebt3000_cf.c and could boot my = board > from the cf card. >=20 > Iam sending you the updated file in a separate mail and will submit it = to > group for review once it has all the support. >=20 > Thanks, > Bhanu Prakash. >=20 > On Thu, Mar 24, 2011 at 11:49 PM, Andrew Duane = wrote: >=20 >> It doesn't look like there is any support for TrueIDE CF cards/chips = in the >> current MIPS pool. Is that correct? Our platforms use CF in TrueIDE = mode >> which is somewhat different from the traditional CF/ATA support. I'm >> considering bringing our code over, likely in a separate file (our = code >> merges the two and it is really messy). >>=20 >> ................................... >>=20 >> Andrew Duane >> Juniper Networks >> o +1 978 589 0551 >> m +1 603-770-7088 >> aduane@juniper.net >>=20 >>=20 >>=20 >>=20 >>=20 >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" >>=20 > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" >=20 >=20