From greeen@iii.org.tw Mon Jul 9 10:51:59 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id KAA18374; Mon, 9 Jul 2001 10:51:59 +0200 (MET DST) Received-Date: Mon, 9 Jul 2001 10:51:59 +0200 (MET DST) Received: from h179-210-243-135.iii.org.tw(210.243.135.179), claiming to be "mta0.iii.org.tw" via SMTP by guadalquivir.fnet.fr, id smtpd018372; Mon Jul 9 10:51:47 2001 Received: from [140.92.66.45] (helo=iiidns.iii.org.tw) by mta0.iii.org.tw with esmtp (Exim 3.16 #1) id 15JWku-0001tw-00; Mon, 09 Jul 2001 16:51:01 +0800 Received: from Green ([140.92.12.76]) by iiidns.iii.org.tw (8.10.2/8.10.2) with SMTP id f698ofm15763; Mon, 9 Jul 2001 16:50:41 +0800 (CST) Message-ID: <000f01c10854$c86dd200$4c0c5c8c@trd.iii.org.tw> From: "Green" To: "MipsMailList" , "LinuxKernelMailList" , "LinuxEmbeddedMailList" Subject: Pcmcia RF driver again!! Date: Mon, 9 Jul 2001 16:54:19 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000C_01C10897.CBCBCEA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C10897.CBCBCEA0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Dear all, I am porting the pcmcia rf driver to the R39xx MIPS machine. The old version driver worked on the kernel 2.2.12 . As the following: /* kernel 2.2.12 */ wlandev->netdev->tbusy =3D 0; mark_bh(NET_BH); I modified it to be=20 /* kernel 2.4.0 */ netif_start_queue((struct net_device*)wlandev->netdev); netif_wake_queue((struct net_device*)wlandev->netdev); The kernel I downloaded from linux-vr didn't implement NET_BH bottom = half routine. So I can't use it. Is there anything wrong? Green ------=_NextPart_000_000C_01C10897.CBCBCEA0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Dear all,
 
I am porting the pcmcia rf = driver to the R39xx MIPS=20 machine.
The old version driver worked = on the kernel 2.2.12=20 .
As the following:
 
 /*=20 kernel 2.2.12 = */
 wlandev->netdev->tbusy =3D=20 0;
 mark_bh(NET_BH);
 
I modified it to be =
 
 /* kernel 2.4.0=20 */
 netif_start_queue((struct=20 net_device*)wlandev->netdev);
 netif_wake_queue((struct=20 net_device*)wlandev->netdev);
 
The kernel I downloaded from = linux-vr didn't implement=20 NET_BH bottom half routine.
So I can't use it.
Is there anything = wrong?
 
Green
------=_NextPart_000_000C_01C10897.CBCBCEA0-- From ralf@dea.waldorf-gmbh.de Thu Jul 12 22:46:08 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id WAA01746; Thu, 12 Jul 2001 22:46:08 +0200 (MET DST) Received-Date: Thu, 12 Jul 2001 22:46:08 +0200 (MET DST) Received: from u-43-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.43), claiming to be "dea.waldorf-gmbh.de" via SMTP by guadalquivir.fnet.fr, id smtpd001736; Thu Jul 12 22:45:57 2001 Received: (from ralf@localhost) by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f6CKjKA24015; Thu, 12 Jul 2001 22:45:20 +0200 Date: Thu, 12 Jul 2001 22:45:20 +0200 From: Ralf Baechle To: Jan-Benedict Glaw Cc: linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: Re: ll/sc emulation patch Message-ID: <20010712224520.C23062@bacchus.dhis.org> References: <20010712203727.A18294@lug-owl.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010712203727.A18294@lug-owl.de>; from jbglaw@lug-owl.de on Thu, Jul 12, 2001 at 08:37:27PM +0200 X-Accept-Language: de,en,fr On Thu, Jul 12, 2001 at 08:37:27PM +0200, Jan-Benedict Glaw wrote: > At Linuxtag 2001 in Stuttgart/Germany, I was talking to Karsten about > completing userspace. He mentioned a patch for ll/sc emulation in > kernel which was mentioned to be sent some days ago to l-k. I searched > the archives, but couldn't find it. Any pointers? There is a bunch of patches for ll/sc and MIPS_ATOMIC_SET floating around. I came to the conclusion that I don't like any of them so I'm just working on fixing the thing once and for all. Ralf From macro@ds2.pg.gda.pl Fri Jul 13 12:51:58 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id MAA08205; Fri, 13 Jul 2001 12:51:58 +0200 (MET DST) Received-Date: Fri, 13 Jul 2001 12:51:58 +0200 (MET DST) Received: from delta.ds2.pg.gda.pl(213.192.72.1) via SMTP by guadalquivir.fnet.fr, id smtpd008203; Fri Jul 13 12:51:48 2001 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id MAA03973; Fri, 13 Jul 2001 12:52:56 +0200 (MET DST) Date: Fri, 13 Jul 2001 12:52:55 +0200 (MET DST) From: "Maciej W. Rozycki" To: Ralf Baechle cc: Jan-Benedict Glaw , linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: Re: ll/sc emulation patch In-Reply-To: <20010712224520.C23062@bacchus.dhis.org> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 12 Jul 2001, Ralf Baechle wrote: > There is a bunch of patches for ll/sc and MIPS_ATOMIC_SET floating around. > I came to the conclusion that I don't like any of them so I'm just working > on fixing the thing once and for all. What about the _test_and_set syscall? Having it implemented we could get rid of the MIPS_ATOMIC_SET hack for post-2.4. Glibc may be made ready for the transition any time now. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From ralf@dea.waldorf-gmbh.de Sat Jul 14 12:53:48 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id MAA18015; Sat, 14 Jul 2001 12:53:48 +0200 (MET DST) Received-Date: Sat, 14 Jul 2001 12:53:48 +0200 (MET DST) Received: from u-121-21.karlsruhe.ipdial.viaginterkom.de(62.180.21.121), claiming to be "dea.waldorf-gmbh.de" via SMTP by guadalquivir.fnet.fr, id smtpd018013; Sat Jul 14 12:53:44 2001 Received: (from ralf@localhost) by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f6EArC906073; Sat, 14 Jul 2001 12:53:12 +0200 Date: Sat, 14 Jul 2001 12:53:12 +0200 From: Ralf Baechle To: "Maciej W. Rozycki" Cc: Jan-Benedict Glaw , linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: Re: ll/sc emulation patch Message-ID: <20010714125312.A6713@bacchus.dhis.org> References: <20010712224520.C23062@bacchus.dhis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from macro@ds2.pg.gda.pl on Fri, Jul 13, 2001 at 12:52:55PM +0200 X-Accept-Language: de,en,fr On Fri, Jul 13, 2001 at 12:52:55PM +0200, Maciej W. Rozycki wrote: > > There is a bunch of patches for ll/sc and MIPS_ATOMIC_SET floating around. > > I came to the conclusion that I don't like any of them so I'm just working > > on fixing the thing once and for all. > > What about the _test_and_set syscall? Having it implemented we could get > rid of the MIPS_ATOMIC_SET hack for post-2.4. Glibc may be made ready for > the transition any time now. I'm just making an attempt to re-implement the ll/sc emulation as light as possible. I hope to get the overhead down to the point were we don't need _test_and_set anymore - in any case below the overhead of a syscall. Have you ever profiled the number of calls to MIPS_ATOMIC_SET or _test_and_set? They'll be the other factor in a decission. Ralf From hkoerfg@web.de Sat Jul 14 19:16:48 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id TAA22114; Sat, 14 Jul 2001 19:16:48 +0200 (MET DST) Received-Date: Sat, 14 Jul 2001 19:16:48 +0200 (MET DST) Received: from mailgate3.cinetic.de(212.227.116.80) via SMTP by guadalquivir.fnet.fr, id smtpd022112; Sat Jul 14 19:16:39 2001 Received: from smtp.web.de (smtp01.web.de [194.45.170.210]) by mailgate3.cinetic.de (8.11.2/8.11.2/SuSE Linux 8.11.0-0.4) with SMTP id f6EHGYg23799; Sat, 14 Jul 2001 19:16:34 +0200 Received: from intel by smtp.web.de with smtp (freemail 4.2.2.2 #11) id m15LT1t-007oGwC; Sat, 14 Jul 2001 19:16 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Harald Koerfgen Organization: none to speak of To: Ralf Baechle , "Maciej W. Rozycki" Subject: Re: ll/sc emulation patch Date: Sat, 14 Jul 2001 19:19:37 +0200 X-Mailer: KMail [version 1.2] Cc: Jan-Benedict Glaw , linux-mips@oss.sgi.com, linux-mips@fnet.fr References: <20010712224520.C23062@bacchus.dhis.org> <20010714125312.A6713@bacchus.dhis.org> In-Reply-To: <20010714125312.A6713@bacchus.dhis.org> MIME-Version: 1.0 Message-Id: <01071419193700.00504@intel> Content-Transfer-Encoding: 8bit On Saturday 14 July 2001 12:53, Ralf Baechle wrote: > I'm just making an attempt to re-implement the ll/sc emulation as light > as possible. I hope to get the overhead down to the point were we don't > need _test_and_set anymore - in any case below the overhead of a syscall. I'd love to see something like that. What 's your idea? Greetings, Harald -- There is no distinctly native American criminal class except Congress. -- Mark Twain