diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-12-30 11:42:42 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-12-30 11:42:42 +0000 |
commit | 00cb4137f724a758665d0ec66a127ccfac32100c (patch) | |
tree | dc5d539a8f2eeabc9a227bf99424bfa75068dab5 | |
parent | abb8753ea11de805f21dd867dd15d42f07f219e6 (diff) |
As we still don't have a data_page_dir support yet, transfers of more than
65535 bytes blocks silently broke. So limit ourself to 32k blocks, for now.
That mistake gave us the false impression that huge transfers were fast.
They usually resulted of 0-byte transfers. Fast indeed :-(
Now, we have real data going through.
-rw-r--r-- | sys/dev/ieee1394/fwscsi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ieee1394/fwscsi.c b/sys/dev/ieee1394/fwscsi.c index 83388f52389..2f785f21f2c 100644 --- a/sys/dev/ieee1394/fwscsi.c +++ b/sys/dev/ieee1394/fwscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fwscsi.c,v 1.7 2002/12/17 10:54:52 tdeval Exp $ */ +/* $OpenBSD: fwscsi.c,v 1.8 2002/12/30 11:42:41 tdeval Exp $ */ /* * Copyright (c) 2002 Thierry Deval. All rights reserved. @@ -994,8 +994,13 @@ fwscsi_minphys(struct buf *buf) { DPRINTF(("%s: cpl = %d(%08x)\n", __func__, cpl, cpl)); +#if 0 /* XXX - Only small transfers, until we implement data pages. */ if (buf->b_bcount > SBP2_MAX_TRANS) buf->b_bcount = SBP2_MAX_TRANS; +#else + if (buf->b_bcount > 0x8000) + buf->b_bcount = 0x8000; +#endif minphys(buf); } |