Skip to contentSkip to conversation

aacraid issues

DISCUSSION Yaroslav Klyukin 2 participants 3 messages Dec 23, 2003 – Dec 24, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I have very strange aacraid behavior:
First of all, I know, that aacraid support is experimental, but maybe the issue is related to something else in the kernel.

I have AMD Opteron system with 10 scsi disks, connected to Adaptec 2200S controller, constituting about 1.2TB in total.

I can boot with 2.4.22 kernel, compiled for Xeon, into RedHat 9 (32 bit mode). aacraid version 1.1.2. The raid works great.

Then I boot into SuSE Linux 9 for the Opterons, with 2.4.23 kernel. aacraid version 1.1-3.

Seems to work, but when I try to access blocks close to the end of the RAID, I am getting I/O errors.

Any ideas?
Where can I get the latest patches for the aacraid driver?

Just tried 2.6.0 kernel with patches for Opteron, but as soon as it starts working with Adaptec controller, it crashes miserably... :-(

#1 lore raw
Quoted 13 lines · Yaroslav Klyukin

I have very strange aacraid behavior:
First of all, I know, that aacraid support is experimental, but maybe the issue is related to something else in the kernel.

I have AMD Opteron system with 10 scsi disks, connected to Adaptec 2200S controller, constituting about 1.2TB in total.

I can boot with 2.4.22 kernel, compiled for Xeon, into RedHat 9 (32 bit mode). aacraid version 1.1.2. The raid works great.

Then I boot into SuSE Linux 9 for the Opterons, with 2.4.23 kernel. aacraid version 1.1-3.

Quoted 9 lines

Seems to work, but when I try to access blocks close to the end of the RAID, I am getting I/O errors.

Any ideas?
Where can I get the latest patches for the aacraid driver?

Just tried 2.6.0 kernel with patches for Opteron, but as soon as it starts working with Adaptec controller, it crashes miserably... :-(

Try this, someone else with a 2200 had a similar problem that this patch fixed. It will apply to 2.6.0.

===== drivers/scsi/aacraid/aachba.c 1.20 vs edited =====

drivers/scsi/aacraid/aachba.c +8 -0
@@ -525,6 +525,14 @@
 	if(dev->pae_support != 0) {
 		printk(KERN_INFO"%s%d: 64 Bit PAE enabled\n", dev->name, dev->id);
 		pci_set_dma_mask(dev->pdev, (dma_addr_t)0xFFFFFFFFFFFFFFFFULL);
+	} else {
+		/* 
+		 * Reset if Quirk 31 was used, since data 
+		 * transfers are ok.
+		 */
+		if (pci_set_dma_mask(dev->pdev, 0xFFFFFFFFULL)) {
+			printk(KERN_INFO"aacraid: Can't reset DMA mask.\n");
+		}
 	}
 
 	fib_complete(fibptr);

===== drivers/scsi/aacraid/aacraid.h 1.9 vs edited =====

drivers/scsi/aacraid/aacraid.h +2 -0
@@ -529,6 +529,8 @@
 	char *	vname;
 	char *	model;
 	u16	channels;
+	int	quirks;
+#define AAC_QUIRK_31BIT         1
 };
 
 /*

===== drivers/scsi/aacraid/linit.c 1.22 vs edited =====

drivers/scsi/aacraid/linit.c +48 -28

97 lines not on this page · raw message

Signature · 1 line
Mark Haverkamp <[email protected]>
#2 lore raw
Quoted 18 lines · Mark Haverkamp
Quoted 16 lines · Yaroslav Klyukin

I have very strange aacraid behavior:
First of all, I know, that aacraid support is experimental, but maybe the issue is related to something else in the kernel.

I have AMD Opteron system with 10 scsi disks, connected to Adaptec 2200S controller, constituting about 1.2TB in total.

I can boot with 2.4.22 kernel, compiled for Xeon, into RedHat 9 (32 bit mode). aacraid version 1.1.2. The raid works great.

Then I boot into SuSE Linux 9 for the Opterons, with 2.4.23 kernel. aacraid version 1.1-3.

Seems to work, but when I try to access blocks close to the end of the RAID, I am getting I/O errors.

Any ideas?
Where can I get the latest patches for the aacraid driver?

Quoted 6 lines
Quoted 2 lines

Just tried 2.6.0 kernel with patches for Opteron, but as soon as it starts working with Adaptec controller, it crashes miserably... :-(

Try this, someone else with a 2200 had a similar problem that this patch fixed. It will apply to 2.6.0.

Thank you very much, I will try it tomorrow.
Is there anything for 2.4.23?

Quoted 10 lines

===== drivers/scsi/aacraid/aachba.c 1.20 vs edited =====

drivers/scsi/aacraid/aachba.c +0 -0
@@ -525,6 +525,14 @@
 	if(dev->pae_support != 0) {
 		printk(KERN_INFO"%s%d: 64 Bit PAE enabled\n", dev->name, dev->id);