#tyndur · 2010-01-28
131 Nachrichten · Seite 1 von 1 · Original-CSV herunterladen
- FreakyPenguinMoin
- kwolfMoin
- pcmattman1Hi kwolf, FreakyPenguin
- kwolfHm, the backlog for this channel is quite empty today
- kwolfpcmattman: Just to help you with your flooded mailbox, there must be an unanswered cdi-devel mail somewhere ;-)
- pcmattmanMost likely ;)
- kwolfRead it already?
- pcmattmanI'll try and find it first
- pcmattmanHmm, I seem to have replied already ;)
- kwolfWell, list.tyndur.org shows my mail as the last one in the thread ;-)
- pcmattmanAh, my mail client decided to be bad and send directly to you rather than the list
- pcmattmanFixed :)
- kwolfAh, that explains it. At work I have no mail client configured for tyndur.org.
- kwolfSo I usually read the archive
- pcmattmanRe-sent to the CDI-devel list now
- kwolfHm, I should reply to the mail instead of taking the discussion to IRC. At some point I need a mutt config here...
- kwolfAnyway, I'll stick with IRC for now ;-)
- kwolfThe problem with cdi_buffer_align is that it's a second operation that could involve copying an existing buffer
- kwolfActually you wouldn't be guaranteed to get an aligned address that maintains previous flags like physically contiguous and < 4 GB. Which is a requirement for most drivers, even though they need alignment.
- pcmattmanTrue
- pcmattmanThe name needs to be correct, but I think cdi_mem_require_flags is unintuitive
- kwolfadjust_flags sounds like something like realloc though, making the old buffer invalid
- kwolfWhat I had intended is to keep the old buffer (because you need it later to write data back)
- pcmattmanRight
- pcmattmanPerhaps quok can figure out a better name? :)
- kwolfcdi_mem_quok_area() ;-)
- pcmattmanWe could make a new concept: quokking memory ;)
- kwolfThat's the killer feature that would make the difference between CDI and UDI ;-)
- pcmattmanNah, all I need to do is figure out how to write a working SATA driver
- pcmattmanThat'll be the killer driver which makes CDI suddenly extremely appealing to your average hobby OS developer ;)
- kwolfProbably
- kwolfBut some network drivers that actually work wouldn't be bad either ;-)
- FreakyPenguin*g*
- pcmattmanHehe
- pcmattmanUDI could easily offer them though
- pcmattmanSATA is something everyone cares about , but very few have implemented :)
- kwolfIncluding emulators, unfortunately ;-)
- pcmattmanVirtualBox seems to have it
- pcmattmanPretty much every new computer has it these days
- kwolfThis was one of the parts of VBox that aren't in OSE, wasn't it?
- pcmattmanI think so
- pcmattmanI may need to provide the SATA driver as a binary blob for legal reasons - similar to the reason VBox's SATA stuff wouldn't be in the OSE version
- kwolfHuh?
- kwolfLinux does support SATA, right?
- pcmattmanHave you been able to find the code for Linux's SATA driver?
- pcmattmanMaybe I didn't look hard enough :)
- kwolfWell, I can compile a Linux kernel from sources myself, so I guess it's there
- pcmattmanBut it may be there in the form of a binary blob which is linked into a wrapper driver
- pcmattmanRather than existing as pure source code
- pcmattmanI don't know though, everytime I try looking for it I get lost in the tree
- kwolfI'd consider such a thing very unlikely to be accepted for Linux...
- kwolfYou know, it's about free software
- kwolfHm, I don't even know how the driver should be called...
- XanClicEver looked here? http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.32.y.git;a=tree;f=drivers/ata ;-)
- pcmattmankwolf: some Linux distros as well as Net,Free BSD support binary blobs
- pcmattmanXanClic: clearly not ;)
- kwolfAh, it's contained in libata?
- pcmattmanSeems to be
- kwolfpcmattman: Most distros don't provide binary blobs these days
- kwolfGraphics driver and so on...
- kwolfYou need to get them from somewhere else
- pcmattmanRight
- kwolfBut I definitely didn't get a SATA driver from somewhere else
- kwolfpcmattman: Anyway, what's the reason you think you couldn't provide the source? Is it explicitly forbidden?
- kwolfFor VBox I had always assumed that it's just that they don't want to. Same as for their USB (they have EHCI, I think)
- pcmattmanYeah, VBox probably went to a lot of effort with the EHCI emulation :)
- pcmattmanThe main reason I'm wary is that the specs for SATA itself are not free
- kwolfNor are the PCI specs
- pcmattmanBut by the looks of things, the actual SATA hardware developers have provided Linux drivers
- pcmattmanHmm, true
- pcmattmanWhere are the PCI specs, ooi?
- kwolfYou can buy them from PCI-SIG or just use Google ;-)
- pcmattmanGoogle > paying ;)
- kwolfHm, even easier, Wikipedia links to copies ;-)
- kwolfhttp://en.wikipedia.org/wiki/Conventional_PCI#References
- pcmattmanHaha, gotta love wikipedia
- pcmattmanThe difference between the SATA spec and the PCI spec is that the SATA spec is only $40 USD
- pcmattmanThe PCI spec is, per document, at least $1k USD
- FreakyPenguinSounds affordable ;-)
- pcmattmanInteresting definition of "affordable" ;)
- kwolfFreakyPenguin is Swiss ;-)
- FreakyPenguinWell 40 USD isn't that bad? ;-)
- pcmattman$40 USD is easy
- kwolfAh, you weren't talking about the 1k? ;-)
- FreakyPenguin*g*
- pcmattmanI was talking about the 1k being somewhat difficult to call affordable
- kwolf40 USD feels like 2,50 €, yes
- pcmattman40 USD doesn't hurt when you spend it
- pcmattman1k USD on the other hand...
- kwolfNow I know why you're working so hard. You're saving money for the PCI spec.
- kwolfWell, now that I showed you Wikipedia, you should have much more spare time ;-)
- pcmattmanHehe
- kwolfHm, I haven't explained yet why I thought about the s/g lists. Think of a network packet that is stored across a page boundary. It might be virtually contiguous, but not physically.
- kwolfFor some network cards like rtl8139 you'd need to allocate a physically contiguous buffer and copy the packet there
- kwolfOther networks cards (I think e1000 is among them) can gather a packet together from chunks in multiple physical buffers
- pcmattmanRight, that's what I thought you meant
- kwolfSo if we had a s/g list we can avoid the copy for e1000
- kwolfpcmattman: Seriously? There is a concept I explain and you don't misunderstand it at first? ;-)
- FreakyPenguin*g*
- kwolfpcmattman: Then I'm just wondering why you ask "What would be its purpose?"
- pcmattmanNah, I know it's purpose
- pcmattmanI worked with the concept when I did the 3c90x driver for Pedigree
- kwolfSo you asked just for fun? ;-)
- pcmattmanWell, I hadn't heard it called a scatter/gather list before
- kwolfAh, ok. Is there another name for it?
- kwolfOr did you just do it without even thinking about a name? ;-)
- pcmattmanI just implemented it without considering a name for it
- pcmattmanI'm not very creative with names so I don't really consider them too much
- kwolfSure
- kwolfI just thought that 3c90x documentation could have mentioned it with a different name
- pcmattmanNah, it didn't call it a s/g list
- pcmattmanNight all
- kwolfNight
- quokHmm, I like cdi_mem_quok_area()
- quok:)
- kwolfHeh, I was expecting that ;-)
- kwolfOk, let's come to today's German lesson. I suggest the word Feierabend. ;-)
- quokhrm, my timestamps are local time and not UTC anymore. Wtf.
- quokI was quite confused, thinking "why are you leaving work at 12:30?"
- quokof course, I just got out of bed at 11am
- quokthere, that's better :)
- taljethAnd I'm even back ;-)
- quokdo you just have to walk across the street to get home or something?
- XanClicI'm aware he invented a beamer
- XanClicHm, is "beamer" the thing in English I mean in German?
- taljethquok: I was working from home today
- XanClicNo, it is not *g*
- quok"beamer" is slang for BMW though :)
- XanClicI mean that beam-me-up-Scotty thing ;-)
- quokthe transporter? :)
- XanClicYep