ChangeSet@1.1513, 2004-11-17 11:55:34-02:00, tonyb@cybernetics.com [PATCH] fix race condition in sg.c This patch fixes a command completion race condition in the SCSI generic driver. There are several variations of this patch floating around: #1: Original patch from me: http://marc.theaimsgroup.com/?t=105664088400001&r=1&w=2 #2: Better patch from Brian King for lk 2.6.x: http://marc.theaimsgroup.com/?t=107843139000002&r=1&w=2 #3: Patch for a related problem from Brian King for lk 2.6.x: http://marc.theaimsgroup.com/?t=108636397100004&r=1&w=2 #4: Port of combined #2 and #3 to lk 2.4.x from Tom Coughlan: http://marc.theaimsgroup.com/?t=109657360500004&r=1&w=2 #5: Correction of #4 by me: http://marc.theaimsgroup.com/?l=linux-scsi&m=109658140509138&w=2 None of these fixes have made it into lk 2.4.x yet. Below is a port of patch #2 to 2.4.x which has been extensively tested by my company. Patch #5 which includes these changes would be better, but I haven't tested it. Please apply this patch, and the additional changes for patch #5 can be merged later if and when they are tested by those interested. ChangeSet@1.1512, 2004-11-17 11:41:32-02:00, tonyb@cybernetics.com [PATCH] fix for scsi_unjam_host: Miscount of number of failed commands This is a resend of http://marc.theaimsgroup.com/?l=linux-scsi&m=108438814301446&w=2 This patch fixes a panic "scsi_unjam_host: Miscount of number of failed commands". This panic happens only under very specific circumstances: 1) A command fails with check condition 2) The low-level driver doesn't auto-retrieve the sense data 3) The sense key is "not ready" and ASC/ASCQ indicate the unit is becoming ready 4) A retry of the command fails in the same way Please apply. ChangeSet@1.1511, 2004-11-17 11:41:03-02:00, tonyb@cybernetics.com [PATCH] make SCSI error handler preserve data transfer residual This is a resend of http://marc.theaimsgroup.com/?l=linux-scsi&m=108445913200046&w=2. When a SCSI command fails, the error handler in 2.4.x may send a command such as request sense which clobbers the data transfer residual value of the original command. This patch makes the error handler save and restore the data transfer residual so that the value passed back to the upper level reflects the residual of the original command rather than the error handler's internal command. This makes a difference for userspace applications that use the /dev/sg* interface that require a correct data transfer residual count even for commands that went through error handling. Please apply. ChangeSet@1.1510, 2004-11-17 11:39:55-02:00, tonyb@cybernetics.com [PATCH] sym53c8xx_2 Ultra 160 requires LVD This patch prevents sym53c8xx_2 from attempting to negotiate Ultra 160 on a SE or HVD bus, which is invalid and confuses some devices. Please apply. ChangeSet@1.1509, 2004-11-17 11:37:00-02:00, tonyb@cybernetics.com [PATCH] sym53c8xx_2 sniff inquiry fix This is a resend of http://marc.theaimsgroup.com/?l=linux-scsi&m=108117878914404&w=2 The sym53c8xx_2 driver in lk 2.4.x is unmaintained. This is a backported fix from lk 2.6.x for a problem with sniffing inquiry data incorrectly resulting in Ultra 160 negotiation being disabled for some devices. Please apply. ChangeSet@1.1508, 2004-11-17 11:36:32-02:00, tonyb@cybernetics.com [PATCH] sym53c8xx_2 error handler fix The sym53c8xx_2 driver in lk 2.4.x is unmaintained. This is a backported fix from lk 2.6.x for a problem with the error handler never successfully completing an abort, bus reset, device reset, or host reset. This patch has been well tested at my company. Please apply. ChangeSet@1.1499.1.13, 2004-11-17 10:11:45-05:00, jgarzik@pobox.com Merge pobox.com:/garz/repo/netdev-2.4/e100e1000 into pobox.com:/garz/repo/net-drivers-2.4 ChangeSet@1.1499.1.12, 2004-11-17 10:11:22-05:00, jgarzik@pobox.com Merge pobox.com:/garz/repo/netdev-2.4/forcedeth into pobox.com:/garz/repo/net-drivers-2.4 ChangeSet@1.1499.1.11, 2004-11-17 05:49:55-02:00, marcelo@logos.cnet Changed Makefile to v2.4.28 TAG: v2.4.28