I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / I-Opener Areas / I-Opener Technical Stuff
Alternate possible USB FIX (READ ME)

New MessageAlternate possible USB FIX (READ ME) (modified 0 times) Programmer
Profile
I came across a document today which implies that the way we have been doing things is somewhat wrong.
http://www.reric.net/linux/pci_latency.html

I wrote a program using the 'better' approach and setting all timers to 48 (30H)
http://bethie.net/~programmer/setlat.com

If this shows any signs of being valid, let me know and I'll merge it with wild_pencils CMOS Storage program and make it configurable.

ckbone: congrats on getting your system going good.. Drivers always were the best way to do it.. :) But I sure as **** wasn't going to write them..

georgie: care to enlighten us as to what settings you found that improved the IDE config so much?

Wild_Pencil: Thanks for the CMOS Stuff

Everybody: Good luck..

09-28-2001 07:31:19

New MessageRE:Alternate possible USB FIX (READ ME) (modified 0 times) ckbone
Profile
Programmer....I've been trying to get this new fix for a while....the page never opens for me. Is it still available?
10-07-2001 14:09:50

New MessageRE:Alternate possible USB FIX (READ ME) (modified 0 times) Reverend_Jones
Profile
The link works ok for me. Try holding "shift" and left clicking the link.
10-07-2001 15:06:22

New MessageRE:Alternate possible USB FIX (READ ME) (modified 0 times) Programmer
Profile
Unfortunately, Bethie.net is down at present while my idiotic DSL service waits to revive itself.. I'm supposedly set up, but tech support won't talk to me because I'm in 'migration' and migration has no clue about tech support, they say, everything is ready just wait up to 2 weeks and if it still isn't working give us a call.. yeah, thats helpful.
10-08-2001 07:32:59

New MessageRE:Alternate possible USB FIX (READ ME) (modified 0 times) zyxw
Profile | Email
Hmm... migraine did you say?
10-08-2001 21:29:26

New MessageRE:Alternate possible USB FIX (READ ME) (modified 0 times) Programmer
Profile
Bethie.net is back online..
10-12-2001 07:09:41

New MessageFor Linux (modified 0 times) klotz
Profile
Programmer,

I'd like to produce a Linux version of this utility -- I wrote k6mult for the K6-III+ for Linux.
Can you provide me with source, and perhaps some comments? I have trouble reading MS assembler syntax vs. GNU assembler syntax as the order of operands is different.

Thanks,
Leigh
klotz@graflex.org

10-23-2001 18:12:13

New MessageRE:Alternate possible USB FIX (READ ME) (modified 0 times) Programmer
Profile
:) it's written in NASM so there shouldn't be much problem.. (you can use NASM for linux) and it doesn't use any OS functionality at all, so there's not much to port, but here it is.. BTW, linux already (should as of 2.4.7 or something) do this or something similar.

note that while this software IS copyrighted, I won't come after you for lots of money unless I find out you made lots of money from it and didn't share.. :)

; SetLat was made by Programmer, (c) 2001.
;
; This hopefully forces settings to make the USB work Right on the IOpener
;
; Compiled using nasm: nasm SetLat.asm -f bin -o SetLat.com

org 100h

SECTION .text


start:
;MASTER
;load the Double-Word with the PCI Latency Address
mov eax,08000000Ch
mov dx,00CF8h
out dx,eax
mov dx,00CFCh
in eax, dx

;Set the byte we are pointing to to 00H
and eax, 0FFFF00FFh
or eax, 000003000h
out dx, eax

;load the Double-Word with the PCI Delay/Caching Address
mov eax,080000070h
mov dx,00CF8h
out dx,eax

;Read the Current Value into eax
mov dx,00CFCh
in eax, dx

;Set they byte we are pointing to to ???? ?00?b
And eax,0FFFFFFF9h
Or eax,000000000h
out dx, eax

;dev7func0offset0d - Not Available
;dev7func1offset0d - EIDE Controller
;load the Double-Word with the PCI Latency Address
mov eax,08000390Ch
mov dx,00CF8h
out dx,eax
mov dx,00CFCh
in eax, dx
and eax, 0FFFF00FFh
or eax, 000003000h
out dx, eax

;dev7func2offset0d - USB 0(BaseIO USB)/1
;load the Double-Word with the PCI Latency Address
mov eax,080003A0Ch
mov dx,00CF8h
out dx,eax
mov dx,00CFCh
in eax, dx
and eax, 0FFFF00FFh
or eax, 000003000h
out dx, eax

;dev7func3offset0d - USB 2/3(IO2nd USB)
;load the Double-Word with the PCI Latency Address
mov eax,080003B0Ch
mov dx,00CF8h
out dx,eax
mov dx,00CFCh
in eax, dx
and eax, 0FFFF00FFh
or eax, 000003000h
out dx, eax

;dev7func4offset0d - ACPI Stuff
;load the Double-Word with the PCI Latency Address
mov eax,080003C0Ch
mov dx,00CF8h
out dx,eax
mov dx,00CFCh
in eax, dx
and eax, 0FFFF00FFh
or eax, 000003000h
out dx, eax

;leave
ret

10-24-2001 07:39:14

New MessageI'm back... (modified 0 times) Georgie
Profile
Hi Programmer, and others,

I'm sorry for being absent for about a month, I was out of town.

Now that I'm back, I can as well return to the subject. Sooo...

As for putting 30h in all the latency timers, I don't know. Because this is what that article mentioned? ;) I have a feeling that it is just as valid in our case as any other value would be. Other than that I have to admit, ot was a nice writeup, and one sentence in the middle did get me thinking about what the ultimate solution would be.

As for the value, I did find that a value of 10h for the USB controller dramatically improved the situation - shall I say "cured" it - for my purposes. Apparently it does not work equally well for USB NICs used with NetBEUI. I still owe our BBS with a detailed description of what works and how. I will do it some day.

As for speeding up the IDE interface, watch for the HDD speed fix this weekend.

Sorry for making you wait.

Later,

Georgie

10-26-2001 20:33:02

New MessageRE:Alternate possible USB FIX (READ ME) (modified 0 times) YouBecha
Profile
I did a complete reinstall of win98 to fix some problems...did the HDD speed fix.

I can't remember which USB fixes or fix I should have installed now...

...the other PCI settings?

...georgie.com?

...fixusb.com?

All...none?

Thanx.


http://www.geocities.com/mr_bubba_zanetti/
11-10-2001 10:09:17

New MessageRE:Alternate possible USB FIX (READ ME) (modified 0 times) Georgie
Profile
Please, see the new, perfectly working USB fix here.

See you there,

Georgie

04-13-2002 21:55:55

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3