* [PATCH] sym2: Mask off opcode from RBC
@ 2006-02-12 16:28 Matthew Wilcox
0 siblings, 0 replies; only message in thread
From: Matthew Wilcox @ 2006-02-12 16:28 UTC (permalink / raw)
To: linux-scsi
pm->sg.size is set from the Residual Byte Count register. However,
the upper byte of the RBC is the opcode of the instruction that was
executing, so we need to mask it off. This fixes some spurious rejects
of IGNORE WIDE RESIDUE messages.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
[James, please apply to scsi-rc-fixes]
Index: ./drivers/scsi/sym53c8xx_2/sym_hipd.c
===================================================================
RCS file: /var/lib/cvs/linux-2.6/drivers/scsi/sym53c8xx_2/sym_hipd.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -p -r1.79 -r1.80
--- ./drivers/scsi/sym53c8xx_2/sym_hipd.c 12 Feb 2006 16:10:34 -0000 1.79
+++ ./drivers/scsi/sym53c8xx_2/sym_hipd.c 12 Feb 2006 16:17:03 -0000 1.80
@@ -3596,7 +3596,7 @@ static int sym_evaluate_dp(struct sym_hc
if (pm) {
dp_scr = scr_to_cpu(pm->ret);
- dp_ofs -= scr_to_cpu(pm->sg.size);
+ dp_ofs -= scr_to_cpu(pm->sg.size) & 0x00ffffff;
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-12 16:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-12 16:28 [PATCH] sym2: Mask off opcode from RBC Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).