All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 32/45] aic94xx: SATA tag mask not set correctly
@ 2006-10-20 21:48 akpm
  2006-10-20 22:41 ` Darrick J. Wong
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2006-10-20 21:48 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, akpm, djwong

From: "Darrick J. Wong" <djwong@us.ibm.com>

The aic94xx controller has a bitmask establishing which tags are ok to use
with a SATA NCQ disk.  When the queue depth is 32, however, the expression
that is used sets the mask to zero, not 0xFFFFFFFF.  This patch widens the
width of the integer so that this case is handled properly.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 drivers/scsi/aic94xx/aic94xx_dev.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/aic94xx/aic94xx_dev.c~aic94xx-sata-tag-mask-not-set-correctly drivers/scsi/aic94xx/aic94xx_dev.c
--- a/drivers/scsi/aic94xx/aic94xx_dev.c~aic94xx-sata-tag-mask-not-set-correctly
+++ a/drivers/scsi/aic94xx/aic94xx_dev.c
@@ -134,7 +134,7 @@ static inline int asd_init_sata(struct d
 		if (w76 & 0x100) /* NCQ? */
 			qdepth = (w75 & 0x1F) + 1;
 		asd_ddbsite_write_dword(asd_ha, ddb, SATA_TAG_ALLOC_MASK,
-					(1<<qdepth)-1);
+					(1ULL<<qdepth)-1);
 		asd_ddbsite_write_byte(asd_ha, ddb, NUM_SATA_TAGS, qdepth);
 	}
 	if (dev->dev_type == SATA_DEV || dev->dev_type == SATA_PM ||
_

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

end of thread, other threads:[~2006-10-20 22:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-20 21:48 [patch 32/45] aic94xx: SATA tag mask not set correctly akpm
2006-10-20 22:41 ` Darrick J. Wong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.