From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,141839e9ba38c572,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1994-04-11 19:45:33 PST Newsgroups: comp.os.linux.announce Path: gmd.de!nntp.gmd.de!Germany.EU.net!EU.net!uunet!pipex!zaphod.crihan.fr!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!cornell!bounce-bounce From: root@fusion.cuc.ab.ca (Superuser) Subject: [ANNOUNCE] CxPatch 0.30 is finally here! Message-ID: Followup-To: comp.os.linux.misc Keywords: CxPatch, Cyrix processor kernel patch, performance Sender: mdw@cs.cornell.edu (Matt Welsh) Reply-To: root@fusion.cuc.ab.ca (Superuser) Organization: Starbright Research Date: Tue, 12 Apr 1994 02:45:33 GMT CxPatch 0.30 is finally here. New features: ------------- 1- Linux 1.0 compatible. 2- BogoBoost code for even more speed 3- Lots of alternate patches for you to try Here's the first part of the README again: C4's Cyrix 486 patches for Linux- Version 0.30 ----------------------------------------------- DISCLAIMER ---------- First, the legal stuff.. I don't want Joe User slapping me with a suit because he thinks I destroyed his machine or his data or whatever. I take no responsibility whatsoever for any damages caused directly or as consequence of the use or non-use of the following instructions and patches. They have worked for me but they may or may not work for you. These instructions and patches are provided for purely informational purposes. Although I have checked it over, I am also not responsible for any mistakes in this text nor any direct or consequential damage caused because of them. There is no guarantee stated or implied. USE AT YOUR OWN RISK. IMPORTANT NOTE -------------- These patches are for the *Cyrix* line of 486 processors *ONLY*. They have not been tested on such chips as the IBM 486SLC or IBM 486DLC, and when used on non-Cyrix parts may have no effect or may cause untold havoc. As stated above, use at your own risk. I can offer no help at all on the subject of non-Cyrix chips, so please don't email asking for help unless you have a genuine Cyrix part. *VERY IMPORTANT NOTE* --------------------- While I'm glad to answer questions and attempt to help you solve any problems you have with this patch over email, it is *very* important that you email to the correct address. I have several email addresses, and at least one of them is reserved for research-related mail ONLY. This link is paid for, and I don't appreciate getting people's problem reports at that address. The correct address to send problem reports and other queries to is: clau@acs.ucalgary.ca. I may post articles from a variety of machines, but the above address is the *ONLY* address at which I will reply to questions about this and other packages. Mail to any other address MAY get a reply if I'm feeling good, otherwise it will be ignored. Repeated messages to the wrong address will result in a note to your system admin. Also, I've taken the time to write the README files in this package, and they answer a variety of questions that you might have, so please take the time to read them CAREFULLY before you email. Part A- Frequently Asked Questions ---------------------------------- 1- What's a Cyrix 486? A Cyrix 486 is one of several clones of the Intel 80486 CPU. The Cyrix 486 is made by Cyrix Corporation and comes in the following varieties: Part No. Description --------- ------------------------------------------------------- Cx486DLC An i486 with 1K cache in an i386 pin-compatible package. Uses standard 387 part for math coprocessor. Designed for DLC-capable motherboards, no cache coherency logic. Cx486SLC As above, but 16 bit external bus (a la i386SX) Cx486DRu2 A daughterboard with a clock doubler, cache coherency logic and a 486DLC processor. Plugs in place of i386 processor. Uses standard 387 part for math coprocessor. Cx486DRx2 The single-chip integrated version of the DRu2. Cx486SRx2 As above but for i386SX. *Cx486D i486DX pin-compatible part with 2K cache. *Cx486S i486SX pin-compatible part with 2K cache. *Cx486DX i486DX pin-compatible part with 8K cache. *Cx486SX i486SX pin-compatible part with 8K cache. * These are "real" 486 parts and don't require this patch. 2- How do the Cyrix processors compare to their Intel counterparts Assuming both systems have no external cache, a 40 MHz DLC part gets about the same performance as a 33 MHz Intel part. (At 40 MHz the DLC benchmarks faster, but for real work, the bigger cache on the Intel part plays an important role). If both machines have an external cache, the 40 MHz DLC part will get better performance. Floating point performance with an Intel 387 coprocessor is slightly better than with the 386, but still significantly below that of the built-in 487 FPU. Performance with the recommended Cyrix 83D87 coprocessor is reported to be *better* than that of the 487, but I can't confirm this. There have also been reports of incompatibilities with early revisions of both the original pre-mask change Intel and IIT 387 coprocessors. If you have one of these coprocessors and are having problems, try pulling the coprocessor before emailing for help. 3- I'd like a Cyrix processor. Which one should I get? Because of the problems with cache-coherency, unless you have a motherboard that is DLC-capable (cache coherency logic on motherboard and cache enable in BIOS) the obvious choices would be the DRu2, DRx2 and the SRx2. However the DLC and SLC parts can be found for as little as $80, whereas the DRx2 part sells for $349 (if you buy from Cyrix, possibly much less elsewhere). The cache coherency problem on the DLC and SLC parts can be worked around, but your speed will suffer badly. Depending on your application, the savings from getting the DLC part instead of the DRx2 part may be worth the performance loss. (I haven't check the price lists lately... any significant price changes?) 4- What do these patches do? The Cyrix 486 chips have an interesting design "feature"- upon power-up or reset, their chip caches are enabled, but they are set up such that the none of your memory is marked as cacheable. This is equivalent to disabling the cache outright. Without the cache, performance gain of the system vs. the original 386 processor is minimal. Enabling the cache improves system performance by 100% or more! These patches simply enable the cache on the chip so you get the best performance possible. The patches also allow the use of a DLC part on motherboards that do not directly support this chip. 5- I've got a 486DLC-capable motherboard, do I need the patch? As expressed above, a good DLC-capable motherboard's BIOS will automatically enable the chip cache, so no, you don't need this patch. How do you tell if you've got a DLC-capable motherboard? Well, the first clue is if you bought the system with a DLC chip on the board. Other clues include the presence of BIOS setup options for the DLC, the fact that you don't need any software drivers, etc to enable the cache when you boot DOS. An already high BogoMips (tm) (13 or better for a 40 MHz part) value when you boot Linux also indicates that you have a DLC-capable motherboard. Some motherboards and BIOSes claiming to be DLC aware only do their job if running an OS which uses BIOS (OS/2, DOS). These BIOSes don't enable the cache when an OS doesn't require BIOS services (like Linux or any Unix). If you have a motherboard which does this, then yes, you should install the patch. One particular motherboard which claims to be DLC aware, but isn't for Unix is the OPTi495SLC+AMI BIOS. I'd appreciate reports of any other motherboard and BIOS configurations which claim DLC awareness, but really aren't. 6- How do I install the patch? The patch comes in two parts, the first to add the Cyrix options to the kernel configuration script, and the second to add the cache-enable code to the bootstrap routine. To install, copy the patch file to your linux source directory (/usr/src/linux on most machines), and type 'dopatch'. If everything works, type 'make config' and answer the questions, then type 'make' once more to recompile the kernel. Changes between version 0.1 and 0.15: a) Fixed 'dopatch' to reflect file locations in the .tar b) Removed the duplicated patch code in setup.S.diff c) Provided setup.S.diff.alt for cases where the compiled setup.o is too big d) Provided README.ARGGH which attempts to provide solutions to some possible problems Changes between version 0.15 and version 0.20: a) Additional CD bit patch for motherboards whose BIOS do not disable this bit. b) pl11+ format config.in patch is now provided. pl11 patch is courtesy of Henrique Martins (martins@hplhasm.hpl.hp.com) c) Miscellaneous corrections and additions to the README files. Changes between version 0.20 and version 0.25: a) Modified Cyrix register settings for slight performance boost under Linux. b) Fixed the CD bit patch. c) Miscellaneous corrections and additions to the README files. Changes between version 0.25 and version 0.25a: a) The change for the boost above should not have been propagated to the DLC part. Changes between version 0.25a and version 0.30: a) Now Linux 1.0 compatible b) BogoBoost patch made an integral (but optional) part of CxPatch. c) Several different alt patches added. Choose the one that works for you. Please mail any corrections/comments/enhancments/money to clau@acs.ucalgary.ca Direct all flames/threats/rotten veggies to /dev/null -- Christopher Lau- "Mr. Unix" | / Fusion: Playing With Fire! StarBright Research | / / H + H -> He + 24 MeV -- | /_/_/_ "Bring back Trudeau!" root,lauc@fusion.cuc.ab.ca |____________ "This space for rent" -- Mail submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu Be sure to include Keywords: and a short description of your software.