#tyndur · 2010-01-18
160 Nachrichten · Seite 1 von 1 · Original-CSV herunterladen
- kwolfMoin
- pcmattmanHi kwolf
- kwolfFinally some activity on the mailing list again :-)
- pcmattmanYes, good to see
- pcmattmanI'll be back soon, dinner
- FreakyPenguinMoin
- kwolfGuten Appetit, pcmattman (don't think that exists in English...)
- kwolfMoin FreakyPenguin
- kwolfFreakyPenguin: What about you? I haven't seen a mail from you on cdi-devel for a while. You're just going to take what we decide?
- FreakyPenguinAs long as it looks reasonable ;-)
- kwolfYou should know my code well enough... ;-)
- FreakyPenguin*g*
- FreakyPenguinI'm just waiting for the discussion about cdi/fs ;-)
- kwolfDo we need to discuss the rewrite or should we just do it? ;-)
- FreakyPenguinMaybe we should discuss _how_ the rewrite should look like ;-)
- kwolfProbably something that is easy to implement...
- pcmattmanBack
- FreakyPenguinkwolf: Well, what is the problem with the current implementation?
- FreakyPenguinThe problems I see: No Hardlinks, permissions aren't usable and maybe we should do something about the cache
- FreakyPenguinwb pcmattman
- kwolfHm, I haven't implement it yet. I guess it's too much abstraction. And wasn't the cache a problem?
- kwolfAnd then we need to support translation tables
- FreakyPenguinExactly ;-)
- kwolfpcmattman: In my mail I'm actually coming from a monolithic kernel, too
- pcmattmanWell, yes - in your mail
- pcmattmanI was thinking more from the perspective of CDI in general, where we need to cater for micro and monolithic kernel architectures
- kwolfAbsolutely
- pcmattmanThat didn't really come across right in the mail though :)
- kwolfBe sure that I would never neglect the needs of a microkernel system ;-)
- kwolfI'm not sure why interrupting a driver function is easier in a monolithic kernel. I mean, in a microkernel the problem I described can never happen.
- pcmattmanWell, each driver function can be called by an individual thread: there's no real problem with needing to send an IPC request to an application or anything
- pcmattmanApplication, driver, whatever your terminology is for your microkernel drivers
- kwolfBut you get the concurrency issues in a monolithic kernel, whereas in the microkernel model things are usually queued anyway
- pcmattmanThis is true
- pcmattmanUnfortunately I'm quick to ignore the concurrency issues and go with the solution which is easiest to write. It's certainly a flaw :)
- kwolfIgnoring concurreny issues and later wondering what the cause for the crash might be is always easier ;-)
- pcmattmanOr adding "/// \todo locking" ;)
- kwolfFreakyPenguin: We should add these to kernel2 ;-)
- kwolfpcmattman: Exactly this is why currently I've completely disabled IRQs while drivers are running. Or basically while any kernel code is running, with the exception of the idle task.
- kwolfIt nicely solves any concurrency issues (in exchange for some other problems, of course)
- pcmattmanRight
- pcmattmanI still think working IRQs are an important requirement for a proper CDI implementation. Concurrency issues are something we need to solve at some point, after all
- kwolfIn the end I'm going to move driver code into their own kernel threads, though. IRQs wouldn't be a problem then any more.
- kwolfBut I guess many OSes that start using CDI are in an early stage
- kwolfOr at least that's what I hope
- pcmattmanRight, so providing concurrency constructs may be as simple as a volatile char in their initial implementation
- pcmattmanIRQs are usually one of the first thing people get working, after all
- pcmattmanConcurrency however is usually one of the last things people think about
- kwolfRight
- kwolfI think if we go forward with the suggestion from the mail thread, we're fine
- pcmattmanIf you define the interface to only allow one driver function per device to be running (and make that an OS-controlled thing), you offload a bit of effort from CDI driver writers
- kwolfWe just need to find a good definition for cdi_wait_irq
- FreakyPenguin/// Does the right thing. ;-)
- kwolfpcmattman: I don't think your interruptible flag does really gain us anything. When would a driver set it and when not?
- pcmattmanWell, I don't think a driver would set it at all
- pcmattmanIt would be for interface use only, as a lock to only allow one driver function per device to be called
- pcmattmanThis "flag" could easily be a mutex or a similar concurrency construct
- kwolfIf drivers don't use it, there's no reason to include it in the interface
- pcmattmanThat's true
- kwolfThe library can do anything it wants anyway
- pcmattmanI think though it would be beneficial to use something like my cdi_wait_irq example for a future implementor's reference or something, as a psuedocode example
- pcmattmanSure, we are looking at drivers and the interface itself, but we also need to consider programmers who want to implement the CDI interface into their OS and might be a bit confused about what some terminology means
- kwolfWe might want to provide some standard functions, indeed. For example I'm going to remove the partition table code from ata (it really doesn't belong there), but I'd still like to share it.
- pcmattmanPerhaps it could go into a partition driver?
- kwolfAnother driver? Hm...
- pcmattmanIn Pedigree our partition driver is separate
- pcmattmanIt means we can talk to the partitioner directly with things like disk images without going through ATA or something
- kwolfata is something that should be easy to implement. I wouldn't feel comfortable with requiring IDC for it
- pcmattmanI'm not sure how you would make it work for tyndur/cdi
- pcmattmanI'm merely pointing out how my project does it, so you understand where I'm coming from in this instance
- kwolfRight
- kwolfIf we put the things into a library instead of a driver you wouldn't lose anything, would you?
- pcmattmanI doubt it
- kwolfAnd things like the cdi_list_t implementation are something else to share for the library that certainly can't be a driver
- pcmattmanYup
- kwolfLooks like there's still a lot to do until end of February
- kwolfHm, we're getting checksum offloading for cdi/net?
- taljethHey, quok, XanClic, we're waiting for your comments on the list
- XanClicHm, there's nothing I didn't decide not to response to ;-)
- FreakyPenguinHm das mit dem Englisch üben wir aber nochmal ;-)
- mgottschlaghey, nix gegen 3x verneint.
- XanClicIrgendwann muss man doch mit boolescher Algebra anfangen ;-)
- taljethAber zumindest müsste es respond heißen, oder? ;-)
- XanClicAh, ja ;-)
- XanClics/response/respond ;-)
- taljeth+/ ;-)
- XanClic+g?
- taljethKommt doch nur einmal vor
- XanClicEgal, kann nicht schaden ;-)
- quokXanClic: btw, for now assume that the BIOS will work properly and support devices up to 8GB with CHS only
- XanClicthx :-)
- quokI'm not going to run bootsector tests on a 386 with a 8GB HD in it :)
- XanClicI thought you planned to do so?
- XanClicOr will you just test a 8GB imag?
- XanClic*image
- quokNo, because of BIOS limitations, the large image tests will be done on more modern machines that can support those drive sizes
- XanClicAh, 386 was meant literally ;-)
- quokyes
- XanClicMy machines are modern ;-)
- quokI'm about to post all of that
- quokThen you have nothing to worry about. :)
- XanClic*g*
- quokwell, SHOULD have nothing to worry about.
- quokI'm preparing for a job interview at the end of this week, so I haven't yet finished running all my machines through the tests I have planned
- quokbut next week I should be able to post them
- quokYou're right why I chose 8GB as the max image size, too :)
- XanClicbtw, one thing I have wanted to ask for a long time: One doesn't use "an" in front of letters "starting" with a vowel such as "S" which is spoken "as" (or something like that)?
- quokDo you mean like "an old laptop" vs "a old laptop"? the former would be correct.
- XanClicI know
- XanClicBut if I use "SVO" as an abbreviation, for example
- XanClicIs it "an SVO" or "a SVO"?
- XanClicBecause when spelling the letter "S" I actually start with speaking a vowel which sounds like a short "e"
- Homixi think it is "a svo"
- XanClicJust wanted to ask someone with English as his mother tongue ;-)
- quokHmm, I have no idea which would be correct. :) the failings of american schools is now quite clearly evident! :)
- XanClicHm, I think s/as/being would be better
- XanClic*g*
- quokhmm s/is/are/
- quokbtw, I'm also glad to see that you found you cannot truly trust the BPB's geometry information
- quokthat's the one thing I kept forgetting about adding to the osdev wiki's FAT article when I wrote my fat12/16 bootsector
- XanClicHm, wiktionary states "The article an is used before vowel sounds, and a before consonant sounds." which sounds as "an SVO"
- XanClicquok: Admit it, you wanted to make it harder ;-)
- quokI did want to make it harder :)
- quokI hope I didn't mis-state that the geometry information can be assumed to be correct. The rest of the FAT information can be assumed to be correct, of course, otherwise you'd have a corrupt filesystem
- XanClicBesides of the type field ;-)
- quokbut you can't ever really trust the drive geometry, except on certain hardware.
- XanClicWhich may be assumed to be correct but with an incorrect one the FS wouldn't be broken
- XanClicHa, Wikipedia ftw
- XanClic"an SSO"
- XanClic:-)
- XanClic"an LWR (Note: When an acronym is spelled out, rather than spelling out what it is that is represented by the letters in the acronym, the phonetics of the acronym should be used when reading the text aloud. So the use of "a" or "an" as shown in this example is correct based on the proper application of this rule)"
- XanClicSo it would be "an 8GB image", too ;-)
- HomixXanClic: link? ;)
- XanClichttp://en.wikipedia.org/wiki/English_articles#Indefinite_article :-P
- XanClicIt also says "now used before words starting with a vowel sound, regardless of whether the word begins with a vowel letter."
- quokbah, why does English has to be so complicated? :)
- XanClicEscape is useless *g*
- XanClicI don't think it to be complicated, that's the way I always did it ;-)
- XanClicRead my forum posts ;-)
- quokhmm, well, when I take over the world and every computing device runs QuokOS, I'll also make the official language quokish
- XanClic*g*
- quokin Quokish, the world 'quok' is used like the word 'smurf' in the world of the Smurfs
- quok"have a quok day!" or "I'm going to go quok your wife, you bastard" ;)
- XanClicAnd about greetings - "good morning" and "good night" are "official" greetings? Just want to be sure, I don't translate too literal ;-)
- XanClic*g*
- XanClicHm, wasn't there also a word like that in The Hitchhiker's Guide To The Galaxy?
- quok"How was your day? "Quite quok, thank you very much!" (or "Damn, it was the mother quok")
- XanClic*g*
- XanClicHm, pcmattman is already awake?
- XanClicThat means I should go to bed now *g*
- quokwhat timezone are you in, btw?
- XanClicUTC+1
- XanClicIt's 10:35 pm here
- quokfor some reason I was thinking UTC+2
- XanClicThat's in summer time ;-)
- XanClicI have three clocks here
- XanClicOne for Kansas City, one for me and one for pcmattman's city, I can never remember that name *g*
- XanClicThe timezone was the same of Brisbane, that clock says
- XanClicAh, Rockhampton
- XanClicGood night and thanks for making that CHS thing clearer :-)