From owner-freebsd-mips@FreeBSD.ORG Sun Aug 15 04:43:13 2010 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 AA4F31065672; Sun, 15 Aug 2010 04:43:13 +0000 (UTC) (envelope-from phcoder@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5C10A8FC0A; Sun, 15 Aug 2010 04:43:11 +0000 (UTC) Received: by ewy26 with SMTP id 26so2270820ewy.13 for ; Sat, 14 Aug 2010 21:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type; bh=EeDhujpp0SF+j1rwDhNcChJAML6JGV6eaFZXVb+nw4k=; b=aQBPeE/JqvIyYtE39nw3F7Gkhc96E7VnDFIVVC+wJVNsr+YezFqByOw17K1KN5WeKp MFYx99fs6g6BrPqCn5k2rcc+PKCv8q8QLnCl2lCuHS4KS9en33I8qfvFoB6bj109Pc5Z jEUOG0cblp3zzqxoI/uALdMH8+OLr7fVFeIPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type; b=QOG4czEFwCK3U+yzZTfemDn4hIHhFf1uRmY17DDap8cwBE3s9C98JMsfv7Edny7Skl 1O5AGE79o3upaekamgFn0LQY+xLYpp0jYLxjL6XDVMJgcWsb7i47xUgSlQ0M06hNAGQW ma/IxrrSbQYfFBoSbbrUvC+BuKO7QqkKem0Ho= Received: by 10.213.22.10 with SMTP id l10mr1302575ebb.21.1281847391285; Sat, 14 Aug 2010 21:43:11 -0700 (PDT) Received: from debian.bg45.phnet (108-213.203-62.cust.bluewin.ch [62.203.213.108]) by mx.google.com with ESMTPS id a48sm7368672eei.12.2010.08.14.21.43.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 14 Aug 2010 21:43:09 -0700 (PDT) Message-ID: <4C67704C.70609@gmail.com> Date: Sun, 15 Aug 2010 06:42:52 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: soc-status@freebsd.org, freebsd-mips@freebsd.org X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigA62E735D8D207F5B1BD8D707" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Yeeloong port is functional 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, 15 Aug 2010 04:43:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA62E735D8D207F5B1BD8D707 Content-Type: multipart/mixed; boundary="------------020401040108060707020101" This is a multi-part message in MIME format. --------------020401040108060707020101 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, all. Despite the hardware-inflicted setbacks (my yeeloong fried right before the mid-term), Yeeloong port is now functional. Both serial and local (keyboard + screen) work. Real Time Clock is working. Internet is working. USB controller on PCI is working. Userspace is working. Remaining issues: 1) Disabled cache. The reason are peculiar properties of L2 cache. I actualy have the code to fix it but I'm not sure to hit GSoC deadline about it. 2) Only 256 MiB of RAM are supported. Should be easy to fix once 64-bit parts are in. 3) No Geode support. So no IDE, 2 of 3 USB ports or audio. These components are actualy pretty standard, one has only to add support for MSRs. 4) No power management. Wasn't planned to have it implemented during GSoC= =2E Not tested: 1) Touchpad. Never connected to my laptop during developpement because to use it one has to close front lid and so cut from serial connector 3rd party developpements which will improve Yeeloong support: 1) X.org support. The required card is already supported in latest x.org. So it's a question of importing last X.org and testing it. 2) 64-bit developpement. Currently if I compile 64-bit kernel it contains only 64-bit imgact. Imposing only 64-bit binaries is suboptimal.= --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------020401040108060707020101-- --------------enigA62E735D8D207F5B1BD8D707 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkxncFYACgkQNak7dOguQgnorwEAmiWdagfHzv0YaLaFuaCCpGUx x5B+i+2SdtxV3vCEfc0A/AyP6GiiDxsHvye57KsLHLbniyHjqYIv4feMhLrYkigD =Jvnv -----END PGP SIGNATURE----- --------------enigA62E735D8D207F5B1BD8D707-- From owner-freebsd-mips@FreeBSD.ORG Sun Aug 15 21:53:04 2010 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 5EF3A1065674; Sun, 15 Aug 2010 21:53:04 +0000 (UTC) (envelope-from phcoder@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 164538FC17; Sun, 15 Aug 2010 21:53:02 +0000 (UTC) Received: by ewy26 with SMTP id 26so2469888ewy.13 for ; Sun, 15 Aug 2010 14:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=POuPAp/7uy9tvknFH1AqGiap8lBiFIjW/mGY9i0kKG4=; b=Wfp5tuQoL/kFnmePMfSJ1EYd214NRBxsJcxWUDnDlhV/OikqX5s0+BFfwi9uqCDAZe Pug4Q+jf+HQZZoMLJEVJAwUGujjQj8BusVgmsAC//geanPyEbJbTgWWog8jBbZEm9mhU rAdvShWZmwt4Be6uT3QrNSCWjmFgcfbLFjPAE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=LiPV0l0U31pvaq5d7WP7f/eu4oPXM5MWALyEZeVBGkmI11dEPH+A9pBSn1zRIjAM8l k88rknwVSx7FUbnsjPFvF5TkBt/Ykoy+75VNedCEN0X2mCrUwQ2wZVwGo9Ufi2SkysgT It18PvhmDWlvyG/hvVxzMZirMw6zVB9/ia31A= Received: by 10.213.4.202 with SMTP id 10mr1983599ebs.37.1281909182011; Sun, 15 Aug 2010 14:53:02 -0700 (PDT) Received: from debian.bg45.phnet (20.73.202.62.cust.bluewin.ch [62.202.73.20]) by mx.google.com with ESMTPS id u9sm8760556eeh.11.2010.08.15.14.52.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 15 Aug 2010 14:52:59 -0700 (PDT) Message-ID: <4C6861B4.6020102@gmail.com> Date: Sun, 15 Aug 2010 23:52:52 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: soc-status@freebsd.org, freebsd-mips@freebsd.org References: <4C67704C.70609@gmail.com> In-Reply-To: <4C67704C.70609@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig6A43F7B00667EC5202B8F076" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Yeeloong port is functional 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, 15 Aug 2010 21:53:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6A43F7B00667EC5202B8F076 Content-Type: multipart/mixed; boundary="------------070506070308080601060201" This is a multi-part message in MIME format. --------------070506070308080601060201 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, all. Some cleanups and I managed to enable cache on kseg0. Additionally it has some basic Geode support. I'm looking forward to split it in smaller patches in order to get it into HEAD. Also I'll fill the blanks (like power management) as time permits. On 08/15/2010 06:42 AM, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote:= > Hello, all. Despite the hardware-inflicted setbacks (my yeeloong fried > right before the mid-term), Yeeloong port is now functional. Both seria= l > and local (keyboard + screen) work. Real Time Clock is working. Interne= t > is working. USB controller on PCI is working. Userspace is working. > > Remaining issues: > 1) Disabled cache. The reason are peculiar properties of L2 cache. I > actualy have the code to fix it but I'm not sure to hit GSoC deadline > about it. > 2) Only 256 MiB of RAM are supported. Should be easy to fix once 64-bit= > parts are in. > 3) No Geode support. So no IDE, 2 of 3 USB ports or audio. These > components are actualy pretty standard, one has only to add support for= > MSRs. > 4) No power management. Wasn't planned to have it implemented during GS= oC. > > Not tested: > 1) Touchpad. Never connected to my laptop during developpement because > to use it one has to close front lid and so cut from serial connector > > 3rd party developpements which will improve Yeeloong support: > 1) X.org support. The required card is already supported in latest > x.org. So it's a question of importing last X.org and testing it. > 2) 64-bit developpement. Currently if I compile 64-bit kernel it > contains only 64-bit imgact. Imposing only 64-bit binaries is suboptima= l. > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------070506070308080601060201-- --------------enig6A43F7B00667EC5202B8F076 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkxoYbQACgkQNak7dOguQgnCoQEAmgNpI8wPHdWj+g0EgtW27IeQ 7jYSpFIEw4cNRrgs35cBAIM2qVGskjrdTVnh9gDgVREdccBsSnJJCWCH4YTOfamQ =aO6m -----END PGP SIGNATURE----- --------------enig6A43F7B00667EC5202B8F076-- From owner-freebsd-mips@FreeBSD.ORG Mon Aug 16 01:19:49 2010 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 488201065672 for ; Mon, 16 Aug 2010 01:19:49 +0000 (UTC) (envelope-from vrtuff@yahoo.com) Received: from web33205.mail.mud.yahoo.com (web33205.mail.mud.yahoo.com [209.191.69.153]) by mx1.freebsd.org (Postfix) with SMTP id 09F8A8FC16 for ; Mon, 16 Aug 2010 01:19:48 +0000 (UTC) Received: (qmail 79748 invoked by uid 60001); 16 Aug 2010 01:19:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1281921588; bh=emmyNZCyuC290TahcZGn9VdSin7QNIqkJEIuX23osUQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=uqAG286eMDFE/q7GDL+hgNjb5CO9zdUfPZEhp3+llwFvHRsUniRQrQAyXnK2wPAFviGTr5V97sMKruQDu1RWX8eUe6BCexKDvkgP/F7zN1InOQgW7Pg9lURIrDdKsYp6Ot1OI408dTgh+Zy4TP1HFo16pUh6iwGi0j/DMRL/dDo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=sXhD3lJO5WnoxAnpmrkG/jiVHsUiTXcW1JHmPb4aclzHPP4ea/KNRv4dctgwPMYBB36JwRBj4HP3ZLKTsYkicZhBrL+q4fKqeL0SoIB1sbNi0HeuGzCVNOHotRhYrO1KjW30WEQ3IE9M6gbUDO61ws6RAnCtoxcdPBmo63rdxjQ=; Message-ID: <284604.78262.qm@web33205.mail.mud.yahoo.com> X-YMail-OSG: qDnW264VM1kT6NSgV7RIzmjBnvq6B5OwsFGBj049BWc7Aoy SX0H7v_jf_Ucc.1PL0S0EhPrpgtKLqlV2WGtRokTcCX5RosUOHwf1.MADeI8 E7LGEDLrYWCFK86c7DDUzN0I9oC7vcA02SyPpdidpkDi7JpYRUyA02srbBOs y7XsXaMfLg1EbCC8XelPpDd7DFhe4eZf2_iGv9u.MGS9Eur1vjKJgIXE2wOD vKYwa5kiMnpUEITwiO163pjoTYv5N.pxxXL5Iqc_QIhk7d0Td1U2YnwhxeoR 1J.sQMkFF0l96BvHap4V26YhnDCSADF0d1YBCzz3GhIASIoPwVfrVkYq6AHl orUdINA70JLjFZZY8aCR8r94QTYHE Received: from [24.189.140.45] by web33205.mail.mud.yahoo.com via HTTP; Sun, 15 Aug 2010 18:19:47 PDT X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950 References: <677389.94707.qm@web33207.mail.mud.yahoo.com> <746AF81F-05D4-400A-842C-75B3346E915E@gmail.com> <40010.49671.qm@web33207.mail.mud.yahoo.com> <46331CC2-D733-4669-9993-9502124EE26F@gmail.com> Date: Sun, 15 Aug 2010 18:19:47 -0700 (PDT) From: Youri Adonis To: Luiz Otavio O Souza In-Reply-To: <46331CC2-D733-4669-9993-9502124EE26F@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-mips@freebsd.org Subject: Reporting success with FreeBSD on Netgear WNDR3700 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, 16 Aug 2010 01:19:49 -0000 Hello Luiz, Booting over nfs would be ideal Now, I can get both interfaces up though with still the wrong mac address arge0=0x0e arge1=0x22 Regards, Youri ----- Original Message ---- From: Luiz Otavio O Souza To: Youri Adonis Cc: freebsd-mips@freebsd.org Sent: Fri, August 13, 2010 9:19:54 AM Subject: Re: Reporting success with FreeBSD on Netgear WNDR3700 Youri, The phy mask 0xa0 is the same as (0x80 | 0x20) and this is a multi-phy setting, you'll get better media status when using only one phy, can you try it with 0x20 ? (that's probably the correct one). The MAC address comes from bootloader (as a command line arg or environment variable), you have to find out what is the method used for your router. If the RTL switch is supported as a basic/generic PHY (like ukphy), you can try the arge0 with a multi-phy mask like 0x0f (or 0x1f) and check if something comes up. Now you can boot it over nfs :) Luiz On Aug 12, 2010, at 2:22 PM, Youri Adonis wrote: > Luiz. > > I can only get arge1 detected with 0xa0 with a bogus MAC address, not the > actual one. Nothing came up for arge0. > Flash is being ack'd as well > > > Thanks > Youri > > > > See below dmesg: > > ************************************************************** > > Starting kernel ... > > platform frequency: 680000000 > arguments: > a0 = 00000006 > a1 = a3f5ffb0 > a2 = a3f60450 > a3 = 00000008 > 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-2010 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 9.0-CURRENT #61: Thu Aug 12 16:59:08 UTC 2010 > >root@hollu.lan:/usr/wndr3700-current-obj/mips.mips/usr/src/freebsd-current/src/sys/WNDR3700 >0 > mips > real memory = 67108864 (65536K bytes) > avail memory = 59379712 (56MB) > nexus0: > clock0: on nexus0 > clock0: [FILTER] > Timecounter "MIPS32" frequency 340000000 Hz quality 800 > Event timer "MIPS32" frequency 340000000 Hz quality 800 > apb0 at mem 0x18000000-0x18ffffff irq 4 on nexus0 > apb0: [FILTER] > uart0: <16550 or compatible> on apb0 > uart0: [FILTER] > uart0: console (115200,n,8,1) > ohci0: on apb0 > ohci0: [ITHREAD] > usbus0 on ohci0 > ehci0: at mem 0x1b000000-0x1bffffff irq >1 > > on nexus0 > ehci0: [ITHREAD] > usbus1: set host controller mode > usbus1: EHCI version 1.0 > usbus1: set host controller mode > usbus1: on ehci0 > arge0: at mem >0xb9000000-0xb9000fff > > irq 2 on nexus0 > arge0: No PHY specified, using mask 16 > arge0: MII without any phy! > device_attach: arge0 attach returned 6 > arge1: at mem >0xba000000-0xba000fff > > irq 3 on nexus0 > arge1: Ethernet address: 62:73:64:9b:19:68 > arge1: [FILTER+ITHREAD] > spi0: at mem 0x1f000000-0x1f00000f on nexus0 > spibus0: on spi0 > mx25l0: at cs 0 on spibus0 > mx25l0: mx25ll64, sector 65536 bytes, 128 sectors > ar71xx_wdog0: on nexus0 > cryptosoft0: on nexus0 > Starting kernel event timers: MIPS32 @ 2000Hz, NONE @ 0Hz > Timecounters tick every 1.000 msec > IPsec: Initialized Security Association Processing. > ipfw2 initialized, divert enabled, nat loadable, rule-based forwarding enabled, > > default to accept, logging disabled > DUMMYNET 0 with IPv6 initialized (100409) > load_dn_sched dn_sched FIFO loaded > load_dn_sched dn_sched PRIO loaded > load_dn_sched dn_sched QFQ loaded > load_dn_sched dn_sched RR loaded > load_dn_sched dn_sched WF2Q+ loaded > usbus0: 12Mbps Full Speed USB v1.0 > usbus1: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > Root mount waiting for: usbus1 usbus0 > uhub0: 2 ports with 2 removable, self powered > uhub1: 2 ports with 2 removable, self powered > Trying to mount root from ufs:/dev/da0s1 > ROOT MOUNT ERROR: > If you have invalid mount options, reboot, and first try the following from > the loader prompt: > > set vfs.root.mountfrom.options=rw > > and then remove invalid mount options from /etc/fstab. > > Loader variables: > vfs.root.mountfrom= > vfs.root.mountfrom.options= > > Manual root filesystem specification: > : Mount using filesystem > eg. zfs:tank > eg. ufs:/dev/da0s1a > eg. cd9660:/dev/acd0 > This is equivalent to: mount -t cd9660 /dev/acd0 / > > ? List valid disk boot devices > Abort manual input > > mountroot> > > From owner-freebsd-mips@FreeBSD.ORG Mon Aug 16 01:23:46 2010 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 C52781065696 for ; Mon, 16 Aug 2010 01:23:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4AF208FC1A for ; Mon, 16 Aug 2010 01:23:45 +0000 (UTC) Received: by ewy26 with SMTP id 26so2508217ewy.13 for ; Sun, 15 Aug 2010 18:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=h9JfGRGcu+jP26cavTIbiyXs+ooqRxcPS7duTKG+Vek=; b=HSI5jz/ZIECgAzj6f7+3/pJwLTqOyVIreiGsg1pSeyRzjJOxkre6UB5PYS9SGXoS1Q XhpKLL5qAkPKkrO5Mini5eRTszNSOBnOOI9Ix78NClEyRdBZVZHVr97ZekMCEiA8h09P xdFL9L5O2PmZTwhANW7A4SLNUCqTzAh+psIVs= 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 :content-transfer-encoding; b=jhAFAwlg7i65USe4JaMDCVLqoCfb6Ya1IWlTykDJZWZtwkzwzlzW6jb0QFyPnifWFL jeK6HD8BLapgVi1mGwCqxcnC2Sjkou2uZ4cyh1fQRxpeh3/0Qs7bNEv+M2K1oPTBzMkb l/YiYxWF0z5J3kEc35wQB0bUYETDkEKo8dl1U= MIME-Version: 1.0 Received: by 10.213.19.74 with SMTP id z10mr4337587eba.37.1281921825113; Sun, 15 Aug 2010 18:23:45 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.213.108.205 with HTTP; Sun, 15 Aug 2010 18:23:45 -0700 (PDT) In-Reply-To: <746531.909.qm@web33203.mail.mud.yahoo.com> References: <677389.94707.qm@web33207.mail.mud.yahoo.com> <746531.909.qm@web33203.mail.mud.yahoo.com> Date: Mon, 16 Aug 2010 09:23:45 +0800 X-Google-Sender-Auth: UjnAkUjgIFBXpKZCB_LDZ-X1ITQ Message-ID: From: Adrian Chadd To: Youri Adonis Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: Reporting success with FreeBSD on Netgear WNDR3700 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, 16 Aug 2010 01:23:46 -0000 Do you have a wiki.freebsd.org account? adrian On 13 August 2010 01:12, Youri Adonis wrote: > Adrian, > I will post a quick howto soon > > Thanks > Youri > > > ----- Original Message ---- > From: Adrian Chadd > To: false > Cc: freebsd-mips@freebsd.org > Sent: Thu, August 12, 2010 8:05:20 AM > Subject: Re: Reporting success with FreeBSD on Netgear WNDR3700 > > Thats great! > > Would you be able to put together a kernel config file and a short > description of how you got it that far? > > > adrian > > On 12 August 2010 11:21, false wrote: >> In my search to run pf from a consumer device. >> It is closely related to RB450 >> >> full dmesg: >> >> ************************************************************ >> >> Starting kernel ... >> >> platform frequency: 680000000 >> arguments: >> =A0a0 =3D 00080410 >> =A0a1 =3D 804448ac >> =A0a2 =3D 00000010 >> =A0a3 =3D 804b2180 >> Cache info: >> =A0picache_stride =A0 =A0=3D 4096 >> =A0picache_loopcount =3D 16 >> =A0pdcache_stride =A0 =A0=3D 4096 >> =A0pdcache_loopcount =3D 8 >> cpu0: MIPS Technologies processor v116.147 >> =A0MMU: Standard TLB, 16 entries >> =A0L1 i-cache: 4 ways of 512 sets, 32 bytes per line >> =A0L1 d-cache: 4 ways of 256 sets, 32 bytes per line >> =A0Config1=3D0x9ee3519e >> =A0Config3=3D0x20 >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2010 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >> =A0 =A0 =A0 =A0The Regents of the University of California. All rights r= eserved. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 9.0-CURRENT #16: Wed Aug 11 06:27:58 UTC 2010 >> >> root@hollu.lan:/usr/wndr3700-current-obj/mips.mips/usr/src/freebsd-curre= nt/src/sys/WNDR3700 >>0 >> =A0mips >> real memory =A0=3D 67108864 (65536K bytes) >> avail memory =3D 59437056 (56MB) >> nexus0: >> Either maddr or msize hint is missing for apb0 >> Either maddr or msize hint is missing for pcib0 >> clock0: on nexus0 >> clock0: [FILTER] >> Timecounter "MIPS32" frequency 340000000 Hz quality 800 >> Event timer "MIPS32" frequency 340000000 Hz quality 800 >> apb0 at irq 4 on nexus0 >> apb0: [FILTER] >> uart0: <16550 or compatible> on apb0 >> uart0: [FILTER] >> uart0: console (115200,n,8,1) >> ohci0: on apb0 >> ohci0: [ITHREAD] >> usbus0 on ohci0 >> ehci0: at mem 0x1b000000-0x1bffff= ff irq >>3 >> on nexus0 >> ehci0: [ITHREAD] >> usbus1: set host controller mode >> usbus1: EHCI version 1.0 >> usbus1: set host controller mode >> usbus1: on ehci0 >> pcib0 at irq 0 on nexus0 >> pcib0: [FILTER] >> pci0: on pcib0 >> pci0: at device 0.0 (no driver attached) >> pci0: at device 17.0 (no driver attached) >> pci0: at device 18.0 (no driver attached) >> spi0: at mem 0x1f000000-0x1f00000f on nexus0 >> spibus0: on spi0 >> ar71xx_wdog0: on nexus0 >> cryptosoft0: on nexus0 >> Starting kernel event timers: MIPS32 @ 2000Hz, NONE @ 0Hz >> Timecounters tick every 1.000 msec >> IPsec: Initialized Security Association Processing. >> ipfw2 initialized, divert enabled, nat loadable, rule-based forwarding > enabled, >> default to accept, logging disabled >> DUMMYNET 0 with IPv6 initialized (100409) >> load_dn_sched dn_sched RR loaded >> load_dn_sched dn_sched WF2Q+ loaded >> load_dn_sched dn_sched FIFO loaded >> load_dn_sched dn_sched PRIO loaded >> load_dn_sched dn_sched QFQ loaded >> usbus0: 12Mbps Full Speed USB v1.0 >> usbus1: 480Mbps High Speed USB v2.0 >> ugen0.1: at usbus0 >> uhub0: on usbu= s0 >> ugen1.1: at usbus1 >> uhub1: on usbu= s1 >> uhub0: 2 ports with 2 removable, self powered >> uhub1: 2 ports with 2 removable, self powered >> Trying to mount root from ufs:da0s1 >> ROOT MOUNT ERROR: >> If you have invalid mount options, reboot, and first try the following f= rom >> the loader prompt: >> >> =A0 =A0 set vfs.root.mountfrom.options=3Drw >> >> and then remove invalid mount options from /etc/fstab. >> >> Loader variables: >> vfs.root.mountfrom=3D >> vfs.root.mountfrom.options=3D >> >> Manual root filesystem specification: >> =A0: =A0Mount using filesystem >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 eg. zfs:tank >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 eg. ufs:/dev/da0s1a >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 eg. cd9660:/dev/acd0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 This is equivalent to: mount= -t cd9660 /dev/acd0 / >> >> =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0List valid disk boot devices >> =A0 =A0 =A0 =A0 Abort manual input >> >> mountroot> >> >> ************************************************** >> >> Hopefully the board will help with getting the switch/ethernet/wifi work= ing >> >> Thanks >> YA >> >> >> >> _______________________________________________ >> 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 Mon Aug 16 01:26:08 2010 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 089C61065672 for ; Mon, 16 Aug 2010 01:26:08 +0000 (UTC) (envelope-from vrtuff@yahoo.com) Received: from web33203.mail.mud.yahoo.com (web33203.mail.mud.yahoo.com [209.191.69.151]) by mx1.freebsd.org (Postfix) with SMTP id BBF728FC17 for ; Mon, 16 Aug 2010 01:26:06 +0000 (UTC) Received: (qmail 64860 invoked by uid 60001); 16 Aug 2010 01:26:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1281921966; bh=6aXWpvoAztq8RwiuDFnE1suH4ag86lpem48bPdqhiRA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=izbJrwGK+8wmjnk7UN/taz/E5GC8fQIVMlxdgfk6kdLdLPFu/1WjRyFSBBbbbtnaw/K9E6tE0NU1focAKb4KOajtufAiyGgNoFU4xe/y8Tj83f66n+9vtS4anyRe68CnTCzkPfmOth9/2W9GM5Ipwpl90iekFzuRX3t5QjmTBLw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=jsQWDyCLRM4Cy6RAGRrxEU2ieTIQ4tBT2exJxNDKUlT8P2Dw1CrxCM66mYDRkck8Hcc6yHX+82Ly1vilImJn4qpNzsP45HQU4lpX7JAQL1k2OlrJ5VGAVlP/AKWEva8MuzURYeiMaHGpMr9rTu6+pmzwDDgjjUlWER7Y4bYA4xo=; Message-ID: <324020.60057.qm@web33203.mail.mud.yahoo.com> X-YMail-OSG: lFANEN4VM1maMeeU0VDQyPpFsr_mYIkAte4OfvAfrPnrVyc pvgMy0iYgHMiCoMyKLekjzln1DbPsuBFw8GOJMWvuI1zoZM4otKkG.XFeh7h 927.T2U9c02D05v5FmP88X.mLqqwfpTW9r4PdY2ejXPbwFSsZE7oD0YVyQSA jv57qtQObUKPZra1Sp8BbDkcL..4MTvmtbNGjnWxyghN3AuWPZa3cVZnDZvJ 9IwYiiM0ke1iaqmJCS.L7B4gSithdTvhjM4Q3erhBaB7HmdSW4VQpKDsU34T 1lmUU03M92fQDlkW7WIaRyI2jLDlkoF.vs1MGmdec9cj0UbkyW85OrNr4_.p 5ZGceNOyQjcTL2upWHwcBYb1bed7T Received: from [24.189.140.45] by web33203.mail.mud.yahoo.com via HTTP; Sun, 15 Aug 2010 18:26:06 PDT X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950 References: <677389.94707.qm@web33207.mail.mud.yahoo.com> <746531.909.qm@web33203.mail.mud.yahoo.com> Date: Sun, 15 Aug 2010 18:26:06 -0700 (PDT) From: Youri Adonis To: Adrian Chadd In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-mips@freebsd.org Subject: Re: Reporting success with FreeBSD on Netgear WNDR3700 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, 16 Aug 2010 01:26:08 -0000 No, I do not ----- Original Message ---- From: Adrian Chadd To: Youri Adonis Cc: freebsd-mips@freebsd.org Sent: Sun, August 15, 2010 9:23:45 PM Subject: Re: Reporting success with FreeBSD on Netgear WNDR3700 Do you have a wiki.freebsd.org account? adrian On 13 August 2010 01:12, Youri Adonis wrote: > Adrian, > I will post a quick howto soon > > Thanks > Youri > > > ----- Original Message ---- > From: Adrian Chadd > To: false > Cc: freebsd-mips@freebsd.org > Sent: Thu, August 12, 2010 8:05:20 AM > Subject: Re: Reporting success with FreeBSD on Netgear WNDR3700 > > Thats great! > > Would you be able to put together a kernel config file and a short > description of how you got it that far? > > > adrian > > On 12 August 2010 11:21, false wrote: >> In my search to run pf from a consumer device. >> It is closely related to RB450 >> >> full dmesg: >> >> ************************************************************ >> >> Starting kernel ... >> >> platform frequency: 680000000 >> arguments: >> a0 = 00080410 >> a1 = 804448ac >> a2 = 00000010 >> a3 = 804b2180 >> 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-2010 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 9.0-CURRENT #16: Wed Aug 11 06:27:58 UTC 2010 >> >>root@hollu.lan:/usr/wndr3700-current-obj/mips.mips/usr/src/freebsd-current/src/sys/WNDR3700 >>0 >>0 >> mips >> real memory = 67108864 (65536K bytes) >> avail memory = 59437056 (56MB) >> nexus0: >> Either maddr or msize hint is missing for apb0 >> Either maddr or msize hint is missing for pcib0 >> clock0: on nexus0 >> clock0: [FILTER] >> Timecounter "MIPS32" frequency 340000000 Hz quality 800 >> Event timer "MIPS32" frequency 340000000 Hz quality 800 >> apb0 at irq 4 on nexus0 >> apb0: [FILTER] >> uart0: <16550 or compatible> on apb0 >> uart0: [FILTER] >> uart0: console (115200,n,8,1) >> ohci0: on apb0 >> ohci0: [ITHREAD] >> usbus0 on ohci0 >> ehci0: at mem 0x1b000000-0x1bffffff irq >>3 >> on nexus0 >> ehci0: [ITHREAD] >> usbus1: set host controller mode >> usbus1: EHCI version 1.0 >> usbus1: set host controller mode >> usbus1: on ehci0 >> pcib0 at irq 0 on nexus0 >> pcib0: [FILTER] >> pci0: on pcib0 >> pci0: at device 0.0 (no driver attached) >> pci0: at device 17.0 (no driver attached) >> pci0: at device 18.0 (no driver attached) >> spi0: at mem 0x1f000000-0x1f00000f on nexus0 >> spibus0: on spi0 >> ar71xx_wdog0: on nexus0 >> cryptosoft0: on nexus0 >> Starting kernel event timers: MIPS32 @ 2000Hz, NONE @ 0Hz >> Timecounters tick every 1.000 msec >> IPsec: Initialized Security Association Processing. >> ipfw2 initialized, divert enabled, nat loadable, rule-based forwarding > enabled, >> default to accept, logging disabled >> DUMMYNET 0 with IPv6 initialized (100409) >> load_dn_sched dn_sched RR loaded >> load_dn_sched dn_sched WF2Q+ loaded >> load_dn_sched dn_sched FIFO loaded >> load_dn_sched dn_sched PRIO loaded >> load_dn_sched dn_sched QFQ loaded >> usbus0: 12Mbps Full Speed USB v1.0 >> usbus1: 480Mbps High Speed USB v2.0 >> ugen0.1: at usbus0 >> uhub0: on usbus0 >> ugen1.1: at usbus1 >> uhub1: on usbus1 >> uhub0: 2 ports with 2 removable, self powered >> uhub1: 2 ports with 2 removable, self powered >> Trying to mount root from ufs:da0s1 >> ROOT MOUNT ERROR: >> If you have invalid mount options, reboot, and first try the following from >> the loader prompt: >> >> set vfs.root.mountfrom.options=rw >> >> and then remove invalid mount options from /etc/fstab. >> >> Loader variables: >> vfs.root.mountfrom= >> vfs.root.mountfrom.options= >> >> Manual root filesystem specification: >> : Mount using filesystem >> eg. zfs:tank >> eg. ufs:/dev/da0s1a >> eg. cd9660:/dev/acd0 >> This is equivalent to: mount -t cd9660 /dev/acd0 / >> >> ? List valid disk boot devices >> Abort manual input >> >> mountroot> >> >> ************************************************** >> >> Hopefully the board will help with getting the switch/ethernet/wifi working >> >> Thanks >> YA >> >> >> >> _______________________________________________ >> 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 Mon Aug 16 04:56:25 2010 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 35A6010656A6 for ; Mon, 16 Aug 2010 04:56:25 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id BFF048FC15 for ; Mon, 16 Aug 2010 04:56:24 +0000 (UTC) Received: by wwb24 with SMTP id 24so2861226wwb.31 for ; Sun, 15 Aug 2010 21:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/nTVUUT2hO8jjv8pQlGyxWbuiau6A9ORljkU6lL5V1s=; b=wJcfZPYw4LS7q1wfZnzalVBiMV/ycBtia97RHYdVpv+hH63j8hH9XHbtkxWyaXGuNU gqksQiuK1uaqayjtdZrUfKy34Jkz0n4ILTqA768JP9+RwBpxACKgIbsXMfcO+4Ssv1Ae cLthP0se91/BZtipVeuXKQbmI/+Qxv9VIP0Qk= 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:content-transfer-encoding; b=NLLtLGwnCNwMXEWp04Yp8J1B3edaCEIHlovDOo0+Oyi3+GtvFp3IboCtbsKjAsq6Ym xQAec57qHoPwPBx30i0aQ8rm42oaFUOs6Aj/kA+s7hJs1Fy/zGiVwEvrmN0IUAP9jXmT KH79oW1Yh5Hr6vUejxOtGQt1r587xHXvPV3aM= MIME-Version: 1.0 Received: by 10.216.181.6 with SMTP id k6mr2139186wem.42.1281934583505; Sun, 15 Aug 2010 21:56:23 -0700 (PDT) Received: by 10.216.160.10 with HTTP; Sun, 15 Aug 2010 21:56:23 -0700 (PDT) In-Reply-To: <4C67704C.70609@gmail.com> References: <4C67704C.70609@gmail.com> Date: Mon, 16 Aug 2010 10:26:23 +0530 Message-ID: From: "Jayachandran C." To: =?ISO-8859-7?Q?Vladimir_=27=F6=2Dcoder=2Fphcoder=27_Serbinenko?= Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: soc-status@freebsd.org, freebsd-mips@freebsd.org Subject: Re: Yeeloong port is functional 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, 16 Aug 2010 04:56:25 -0000 2010/8/15 Vladimir '=F6-coder/phcoder' Serbinenko : > Hello, all. Despite the hardware-inflicted setbacks (my yeeloong fried > right before the mid-term), Yeeloong port is now functional. Both serial > and local (keyboard + screen) work. Real Time Clock is working. Internet > is working. USB controller on PCI is working. Userspace is working. > > Remaining issues: > 1) Disabled cache. The reason are peculiar properties of L2 cache. I > actualy have the code to fix it but I'm not sure to hit GSoC deadline > about it. > 2) Only 256 MiB of RAM are supported. Should be easy to fix once 64-bit > parts are in. The 32bit kernel should support up to 4GB physical memory (we use 32bit physical address). More than 4GB is not still supported in 64 bit either. I am working on adding 64-bit page table entries, which will add this part. The only advantage on 64bit now is that we use XKPHYS to access memory above 512MB. > 3) No Geode support. So no IDE, 2 of 3 USB ports or audio. These > components are actualy pretty standard, one has only to add support for > MSRs. > 4) No power management. Wasn't planned to have it implemented during GSoC= . > > Not tested: > 1) Touchpad. Never connected to my laptop during developpement because > to use it one has to close front lid and so cut from serial connector > > 3rd party developpements =A0which will improve Yeeloong support: > 1) X.org support. The required card is already supported in latest > x.org. So it's a question of importing last X.org and testing it. > 2) 64-bit developpement. Currently if I compile 64-bit kernel it > contains only 64-bit imgact. Imposing only 64-bit binaries is suboptimal. Let me know if you find significant performance problems in the 64 bit code. I still haven't really tested the 64bit, so any reports will be useful JC. From owner-freebsd-mips@FreeBSD.ORG Mon Aug 16 05:02:12 2010 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 E1F65106566B for ; Mon, 16 Aug 2010 05:02:12 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 775FE8FC0C for ; Mon, 16 Aug 2010 05:02:11 +0000 (UTC) Received: by wwb24 with SMTP id 24so2865330wwb.31 for ; Sun, 15 Aug 2010 22:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/nTVUUT2hO8jjv8pQlGyxWbuiau6A9ORljkU6lL5V1s=; b=wJcfZPYw4LS7q1wfZnzalVBiMV/ycBtia97RHYdVpv+hH63j8hH9XHbtkxWyaXGuNU gqksQiuK1uaqayjtdZrUfKy34Jkz0n4ILTqA768JP9+RwBpxACKgIbsXMfcO+4Ssv1Ae cLthP0se91/BZtipVeuXKQbmI/+Qxv9VIP0Qk= 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:content-transfer-encoding; b=NLLtLGwnCNwMXEWp04Yp8J1B3edaCEIHlovDOo0+Oyi3+GtvFp3IboCtbsKjAsq6Ym xQAec57qHoPwPBx30i0aQ8rm42oaFUOs6Aj/kA+s7hJs1Fy/zGiVwEvrmN0IUAP9jXmT KH79oW1Yh5Hr6vUejxOtGQt1r587xHXvPV3aM= MIME-Version: 1.0 Received: by 10.216.181.6 with SMTP id k6mr2139186wem.42.1281934583505; Sun, 15 Aug 2010 21:56:23 -0700 (PDT) Received: by 10.216.160.10 with HTTP; Sun, 15 Aug 2010 21:56:23 -0700 (PDT) In-Reply-To: <4C67704C.70609@gmail.com> References: <4C67704C.70609@gmail.com> Date: Mon, 16 Aug 2010 10:26:23 +0530 Message-ID: From: "Jayachandran C." To: =?ISO-8859-7?Q?Vladimir_=27=F6=2Dcoder=2Fphcoder=27_Serbinenko?= Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: soc-status@freebsd.org, freebsd-mips@freebsd.org Subject: Re: Yeeloong port is functional 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, 16 Aug 2010 05:02:13 -0000 2010/8/15 Vladimir '=F6-coder/phcoder' Serbinenko : > Hello, all. Despite the hardware-inflicted setbacks (my yeeloong fried > right before the mid-term), Yeeloong port is now functional. Both serial > and local (keyboard + screen) work. Real Time Clock is working. Internet > is working. USB controller on PCI is working. Userspace is working. > > Remaining issues: > 1) Disabled cache. The reason are peculiar properties of L2 cache. I > actualy have the code to fix it but I'm not sure to hit GSoC deadline > about it. > 2) Only 256 MiB of RAM are supported. Should be easy to fix once 64-bit > parts are in. The 32bit kernel should support up to 4GB physical memory (we use 32bit physical address). More than 4GB is not still supported in 64 bit either. I am working on adding 64-bit page table entries, which will add this part. The only advantage on 64bit now is that we use XKPHYS to access memory above 512MB. > 3) No Geode support. So no IDE, 2 of 3 USB ports or audio. These > components are actualy pretty standard, one has only to add support for > MSRs. > 4) No power management. Wasn't planned to have it implemented during GSoC= . > > Not tested: > 1) Touchpad. Never connected to my laptop during developpement because > to use it one has to close front lid and so cut from serial connector > > 3rd party developpements =A0which will improve Yeeloong support: > 1) X.org support. The required card is already supported in latest > x.org. So it's a question of importing last X.org and testing it. > 2) 64-bit developpement. Currently if I compile 64-bit kernel it > contains only 64-bit imgact. Imposing only 64-bit binaries is suboptimal. Let me know if you find significant performance problems in the 64 bit code. I still haven't really tested the 64bit, so any reports will be useful JC. From owner-freebsd-mips@FreeBSD.ORG Mon Aug 16 05:18:05 2010 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 2A6F41065674; Mon, 16 Aug 2010 05:18:05 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8E83D8FC1D; Mon, 16 Aug 2010 05:18:04 +0000 (UTC) Received: by wwb24 with SMTP id 24so2876802wwb.31 for ; Sun, 15 Aug 2010 22:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/nTVUUT2hO8jjv8pQlGyxWbuiau6A9ORljkU6lL5V1s=; b=wJcfZPYw4LS7q1wfZnzalVBiMV/ycBtia97RHYdVpv+hH63j8hH9XHbtkxWyaXGuNU gqksQiuK1uaqayjtdZrUfKy34Jkz0n4ILTqA768JP9+RwBpxACKgIbsXMfcO+4Ssv1Ae cLthP0se91/BZtipVeuXKQbmI/+Qxv9VIP0Qk= 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:content-transfer-encoding; b=NLLtLGwnCNwMXEWp04Yp8J1B3edaCEIHlovDOo0+Oyi3+GtvFp3IboCtbsKjAsq6Ym xQAec57qHoPwPBx30i0aQ8rm42oaFUOs6Aj/kA+s7hJs1Fy/zGiVwEvrmN0IUAP9jXmT KH79oW1Yh5Hr6vUejxOtGQt1r587xHXvPV3aM= MIME-Version: 1.0 Received: by 10.216.181.6 with SMTP id k6mr2139186wem.42.1281934583505; Sun, 15 Aug 2010 21:56:23 -0700 (PDT) Received: by 10.216.160.10 with HTTP; Sun, 15 Aug 2010 21:56:23 -0700 (PDT) In-Reply-To: <4C67704C.70609@gmail.com> References: <4C67704C.70609@gmail.com> Date: Mon, 16 Aug 2010 10:26:23 +0530 Message-ID: From: "Jayachandran C." To: =?ISO-8859-7?Q?Vladimir_=27=F6=2Dcoder=2Fphcoder=27_Serbinenko?= Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: soc-status@freebsd.org, freebsd-mips@freebsd.org Subject: Re: Yeeloong port is functional 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, 16 Aug 2010 05:18:05 -0000 2010/8/15 Vladimir '=F6-coder/phcoder' Serbinenko : > Hello, all. Despite the hardware-inflicted setbacks (my yeeloong fried > right before the mid-term), Yeeloong port is now functional. Both serial > and local (keyboard + screen) work. Real Time Clock is working. Internet > is working. USB controller on PCI is working. Userspace is working. > > Remaining issues: > 1) Disabled cache. The reason are peculiar properties of L2 cache. I > actualy have the code to fix it but I'm not sure to hit GSoC deadline > about it. > 2) Only 256 MiB of RAM are supported. Should be easy to fix once 64-bit > parts are in. The 32bit kernel should support up to 4GB physical memory (we use 32bit physical address). More than 4GB is not still supported in 64 bit either. I am working on adding 64-bit page table entries, which will add this part. The only advantage on 64bit now is that we use XKPHYS to access memory above 512MB. > 3) No Geode support. So no IDE, 2 of 3 USB ports or audio. These > components are actualy pretty standard, one has only to add support for > MSRs. > 4) No power management. Wasn't planned to have it implemented during GSoC= . > > Not tested: > 1) Touchpad. Never connected to my laptop during developpement because > to use it one has to close front lid and so cut from serial connector > > 3rd party developpements =A0which will improve Yeeloong support: > 1) X.org support. The required card is already supported in latest > x.org. So it's a question of importing last X.org and testing it. > 2) 64-bit developpement. Currently if I compile 64-bit kernel it > contains only 64-bit imgact. Imposing only 64-bit binaries is suboptimal. Let me know if you find significant performance problems in the 64 bit code. I still haven't really tested the 64bit, so any reports will be useful JC. From owner-freebsd-mips@FreeBSD.ORG Mon Aug 16 11:07:03 2010 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 BD13410656A5 for ; Mon, 16 Aug 2010 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 90CBD8FC1D for ; Mon, 16 Aug 2010 11:07:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7GB73oM058933 for ; Mon, 16 Aug 2010 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7GB73pj058931 for freebsd-mips@FreeBSD.org; Mon, 16 Aug 2010 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Aug 2010 11:07:03 GMT Message-Id: <201008161107.o7GB73pj058931@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-mips@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-mips@FreeBSD.org 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, 16 Aug 2010 11:07:03 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/147471 mips [headers] [patch] whitespace discrepancy in sys/mips/i 1 problem total. From owner-freebsd-mips@FreeBSD.ORG Mon Aug 16 16:10:03 2010 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 7C7011065695; Mon, 16 Aug 2010 16:10:03 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 865928FC14; Mon, 16 Aug 2010 16:10:02 +0000 (UTC) Received: by wwf26 with SMTP id 26so4521455wwf.1 for ; Mon, 16 Aug 2010 09:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=eoHrN/4V2zJR01g5H569g2nNS1Xn1dhnFJzh1fbnem4=; b=rpMgur0vD0G06Ab0r6i3xur6np5uJ4J3kg+A5H1acAstlsoD8UpPJSr88u4kwrgsCM VjrrWvsty1M6u5p+Ih7q0Y35bEOYzofu8sIuDhrc4d2+DxLBPvVmM20fNt5QmHEXRa/6 TqRfg3duanbRxqNfl7rpy3trMgkZHjWrmjxWA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=mi0BieDZcmTSw6WW47mhINlMpsevYHIT+WFQQqmGFByqVB2dP8D6hX+QLy0li4sWZb UMBcl6vE2q5wAE4Hu8z1qnpWoedfbuQ1obWdCRzmsgWG8nZcy3hBRv+UM0oedHQvBQ9m 3y6//VsriDm4+nxkNUdiBDQnU2CW3hn1hWKFQ= MIME-Version: 1.0 Received: by 10.216.188.81 with SMTP id z59mr4522960wem.106.1281975000944; Mon, 16 Aug 2010 09:10:00 -0700 (PDT) Received: by 10.216.160.10 with HTTP; Mon, 16 Aug 2010 09:10:00 -0700 (PDT) Date: Mon, 16 Aug 2010 21:40:00 +0530 Message-ID: From: "Jayachandran C." To: Juli Mallett , "M. Warner Losh" , Alan Cox , Randall Stewart , Neel Natu Content-Type: multipart/mixed; boundary=0016367f9f6a8ae7a3048df31007 Cc: freebsd-mips@freebsd.org Subject: [PATCH] Move from kseg0 to xkphys for 64 bit. 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, 16 Aug 2010 16:10:03 -0000 --0016367f9f6a8ae7a3048df31007 Content-Type: text/plain; charset=ISO-8859-1 I've attached the changes to move the 64bit port to use 64bit XKPHYS mapping of the physical memory instead of the current KSEG0. With this changes the 64bit port will use just one freelist, and can allocate page table pages from anywhere in the memory. The changes are mainly to introduce macros like MIPS_PHYS_TO_DIRECT(pa), MIPS_DIRECT_TO_PHYS(), which will use KSEG0 in 32 bit compilation and XKPHYS in 64 bit compilation. I also ended up changing the macro based PMAP_LMEM_MAP1(), PMAP_LMEM_MAP2(), PMAP_LMEM_UNMAP() to inline functions. I have also introduced a macro MIPS_DIRECT_MAPPABLE(pa), which will further reduce the cases in which we will need to have a special case for 64 bit compilation. Please let me know your comments. Thanks, JC. --0016367f9f6a8ae7a3048df31007 Content-Type: application/octet-stream; name="64-xkphys.patch" Content-Disposition: attachment; filename="64-xkphys.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gcxihmsd0 SW5kZXg6IHN5cy9taXBzL2luY2x1ZGUvY3B1cmVncy5oCj09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9taXBz L2luY2x1ZGUvY3B1cmVncy5oCShyZXZpc2lvbiAyMTEzMzIpCisrKyBzeXMvbWlwcy9pbmNsdWRl L2NwdXJlZ3MuaAkod29ya2luZyBjb3B5KQpAQCAtNzYsOCArNzYsMTAgQEAKICAqIENhY2hpbmcg b2YgbWFwcGVkIGFkZHJlc3NlcyBpcyBjb250cm9sbGVkIGJ5IGJpdHMgaW4gdGhlIFRMQiBlbnRy eS4KICAqLwogCi0jZGVmaW5lCU1JUFNfS1NFRzBfTEFSR0VTVF9QSFlTICAgICAgICAgKDB4MjAw MDAwMDApCisjZGVmaW5lCU1JUFNfS1NFRzBfTEFSR0VTVF9QSFlTCQkoMHgyMDAwMDAwMCkKICNk ZWZpbmUJTUlQU19QSFlTX01BU0sJCQkoMHgxZmZmZmZmZikKKyNkZWZpbmUJTUlQU19YS1BIWVNf TEFSR0VTVF9QSFlTCSgweDEwMDAwMDAwMDAwKQorI2RlZmluZQlNSVBTX1hQSFlTX01BU0sJCQko MHgwZmZmZmZmZmZmZikKIAogI2lmbmRlZiBMT0NPUkUKICNkZWZpbmUJTUlQU19LVVNFR19TVEFS VAkJMHgwMDAwMDAwMApAQCAtMTA3LDkgKzEwOSw2IEBACiAjZGVmaW5lCU1JUFNfSVNfVkFMSURf UFRSKHgpCQkoTUlQU19JU19LU0VHMF9BRERSKHgpIHx8IFwKIAkJCQkJICAgIE1JUFNfSVNfS1NF RzFfQUREUih4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cHZhIDwgYmFzZSArIHNpemU7IHRtcHZhICs9 IFBBR0VfU0laRSkKIAkJcG1hcF9rcmVtb3ZlKHRtcHZhKTsKIAlrbWVtX2ZyZWUoa2VybmVsX21h cCwgYmFzZSwgc2l6ZSk7Ci19CiAjZW5kaWYKK30KIAogLyoKICAqIHBlcmZvcm0gdGhlIHBtYXAg d29yayBmb3IgbWluY29yZQo= --0016367f9f6a8ae7a3048df31007-- From owner-freebsd-mips@FreeBSD.ORG Tue Aug 17 00:03:56 2010 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 4EAA41065674; Tue, 17 Aug 2010 00:03:56 +0000 (UTC) (envelope-from phcoder@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 D24278FC17; Tue, 17 Aug 2010 00:03:54 +0000 (UTC) Received: by bwz20 with SMTP id 20so2778615bwz.13 for ; Mon, 16 Aug 2010 17:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=+F/C6rEzA7EYeKmuyL+XeDTutgQw1e7/IVOGHACgYj0=; b=nnlV9sporNpKK+ha7QCaoWjGtOoRcNcLa6d1f5vBjEl8dS67hRqqaE20QmfUPdvcgH sOZH8xzvY2yNtaZJ9wMDEzBHP46wBKmY9x9hotoe7Cph20yrZjIBn1T87Z+GkkI2npiV MOZwdehEP4lvpUJDfd8X3uP0ef/7L/V2VMcLE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=xEiIq1SfR6qvkDmpXWKToXkMFGyDnLx3H7OsOSVjh22bY7Jmx+z6vbfQfNECb/vjry NiM68ZSjoOhXLFMBkfvAKTCQ9f+Wtq7Uja6dZbd1v4PO+7Zi9CYfKS40/0daoTIDd5UT QBpq+9UyiXUj8AV2JKsu/XVq21eGwHhHfLeIE= Received: by 10.204.81.39 with SMTP id v39mr3898486bkk.149.1282003433387; Mon, 16 Aug 2010 17:03:53 -0700 (PDT) Received: from debian.bg45.phnet (120-59.203-62.cust.bluewin.ch [62.203.59.120]) by mx.google.com with ESMTPS id y2sm4729888bkx.8.2010.08.16.17.03.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Aug 2010 17:03:51 -0700 (PDT) Message-ID: <4C69D1D5.809@gmail.com> Date: Tue, 17 Aug 2010 02:03:33 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: soc-status@freebsd.org, freebsd-mips@freebsd.org References: <4C67704C.70609@gmail.com> <4C6861B4.6020102@gmail.com> In-Reply-To: <4C6861B4.6020102@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig7C782B83CD85D5ED0E2C2328" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Yeeloong port is functional 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: Tue, 17 Aug 2010 00:03:56 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7C782B83CD85D5ED0E2C2328 Content-Type: multipart/mixed; boundary="------------040307070901010105060107" This is a multi-part message in MIME format. --------------040307070901010105060107 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/15/2010 11:52 PM, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote:= > Hello, all. Some cleanups and I managed to enable cache on kseg0. > Additionally it has some basic Geode support. > I'm looking forward to split it in smaller patches in order to get it > into HEAD. Also I'll fill the blanks (like power management) as time > permits. > =20 And another update. Now Geode USB is fully functional. Few other issues are fixed. Unfortunately I couldn't find a way to fix cache completely. So I decided to change page size to 16KB to make tag bits of VA to be identical to PA effectively transforming VIPT cache into PIPT which is easier to handle. It's not functional yet but it will be soon. Even though the GSoC is nearly over I'll continue to work on yeeloong to fix remaining issues. Sorry for delays caused by hw malfunctions. And thanks to everybody who supported me, especially Juli Mallett, Olexandr Tymoshenko and M. Warner Losh > On 08/15/2010 06:42 AM, Vladimir '=CF=86-coder/phcoder' Serbinenko wrot= e: > =20 >> Hello, all. Despite the hardware-inflicted setbacks (my yeeloong fried= >> right before the mid-term), Yeeloong port is now functional. Both seri= al >> and local (keyboard + screen) work. Real Time Clock is working. Intern= et >> is working. USB controller on PCI is working. Userspace is working. >> >> Remaining issues: >> 1) Disabled cache. The reason are peculiar properties of L2 cache. I >> actualy have the code to fix it but I'm not sure to hit GSoC deadline >> about it. >> 2) Only 256 MiB of RAM are supported. Should be easy to fix once 64-bi= t >> parts are in. >> 3) No Geode support. So no IDE, 2 of 3 USB ports or audio. These >> components are actualy pretty standard, one has only to add support fo= r >> MSRs. >> 4) No power management. Wasn't planned to have it implemented during G= SoC. >> >> Not tested: >> 1) Touchpad. Never connected to my laptop during developpement because= >> to use it one has to close front lid and so cut from serial connector >> >> 3rd party developpements which will improve Yeeloong support: >> 1) X.org support. The required card is already supported in latest >> x.org. So it's a question of importing last X.org and testing it. >> 2) 64-bit developpement. Currently if I compile 64-bit kernel it >> contains only 64-bit imgact. Imposing only 64-bit binaries is suboptim= al. >> >> =20 >> =20 > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------040307070901010105060107-- --------------enig7C782B83CD85D5ED0E2C2328 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkxp0d4ACgkQNak7dOguQgklmwD/TxdD13GiWJylX6znbzrPGL4Z Qm49qunLsZuohXI8oEkA/1lr9aWaHPvcwpyfnyH6LMduCaLOqgoaYUiv1ToitKSa =1N7P -----END PGP SIGNATURE----- --------------enig7C782B83CD85D5ED0E2C2328-- From owner-freebsd-mips@FreeBSD.ORG Tue Aug 17 16:21:09 2010 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 20A6C10656AE for ; Tue, 17 Aug 2010 16:21:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id D51D18FC19 for ; Tue, 17 Aug 2010 16:21:07 +0000 (UTC) Received: by gxk24 with SMTP id 24so3220259gxk.13 for ; Tue, 17 Aug 2010 09:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=YbUL5vCRaZUc+p63aO/CGj3heeILONBDCVe7uq1FH4I=; b=kbAt0N6xSnyEHWuf984+sHaF8C8uRwCrzpUoOJrYDW4chS2mWzVRgMc+pws3tJawmE sMXQaKCddXUbA95PD69/1XzO6Ybh/3Ub9JOI0/BLOSACExBXV1mlOsIHfm0thxJhNIm5 nhYUcGfXbrKgJ5YBY9xZ1rH1UiptiMpBdHO3U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NXpsd7pbHlZa9TgONqa1mf9OwMd4WH1RMg6AF5xcfe224eeG937OtVkw0vNuk1GZ3V cyzTu73tOPP8OGx1BYgU18+zMYHoJMNNoQr/Cu+0zqzMK7RWVG75wux9ca78tEQGklE8 3B/qN16QuOPqrRYLRyeHTScfPd37I98pmyx2I= MIME-Version: 1.0 Received: by 10.100.10.9 with SMTP id 9mr2904367anj.110.1282062066872; Tue, 17 Aug 2010 09:21:06 -0700 (PDT) Received: by 10.101.90.18 with HTTP; Tue, 17 Aug 2010 09:21:06 -0700 (PDT) Date: Wed, 18 Aug 2010 00:21:06 +0800 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: WIP: AR91XX (and AR724X, maybe) support 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: Tue, 17 Aug 2010 16:21:09 -0000 Hi everyone, I've purchased a TP-LINK TL-WR1043ND which has an AR9132 SoC (+ on-chip AR9100 11n) in it. I've begun porting AR91xx and AR724X support over from Linux. Sans USB support, the kernel boots to mountroot>. This (currently GPL-tainted, so don't commit it!) patch is against -head: http://people.freebsd.org/~adrian/rspro/ar91xx-support.1.diff The patch introduces a set of CPU operations which implement the main per-chip differences. The dmesg (without USB; so it doesn't panic early in startup): http://people.freebsd.org/~adrian/rspro/dmesg-TL-WR1943ND.txt USB panics shortly after probe: ehci0: at mem 0x1b000000-0x1bffffff irq 1 on nexus0 ehci0: [ITHREAD] usbus0: set host controller mode usbus0: EHCI version 0.42 Trap cause = 5 (address error (store) - kernel mode) [ thread pid 0 tid 100000 ] Stopped at generic_bs_w_4+0x4: sw a3,0(a1) I've tested this patch on my AR7161 (in the routerstation pro) and have booted it to multi-user mode. Platform stuff that needs doing: * Need to finish porting the AR91xx related stubs * Need to finish porting (but not test :/) the AR724X related stubs * The USB code panics, figure out what is missing there * Add stubs for USB DDR flushing (which aren't used at the moment, but I'll get to it) * Add a stub to control the peripherals currently controlled via GPIO pins. At least USB differs between the two. * Modify if_arge to use the cpu op struct to get and set the pll * Add in the WMAC specifics for the AR91xx * If I can find an AR724x, find the PCIe specifics General stuff: * Go digging through the rest of the Linux headers and figure out what other differences there are; implement those * Finish rewriting the GPL chunks that are left Board stuff: * Find the flash device details; modify the flash driver to support that * Find out why arge0/arge1 aren't being correctly probed (arge0 has no PHY; arge1 has a bogus MAC) and rectify the situation enough so one of the interfaces is usable Adrian From owner-freebsd-mips@FreeBSD.ORG Tue Aug 17 16:49:15 2010 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 AFE561065679 for ; Tue, 17 Aug 2010 16:49:15 +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 528788FC1F for ; Tue, 17 Aug 2010 16:49:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7HGgKmg069108; Tue, 17 Aug 2010 10:42:20 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 17 Aug 2010 11:42:53 -0600 (MDT) Message-Id: <20100817.114253.59640143227151420.imp@bsdimp.com> To: adrian.chadd@gmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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: Tue, 17 Aug 2010 16:49:15 -0000 In message: Adrian Chadd writes: : Hi everyone, : : I've purchased a TP-LINK TL-WR1043ND which has an AR9132 SoC (+ : on-chip AR9100 11n) in it. Cool! I've got a AR91xx-based wireless N router (D-LINK DIR-625 rev C1). I too tried to do some porting, but discovered that the netboot functionality had been removed from the roms. How are you loading your kernel? Warner : I've begun porting AR91xx and AR724X support over from Linux. Sans USB : support, the kernel boots to mountroot>. : : This (currently GPL-tainted, so don't commit it!) patch is against -head: : : http://people.freebsd.org/~adrian/rspro/ar91xx-support.1.diff : : The patch introduces a set of CPU operations which implement the main : per-chip differences. : : The dmesg (without USB; so it doesn't panic early in startup): : : http://people.freebsd.org/~adrian/rspro/dmesg-TL-WR1943ND.txt : : USB panics shortly after probe: : : ehci0: at mem : 0x1b000000-0x1bffffff irq 1 on nexus0 : ehci0: [ITHREAD] : usbus0: set host controller mode : usbus0: EHCI version 0.42 : Trap cause = 5 (address error (store) - kernel mode) : [ thread pid 0 tid 100000 ] : Stopped at generic_bs_w_4+0x4: sw a3,0(a1) : : I've tested this patch on my AR7161 (in the routerstation pro) and : have booted it to multi-user mode. : : Platform stuff that needs doing: : : * Need to finish porting the AR91xx related stubs : * Need to finish porting (but not test :/) the AR724X related stubs : * The USB code panics, figure out what is missing there : * Add stubs for USB DDR flushing (which aren't used at the moment, but : I'll get to it) : * Add a stub to control the peripherals currently controlled via GPIO : pins. At least USB differs between the two. : * Modify if_arge to use the cpu op struct to get and set the pll : * Add in the WMAC specifics for the AR91xx : * If I can find an AR724x, find the PCIe specifics : : General stuff: : : * Go digging through the rest of the Linux headers and figure out what : other differences there are; implement those : * Finish rewriting the GPL chunks that are left : : Board stuff: : : * Find the flash device details; modify the flash driver to support that : * Find out why arge0/arge1 aren't being correctly probed (arge0 has no : PHY; arge1 has a bogus MAC) and rectify the situation enough so one of : the interfaces is usable : : : : Adrian : _______________________________________________ : 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 Tue Aug 17 17:06:15 2010 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 90B7F1065694 for ; Tue, 17 Aug 2010 17:06:15 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 428128FC08 for ; Tue, 17 Aug 2010 17:06:14 +0000 (UTC) Received: by gxk24 with SMTP id 24so3255848gxk.13 for ; Tue, 17 Aug 2010 10:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=isPA30TB8j3+KMQVfKcaLqty55QzDhzYm2skOxBcfPo=; b=ZkSzaVO06HD+bc5UUQe17p5IIYHhIEhKmG+UJcyi56DgP+ILLEP+cIE5Ep/cv9liBN SJBd5jTSB8RKTM5klRNSz06ZSKyW5jnZLaAeYjKAomdOilCkwIztbhJ64koJKoJDWOY2 WQOyO6de4Iw6kGFxGkiboD/5RgW7VfjxQejMY= 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:content-transfer-encoding; b=Ds2RslvkkXs9mlMn9yzkS/dTbPbN71F62Dqm98hwYwa87MoyVGoG81n1NKa0OJ0AlF bckF4Scq5W7W0zIMZmWI/Svvtbwj75xJ7N74bTx+fTPPOih3o0O6k0YWOV6r0nYZSpxR 0d0JI4EIA1X1aQJZBnxZA1StsY/fu8IYhQEIY= MIME-Version: 1.0 Received: by 10.100.18.12 with SMTP id 12mr7902338anr.97.1282064773803; Tue, 17 Aug 2010 10:06:13 -0700 (PDT) Received: by 10.101.90.18 with HTTP; Tue, 17 Aug 2010 10:06:13 -0700 (PDT) In-Reply-To: <20100817.114253.59640143227151420.imp@bsdimp.com> References: <20100817.114253.59640143227151420.imp@bsdimp.com> Date: Wed, 18 Aug 2010 01:06:13 +0800 Message-ID: From: Adrian Chadd To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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: Tue, 17 Aug 2010 17:06:15 -0000 On 18 August 2010 01:42, M. Warner Losh wrote: > In message: > =A0 =A0 =A0 =A0 =A0 =A0Adrian Chadd writes: > : Hi everyone, > : > : I've purchased a TP-LINK TL-WR1043ND which has an AR9132 SoC (+ > : on-chip AR9100 11n) in it. > > Cool! =A0I've got a AR91xx-based wireless N router (D-LINK DIR-625 rev > C1). =A0I too tried to do some porting, but discovered that the netboot > functionality had been removed from the roms. =A0How are you loading > your kernel? Mine ships with uboot. I'm typing "tpl" at serial console to break the uboot process to a prompt, then using tftp to load and "go" to exec. I've added support for the flash chip it has on board. Adrian From owner-freebsd-mips@FreeBSD.ORG Tue Aug 17 17:29:52 2010 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 4EE331065693; Tue, 17 Aug 2010 17:29:52 +0000 (UTC) (envelope-from phcoder@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 E424C8FC1E; Tue, 17 Aug 2010 17:29:50 +0000 (UTC) Received: by bwz20 with SMTP id 20so3627738bwz.13 for ; Tue, 17 Aug 2010 10:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=7jjkSlUHw0SSvb6WNOSVzmdT8SuCb4Wq8heIWR95H/w=; b=tUeFU7y7hwo2dUGdL7PDEFcgkdOjY1EfTPLGyLUAnz+I0ANgOXWkk3hLTDxjCaNH/R pITuEQnlAkK9zk5LjYv1SM8NtTn9b7su5+gIcLuIKd0F9nqd8IIp+vq73tRoSH+VHgqV 5H8zoEP5z2tkMzrf5Yg9tk6R5ZiHOuu+JTqnE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=uwA0Oj2GMzk9BRcg3dKGLR2t7qXORamJz7P+ofz3yAY1pJAvRYtFdP9aMXWYFiXy34 Q8oyKjin92UtAy1yOhknqk1P5dC2YFJVSYZMMroa1gLvs15Z5yDngPENNpDD7Me6Us3T CqVlx1W1A4CuZsvj82H59eHDaodb4BvLGe+6s= Received: by 10.204.175.3 with SMTP id v3mr4715606bkz.49.1282066176609; Tue, 17 Aug 2010 10:29:36 -0700 (PDT) Received: from debian.bg45.phnet (178.77.202.62.cust.bluewin.ch [62.202.77.178]) by mx.google.com with ESMTPS id f10sm5407279bkl.5.2010.08.17.10.29.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 10:29:34 -0700 (PDT) Message-ID: <4C6AC6E9.2010801@gmail.com> Date: Tue, 17 Aug 2010 19:29:13 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: soc-status@freebsd.org, freebsd-mips@freebsd.org References: <4C67704C.70609@gmail.com> <4C6861B4.6020102@gmail.com> <4C69D1D5.809@gmail.com> In-Reply-To: <4C69D1D5.809@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigE6F57D77611BB8EFA3CBF2C0" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Yeeloong port is functional 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: Tue, 17 Aug 2010 17:29:52 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE6F57D77611BB8EFA3CBF2C0 Content-Type: multipart/mixed; boundary="------------000306040803050909060501" This is a multi-part message in MIME format. --------------000306040803050909060501 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/17/2010 02:03 AM, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote:= > On 08/15/2010 11:52 PM, Vladimir '=CF=86-coder/phcoder' Serbinenko wrot= e: > =20 >> Hello, all. Some cleanups and I managed to enable cache on kseg0. >> Additionally it has some basic Geode support. >> I'm looking forward to split it in smaller patches in order to get it >> into HEAD. Also I'll fill the blanks (like power management) as time >> permits. >> =20 >> =20 > And another update. Now Geode USB is fully functional. Few other issues= > are fixed. Unfortunately I couldn't find a way to fix cache completely.= > So I decided to change page size to 16KB to make tag bits of VA to be > identical to PA effectively transforming VIPT cache into PIPT which is > easier to handle. It's not functional yet but it will be soon.=20 16K indeed fixed most of the problems. Patch attached. > Even > though the GSoC is nearly over I'll continue to work on yeeloong to fix= > remaining issues. Sorry for delays caused by hw malfunctions. And thank= s > to everybody who supported me, especially Juli Mallett, Olexandr > Tymoshenko and M. Warner Losh > =20 >> On 08/15/2010 06:42 AM, Vladimir '=CF=86-coder/phcoder' Serbinenko wro= te: >> =20 >> =20 >>> Hello, all. Despite the hardware-inflicted setbacks (my yeeloong frie= d >>> right before the mid-term), Yeeloong port is now functional. Both ser= ial >>> and local (keyboard + screen) work. Real Time Clock is working. Inter= net >>> is working. USB controller on PCI is working. Userspace is working. >>> >>> Remaining issues: >>> 1) Disabled cache. The reason are peculiar properties of L2 cache. I >>> actualy have the code to fix it but I'm not sure to hit GSoC deadline= >>> about it. >>> 2) Only 256 MiB of RAM are supported. Should be easy to fix once 64-b= it >>> parts are in. >>> 3) No Geode support. So no IDE, 2 of 3 USB ports or audio. These >>> components are actualy pretty standard, one has only to add support f= or >>> MSRs. >>> 4) No power management. Wasn't planned to have it implemented during = GSoC. >>> >>> Not tested: >>> 1) Touchpad. Never connected to my laptop during developpement becaus= e >>> to use it one has to close front lid and so cut from serial connector= >>> >>> 3rd party developpements which will improve Yeeloong support: >>> 1) X.org support. The required card is already supported in latest >>> x.org. So it's a question of importing last X.org and testing it. >>> 2) 64-bit developpement. Currently if I compile 64-bit kernel it >>> contains only 64-bit imgact. Imposing only 64-bit binaries is subopti= mal. >>> >>> =20 >>> =20 >>> =20 >> =20 >> =20 > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------000306040803050909060501-- --------------enigE6F57D77611BB8EFA3CBF2C0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkxqxvEACgkQNak7dOguQgkurgD+KlkDI3yQiUQPP1OIByYZDzRn e+CQL7evF45LZo7n2DQBAK9w74vL1ySIhloGFcmoQsCgrO5oVONvTAYUwMPrkfSj =ekfo -----END PGP SIGNATURE----- --------------enigE6F57D77611BB8EFA3CBF2C0-- From owner-freebsd-mips@FreeBSD.ORG Tue Aug 17 18:58:45 2010 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 CBB1E106567A for ; Tue, 17 Aug 2010 18:58:45 +0000 (UTC) (envelope-from vrtuff@yahoo.com) Received: from web33202.mail.mud.yahoo.com (web33202.mail.mud.yahoo.com [209.191.69.150]) by mx1.freebsd.org (Postfix) with SMTP id 95F898FC20 for ; Tue, 17 Aug 2010 18:58:45 +0000 (UTC) Received: (qmail 55463 invoked by uid 60001); 17 Aug 2010 18:58:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1282071524; bh=Ab+TKB6F1hL4+lhUKIF4+yVy82mF3MiRUeRRfXVNICo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=YyjrbbWBeUBZMxZj0Tt7hoWrqtYAHdVA1lsgSFhz2bFUFPn8199eVfBKRmWYEPLOinU3D0R0Fo2X9Ii5Pgx7id7WHYiZmO3/Tjs4MbpYiQeocd9r3crDKzYXz4fUWaEcjy0xAVQwFSzF4AZqAP1u6MqBlK6oBorN3FLmHxm5/sg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=h040dr8oC4d9/IKXuFIqhm+/QUVMt0cexG9WCNmmvE3MbO8R9ezHkbd1WRiRcDjYxN9A3czs5ovm0zWSHCN+pk9GGx+/QG5vdv1MHXQ/Hssoiv519tStSs1yUhQi65Mv5xUQEpoApN5mZlBEgwc+UgM+c7DZdLGOJQj+CvH4NZk=; Message-ID: <602890.53459.qm@web33202.mail.mud.yahoo.com> X-YMail-OSG: iydCj1IVM1lb9OXRYQsT.ZBjKL0tzWaDC7nJ06P25P_Z3LK zvCNAI2MD0U_bB399TiZOPswVP.0B5_X1DfESqscYtbRo4QC6uTrsJTa9DQD GjPFisYitwCkBxuU_y8Uv79C85Xfa0fgRh9UYai22J5m9T7qaUyQwrz2_gnO V.wXe_RrTyMKZqLyYychqcWDxpDXNWFcOUTVkuG9ZKXL7CjbzYb04ndf75eb 1DiLUp33vBpWEexjdrr1rlvFvW8Pd65jrCGL0.yL6Zbjv9G0n6AiA_kMwri2 BYwL19b1qr_y_hIM15YS0o3K.uR6QHw.dGEmTgnBjayoJI6SJG0TjYgwG4sq 0h9TGqfb8YUkGILHQdVOivZZ2yzKw Received: from [24.189.140.45] by web33202.mail.mud.yahoo.com via HTTP; Tue, 17 Aug 2010 11:58:44 PDT X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950 References: Date: Tue, 17 Aug 2010 11:58:44 -0700 (PDT) From: Youri Adonis To: Adrian Chadd , freebsd-mips@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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: Tue, 17 Aug 2010 18:58:46 -0000 Adrian, That is great. That is very similar to AR71XX chipset. I am digging thru the openwrt code/forum to see how they go around these bogus MAC addresses. This has prevented me so far to set a NFS rootfs on the wndr3700 It is a trial and error sort of things Youri ----- Original Message ---- From: Adrian Chadd To: freebsd-mips@freebsd.org Sent: Tue, August 17, 2010 12:21:06 PM Subject: WIP: AR91XX (and AR724X, maybe) support Hi everyone, I've purchased a TP-LINK TL-WR1043ND which has an AR9132 SoC (+ on-chip AR9100 11n) in it. I've begun porting AR91xx and AR724X support over from Linux. Sans USB support, the kernel boots to mountroot>. This (currently GPL-tainted, so don't commit it!) patch is against -head: http://people.freebsd.org/~adrian/rspro/ar91xx-support.1.diff The patch introduces a set of CPU operations which implement the main per-chip differences. The dmesg (without USB; so it doesn't panic early in startup): http://people.freebsd.org/~adrian/rspro/dmesg-TL-WR1943ND.txt USB panics shortly after probe: ehci0: at mem 0x1b000000-0x1bffffff irq 1 on nexus0 ehci0: [ITHREAD] usbus0: set host controller mode usbus0: EHCI version 0.42 Trap cause = 5 (address error (store) - kernel mode) [ thread pid 0 tid 100000 ] Stopped at generic_bs_w_4+0x4: sw a3,0(a1) I've tested this patch on my AR7161 (in the routerstation pro) and have booted it to multi-user mode. Platform stuff that needs doing: * Need to finish porting the AR91xx related stubs * Need to finish porting (but not test :/) the AR724X related stubs * The USB code panics, figure out what is missing there * Add stubs for USB DDR flushing (which aren't used at the moment, but I'll get to it) * Add a stub to control the peripherals currently controlled via GPIO pins. At least USB differs between the two. * Modify if_arge to use the cpu op struct to get and set the pll * Add in the WMAC specifics for the AR91xx * If I can find an AR724x, find the PCIe specifics General stuff: * Go digging through the rest of the Linux headers and figure out what other differences there are; implement those * Finish rewriting the GPL chunks that are left Board stuff: * Find the flash device details; modify the flash driver to support that * Find out why arge0/arge1 aren't being correctly probed (arge0 has no PHY; arge1 has a bogus MAC) and rectify the situation enough so one of the interfaces is usable Adrian _______________________________________________ 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 Tue Aug 17 21:10:33 2010 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 0A24F106564A; Tue, 17 Aug 2010 21:10:33 +0000 (UTC) (envelope-from phcoder@gmail.com) Received: from mail-bw0-f43.google.com (mail-bw0-f43.google.com [209.85.214.43]) by mx1.freebsd.org (Postfix) with ESMTP id 4EB9F8FC15; Tue, 17 Aug 2010 21:10:31 +0000 (UTC) Received: by bwz16 with SMTP id 16so3222311bwz.30 for ; Tue, 17 Aug 2010 14:10:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=uTAaOg5mACE7fTIw25VM9vFtu9ZTZjYydOBjE/uZvWU=; b=kCdf+MKM865XChR51vLi3ZX6f0LQO4Hdey2OSkdmNIex6J05nCT8NzoqwHnsKedSGt dfNsO1OdZHXnhCi8IoDe1BBRvGyX+w1/46j0AraC+zrTR8YT8xUwPI4WuZFs874A6xkP WRy4EQPLnhrO7/aIWitTCtxRbjffze6XoYTF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=jN+QIhe0k155fyBJHwZh+/vgetwsyMbdch35Yqz8Ki6dG1HACxxBI9TuhWOADv6mTI 1YEQ3qhwFY8NbTu5Gv37VmXeJru/nQePrjQQCjqEzEx/N3pB8bRR1fHZ4/SCn6Wqpz7p EhwY074fuvoJnC9IuJl1Q83kthvmxOQQeYf+Q= Received: by 10.204.68.206 with SMTP id w14mr3912775bki.132.1282079431085; Tue, 17 Aug 2010 14:10:31 -0700 (PDT) Received: from debian.bg45.phnet (178.77.202.62.cust.bluewin.ch [62.202.77.178]) by mx.google.com with ESMTPS id d27sm3509536bku.22.2010.08.17.14.10.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 14:10:30 -0700 (PDT) Message-ID: <4C6AFABC.5050809@gmail.com> Date: Tue, 17 Aug 2010 23:10:20 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: soc-status@freebsd.org, freebsd-mips@freebsd.org References: <4C67704C.70609@gmail.com> <4C6861B4.6020102@gmail.com> <4C69D1D5.809@gmail.com> <4C6AC6E9.2010801@gmail.com> In-Reply-To: <4C6AC6E9.2010801@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig1D92139EFC4096785A872392" Cc: Subject: Re: Yeeloong port is functional 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: Tue, 17 Aug 2010 21:10:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1D92139EFC4096785A872392 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jayachandran reported that the patch was stripped (size limit ?). So I uploaded it here: http://launchpad.net/kfreebsd-yeeloong/trunk/gsoc/+download/yeeloong_rc4.= diff On 08/17/2010 07:29 PM, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote:= > On 08/17/2010 02:03 AM, Vladimir '=CF=86-coder/phcoder' Serbinenko wrot= e: > =20 >> On 08/15/2010 11:52 PM, Vladimir '=CF=86-coder/phcoder' Serbinenko wro= te: >> =20 >> =20 >>> Hello, all. Some cleanups and I managed to enable cache on kseg0. >>> Additionally it has some basic Geode support. >>> I'm looking forward to split it in smaller patches in order to get it= >>> into HEAD. Also I'll fill the blanks (like power management) as time >>> permits. >>> =20 >>> =20 >>> =20 >> And another update. Now Geode USB is fully functional. Few other issue= s >> are fixed. Unfortunately I couldn't find a way to fix cache completely= =2E >> So I decided to change page size to 16KB to make tag bits of VA to be >> identical to PA effectively transforming VIPT cache into PIPT which is= >> easier to handle. It's not functional yet but it will be soon.=20 >> =20 > 16K indeed fixed most of the problems. Patch attached. > =20 >> Even >> though the GSoC is nearly over I'll continue to work on yeeloong to fi= x >> remaining issues. Sorry for delays caused by hw malfunctions. And than= ks >> to everybody who supported me, especially Juli Mallett, Olexandr >> Tymoshenko and M. Warner Losh >> =20 >> =20 >>> On 08/15/2010 06:42 AM, Vladimir '=CF=86-coder/phcoder' Serbinenko wr= ote: >>> =20 >>> =20 >>> =20 >>>> Hello, all. Despite the hardware-inflicted setbacks (my yeeloong fri= ed >>>> right before the mid-term), Yeeloong port is now functional. Both se= rial >>>> and local (keyboard + screen) work. Real Time Clock is working. Inte= rnet >>>> is working. USB controller on PCI is working. Userspace is working. >>>> >>>> Remaining issues: >>>> 1) Disabled cache. The reason are peculiar properties of L2 cache. I= >>>> actualy have the code to fix it but I'm not sure to hit GSoC deadlin= e >>>> about it. >>>> 2) Only 256 MiB of RAM are supported. Should be easy to fix once 64-= bit >>>> parts are in. >>>> 3) No Geode support. So no IDE, 2 of 3 USB ports or audio. These >>>> components are actualy pretty standard, one has only to add support = for >>>> MSRs. >>>> 4) No power management. Wasn't planned to have it implemented during= GSoC. >>>> >>>> Not tested: >>>> 1) Touchpad. Never connected to my laptop during developpement becau= se >>>> to use it one has to close front lid and so cut from serial connecto= r >>>> >>>> 3rd party developpements which will improve Yeeloong support: >>>> 1) X.org support. The required card is already supported in latest >>>> x.org. So it's a question of importing last X.org and testing it. >>>> 2) 64-bit developpement. Currently if I compile 64-bit kernel it >>>> contains only 64-bit imgact. Imposing only 64-bit binaries is subopt= imal. >>>> >>>> =20 >>>> =20 >>>> =20 >>>> =20 >>> =20 >>> =20 >>> =20 >> =20 >> =20 > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig1D92139EFC4096785A872392 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkxq+sMACgkQNak7dOguQgnepwD+NBkpyIZN3NfcyHyiJDhagjBS /05LoN2OpeGh0Bs4K2QA/Rlv5YZT+vXigDI8OPDEZoEEdDIrVLbTSfMu5CNmKb49 =fFNX -----END PGP SIGNATURE----- --------------enig1D92139EFC4096785A872392-- From owner-freebsd-mips@FreeBSD.ORG Wed Aug 18 00:03:50 2010 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 8C6CB106564A for ; Wed, 18 Aug 2010 00:03:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1DF7F8FC16 for ; Wed, 18 Aug 2010 00:03:49 +0000 (UTC) Received: by eyh6 with SMTP id 6so4163106eyh.13 for ; Tue, 17 Aug 2010 17:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=I+eEo08sq1a3QXUEBbzzrXlzU97yKhPqnCHNovxKsZc=; b=kMU6tzMHwd9ZRIkjvwuQOwHONiXuHJ2kPPJgniOHZpDX0cgUNxfpZ7kH7YccY4Ic6s uITyrwifTxJPncq+LVccbaeW85QbFQInA80X1BLY9Wd6ndTQ+Ld2O5M48DttGLHvpsMB KA7ZtU5fghhNGKNLYeuW/3e238dHw1BF+HGVI= 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:content-transfer-encoding; b=OL+JDHl5/ru81cJQd6/4rT4zOWiL/pAZWNi9vDrFe4Csi0GnjAakuESX7Y+LhKDHqC WnAaUCBBu/ugoibeOpFCznqQ0MBhYbDxVDEJK0t+P1KUZcdWH/epRIK0JRopsIn7G69V CYoC4o7Cr3LwOSZRhj863z0QYErkBdEv/3RFU= MIME-Version: 1.0 Received: by 10.213.114.80 with SMTP id d16mr1399976ebq.85.1282089828995; Tue, 17 Aug 2010 17:03:48 -0700 (PDT) Received: by 10.213.108.205 with HTTP; Tue, 17 Aug 2010 17:03:48 -0700 (PDT) In-Reply-To: <602890.53459.qm@web33202.mail.mud.yahoo.com> References: <602890.53459.qm@web33202.mail.mud.yahoo.com> Date: Wed, 18 Aug 2010 08:03:48 +0800 Message-ID: From: Adrian Chadd To: Youri Adonis Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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: Wed, 18 Aug 2010 00:03:50 -0000 On 18 August 2010 02:58, Youri Adonis wrote: > That is very similar to AR71XX chipset. It is. Thankfully; it's an easy CPU to port to for someone who hasn't done it for MIPS before. :) > I am digging thru the openwrt code/forum to see how they go around these = bogus > MAC addresses. > This has prevented me so far to set a NFS rootfs on the wndr3700 > It is a trial and error =A0sort of things They have init code for each platform which reads mac/eeprom details out before init. Adrian From owner-freebsd-mips@FreeBSD.ORG Wed Aug 18 02:05:03 2010 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 0EF7B106566B; Wed, 18 Aug 2010 02:05:03 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 712138FC08; Wed, 18 Aug 2010 02:05:01 +0000 (UTC) Received: by wwb24 with SMTP id 24so46145wwb.31 for ; Tue, 17 Aug 2010 19:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nVUwXud2UJAlExXLHx17zMJ7+D7jQkjd+pPObI5DkAY=; b=lBl/PSO6sdxO2yB+5sXJsaBdH6Qv7p/3gXeys63+th+IvMgc96ueKP0NKkOBXU46Ap oiNOlWaW39so7sOhx6NiYGJJm+7BIUeRfLy35phMjt9lzSzMPS2lbXsxIfeoIi78Wve8 xmXqRvMgUigVmSwec8BYejnPtTSED/RwTDEIY= 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:content-transfer-encoding; b=E1okXBWXS7OHtUzzOo1/pfR0DPXIxJGtB/Y9S7i5anktyveiAxuZUo1o6+sFGeYR0g jFdFVOK4W59LAoyDCZICdiFCGrksHxLXcpYGtNBKc/mT1cgK/Vwz3lymtg22+O/BGzpQ QPjcxScJDZb8G89JAixfBghbJ0lwA/qpmxv2k= MIME-Version: 1.0 Received: by 10.216.164.21 with SMTP id b21mr1480400wel.28.1282097101251; Tue, 17 Aug 2010 19:05:01 -0700 (PDT) Received: by 10.216.80.8 with HTTP; Tue, 17 Aug 2010 19:05:01 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Aug 2010 19:05:01 -0700 Message-ID: From: Neel Natu To: "Jayachandran C." Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Alan Cox , freebsd-mips@freebsd.org Subject: Re: [PATCH] Move from kseg0 to xkphys for 64 bit. 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: Wed, 18 Aug 2010 02:05:03 -0000 Hi JC, I have a few comments below. Index: sys/mips/include/cpuregs.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +#define MIPS_XKPHYS_LARGEST_PHYS 0x10000000000 +#define MIPS_XKPHYS_MASK 0x0ffffffffff Perhaps add a comment that this limit is less than that allowed by the architecture because we can only address 40 bits with our 3 levels of page tables. Don't these macros need a 'ULL' type qualifier as well? Index: sys/mips/mips/pmap.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Do you need to maintain 'valid1' in 'local_sysmap' anymore? It seems we only check 'valid2' in pmap_lmem_unmap(). static __inline pd_entry_t * pmap_pdpe_to_pde(pd_entry_t *pdpe, vm_offset_t va) { + return pdpe; } static __inline pd_entry_t *pmap_pde(pmap_t pmap, vm_offset_t va) { + return pmap_segmap(pmap, va); } Parentheses around the return value. @@ -1032,7 +1080,11 @@ pmap_grow_pte_page_cache() { +#ifdef __mips_n64 + vm_contig_grow_cache(3, 0, 0xffffffffffUL); +#else vm_contig_grow_cache(3, 0, MIPS_KSEG0_LARGEST_PHYS); +#endif } Why not use MIPS_XPHYS_LARGEST_PHYS in the __mips_n64 case instead of using a literal value? best Neel On Mon, Aug 16, 2010 at 9:10 AM, Jayachandran C. wrote: > I've attached the changes to move the 64bit port to use 64bit XKPHYS > mapping of the physical memory instead of the current KSEG0. =A0With > this changes the 64bit port will use just one freelist, and can > allocate page table pages from anywhere in the memory. > > The changes are mainly to introduce macros like > MIPS_PHYS_TO_DIRECT(pa), MIPS_DIRECT_TO_PHYS(), which will use KSEG0 > in 32 bit compilation and XKPHYS in 64 bit compilation. I also ended > up changing the macro based PMAP_LMEM_MAP1(), PMAP_LMEM_MAP2(), > PMAP_LMEM_UNMAP() to inline functions. > > I have also introduced a macro MIPS_DIRECT_MAPPABLE(pa), which will > further reduce the cases in which we will need to have a special case > for 64 bit compilation. > > Please let me know your comments. > > Thanks, > JC. > From owner-freebsd-mips@FreeBSD.ORG Wed Aug 18 05:22:41 2010 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 6D7A41065670; Wed, 18 Aug 2010 05:22:41 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id CCE028FC14; Wed, 18 Aug 2010 05:22:40 +0000 (UTC) Received: by wwb24 with SMTP id 24so243160wwb.31 for ; Tue, 17 Aug 2010 22:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zXT7Ys5Isjq61Btmqv4lr/ZCPlMROOLXv3fnh16cZUA=; b=XHLlcsM0sV7HPs4crWrHwf2eoL/ZZ1LthoQkC5T4S8fTdbH7mXNPlMJwJtMzEyhv6Q eMBJDl4u9Qbxx8BsGjSnSdo8eE/wE+erubP2tBJU7QMPLlenEQ2yJDyk+3xZdQ7ifmY+ WcTlg5bU6cixkObR6UqKEHIx9QSZTvkNagZDw= 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:content-transfer-encoding; b=BNuYynBnf+0vpnUBbqfbnn3MLO6uOT3riFnHRIoQxxai/OggFijRXACbg0CSxLSscC I1WaYi/i/t6g8CGXo4RG/j0kcVzmwtDXUnF3xBAkR/BZjnsK4Z2pIS7NsYlpNgvk6R9T 5ygRRbvUDGdu312Drd80KkQq2uwCRHRscYOzQ= MIME-Version: 1.0 Received: by 10.216.231.26 with SMTP id k26mr6665363weq.3.1282108952031; Tue, 17 Aug 2010 22:22:32 -0700 (PDT) Received: by 10.216.156.135 with HTTP; Tue, 17 Aug 2010 22:22:31 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Aug 2010 10:52:31 +0530 Message-ID: From: "Jayachandran C." To: Neel Natu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Alan Cox , freebsd-mips@freebsd.org Subject: Re: [PATCH] Move from kseg0 to xkphys for 64 bit. 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: Wed, 18 Aug 2010 05:22:41 -0000 On Wed, Aug 18, 2010 at 7:35 AM, Neel Natu wrote: > Hi JC, > > I have a few comments below. Thanks for the review! > Index: sys/mips/include/cpuregs.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > +#define =A0 =A0 =A0 =A0MIPS_XKPHYS_LARGEST_PHYS =A0 =A0 =A0 =A00x1000000= 0000 > +#define =A0 =A0 =A0 =A0MIPS_XKPHYS_MASK =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A00= x0ffffffffff > > Perhaps add a comment that this limit is less than that allowed by the > architecture because we can only address 40 bits with our 3 levels of > page tables. This is the physical address size - XLRs limit is 1TB of physical address (PABITS =3D 40), I guess the other processors will have a similar size limit. I will see if I can get a better name that make it clear. > Don't these macros need a 'ULL' type qualifier as well? This has to be ULL in 32 bit and UL in 64bit, I left it to the compiler for now (which is probably incorrect, I need to check if values will be promoted correctly in n32 if needed). But probably using UINT64_C() from stdint.h is the better option? . > Index: sys/mips/mips/pmap.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Do you need to maintain 'valid1' in 'local_sysmap' anymore? It seems we > only check 'valid2' in pmap_lmem_unmap(). > > =A0static __inline pd_entry_t * > =A0pmap_pdpe_to_pde(pd_entry_t *pdpe, vm_offset_t va) > =A0{ > + > =A0 =A0 =A0 =A0return pdpe; > =A0} > > =A0static __inline > =A0pd_entry_t *pmap_pde(pmap_t pmap, vm_offset_t va) > =A0{ > + > =A0 =A0 =A0 =A0return pmap_segmap(pmap, va); > =A0} > > Parentheses around the return value. I thought I had got all the style(9) fixes, looks like I missed a couple :( There are other places in the old code which needs this too, I think I will fix all the returns in pmap.c. > @@ -1032,7 +1080,11 @@ > =A0pmap_grow_pte_page_cache() > =A0{ > > +#ifdef __mips_n64 > + =A0 =A0 =A0 vm_contig_grow_cache(3, 0, 0xffffffffffUL); > +#else > =A0 =A0 =A0 =A0vm_contig_grow_cache(3, 0, MIPS_KSEG0_LARGEST_PHYS); > +#endif > =A0} > > Why not use MIPS_XPHYS_LARGEST_PHYS in the __mips_n64 case instead of usi= ng > a literal value? Will make these changes. > best > Neel > On Mon, Aug 16, 2010 at 9:10 AM, Jayachandran C. > wrote: >> I've attached the changes to move the 64bit port to use 64bit XKPHYS >> mapping of the physical memory instead of the current KSEG0. =A0With >> this changes the 64bit port will use just one freelist, and can >> allocate page table pages from anywhere in the memory. >> >> The changes are mainly to introduce macros like >> MIPS_PHYS_TO_DIRECT(pa), MIPS_DIRECT_TO_PHYS(), which will use KSEG0 >> in 32 bit compilation and XKPHYS in 64 bit compilation. I also ended >> up changing the macro based PMAP_LMEM_MAP1(), PMAP_LMEM_MAP2(), >> PMAP_LMEM_UNMAP() to inline functions. >> >> I have also introduced a macro MIPS_DIRECT_MAPPABLE(pa), which will >> further reduce the cases in which we will need to have a special case >> for 64 bit compilation. >> >> Please let me know your comments. JC. From owner-freebsd-mips@FreeBSD.ORG Wed Aug 18 05:39:07 2010 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 48E561065697 for ; Wed, 18 Aug 2010 05:39:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id D0BAE8FC1B for ; Wed, 18 Aug 2010 05:39:06 +0000 (UTC) Received: by ewy26 with SMTP id 26so109885ewy.13 for ; Tue, 17 Aug 2010 22:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=omorMvZEwOaX2OdFw+mBI38KDyFR5oV5KBguUPMrKUE=; b=YDGMxxYKfPMG4/F7s4uSs86lXMFOHqzeziaDm7vwGVD59gRmJ03nZ/BXK378OADF8f uViZ0fF/ySEXRgA2W9vLUpBomxt+hiiCezlaFW8Wp4NxXen+o/Z1KH/AELG+JqM0OmD8 mM/Bz4Q25Wkf6c/8YPtBVCSsTqb7/wexDw85w= 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 :content-type; b=pCqYBc18mnxQFdjTZ3d2Lk2Rpc68Md7fhvPnH8j7JW1Yl2dQrvHDfWBcEpHekjYrYE ImPlEeVBREjoCADMlZMAM12FGX1X5wwcUv+PU7qfRzR/HIs8Nqd1JyUy7K0In8VOqxaJ UYMpKOYKFwS8Wg/zCKQ27ofmaoHfy0/vsAABs= MIME-Version: 1.0 Received: by 10.213.20.77 with SMTP id e13mr1608780ebb.59.1282109945787; Tue, 17 Aug 2010 22:39:05 -0700 (PDT) Received: by 10.213.108.205 with HTTP; Tue, 17 Aug 2010 22:39:05 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Aug 2010 13:39:05 +0800 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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: Wed, 18 Aug 2010 05:39:07 -0000 > http://people.freebsd.org/~adrian/rspro/ar91xx-support.1.diff I'm going to commit the AR71XX specific bits and the CPU ops tonight. I can then convert over the bits of the codebase that needs CPU specific bits (WB prodding, USB setup, device enable/disable) without breaking the tree. I'll then commit the AR91XX and part of the AR724X support once I've rewritten the GPL bits. Adrian From owner-freebsd-mips@FreeBSD.ORG Wed Aug 18 10:31:29 2010 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 F0F531065694 for ; Wed, 18 Aug 2010 10:31:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 85C408FC18 for ; Wed, 18 Aug 2010 10:31:29 +0000 (UTC) Received: by eyh6 with SMTP id 6so196656eyh.13 for ; Wed, 18 Aug 2010 03:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=f1d5WUaFiJdF9UpJHpBgcKhgQldw2Jef6O8qRsHJmhA=; b=Lukos+ak/W9ce5vsTDEBiA4qfiix+PwF+NSU+g4pxFv5So6i1UuB+K1pKXS6T3ws62 l1R7mYS6udE/6+no2ogUgl0cXumnxP8pYstPKXgxOEAp2hUjt/usn7ZvJOpo0pS6O7aF ee5u1oSCDtsi9JnEbzJbPXWyjG/F5P9gdv/oM= 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 :content-type; b=U8qzsGxJshfqzrqzKB4MUUWL8/zXxMUl2mydCIZ9/j4N9L1N+qIACB6OS/zVe536Vo 43V6IQzJAsysdxrwCDOz87T9yko9KpmCtmWvturApnlvecv2hfrzo29CIjJOD6quNLA5 dsEquOPTbewYqOXIXqo4v6ZbhRYeFe4l/C91c= MIME-Version: 1.0 Received: by 10.213.17.7 with SMTP id q7mr122793eba.23.1282127488360; Wed, 18 Aug 2010 03:31:28 -0700 (PDT) Received: by 10.213.108.205 with HTTP; Wed, 18 Aug 2010 03:31:28 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Aug 2010 18:31:28 +0800 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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: Wed, 18 Aug 2010 10:31:30 -0000 On 18 August 2010 13:39, Adrian Chadd wrote: > I'm going to commit the AR71XX specific bits and the CPU ops tonight. > I can then convert over the bits of the codebase that needs CPU > specific bits (WB prodding, USB setup, device enable/disable) without > breaking the tree. > > I'll then commit the AR91XX and part of the AR724X support once I've > rewritten the GPL bits. This patch introduces the CPU ops to HEAD. I've done a couple of preparation commits (register definitions, the CPU op struct definition) before this, so you need to apply it to the latest HEAD. http://people.freebsd.org/~adrian/rspro/atheros-ar71xx-cpuops.diff Now I'm worried about this code being GPL contaminated. It's basically a cut and paste from Linux, but the implementation is simple and obvious enough to me that my re-implementation would look basically the same. I'd like a review for GPL-ness if possible. I'm happy to rewrite it but it'd likely look quite a lot like how it does right now. Thanks, Adrian From owner-freebsd-mips@FreeBSD.ORG Wed Aug 18 14:45:48 2010 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 61A2C1065670; Wed, 18 Aug 2010 14:45:48 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id E05F68FC0C; Wed, 18 Aug 2010 14:45:47 +0000 (UTC) Received: by yxe42 with SMTP id 42so265529yxe.13 for ; Wed, 18 Aug 2010 07:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Mrv18y64/3GtTs2Nmpt2p52GeSJuAft6V4cReCZJdcE=; b=JbbV2vGuw/PHnbgTRCnmBOYyqq+GxxKHFSw8pXkDsbQkqFRM7s+5ZD3eQ8Ef1pzJy2 DijIWUw3KVCJw4Ag25qkuZIEmng8XrykM04qRXQub++RarGDoLESI3P5vvCMc+jtlbXz qQsWsH1fT1kGxEwG5LktcPz4rCQPE6KEltzak= 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=AtQiziY1zknvjSRu86gdVtbkJXPyB8o8MiD3Q8ETHqkvGauwl4yDCT7v6uNkQu+RiD 6039F8H8wK1h/61756DUkWv6mbFhOUXFtXOogapPR/7/HoKFoWLSUyJXxxd1SBhnr31t tlG4iUahh2yNrI+siXFRJ0ymVA+xU7SZfQjkY= MIME-Version: 1.0 Received: by 10.151.62.37 with SMTP id p37mr365888ybk.275.1282142747110; Wed, 18 Aug 2010 07:45:47 -0700 (PDT) Received: by 10.150.58.10 with HTTP; Wed, 18 Aug 2010 07:45:46 -0700 (PDT) In-Reply-To: <4C5977BC.1060104@FreeBSD.org> References: <4C41A248.8090605@FreeBSD.org> <4C41B4CF.6080409@FreeBSD.org> <4C4205CC.6080700@FreeBSD.org> <4C4ED247.80701@FreeBSD.org> <4C555CF7.5080101@FreeBSD.org> <4C5977BC.1060104@FreeBSD.org> Date: Wed, 18 Aug 2010 20:15:46 +0530 Message-ID: From: "Jayachandran C." To: Alexander Motin , Neel Natu Content-Type: text/plain; charset=ISO-8859-1 Cc: Randall Stewart , freebsd-mips@freebsd.org Subject: Re: [RFC] Event timers on MIPS 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: Wed, 18 Aug 2010 14:45:48 -0000 On Wed, Aug 4, 2010 at 7:52 PM, Alexander Motin wrote: > Neel Natu wrote: >> Thanks for taking the time to review the patch. Here is the updated patch: >> http://people.freebsd.org/~neel/tick_diff.txt > > Seems fine. > >> On Sun, Aug 1, 2010 at 4:39 AM, Alexander Motin wrote: >>> "t_upper++;" there looks a bit strange, as it is not written back. The >>> wrapping stuff won't work if this timer interrupts were not used. >> >> This part is intentional. >> >> I wanted only clock_intr() to update the cached values of >> 'counter_upper' and 'counter_lower_last' and tick_ticker() to sample a >> consistent snapshot of the tuple and then operate on it. >> >> I have added an XXX comment to describe the dependency. We can revisit >> this if we change the default timer in mips. > > It's not about default timer, but about having any other timer. But if > you wish so, it should be enough for now. I'm seeing a problem with the timer code on XLR, when I run ping: xlrboard# ping 192.168.30.1 PING 192.168.30.1 (192.168.30.1): 56 data bytes 64 bytes from 192.168.30.1: icmp_seq=0 ttl=64 time=0.649 ms 64 bytes from 192.168.30.1: icmp_seq=1 ttl=64 time=362.624 ms 64 bytes from 192.168.30.1: icmp_seq=2 ttl=64 time=0.219 ms 64 bytes from 192.168.30.1: icmp_seq=3 ttl=64 time=362.631 ms 64 bytes from 192.168.30.1: icmp_seq=4 ttl=64 time=-362.168 ms 64 bytes from 192.168.30.1: icmp_seq=5 ttl=64 time=362.628 ms 64 bytes from 192.168.30.1: icmp_seq=6 ttl=64 time=0.234 ms 64 bytes from 192.168.30.1: icmp_seq=7 ttl=64 time=362.631 ms 64 bytes from 192.168.30.1: icmp_seq=8 ttl=64 time=0.483 ms This happens with the current XLR code, and even after updating it from mips/mips/tick.c (to take in Neel's changes). Due to the way our network driver works, there is a likely that the ping packets are received by different CPUs every time, but having the negative time there seems to indicate some issue. Also on XLR the count registers are not synchronized across cores, so the values will be different for each CPU. I will look at some more, but meanwhile, any clue on what might be wrong would be helpful. I still haven't done the PIC timer based timecount, that might fix it, if it is due to the count registers being out of sync. Thanks, JC. From owner-freebsd-mips@FreeBSD.ORG Thu Aug 19 00:41:52 2010 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 C596A106564A; Thu, 19 Aug 2010 00:41:52 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2D3718FC12; Thu, 19 Aug 2010 00:41:51 +0000 (UTC) Received: by wyj26 with SMTP id 26so1710170wyj.13 for ; Wed, 18 Aug 2010 17:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1880PacdZ6YpM2vYCbspTwOE6+SApUYe0OWHlgw+WQU=; b=Jd5eAe/nmj2C3qHLFFkFpPwT6dJuu39WaDje6wmTfnap6Of/AHXQJxAH1nATpeEAW5 F3CyUGV0bohm1dLoBUFeMrFLCHpIsP9z7qzwiB0RT/ViiHOAkjUZ9WNlIzyeRL3UrAhi w8bvwfSrv8sBFyIVKdpFxH+Cp0HzV43Jpb1Lo= 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:content-transfer-encoding; b=g3MRIJOrPl0kXi9txm7/Lef42H9q2Cv6Ycnv4eKh9ZeyHF2rfftkuDqiq+uMiI23hk OowJMumwVbsVRma126x7QTxTd0V9IAX+WjQXhaclvTenaGSPBcXmLh/4RJEvCByv6yxu HzZpTGUjb0bmjRM+Dlr/c+axDXTlfCmle9mBo= MIME-Version: 1.0 Received: by 10.227.72.141 with SMTP id m13mr7604134wbj.143.1282178510869; Wed, 18 Aug 2010 17:41:50 -0700 (PDT) Received: by 10.216.80.8 with HTTP; Wed, 18 Aug 2010 17:41:50 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Aug 2010 17:41:50 -0700 Message-ID: From: Neel Natu To: "Jayachandran C." Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Alan Cox , freebsd-mips@freebsd.org Subject: Re: [PATCH] Move from kseg0 to xkphys for 64 bit. 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, 19 Aug 2010 00:41:52 -0000 Hi JC, On Tue, Aug 17, 2010 at 10:22 PM, Jayachandran C. wrote: > On Wed, Aug 18, 2010 at 7:35 AM, Neel Natu wrote: >> Hi JC, >> >> I have a few comments below. > > Thanks for the review! > >> Index: sys/mips/include/cpuregs.h >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> +#define =A0 =A0 =A0 =A0MIPS_XKPHYS_LARGEST_PHYS =A0 =A0 =A0 =A00x100000= 00000 >> +#define =A0 =A0 =A0 =A0MIPS_XKPHYS_MASK =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= 0x0ffffffffff >> >> Perhaps add a comment that this limit is less than that allowed by the >> architecture because we can only address 40 bits with our 3 levels of >> page tables. > > This is the physical address size - XLRs limit is 1TB of physical > address (PABITS =3D 40), I guess the other processors will have a > similar size limit. =A0I will see if I can get a better name that make > it clear. > You are right. I must have spaced out - the number of levels in the page table should only influence the number of usable bits in virtual address space. In any case, is there any reason not to make MIPS_XKPHYS_LARGEST_PHYS the maximum allowed by the architecture? 1ULL << 59 if I remember correctly. >> Don't these macros need a 'ULL' type qualifier as well? > > This has to be ULL in 32 bit and UL in 64bit, I left it to the > compiler for now (which is probably incorrect, I need to check if > values will be promoted correctly in n32 if needed). =A0But probably > using UINT64_C() from stdint.h is the better option? . > Wouldn't 'ULL' work equally well on o32 as well as n64? Not sure about n32 though. best Neel >> Index: sys/mips/mips/pmap.c >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> Do you need to maintain 'valid1' in 'local_sysmap' anymore? It seems we >> only check 'valid2' in pmap_lmem_unmap(). >> >> =A0static __inline pd_entry_t * >> =A0pmap_pdpe_to_pde(pd_entry_t *pdpe, vm_offset_t va) >> =A0{ >> + >> =A0 =A0 =A0 =A0return pdpe; >> =A0} >> >> =A0static __inline >> =A0pd_entry_t *pmap_pde(pmap_t pmap, vm_offset_t va) >> =A0{ >> + >> =A0 =A0 =A0 =A0return pmap_segmap(pmap, va); >> =A0} >> >> Parentheses around the return value. > > I thought I had got all the style(9) fixes, looks like I missed a > couple :( =A0 There are other places in the old code which needs this > too, I think I will fix all the returns in pmap.c. > >> @@ -1032,7 +1080,11 @@ >> =A0pmap_grow_pte_page_cache() >> =A0{ >> >> +#ifdef __mips_n64 >> + =A0 =A0 =A0 vm_contig_grow_cache(3, 0, 0xffffffffffUL); >> +#else >> =A0 =A0 =A0 =A0vm_contig_grow_cache(3, 0, MIPS_KSEG0_LARGEST_PHYS); >> +#endif >> =A0} >> >> Why not use MIPS_XPHYS_LARGEST_PHYS in the __mips_n64 case instead of us= ing >> a literal value? > > Will make these changes. > >> best >> Neel > >> On Mon, Aug 16, 2010 at 9:10 AM, Jayachandran C. >> wrote: >>> I've attached the changes to move the 64bit port to use 64bit XKPHYS >>> mapping of the physical memory instead of the current KSEG0. =A0With >>> this changes the 64bit port will use just one freelist, and can >>> allocate page table pages from anywhere in the memory. >>> >>> The changes are mainly to introduce macros like >>> MIPS_PHYS_TO_DIRECT(pa), MIPS_DIRECT_TO_PHYS(), which will use KSEG0 >>> in 32 bit compilation and XKPHYS in 64 bit compilation. I also ended >>> up changing the macro based PMAP_LMEM_MAP1(), PMAP_LMEM_MAP2(), >>> PMAP_LMEM_UNMAP() to inline functions. >>> >>> I have also introduced a macro MIPS_DIRECT_MAPPABLE(pa), which will >>> further reduce the cases in which we will need to have a special case >>> for 64 bit compilation. >>> >>> Please let me know your comments. > > JC. > From owner-freebsd-mips@FreeBSD.ORG Thu Aug 19 01:55:52 2010 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 481C91065694; Thu, 19 Aug 2010 01:55:52 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7B6228FC12; Thu, 19 Aug 2010 01:55:51 +0000 (UTC) Received: by wwf26 with SMTP id 26so3362790wwf.1 for ; Wed, 18 Aug 2010 18:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=yEqRnq7IIJBQywuA7dBMcV/7IL8NyTbVdN8acK02XJ0=; b=mE3rpicg2OC6nTIgyxKyneTRtEJE6l47hoH1Iq1XDLLkCa96kIcLXsjYHf9yPYNsUD pyRxfHTmNRr7As0ZUraYHhXUPau8zSJJAlvthQWEhV2fGWoVlLqm0HgR/na7gSB7dI3B Ea8+1m0Sue/pM+5ngs1RfoK6PcltdRG+VmRuI= 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:content-transfer-encoding; b=S8LNTI6TccSBV/D95BvepyQLNUAdO5ZnYDWEo52R9yMNQWvUnlm3Yurd8JofJh8NZV 1OhclRhzd8AFEDOVeIcIhYxOo6QEn95b6sLI1G4I6F9lQyZbN8l1pYM7g4/SipOcUOLK dGLZItnP+0/n2MVtB8RXvD8u5KvnSO+xhVMcc= MIME-Version: 1.0 Received: by 10.216.38.20 with SMTP id z20mr7648187wea.108.1282182950138; Wed, 18 Aug 2010 18:55:50 -0700 (PDT) Received: by 10.216.80.8 with HTTP; Wed, 18 Aug 2010 18:55:50 -0700 (PDT) In-Reply-To: References: <4C41A248.8090605@FreeBSD.org> <4C41B4CF.6080409@FreeBSD.org> <4C4205CC.6080700@FreeBSD.org> <4C4ED247.80701@FreeBSD.org> <4C555CF7.5080101@FreeBSD.org> <4C5977BC.1060104@FreeBSD.org> Date: Wed, 18 Aug 2010 18:55:50 -0700 Message-ID: From: Neel Natu To: "Jayachandran C." Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Randall Stewart , Alexander Motin , freebsd-mips@freebsd.org Subject: Re: [RFC] Event timers on MIPS 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, 19 Aug 2010 01:55:52 -0000 Hi JC, On Wed, Aug 18, 2010 at 7:45 AM, Jayachandran C. wrote: > On Wed, Aug 4, 2010 at 7:52 PM, Alexander Motin wrote: >> Neel Natu wrote: >>> Thanks for taking the time to review the patch. Here is the updated pat= ch: >>> http://people.freebsd.org/~neel/tick_diff.txt >> >> Seems fine. >> >>> On Sun, Aug 1, 2010 at 4:39 AM, Alexander Motin wrote= : >>>> "t_upper++;" there looks a bit strange, as it is not written back. The >>>> wrapping stuff won't work if this timer interrupts were not used. >>> >>> This part is intentional. >>> >>> I wanted only clock_intr() to update the cached values of >>> 'counter_upper' and 'counter_lower_last' and tick_ticker() to sample a >>> consistent snapshot of the tuple and then operate on it. >>> >>> I have added an XXX comment to describe the dependency. We can revisit >>> this if we change the default timer in mips. >> >> It's not about default timer, but about having any other timer. But if >> you wish so, it should be enough for now. > > I'm seeing a problem with the timer code on XLR, when I run ping: > > xlrboard# ping 192.168.30.1 > PING 192.168.30.1 (192.168.30.1): 56 data bytes > 64 bytes from 192.168.30.1: icmp_seq=3D0 ttl=3D64 time=3D0.649 ms > 64 bytes from 192.168.30.1: icmp_seq=3D1 ttl=3D64 time=3D362.624 ms > 64 bytes from 192.168.30.1: icmp_seq=3D2 ttl=3D64 time=3D0.219 ms > 64 bytes from 192.168.30.1: icmp_seq=3D3 ttl=3D64 time=3D362.631 ms > 64 bytes from 192.168.30.1: icmp_seq=3D4 ttl=3D64 time=3D-362.168 ms > 64 bytes from 192.168.30.1: icmp_seq=3D5 ttl=3D64 time=3D362.628 ms > 64 bytes from 192.168.30.1: icmp_seq=3D6 ttl=3D64 time=3D0.234 ms > 64 bytes from 192.168.30.1: icmp_seq=3D7 ttl=3D64 time=3D362.631 ms > 64 bytes from 192.168.30.1: icmp_seq=3D8 ttl=3D64 time=3D0.483 ms > > This happens with the current XLR code, and even after updating it > from mips/mips/tick.c (to take in Neel's changes). > > Due to the way our network driver works, there is a likely that the > ping packets are received by different CPUs every time, but having the > negative time there seems to indicate some issue. =A0Also on XLR the > count registers are not synchronized across cores, so the values will > be different for each CPU. > > =A0I will look at some more, but meanwhile, any clue on what might be > wrong would be helpful. =A0I still haven't done the PIC timer based > timecount, that might fix it, if it is due to the count registers > being out of sync. > Can you try pinning the ping process to cpu 0 and repeat your test? Something like "cpuset -l 0 ping a.b.c.d". best Neel > Thanks, > JC. > From owner-freebsd-mips@FreeBSD.ORG Thu Aug 19 16:48:50 2010 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 3598C106567A for ; Thu, 19 Aug 2010 16:48:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id F10048FC13 for ; Thu, 19 Aug 2010 16:48:49 +0000 (UTC) Received: by iwn36 with SMTP id 36so2284218iwn.13 for ; Thu, 19 Aug 2010 09:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=94FAKMNa+CKgx1Mc4kRYtSEO/mM4E7RBYMnGehGIhOM=; b=G/e0XnsrnQ2qUkJDa+HxJVfe81VVBthwH4cEku8n9TrVXNQ3KKDV3xTO3BFXnFWjPP 83pu/f7cfUhc1ycfxGN4G3tZWI/AhcmHr8K4skmj7b4qww6wUOqjILLQnfE/aBupOsmY wYim/GM+ydlREdVDYupvRI+X5I+7Ke5mLM+ag= 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 :content-type; b=Vr0el9hy4MP6Rxgmkh0Z0+luLQXCorOkSMofnaDTHj5B+KlKmcYnzz3Fy4RbF667Ik hv0TbM3ge1FZI2DdIIX+5bPi4cy280KPrHd8u0mkj6DimnQvWJXBc4Z0+a0/t+qocCXR C0/MdjCkBjlJ7EjlbHEFBCqaNCYd6gEFR9oaM= MIME-Version: 1.0 Received: by 10.231.79.77 with SMTP id o13mr112780ibk.36.1282236529333; Thu, 19 Aug 2010 09:48:49 -0700 (PDT) Received: by 10.231.168.14 with HTTP; Thu, 19 Aug 2010 09:48:49 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Aug 2010 00:48:49 +0800 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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, 19 Aug 2010 16:48:50 -0000 I've just committed the PLL cpu ops for the AR71xx and AR91xx. i've done some light testing on both. The AR9132 in this TL-1043ND has arge0 wired to the RTL8366 switch which, thankfully, seems to have been programmed on poweron. Forcing it to 1000/full in hints and setting the phymask so the PHY check is bypassed made it work. Adrian From owner-freebsd-mips@FreeBSD.ORG Thu Aug 19 18:57:12 2010 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 33AB6106566C for ; Thu, 19 Aug 2010 18:57:12 +0000 (UTC) (envelope-from vrtuff@yahoo.com) Received: from web33202.mail.mud.yahoo.com (web33202.mail.mud.yahoo.com [209.191.69.150]) by mx1.freebsd.org (Postfix) with SMTP id E39E48FC0C for ; Thu, 19 Aug 2010 18:57:11 +0000 (UTC) Received: (qmail 88244 invoked by uid 60001); 19 Aug 2010 18:57:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1282244231; bh=+A2rsc6wvP4kl4NoChPxgGGXHtIaah4qcmMLw4PiD1o=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=fl3MLK+5nInmswyVEuFZz9NGeDc7aSyswaLK/q11F3CpJM9EDNwZTNyA8YqUVVnbB03XQt/woVsNQ9EBX3RIQPgjwZu42aA3xhBHY9REoOPNpC2+Dw7IaX5ark2C/BGHpVc1jvCrgVrkpG+34XwyvyjlzQfI73+qUhtfxEIIYGo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=mQye5c8KQNXYAER0NniWXENaRPu3mwVI14rC/NN8+DBDS5i/sPgnJmd4MTE/y9GrXpInER8/cQmcMYsBZp5L1CIPJf9Jd0C8/MrZMJYSjJhRXJW4wD0TSxwb/ldrufIO+8pgcPsGIxFN3ASKEIQ94Rcr9ITnXz3b+DsskRmJAd0=; Message-ID: <195709.86662.qm@web33202.mail.mud.yahoo.com> X-YMail-OSG: juLKPfcVM1naxteY7JKeflyS125cPgehaSK_sCL0wcNtoDA K.auKv1aob09RFkrd6i0XuPYhak_Hqyyy9eYAROkyjf3_YVGFtLC2M1taTp2 uVyr8xyYu5aVqQLp7bQi5UXw2USXgOJNNNUJ729trd1CUcGo8Kqwve38T93d ULNon3TmYQdAnydnE5O8APoQbf.F5Lq4ExvWM.mSCTLzFMgfAqGKKurGTlm_ J5ONbcMjY6ozGJxDf8EqUKG9frZfdkZOW9LCRUFXavk6XBRTLEqhaxAtvkrp ox9sqg59fFXFjzlMmw5Q2su6GvfzOJ0r7aPxnk6jCDHdB_m0fa1uux0xkDu4 p2JmcFrxxJABShO.xw9UgoMGAkFaV Received: from [24.189.140.45] by web33202.mail.mud.yahoo.com via HTTP; Thu, 19 Aug 2010 11:57:11 PDT X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950 References: Date: Thu, 19 Aug 2010 11:57:11 -0700 (PDT) From: Youri Adonis To: Adrian Chadd , freebsd-mips@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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, 19 Aug 2010 18:57:12 -0000 Are you now getting the right MAC addr? Youri ----- Original Message ---- From: Adrian Chadd To: freebsd-mips@freebsd.org Sent: Thu, August 19, 2010 12:48:49 PM Subject: Re: WIP: AR91XX (and AR724X, maybe) support I've just committed the PLL cpu ops for the AR71xx and AR91xx. i've done some light testing on both. The AR9132 in this TL-1043ND has arge0 wired to the RTL8366 switch which, thankfully, seems to have been programmed on poweron. Forcing it to 1000/full in hints and setting the phymask so the PHY check is bypassed made it work. Adrian _______________________________________________ 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 Thu Aug 19 20:52:29 2010 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 612091065695 for ; Thu, 19 Aug 2010 20:52:29 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (launchpad.bluezbox.com [195.137.202.161]) by mx1.freebsd.org (Postfix) with ESMTP id 0F3268FC13 for ; Thu, 19 Aug 2010 20:52:28 +0000 (UTC) Received: from [76.77.86.2] (helo=[10.80.7.8]) by launchpad.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1OmBer-000Hzs-7g; Thu, 19 Aug 2010 20:24:20 +0000 Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Oleksandr Tymoshenko In-Reply-To: <195709.86662.qm@web33202.mail.mud.yahoo.com> Date: Thu, 19 Aug 2010 13:23:43 -0700 Content-Transfer-Encoding: 7bit Message-Id: References: <195709.86662.qm@web33202.mail.mud.yahoo.com> To: Youri Adonis X-Mailer: Apple Mail (2.1081) Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: ---- X-Spam-Report: -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.4 AWL AWL: From: address is in the auto white-list Cc: Adrian Chadd , freebsd-mips@freebsd.org Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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, 19 Aug 2010 20:52:29 -0000 On 2010-08-19, at 11:57 AM, Youri Adonis wrote: > Are you now getting the right MAC addr? MAC address is passed to kernel by bootloader. Version in HEAD assumes that bootloader is RedBoot and handles register arguments for entry point accordingly. What's bootloader on your hardware? -- gonzo From owner-freebsd-mips@FreeBSD.ORG Thu Aug 19 22:13:13 2010 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 ADFEA10656AA for ; Thu, 19 Aug 2010 22:13:13 +0000 (UTC) (envelope-from rpaulo@freebsd.org) Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id 81F278FC17 for ; Thu, 19 Aug 2010 22:13:13 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 415DB11BB27; Thu, 19 Aug 2010 16:46:38 -0500 (CDT) Received: from 10.0.10.3 (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by lavabit.com with ESMTP id 46992BXM55GC; Thu, 19 Aug 2010 16:46:38 -0500 Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: Date: Thu, 19 Aug 2010 22:46:35 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <195709.86662.qm@web33202.mail.mud.yahoo.com> To: Oleksandr Tymoshenko X-Mailer: Apple Mail (2.1081) Cc: Adrian Chadd , freebsd-mips@freebsd.org Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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, 19 Aug 2010 22:13:13 -0000 On 19 Aug 2010, at 21:23, Oleksandr Tymoshenko wrote: > > On 2010-08-19, at 11:57 AM, Youri Adonis wrote: > >> Are you now getting the right MAC addr? > > MAC address is passed to kernel by bootloader. Version in HEAD assumes > that bootloader is RedBoot and handles register arguments for entry point > accordingly. What's bootloader on your hardware? I think he's using UBoot. Do you have patches ? :-) Regards, -- Rui Paulo From owner-freebsd-mips@FreeBSD.ORG Thu Aug 19 23:04:41 2010 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 38CD61065718 for ; Thu, 19 Aug 2010 23:04:41 +0000 (UTC) (envelope-from vrtuff@yahoo.com) Received: from web33202.mail.mud.yahoo.com (web33202.mail.mud.yahoo.com [209.191.69.150]) by mx1.freebsd.org (Postfix) with SMTP id E59FD8FC0A for ; Thu, 19 Aug 2010 23:04:40 +0000 (UTC) Received: (qmail 46125 invoked by uid 60001); 19 Aug 2010 23:04:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1282259080; bh=kjl3dlo4T7cjR29ZJ6L6XUdAa6DRlAvfMLiaidKYi/k=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=cDts5Te5pNzQ6CglnFVvsg5Z43eP3t9XVo07dAawB+v/kraquyVpn3xfcoYZgMcD1wPtTtEgcdYkGAyOmi+aCW7LDqdoLRqZCF8HAvFmw3KL+jv6LbTSWCRb+OyMPClEXZ6yiUdJ6SHu2VoK/dfGP/cjC/e5EphRGgPfKssMaPI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=bY90vKCMml+mXk8GouzSS5n8lv00Hp1sOO4wItnCuqfWovdegvzyIImnXl5coVqFmFnmYWt8ApYdzJKf4QxP34SoW+WHupVpRIxcIoVctTO3Ei3BnUq0VZ/Wncos5JiZzRK8YLEORAygguJVt6Xy8REOJHYAQBGq2rp7l8tnoYM=; Message-ID: <79729.45662.qm@web33202.mail.mud.yahoo.com> X-YMail-OSG: FQVfCiUVM1kcc8f9sQRgwBlL2WISwteg0iDwXZARso0Q.nV 2kkvbqb0zYgw6fTeOUpAkP97H17q4gZJVhHcuMYwWKKX25yYZ6xTEmlAa1A8 q.XK9VycWiCzn.YUnbWCcfbuZpdI5FhDYQBRAaS9XXNujKUJ10EW5AEnryiW ksgwQY0UpZktHHE8WcOzigtEOpzwrMBepnm_e0YT8067ujpXnhiNoPNHTQWP uuPo3gM.NSPKlwhexrK62LP_S34MdZ6Q6WqUPnBK7gf25878FI2j2sOSGsXq aYvlY2WaHXTDGvyXBX5krROcXBIlVnC_nBXbkMJ0drWv4h9KGrvhenCaHvP7 8cwLfPXXwkjG_jslWSaSVmnsj0iZJ2w-- Received: from [24.189.140.45] by web33202.mail.mud.yahoo.com via HTTP; Thu, 19 Aug 2010 16:04:39 PDT X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950 References: <195709.86662.qm@web33202.mail.mud.yahoo.com> Date: Thu, 19 Aug 2010 16:04:39 -0700 (PDT) From: Youri Adonis To: Rui Paulo , Oleksandr Tymoshenko In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Adrian Chadd , freebsd-mips@freebsd.org Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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, 19 Aug 2010 23:04:41 -0000 Gonzo, Thanks for your outstanding work. As Rui stated, uboot bootloader. Best, Youri ----- Original Message ---- From: Rui Paulo To: Oleksandr Tymoshenko Cc: Youri Adonis ; Adrian Chadd ; freebsd-mips@freebsd.org Sent: Thu, August 19, 2010 5:46:35 PM Subject: Re: WIP: AR91XX (and AR724X, maybe) support On 19 Aug 2010, at 21:23, Oleksandr Tymoshenko wrote: > > On 2010-08-19, at 11:57 AM, Youri Adonis wrote: > >> Are you now getting the right MAC addr? > > MAC address is passed to kernel by bootloader. Version in HEAD assumes > that bootloader is RedBoot and handles register arguments for entry point > accordingly. What's bootloader on your hardware? I think he's using UBoot. Do you have patches ? :-) Regards, -- Rui Paulo From owner-freebsd-mips@FreeBSD.ORG Thu Aug 19 23:16:21 2010 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 BAAC91065674 for ; Thu, 19 Aug 2010 23:16:21 +0000 (UTC) (envelope-from vrtuff@yahoo.com) Received: from web33204.mail.mud.yahoo.com (web33204.mail.mud.yahoo.com [209.191.69.152]) by mx1.freebsd.org (Postfix) with SMTP id 7047A8FC1F for ; Thu, 19 Aug 2010 23:16:21 +0000 (UTC) Received: (qmail 20054 invoked by uid 60001); 19 Aug 2010 23:16:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1282259780; bh=m5iG0MDHB93HUBEl8uW7iRlH+v6irnlAPX959KjPbe0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=vakNjKsv9/NSO34nNNY1DFvIcgPVq9OvE8skDQUJdlz3MtK5oRT++zDx0Nx6anCpWdrQ3eQ6MJRACjMzmYCu0pv2DjS/rMB8X1zp0Ja73VZ3w5llTz+ZfB5hTk9sSNLatrDNDllCnDF1mezj6bJqFR4tgPaWVHYmV2VNu//MGS8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=FoGDEb2IWLvX9mUkUTkRzt8MIuQVzi2dyd+ZjY4mibwtnFW4Fcy1s7L6gRi6Wx8yVY3FHu8RFsK6dAJdfxuXDWU3yc2bjHQTRw+KB+KRaFHfrZd/HnBJWC8FkUkrv/5hV2tBhB6ZmD6fMaG3e9nwGBGxU7uoJt/50lpyutT+T3I=; Message-ID: <803121.11916.qm@web33204.mail.mud.yahoo.com> X-YMail-OSG: m8TuDDwVM1kFJ07ZsBOrxvlVsAl7Y3HvaFA5MnynJ7LI21. NwRmhubiMyrmXJPhFFZfpFCgpqeZRRvVChVPv_rw6DBnH0rb1bof8sLRI2Uc iL3jcVy5GGxPHGh8omA0eTz0Y8tj7PeZEUAGpCkhejNGS0UvIjmCgQRfsemZ d9fUPzUkwYcH6H7Zl0AhAlnEisDVz8O0DvuMtkbqKdHWtffRY7mS2yARBUaF OIiZkxizd3VCUedKVTkMqEjULiQAljNjnnyl00na2AsMmZ5rFSlly3.xc1OC hNqKjBVjwmSUBLEqVPFE79TT3RtEsxNVMfJf3IJo76SsT6e_bELIIAjuFYw- - Received: from [24.189.140.45] by web33204.mail.mud.yahoo.com via HTTP; Thu, 19 Aug 2010 16:16:20 PDT X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950 References: <677389.94707.qm@web33207.mail.mud.yahoo.com> <746AF81F-05D4-400A-842C-75B3346E915E@gmail.com> <40010.49671.qm@web33207.mail.mud.yahoo.com> <46331CC2-D733-4669-9993-9502124EE26F@gmail.com> <284604.78262.qm@web33205.mail.mud.yahoo.com> Date: Thu, 19 Aug 2010 16:16:20 -0700 (PDT) From: Youri Adonis To: freebsd-mips@freebsd.org Cc: freebsd-mips@freebsd.org In-Reply-To: <284604.78262.qm@web33205.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Thu, 19 Aug 2010 23:25:37 +0000 Subject: Reporting success with FreeBSD on Netgear WNDR3700 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, 19 Aug 2010 23:16:21 -0000 I hit a snag with the WNDR3700 yesterday by accidentally messing up with uboot (flash). I will jtag it or just get another one Youri From owner-freebsd-mips@FreeBSD.ORG Thu Aug 19 23:16:21 2010 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 BB3A21065693 for ; Thu, 19 Aug 2010 23:16:21 +0000 (UTC) (envelope-from vrtuff@yahoo.com) Received: from web33204.mail.mud.yahoo.com (web33204.mail.mud.yahoo.com [209.191.69.152]) by mx1.freebsd.org (Postfix) with SMTP id 704238FC1C for ; Thu, 19 Aug 2010 23:16:21 +0000 (UTC) Received: (qmail 20054 invoked by uid 60001); 19 Aug 2010 23:16:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1282259780; bh=m5iG0MDHB93HUBEl8uW7iRlH+v6irnlAPX959KjPbe0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=vakNjKsv9/NSO34nNNY1DFvIcgPVq9OvE8skDQUJdlz3MtK5oRT++zDx0Nx6anCpWdrQ3eQ6MJRACjMzmYCu0pv2DjS/rMB8X1zp0Ja73VZ3w5llTz+ZfB5hTk9sSNLatrDNDllCnDF1mezj6bJqFR4tgPaWVHYmV2VNu//MGS8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=FoGDEb2IWLvX9mUkUTkRzt8MIuQVzi2dyd+ZjY4mibwtnFW4Fcy1s7L6gRi6Wx8yVY3FHu8RFsK6dAJdfxuXDWU3yc2bjHQTRw+KB+KRaFHfrZd/HnBJWC8FkUkrv/5hV2tBhB6ZmD6fMaG3e9nwGBGxU7uoJt/50lpyutT+T3I=; Message-ID: <803121.11916.qm@web33204.mail.mud.yahoo.com> X-YMail-OSG: m8TuDDwVM1kFJ07ZsBOrxvlVsAl7Y3HvaFA5MnynJ7LI21. NwRmhubiMyrmXJPhFFZfpFCgpqeZRRvVChVPv_rw6DBnH0rb1bof8sLRI2Uc iL3jcVy5GGxPHGh8omA0eTz0Y8tj7PeZEUAGpCkhejNGS0UvIjmCgQRfsemZ d9fUPzUkwYcH6H7Zl0AhAlnEisDVz8O0DvuMtkbqKdHWtffRY7mS2yARBUaF OIiZkxizd3VCUedKVTkMqEjULiQAljNjnnyl00na2AsMmZ5rFSlly3.xc1OC hNqKjBVjwmSUBLEqVPFE79TT3RtEsxNVMfJf3IJo76SsT6e_bELIIAjuFYw- - Received: from [24.189.140.45] by web33204.mail.mud.yahoo.com via HTTP; Thu, 19 Aug 2010 16:16:20 PDT X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950 References: <677389.94707.qm@web33207.mail.mud.yahoo.com> <746AF81F-05D4-400A-842C-75B3346E915E@gmail.com> <40010.49671.qm@web33207.mail.mud.yahoo.com> <46331CC2-D733-4669-9993-9502124EE26F@gmail.com> <284604.78262.qm@web33205.mail.mud.yahoo.com> Date: Thu, 19 Aug 2010 16:16:20 -0700 (PDT) From: Youri Adonis To: freebsd-mips@freebsd.org Cc: freebsd-mips@freebsd.org In-Reply-To: <284604.78262.qm@web33205.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Thu, 19 Aug 2010 23:26:03 +0000 Subject: Reporting success with FreeBSD on Netgear WNDR3700 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, 19 Aug 2010 23:16:21 -0000 I hit a snag with the WNDR3700 yesterday by accidentally messing up with uboot (flash). I will jtag it or just get another one Youri From owner-freebsd-mips@FreeBSD.ORG Fri Aug 20 00:35:19 2010 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 7D4FE1065673 for ; Fri, 20 Aug 2010 00:35:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4311E8FC14 for ; Fri, 20 Aug 2010 00:35:19 +0000 (UTC) Received: by iwn36 with SMTP id 36so2698728iwn.13 for ; Thu, 19 Aug 2010 17:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=OAdmwUcELxdZxSEr/oA2b4fTzhA9vmDkrIEkff6YnxU=; b=in0LROJIIRW3fbUw3dunJNaM06lxgqqK8RytmQw7LTjU4BL0xvDSrtqG9lcdUbXA2u j6LusyEkVrgQKrr5qKhouADeBbrNnGtL/ls+Lclu7aRMcWekaF/D+A5dlJxxFjY3QDfu AqR9gKRB8l2b4J4OuyaFTm90G7RFDlTp6b6Ow= 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=RUNN76Ak9NhFoHBrRr9WqjJi+cZT30qqYdp9SyKOa/kG0qcI231MJIGhQeHROXBbRW RmWDo3vg48eykzl4s+0TfEIjPSKgsfPGm9txqshuidpaRxs3DQay9lk9vJhKMSnZBAy/ 7doFuljJHMn9XdLP6FlX9AnoGTwS6/GOFfczQ= MIME-Version: 1.0 Received: by 10.231.30.130 with SMTP id u2mr634729ibc.111.1282264518581; Thu, 19 Aug 2010 17:35:18 -0700 (PDT) Received: by 10.231.168.14 with HTTP; Thu, 19 Aug 2010 17:35:18 -0700 (PDT) In-Reply-To: <195709.86662.qm@web33202.mail.mud.yahoo.com> References: <195709.86662.qm@web33202.mail.mud.yahoo.com> Date: Fri, 20 Aug 2010 08:35:18 +0800 Message-ID: From: Adrian Chadd To: Youri Adonis Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: WIP: AR91XX (and AR724X, maybe) support 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, 20 Aug 2010 00:35:19 -0000 On 20 August 2010 02:57, Youri Adonis wrote: > Are you now getting the right MAC addr? > Not yet. uboot-specific environment stuff is next. Eg - the machdep init code hardcodes 32mb if it doesn't get it passed in via redboot environment.. that also has to change. Adrian