#tyndur · 2010-07-20
330 Nachrichten · Seite 1 von 2 · Original-CSV herunterladen
- pcmattmanHmm, I'm seriously wondering now how this e1000 driver even began to work
- kwolfHeh, is it that bad?
- pcmattmanDepends
- kwolfI guess it is what happens when you write for emulators
- pcmattmanDo you judge quality by "WTFs/minute"?
- kwolflol
- kwolfWe all know that WTFs/minute is the only valid metric ;-)
- pcmattmanDid I write this code, or was it contributed from someone else? :P
- kwolfWell, there's git blame, but I'd rather not use it... ;-)
- pcmattmanHeh, the 8254xx spec explains the TCP/IP stack concept, as well as packet formats
- pcmattmanApparently programming the hardware isn't important
- kwolfThe hardware only makes trouble, so better leave it alone
- kwolfAh, right, that was the spec where you had to scroll down almost to the end to get to the interesting information
- eddyblol
- pcmattmanHmm... I do believe this driver (on Pedigree) actually maps in the MMIO region... to a virtual address
- pcmattmanHello, XanClic :)
- kwolfIt probably should, otherwise you couldn't access it, right?
- XanClicMoin
- eddybpcmattman: you could ask him of our USB problems.... but I'm not doing it :P
- eddyb(anymore)
- pcmattmankwolf: I mean, the resource list may actually be virtual addresses... so when it does cdi_mem_map, it tries to map in a virtual address instead of a physical one
- pcmattmanXanClic: if you have a moment, we wouldn't mind another set of eyes on a problem: http://stackoverflow.com/questions/3285363/usb-ehci-help-with-transaction-errors
- pcmattmankwolf: but it's very easy to find out if I'm right or not, and if I am right... well, now I know why pcnet fails on Pedigree as well
- kwolfpcmattman: Oh, this way round. Not good.
- pcmattmanv -> v mappings aren't valid :)
- kwolfThey generally produce funny effects
- eddybthey have a name...
- pcmattmanNot necessarily faults
- kwolfDepends on what data you hit
- eddybtoo bad I can't remember it :P. I think something like "forward mapping" or "direct mapping"...
- pcmattmanIt'd be nice if they did fault, but usually they just "somehow" work... especially if you're writing to reserved memory which flips back to zero after you write to it
- pcmattmanMeans stuff like resets appear to work even
- eddyblol
- kwolfAnyway, it's time for lunch.
- kwolfI'll be back later
- XanClicBreakfast, you mean
- XanCliceddyb: I'd be glad if my own EHCI driver would even disable the EHCI, so I can't help you (because there's nothing obviously wrong) :-/
- kwolfXanClic: It's not weekend ;-)
- XanClicMaybe you should try disabling all ports before enumerating them
- eddyblol, was thinking on that... took a look at your driver, nothing special you do there :|
- XanClickwolf: Well, holidays for me, that's nearly the same ;-)
- eddybdisabling?
- eddybwhat good would do that?
- XanClicMaybe all ports are reset and activated before you take control, I don't know
- pcmattmanSimple - no interference from other ports
- eddybthey aren't enabled when the driver takes control
- XanClicIt can't hurt, too *g*
- eddybfor matt, not even powered...
- pcmattmanIt'd be a perfect explanation... except that on the beagleboard there's only one port, and my Stack Overflow post is mainly the outcome from that test
- XanClicNo, it wouldn't be
- XanClicThe SETUP packet would receive more than one ACK
- XanClicI don't know if the EHC wouldn't consider that an error
- pcmattmankwolf: turns out it is a physical address... so more debugging for me :)
- pcmattmanXanClic: out of interest, does your EHCI driver work on real hardware?
- XanClic[13:26:10] <XanClic> eddyb: I'd be glad if my own EHCI driver would even disable the EHCI, so I can't help you (because there's nothing obviously wrong) :-/
- XanClicNo ;-)
- pcmattmanJust clarifying :)
- pcmattmanI think I understand why everyone says USB is so hard now... you get it working in an emulator, and that's hard enough
- pcmattmanAnd then you find out that's the first 10% of the job :(
- eddybat some point it'd be easier to hack into intel's database, take the silicon layer of ICH7 and understand it than trying to find out how to do it...
- pcmattmanAt least I know we're not alone now :)
- XanClicWell, PrettyOS has working EHCI support (afaik): http://prettyos.svn.sourceforge.net/viewvc/prettyos/trunk/Source/kernel/
- pcmattmanAnd as for the e1000 driver... I'm gonna look at doing a rewrite kind of thing, see how that goes
- XanClicThough it's not a very nice interface…
- eddyb"working" as in "in qemu"
- XanClicNope
- pcmattmanHmm, so that's where PrettyOS code is
- XanClicThey say it works on real hardware, too
- pcmattmanI read the forum discussions for implementing EHCI into PrettyOS... at least, the first 4 pages
- pcmattmanYou've been working on it too, I believe?
- eddybthey lie or their realHW is one o f the easy ones...
- XanClicNo, I helped them a bit about USB in general
- pcmattmaneddyb: download it and try it out, prove that it works or doesn't
- pcmattmanXanClic: ah, makes sense
- eddybhow do I prove it doesn't work :P ?
- pcmattmanBy trying the OS out with USB devices :)
- pcmattmanI saw a USB/CDI patch come in the other day for tyndur, but I think that was just LS/FS stuff
- pcmattmanNot ehci
- pcmattmanAnd holy crap, this is fugly code
- eddybnoticed that :P
- XanClicWell, I guess I'm the only one writing USB CDI patches for týndur, so is it my code which is that ugly? ^^
- pcmattmanI was talking about PrettyOS :P
- XanClicAh :-)
- pcmattmanAlso, I just connected "Max" with you, heh, oops :)
- eddyb******* textColor
- eddyboh, and they copied more than half of the specs into the comments
- pcmattmanI don't complain about the comments
- pcmattmanEither way, he's got it working on real hardware... and we don't
- eddybI doubt that very much
- eddybwhat does it have...?
- eddyba 250ms reset time
- eddyb?
- pcmattmanI'm still trying to figure it out
- pcmattmanAlso, ehenkes is on the forums, we might get lucky and he might respond
- pcmattmanXanClic can benefit too :)
- eddybwhat forum?
- pcmattmanosdev.org
- XanClicWell, I once asked how to disable the EHCI and nobody answered ;-)
- pcmattmanI honestly think maybe 3 or 4 users on the forum actually know these answers
- pcmattmanAnd they rarely come around
- eddybXanClic: wait, do you want to know how to forward every port to companion host controllers?
- XanClicYes
- XanClicI know theoretically how to do that…
- eddyband I know practically
- XanClicSounds nice :-)
- eddybtoo bad my UHCI driver is as working on realHW as the EHCI one :(
- XanClicWell, afair it did somehow work…
- XanClicThe disabling
- eddybI get same behavior with forwarding all ports as with disabling EHCI from BIOS
- XanClicBut all transactions failed
- pcmattmaneddyb: the only thing he does differently is chain the qTDs
- eddybwhich is "FAIL", btw
- eddybthat's funny
- pcmattmanSo the SETUP qTD's pNext == the handshake IN's qTD
- eddybI wonder what difference would that make...
- eddybbtw, don't try anything yet, I have to figure how to get a kernel and an initrd for this thing...
- pcmattmanI think that may be the answer, to be honest
- eddybah, bash script build system
- XanClic“But all my high speed devices obviously refuse to work when they're connected to a root hub. If I disable the legacy support on my computer, I get a CRC/time out error together with a stall (maybe STALL or NAK in response to my SETUP packet), if I enable it, I had the same problem at the beginning but now there are page faults (though I don't know the exact reason). So, in general: My high speed devices work behind a full speed hub. Fine. But
- XanClicthey refuse to work on a root port.”
- XanClicThat was my problem ;-)
- kwolfBack
- XanClicwb
- eddybdoes this ehkens guy know how chmod +x works?
- XanClicNo, he uses Windows
- eddyboh, how nice, he claims to have an OS in an advanced state but he has a binary kernel...
- eddybI'll have to use some floppy emulators for usb flash drives...
- eddybhmm, I don't suppose I can chainload a floppy file from grub, can I?
- kwolfPrettyOS is a "GUI without memory management" type OS, just with s/GUI/USB/
- kwolfBut GUI is the next thing they started, so...
- eddybbbs, food
- eddybI'll have a look at this "OS" when I come back
- kwolfAnyway, ehenkes is frequently on this IRC server, so I think we may /invite him as soon as he arrives
- eddybwarn me to change nick
- pcmattmanI must say, his code certainly makes a lot of sense
- eddybyou ran it to an AI parser :P ?
- eddyb*thru
- pcmattmanNo, I traced the code path
- eddybit's hard
- pcmattmanTaking what I know from the spec and applying it to what I see in his code, I see a lot of stuff that makes heaps of sense
- eddybno stable naming conventions, there's more empty spaces and comments that code...
- eddyb*than
- pcmattmanIf all you see is the problems, you'll never understand it
- eddybanyway, what about that chainload thing
- eddyb?
- pcmattmanCombines the two operations into one micro-frame, I believe
- eddyb[15:01] <eddyb> hmm, I don't suppose I can chainload a floppy file from grub, can I?
- pcmattmanOh right, that chainload
- pcmattmanDunno
- kwolfYou mean, a floppy image?
- kwolfDon't think that's possible
- kwolfehenkes just joined #lost, btw. So if you'd like to talk to him, I can invite him.
- kwolf*lol*
- pcmattmanDoes eddyb know something I don't? :)
- Love4Boobiesdammit
- Love4BoobiesI don't think I can change name with a live connection, can I?
- pcmattmanNope
- XanClicNo
- Love4Boobiesok
- pcmattmanWell, I know I'm going to be having some fun rewriting parts of our USB stack over the next couple of days
- pcmattmanMay as well invite ehenkes though, can't hurt - it benefits both tyndur, CDI and Pedigree at the same time
- Love4Boobieswhat's up?
- kwolfpcmattman: It's your choice. I can always talk to him in German-speaking channels.
- Love4Boobieswhere are those channel logs?
- kwolfirc.tyndur.org
- kwolfDid you have some trouble with him, or what's your problem?
- pcmattmanYeah, I'm trying to figure out the problem here before I make a decision
- Love4Boobieskwolf: grep your logs for boo
- kwolfHe didn't like that? ;-)
- kwolfpcmattman: The only problem I have with him is that he always thinks he's right when he definitely isn't
- pcmattmanMm, I know too many people like that
- Love4Boobiespcmattman: what do you intend on rewriting?
- kwolfI mean, he started to tell me how things work right when he had a Hello World kernel running...
- pcmattmanQH/qTD creation and integration to the async list, mainly
- Love4Boobiesah
- Love4Boobiesmay not need that
- pcmattmanMainly as a result of reading Linux's driver and now having a look at PrettyOS
- Love4BoobiesI soon as I can run this crap on realHW
- pcmattmanIf nothing else cleaning up QH and qTD creation
- pcmattmanMy point is, "as soon as" may not happen if this doesn't get redone
- Love4Boobiesso better not touch/do anything unless I can't prove him wrong
- pcmattmanNah, I'll still make the changes, they'll need to be done eventually and are one step towards a solution
- Love4Boobiesok, it has an exe for pendrive install
- Love4Boobiesplease
- pcmattmanThrow that discussion onto #pedigree, and let's get ehenkes in here and start talking about his experience
- pcmattmanIf y'all don't mind, of course
- Love4Boobiesnot at all
- kwolfOk, I'll ask him
- pcmattmanHopefully he can identify the problem and knows a solution
- kwolfHeh, I shouldn't have asked publicly, I guess ;-)
- pcmattmanHeh.
- Love4Boobiesfound it: http://menuet.2.forumer.com/index.php?showtopic=231 :)
- Love4Boobiesso it is possible :P
- ehenkeshallo
- pcmattmanEvening
- kwolfHi ehenkes
- Programm_Noobhi
- ehenkeshie rgehts um EHCI?
- kwolfYes, but the Pedigree people don't speak German ;-)
- ehenkesok, no problem