#tyndur · 2010-02-13
276 Nachrichten · Seite 1 von 2 · Original-CSV herunterladen
- quokthen I will have achieved world domination! :P
- taljethTo be accepted, cdi/os needs a clean CDI implementation, of course
- quokhow utterly recursive
- quokI'll include a symlink from cdi/os/cdi to ../../, so it'll point to cdi/
- taljethquokos still doesn't implement any part of CDI, does it?
- taljethHeh, sounds like a good approach ;-)
- quokquokos still doesn't have paging :)
- taljethOh, you haven't copied it yet? ;-)
- quokhey my name isn't TroyMartin. I don't copy everything :)
- quokgeesh, just because I ended up copying some of tyndur's pmm stuff :P
- taljethCopying paging, too, would just be consistent ;-)
- quokwell I did change some of the pmm stuff
- quokfor instance, I made it all use uintptr_t instead of void *
- quokhmm, I'd diff it and send it in as a patch but right now I cba to test tyndur aside from a compile test
- taljethHm, if you have it compiled, running qemu really isn't that hard
- taljethUsually I would run images but hesitate to compile things...
- quokwell I haven't compiled tyndur with my pmm changes.
- quokI'd also have to write an email in german :P
- quokI'll just have it say "this patch implements jelly donuts in tyndur. yum!" ;)
- taljeth*g*
- pcmattmanAh, I go and write a prototype and documentation for the prototype, and all of a sudden everyone talks lots ;)
- taljethUsually that doesn't indicate quality ;-)
- pcmattman:(
- taljethQuality of what is talked, I mean
- pcmattmanAhh, right
- pcmattmanI was going to say, I'd presume my documentation would be pretty good, as I didn't look at IRC for a whole 10 minutes
- taljethIt must have been interesting to write, at least
- taljethWhen you're done with it, send it to quok so he can translate it
- taljethIt will be a good exercise for him, so he can post on tyndur-devel in future ;-)
- quokwait, now I'm translating *to* german as well?
- quok:P
- taljethLooks like it ;-)
- quokwell, at least it's not french
- pcmattmanHeh, poor quok
- pcmattmanGood luck is all I'll say to whoever translates this
- quokhahahaha
- pcmattmanHurrah, it all compiles
- pcmattmanI'd hope so, seeing as though I merely added a prototype and documentation :)
- quokmissing semicolons always mess that up though :)
- pcmattmanIt's true
- pcmattmanAhhhhh, crap
- pcmattmanI shouldn't have rebased master, now I need to implement the mem.h stuff
- pcmattmanOh well
- pcmattmanYeah, now Pedigree doesn't build :P
- taljethYou can use your commit as the submodule head
- taljethThe mem.h patches are on top, so this would work
- pcmattmanWell, rebasing put my commit at the top
- pcmattmanAs it rewinds HEAD, applies the fetched commits, then applies your commits on top
- taljethOh, you rebased master onto your development branch?
- pcmattmanI needed to implement the mem.h stuff eventually anyway ;)
- pcmattmanRight
- taljethOuch.
- taljethSo your master is out of sync now.
- pcmattmanBy one commit, yes
- pcmattmanThe one I just sent to the list
- pcmattmanIt's alright, it'll resolve itself
- taljethHm, looks like a nice translating exercise ;-)
- pcmattmanI'm sorry :)
- pcmattmanI should make it clear right now that I'm not translating that ;)
- taljethhehe
- pcmattmanquok can though
- pcmattmanHe'll do a good job!
- pcmattmanAlso, taljeth: where are the different device-type-specific cdi_bus_data structs defined?
- taljethIn pci.h ;-)
- taljethIt's the only one so far I think
- pcmattmanOkay
- pcmattmanI'm trying to figure out how I'll do Pedigree's cdi_provide_device is all, so I need to know what my assets are :P
- taljethI assume that every device type will have its own header, so putting these structs in the respective header should work
- pcmattmanRight
- pcmattmanI'm planning on changing the PCI detection code as well to actually call cdi_provide_device rather than cdi_list_add(the_device)
- taljethLuckily, implementing a compliant cdi_provice_device is easy. ;-)
- pcmattmanJust to really test out the idea
- pcmattmanThe easiest cdi_provide_device is one line: return -2; ;)
- taljethRight. ;-)
- taljethHm, I'm just wondering why the bus driver needs to know if a driver was found
- pcmattmanWell, say it does a whole heap of setup to get the device ready for detection
- pcmattmanIt might need to do a whole lot of teardown if the device isn't actually used by the OS
- pcmattmanWe could just merge -1 and -2 into just "something bad happened", I just thought "No driver found" warranted a special error
- taljethThe OS might just be installing the driver and could use it later on. But at that point we already told the bus that there is no driver.
- taljethI think "no driver found" should be success
- pcmattmanTechnically cdi_provide_device should block until the device is provided - driver loaded, etc...
- pcmattmanAt least, that's what I think
- quokhmmmmm not sure I like that, but can't really tell you why right now either
- taljethSo if you install a driver, you need to be able to trigger a rescan on all buses at least
- pcmattmanquok: don't like blocking or not blocking?
- quokI don't like the blocking idea, I think
- pcmattmanI just think the controller needs to know if providing the device didn't succeed because there was no driver found, anywhere
- pcmattmanI would think it wouldn't attempt to start a driver load, store the device to give to the driver later, and then return "it worked"
- pcmattmanIf the driver failed during loading, or the driver didn't like the device, the controller has no way of finding out
- taljethEither the device is present or not
- taljethIf it's present the bus should provide it
- taljethIf it's not present any more, the bus should remove it
- taljethAnything that happens in between is the job of the OS
- pcmattmanprovide_device may entail a driver load, which in my opinion is a blocking concept
- pcmattmanIf the driver is already loaded, then absolutely provide_device shouldn't block
- taljethBut that's not what this call is doing but rather the OS's reaction to the call
- pcmattmanHm, okay
- pcmattmanI see what you're saying
- taljethThe bus doesn't care if a driver is loaded or not
- pcmattmanRight
- pcmattmanSo, cdi_provide_device could return 1: "Driver being loaded", and if the bus needs to know for sure if the device was successfully provided, it can call cdi_provide_device again and wait for success?
- pcmattman(The OS would need to check for an in-progress driver load, naturally)
- taljethIs there any reason for the bus to need this information?
- pcmattmanAt this stage I'm unsure
- pcmattmanI'm sure one arcane device exists that would need this kind of treatment though :)
- taljethHm, which one?
- pcmattmanI have no idea
- pcmattmanIt's up to you if we want to add this just to potentially support some random hardware device which we know nothing about yet, or if we ignore it for now and add it later if we need to
- taljethquok: What do you think?
- quokHmmm... could cdi_provide_device just return 0 or 1, and we can have another function, say cdi_query_device_state (or driver_state) to get the state of the driver? Like "no such driver", "driver loading", etc
- pcmattmanThat could work
- quokI figure that way cdi_provide_device would just return "device exists" or "device does not exist" and some other function could get a more exact state if needed
- quokIMO provide_device is just a boolean type of operation. either it works and the device exists, or it doesn't and the device doesn't exist. there's no in between :)
- quokevery now and then I have a good idea ;)
- quokjust not very often, haha
- taljethHm, I'm not sure what the state would look like, but I think I like this better
- taljethI absolutely agree that cdi_provide_device should be boolean
- taljethAnd false should only be returned if something went wrong internally, but normally there should be no way to get this
- pcmattmanI'm happy with that
- pcmattmanWant a revised patch?
- taljethIf you think everything has been discussed now, sure
- pcmattmanSent patch v2
- taljethOk, looks good. Let's just wait for a comment from Max before I commit it
- pcmattmanYup, no worries
- pcmattmanPast midnight now for you, right?
- taljeth1:16 to be precise
- pcmattmanAh, GMT+1
- pcmattman:)
- quokUTC+1 :P
- quokwho uses GMT anymore? :P
- pcmattmanI only just got used to using GMT, now everyone wants UTC :(
- taljethJust say CET ;-)
- taljethHm, a bit more than a month to go and it will be CEST again. Then we probably won't meet so often in your morning any more.
- pcmattmanUnfortunately true
- pcmattmanThe mailing list is handy for that though
- quokspeaking of the mailing list
- quokI ack'd patch v2 that wasn't v2 :)
- pcmattmanThat wasn't v2?
- quokthe second version of your patch wasn't labeled as [PATCH V2]
- pcmattmanIt totally was
- quokOh, gmail fail
- quoksorry
- pcmattmanHehe, I use gmail as well, and it merged the two into the one thread
- quokright
- pcmattmanIt's either designed to do that, or that's a bug
- quokwell, it follows the thread-id header or whatever it is, which is fine
- taljethmutt didn't do it
- quokbut it hides the subject by default in replies
- pcmattmanThis is what we get for using webmail ;)
- pcmattmanSoon I plan on moving to Google Apps for Your Domain "Premium" which supports Exchange sync (ie, Outlook :P)
- taljethProabbly gmail puts mails with similar subjects into the same thread or something
- XanClicThunderbird doesn't, too
- taljethGood morning, XanClic ;-)
- XanClicMoin, moin ;-)
- taljethYou're early up today ;-)
- XanClicYeah, I plan to watch this Vancouver thing
- XanClicDon't know how to call it in English
- XanClicOlympic Winter Games?
- quokyup
- quokI saw the video of the guy that died during his practice run on the luge. Ouch.
- XanClicI knew they'ld send the video. But I don't appreciate such behaviour...
- quokI saw it on the news. Can't really believe they aired it
- taljethYup, it was on the news here, too
- taljethAnyway, it's late enough and I'm not really interested in the opening ceremony ;-)
- taljethgn8
- XanClicgn8
- quokgn8
- pcmattmanHmm
- taljethXanClic: You might want to have a look at the cdi_provide_device patch
- pcmattmanI went to purchase something on the internet, and instead of pulling out my visa card, I pulled out my "Approved to work with children" card :/
- XanClicAh, yes, there was a window too much open, that was Thunderbird ;-)
- quokhaha
- pcmattmanI probably should think about implementing mem.h stuff into Pedigree
- pcmattmanSo much effort though :P
- XanClicAh, opening ceremony finally over
- XanClicAnd it's 6 am
- XanClicHm, "good night" would be wrong now, so good morning ;-)
- taljethEin XanClic! :-)
- taljethMoin
- XanClicMoin, moin
- taljethSo have you decided by now? CDI or fighting Nazis? ;-)
- XanClicThe police helicopter says I should take the former one ;-)
- taljethhehe
- eddybmoin :)
- XanClicMoin, eddyb
- taljethMoin
- eddybhttp://forum.osdev.org/viewtopic.php?f=1&t=21568 << is that guy trying to look important..?
- eddybzeroing all unused fields doesn't work
- eddyb:(((
- eddybi simply can't see anything wrong...
- eddybXD
- quokmoin
- XanClicMoin, quok
- XanClicBut you know, I went to bed at 6 am ;-)
- taljethMoin quok
- taljethXanClic: And you still haven't worked on CDI nor fought Nazis!
- XanClicDAMN
- XanClicHm, let's see
- XanClicDamn, who was tranlated the comment to "int cdi_provide_device(struct cdi_bus_data* device);"?
- XanClicThat was my job