home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-12 / text0339.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  1.6 KB  |  54 lines

  1. Howdy!
  2.  
  3. I tried this last night...
  4.  
  5. |Could anyone with a GVP controller and the system ready to compile a
  6. |kernel try the following patch:
  7. |
  8. |*** gvp11dma.c    Sun Nov 21 22:37:26 1993
  9. |--- /tmp/gvp11dma.c    Mon Dec 13 19:29:55 1993
  10. |***************
  11. |*** 77,82 ****
  12. |   * the buffer pages are physically contiguous (MAXPHYS/NBPG) and the
  13. |   * buffer is not page aligned (+1).
  14. |   */
  15. |! #define    DMAMAXIO    (MAXPHYS/NBPG+1)
  16. |  
  17. |  struct    dma_chain {
  18. |--- 77,83 ----
  19. |   * the buffer pages are physically contiguous (MAXPHYS/NBPG) and the
  20. |   * buffer is not page aligned (+1).
  21. |+  * Sigh, GVP wants 512 byte blocks, NBPG almost stalls the machine..
  22. |   */
  23. |! #define    DMAMAXIO    (MAXPHYS/512+1)
  24. |  
  25. |  struct    dma_chain {
  26. |***************
  27. |*** 249,253 ****
  28. |  
  29. |        dcp->dc_addr = (char *) kvtop(addr);
  30. |!       if (count < (tcount = NBPG - ((int)addr & PGOFSET)))
  31. |      tcount = count;
  32. |        dcp->dc_count = tcount;
  33. |--- 250,254 ----
  34. |  
  35. |        dcp->dc_addr = (char *) kvtop(addr);
  36. |!       if (count < (tcount = 512 - ((int)addr & 511)))
  37. |      tcount = count;
  38. |        dcp->dc_count = tcount;
  39. |
  40.  
  41.  
  42. Unfortunately, the system still hangs on boot up. I tried it with and
  43. without 32-bit RAM enabled. Perhaps I need newer kernel sources. I am
  44. still using v713 until 720 (or later) becomes more stable. Did anyone
  45. else try and see different behaviour?
  46.  
  47. Rob
  48.  
  49. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  50. + Rob Tulloh      WPX Development              rtulloh@austin.ibm.com +
  51. + IBM, Bldg 42, Rm 1B061, 11400 Burnet Rd. Austin, TX  (512) 823-6287 +
  52. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  53.  
  54.