#tyndur · 2010-01-28

131 Nachrichten · Seite 1 von 1 · Original-CSV herunterladen

  1. FreakyPenguinMoin
  2. kwolfMoin
  3. pcmattman1Hi kwolf, FreakyPenguin
  4. kwolfHm, the backlog for this channel is quite empty today
  5. kwolfpcmattman: Just to help you with your flooded mailbox, there must be an unanswered cdi-devel mail somewhere ;-)
  6. pcmattmanMost likely ;)
  7. kwolfRead it already?
  8. pcmattmanI'll try and find it first
  9. pcmattmanHmm, I seem to have replied already ;)
  10. kwolfWell, list.tyndur.org shows my mail as the last one in the thread ;-)
  11. pcmattmanAh, my mail client decided to be bad and send directly to you rather than the list
  12. pcmattmanFixed :)
  13. kwolfAh, that explains it. At work I have no mail client configured for tyndur.org.
  14. kwolfSo I usually read the archive
  15. pcmattmanRe-sent to the CDI-devel list now
  16. kwolfHm, I should reply to the mail instead of taking the discussion to IRC. At some point I need a mutt config here...
  17. kwolfAnyway, I'll stick with IRC for now ;-)
  18. kwolfThe problem with cdi_buffer_align is that it's a second operation that could involve copying an existing buffer
  19. 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.
  20. pcmattmanTrue
  21. pcmattmanThe name needs to be correct, but I think cdi_mem_require_flags is unintuitive
  22. kwolfadjust_flags sounds like something like realloc though, making the old buffer invalid
  23. kwolfWhat I had intended is to keep the old buffer (because you need it later to write data back)
  24. pcmattmanRight
  25. pcmattmanPerhaps quok can figure out a better name? :)
  26. kwolfcdi_mem_quok_area() ;-)
  27. pcmattmanWe could make a new concept: quokking memory ;)
  28. kwolfThat's the killer feature that would make the difference between CDI and UDI ;-)
  29. pcmattmanNah, all I need to do is figure out how to write a working SATA driver
  30. pcmattmanThat'll be the killer driver which makes CDI suddenly extremely appealing to your average hobby OS developer ;)
  31. kwolfProbably
  32. kwolfBut some network drivers that actually work wouldn't be bad either ;-)
  33. FreakyPenguin*g*
  34. pcmattmanHehe
  35. pcmattmanUDI could easily offer them though
  36. pcmattmanSATA is something everyone cares about , but very few have implemented :)
  37. kwolfIncluding emulators, unfortunately ;-)
  38. pcmattmanVirtualBox seems to have it
  39. pcmattmanPretty much every new computer has it these days
  40. kwolfThis was one of the parts of VBox that aren't in OSE, wasn't it?
  41. pcmattmanI think so
  42. 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
  43. kwolfHuh?
  44. kwolfLinux does support SATA, right?
  45. pcmattmanHave you been able to find the code for Linux's SATA driver?
  46. pcmattmanMaybe I didn't look hard enough :)
  47. kwolfWell, I can compile a Linux kernel from sources myself, so I guess it's there
  48. pcmattmanBut it may be there in the form of a binary blob which is linked into a wrapper driver
  49. pcmattmanRather than existing as pure source code
  50. pcmattmanI don't know though, everytime I try looking for it I get lost in the tree
  51. kwolfI'd consider such a thing very unlikely to be accepted for Linux...
  52. kwolfYou know, it's about free software
  53. kwolfHm, I don't even know how the driver should be called...
  54. XanClicEver looked here? http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.32.y.git;a=tree;f=drivers/ata ;-)
  55. pcmattmankwolf: some Linux distros as well as Net,Free BSD support binary blobs
  56. pcmattmanXanClic: clearly not ;)
  57. kwolfAh, it's contained in libata?
  58. pcmattmanSeems to be
  59. kwolfpcmattman: Most distros don't provide binary blobs these days
  60. kwolfGraphics driver and so on...
  61. kwolfYou need to get them from somewhere else
  62. pcmattmanRight
  63. kwolfBut I definitely didn't get a SATA driver from somewhere else
  64. kwolfpcmattman: Anyway, what's the reason you think you couldn't provide the source? Is it explicitly forbidden?
  65. 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)
  66. pcmattmanYeah, VBox probably went to a lot of effort with the EHCI emulation :)
  67. pcmattmanThe main reason I'm wary is that the specs for SATA itself are not free
  68. kwolfNor are the PCI specs
  69. pcmattmanBut by the looks of things, the actual SATA hardware developers have provided Linux drivers
  70. pcmattmanHmm, true
  71. pcmattmanWhere are the PCI specs, ooi?
  72. kwolfYou can buy them from PCI-SIG or just use Google ;-)
  73. pcmattmanGoogle > paying ;)
  74. kwolfHm, even easier, Wikipedia links to copies ;-)
  75. kwolfhttp://en.wikipedia.org/wiki/Conventional_PCI#References
  76. pcmattmanHaha, gotta love wikipedia
  77. pcmattmanThe difference between the SATA spec and the PCI spec is that the SATA spec is only $40 USD
  78. pcmattmanThe PCI spec is, per document, at least $1k USD
  79. FreakyPenguinSounds affordable ;-)
  80. pcmattmanInteresting definition of "affordable" ;)
  81. kwolfFreakyPenguin is Swiss ;-)
  82. FreakyPenguinWell 40 USD isn't that bad? ;-)
  83. pcmattman$40 USD is easy
  84. kwolfAh, you weren't talking about the 1k? ;-)
  85. FreakyPenguin*g*
  86. pcmattmanI was talking about the 1k being somewhat difficult to call affordable
  87. kwolf40 USD feels like 2,50 €, yes
  88. pcmattman40 USD doesn't hurt when you spend it
  89. pcmattman1k USD on the other hand...
  90. kwolfNow I know why you're working so hard. You're saving money for the PCI spec.
  91. kwolfWell, now that I showed you Wikipedia, you should have much more spare time ;-)
  92. pcmattmanHehe
  93. 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.
  94. kwolfFor some network cards like rtl8139 you'd need to allocate a physically contiguous buffer and copy the packet there
  95. kwolfOther networks cards (I think e1000 is among them) can gather a packet together from chunks in multiple physical buffers
  96. pcmattmanRight, that's what I thought you meant
  97. kwolfSo if we had a s/g list we can avoid the copy for e1000
  98. kwolfpcmattman: Seriously? There is a concept I explain and you don't misunderstand it at first? ;-)
  99. FreakyPenguin*g*
  100. kwolfpcmattman: Then I'm just wondering why you ask "What would be its purpose?"
  101. pcmattmanNah, I know it's purpose
  102. pcmattmanI worked with the concept when I did the 3c90x driver for Pedigree
  103. kwolfSo you asked just for fun? ;-)
  104. pcmattmanWell, I hadn't heard it called a scatter/gather list before
  105. kwolfAh, ok. Is there another name for it?
  106. kwolfOr did you just do it without even thinking about a name? ;-)
  107. pcmattmanI just implemented it without considering a name for it
  108. pcmattmanI'm not very creative with names so I don't really consider them too much
  109. kwolfSure
  110. kwolfI just thought that 3c90x documentation could have mentioned it with a different name
  111. pcmattmanNah, it didn't call it a s/g list
  112. pcmattmanNight all
  113. kwolfNight
  114. quokHmm, I like cdi_mem_quok_area()
  115. quok:)
  116. kwolfHeh, I was expecting that ;-)
  117. kwolfOk, let's come to today's German lesson. I suggest the word Feierabend. ;-)
  118. quokhrm, my timestamps are local time and not UTC anymore. Wtf.
  119. quokI was quite confused, thinking "why are you leaving work at 12:30?"
  120. quokof course, I just got out of bed at 11am
  121. quokthere, that's better :)
  122. taljethAnd I'm even back ;-)
  123. quokdo you just have to walk across the street to get home or something?
  124. XanClicI'm aware he invented a beamer
  125. XanClicHm, is "beamer" the thing in English I mean in German?
  126. taljethquok: I was working from home today
  127. XanClicNo, it is not *g*
  128. quok"beamer" is slang for BMW though :)
  129. XanClicI mean that beam-me-up-Scotty thing ;-)
  130. quokthe transporter? :)
  131. XanClicYep