Linux SCSI subsystem development
 help / color / mirror / Atom feed
* sym53c8xx_2 fix
@ 2002-12-19 20:14 Bjorn Helgaas
  2002-12-23 11:41 ` Gérard Roudier
  0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2002-12-19 20:14 UTC (permalink / raw)
  To: groudier; +Cc: linux-scsi, gibbs

We run the sym53c8xx_2 driver on a simulator.  Because the
simulator's disk model is somewhat simplified compared to real
hardware, it exercises some code paths that are not exercised
on the hardware.

Our simulator guru found what appears to be an error in
one such path.  Here's his description and patch (against
2.4.20).  Let me know if you need more information.

Justin, I copied you because the comment immediately preceding
this code says it's part of an optimization you suggested
(negotiating for SYNC immediately after a WIDE response).

> ... There is also a bug in the driver that keeps us from
> booting.  This code path is not executed on hardware but is on the sim with
> our simple disk model.  The current driver assembles an SDTR request but
> then calls the SDTR response script.  Here is the fix:

> --- orig/linux-ia64-2.4/drivers/scsi/sym53c8xx_2/sym_hipd.c     Fri Sep 27 17:27:41 2002
> +++ fixed/linux-ia64-2.4/drivers/scsi/sym53c8xx_2/sym_hipd.c    Wed Dec 18 21:26:25 2002
> @@ -4363,7 +4363,7 @@
> 
>                         cp->nego_status = NS_SYNC;
>                         OUTB (HS_PRT, HS_NEGOTIATE);
> -                       OUTL_DSP (SCRIPTB_BA (np, sdtr_resp));
> +                       OUTL_DSP (SCRIPTB_BA (np, send_sdtr));
>                         return;
>                 }

-- 
Bjorn Helgaas - bjorn_helgaas at hp.com
Linux and Open Source Lab
Hewlett-Packard Company

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-23 11:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19 20:14 sym53c8xx_2 fix Bjorn Helgaas
2002-12-23 11:41 ` Gérard Roudier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox