home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23236 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.2 KB  |  66 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!gatech!paladin.american.edu!darwin.sura.net!ra!tantalus.nrl.navy.mil!eric
  3. From: eric@tantalus.nrl.navy.mil (Eric Youngdale)
  4. Subject: Re: SCSI problem booting .99
  5. Message-ID: <C0JLrw.Hsn@ra.nrl.navy.mil>
  6. Sender: usenet@ra.nrl.navy.mil
  7. Organization: Naval Research Laboratory
  8. References: <rsvagera.1@tuwien.ac.at> <1ijff2INN8hf@sven.uni-paderborn.de>
  9. Date: Fri, 8 Jan 1993 15:59:56 GMT
  10. Lines: 54
  11.  
  12. In article <1ijff2INN8hf@sven.uni-paderborn.de> lars@sven.uni-paderborn.de (Lars Heinemann) writes:
  13. >In <rsvagera.1@tuwien.ac.at> rsvagera@tuwien.ac.at (Robert Svagera) writes:
  14. >
  15. >->I am using an Adaptec 1542b with 2 harddisks (ID 0,1) and a CD-ROM
  16. >->drive (ID 3, SCSI I device). Installing Linux SLS .99 on /dev/sdb3
  17. >->works perfectly. Booting with the new built Bootdisk hangs after
  18. >->recognizing the SCSI-drives. (HD-controller led still on)
  19. >->.98pl5 is working with the same setup!
  20. >->Any Adaptec owner using .99 successfully?
  21. >->Robert
  22. >
  23. >I have the same problem with my streamer (TEAC3600) (and 2 harddisks, A1542b)
  24. >Could someone help?
  25.  
  26.     I found a bug in the scsi code that may be responsible for these
  27. problems.  The patch is pretty simple, and I have enclosed it.
  28.  
  29. -Eric
  30.  
  31. *** scsi.c.~3~    Tue Jan  5 14:54:46 1993
  32. --- scsi.c    Thu Jan  7 20:53:49 1993
  33. ***************
  34. *** 427,434 ****
  35.     if (req) {
  36.       memcpy(&SCpnt->request, req, sizeof(struct request));
  37.       req->dev = -1;
  38. !   } else
  39.       SCpnt->request.dev = 0xffff; /* Busy, but no request */
  40.   
  41.     SCpnt->use_sg = 0;  /* Reset the scatter-gather flag */
  42.     return SCpnt;
  43. --- 427,436 ----
  44.     if (req) {
  45.       memcpy(&SCpnt->request, req, sizeof(struct request));
  46.       req->dev = -1;
  47. !   } else {
  48.       SCpnt->request.dev = 0xffff; /* Busy, but no request */
  49. +     SCpnt->request.waiting = NULL;  /* And no one is waiting for the device either */
  50. +   };
  51.   
  52.     SCpnt->use_sg = 0;  /* Reset the scatter-gather flag */
  53.     return SCpnt;
  54. ***************
  55. *** 491,496 ****
  56. --- 493,499 ----
  57.         *reqp = req->next;
  58.       } else {
  59.         SCpnt->request.dev = 0xffff; /* Busy */
  60. +       SCpnt->request.waiting = NULL;  /* And no one is waiting for this to complete */
  61.       };
  62.       sti();
  63.       break;
  64. -- 
  65. Eric Youngdale
  66.