home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / bsd / 11778 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.8 KB  |  61 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!utcsri!torn!spool.mu.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
  3. From: terry@cs.weber.edu (A Wizard of Earth C)
  4. Subject: Re: [386BSD] Still trying to install...
  5. Message-ID: <1993Jan24.222618.28117@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: Weber State University  (Ogden, UT)
  8. References: <1993Jan21.092014.15598@Princeton.EDU> <1993Jan24.012227.13456@fcom.cc.utah.edu> <AOKI.93Jan23202330@risk.Stanford.EDU>
  9. Date: Sun, 24 Jan 93 22:26:18 GMT
  10. Lines: 49
  11.  
  12. In article <AOKI.93Jan23202330@risk.Stanford.EDU> aoki@risk.stanford.edu (ikuro aoki) writes:
  13. >
  14. >  >>the cache overlays an area used for a disk I/O.
  15. >                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  16. >I would like to know where is the area. 
  17.  
  18. It depends on whether you are doing real DMA, or whether you are doing "DMA"
  19. by virtue of a copy-buffer after an interrupt.  Basically, this boils down
  20. to "Does the controller copy the buffer from the controller to main memory,
  21. or does the main CPU do the copy?".
  22.  
  23. In the case of real DMA, this is any address in the lower 16M of memory.
  24. It is possible (but not currently done) to restrict the region used for
  25. the DMA by placing the copy buffers at a well known address.  This would
  26. probably provide for "bounce buffers" to copy data above the 16M address
  27. limit imposed by the ISA 10-bit DMA path at the same time if you were
  28. smart.
  29.  
  30. >Is this location programable? 
  31. >Could I specify the location of the area?
  32.  
  33. The cache location?  Yes, on some hardware, no on others.  It's dependant
  34. on implementation, as is the ability to turn the cache off.
  35.  
  36. The DMA-to location?  Yes, it's specified in the buffer-address in the
  37. request... and must live below 16M.  This isn't enforced by two-staging
  38. the buffers (ala "bounce-buffers") in the current rev of Julian's SCSI
  39. driver, which is why people with > 16M of real memory have problems (in
  40. all fairness, these problems are shared with the default 0.1 SCSI driver,
  41. which only works with a single controller; thus Julian's drivers are a
  42. vast improvement no matter how you look at them).
  43.  
  44. I don't see a significant advantage to a data cache in most situations in
  45. the 386BSD kernel; my advice would be to simply turn it off.  The only
  46. data it is interesting to cache is ROM or disk contents.  386BSD does not
  47. use the first, and has it's own method of doing the second.
  48.  
  49.  
  50.                     Terry Lambert
  51.                     terry@icarus.weber.edu
  52.                     terry_lambert@novell.com
  53. ---
  54. Any opinions in this posting are my own and not those of my present
  55. or previous employers.
  56. -- 
  57. -------------------------------------------------------------------------------
  58.                                         "I have an 8 user poetic license" - me
  59.  Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
  60. -------------------------------------------------------------------------------
  61.