Skip to contentSkip to conversation

gdth SCSI driver(?) fails with more than 4GB of memory

DISCUSSION Andrew Morton 4 participants 6 messages Jul 18, 2006 – Aug 8, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Mon, 17 Jul 2006 13:00:56 +0200
From: Andreas Barth <[email protected]>
To: [email protected]
Subject: gdth SCSI driver(?) fails with more than 4GB of memory

[please Cc me, I'm currently not subscribed.]

Hi,

I have noticed that one of my boxes stopped to boot correctly after adding more memory (in total 6 GB) and loading an adjusted kernel for that. After some testing around, we noticed that it is enough for the kernel to boot correctly if we limit the kernel to use 4GB of memory.

If the kernel has 6GB, I directly get error messages like:
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page
sda: assuming drive cache: write through
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page

The disk array controller is of type GDT8114RZ and has the most current firmware version. The box has 4 Xeon CPUs, and physical 6 GB of memory. The /-device is on the controller in question.

The full log (for 4 and for 6 GB) is put up on
http://neualius.turmzimmer.net/~aba/6GB

Any hints for me how I can use the full 6 GB of memory (and/or what I should try out to find the bug)?

Cheers,
Andi

Signature · 6 lines
  http://home.arcor.de/andreas-barth/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
#1 lore raw
Quoted 7 lines · Andreas Barth

[please Cc me, I'm currently not subscribed.]

I have noticed that one of my boxes stopped to boot correctly after adding more memory (in total 6 GB) and loading an adjusted kernel for that. After some testing around, we noticed that it is enough for the kernel to boot correctly if we limit the kernel to use 4GB of memory.

Quoted 8 lines

If the kernel has 6GB, I directly get error messages like:
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page
sda: assuming drive cache: write through
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page

This is from sd.c::sd_read_cache_type

Quoted 2 lines

Any hints for me how I can use the full 6 GB of memory (and/or what I should try out to find the bug)?

Please change the printk in sd.c around 1482 that is

printk(KERN_ERR "%s: got wrong page\n", diskname);

to

printk(KERN_ERR "%s: got wrong page (expect: 0x%x, got 0x%x)\n", diskname, modepage, buffer[offset]);

so we can see at least the reason that made it finally fail.

Eike

#2 lore raw
Quoted 23 lines · * Rolf Eike Beer ([email protected]) [060718 08:46]:
Quoted 7 lines · Andreas Barth

[please Cc me, I'm currently not subscribed.]

I have noticed that one of my boxes stopped to boot correctly after adding more memory (in total 6 GB) and loading an adjusted kernel for that. After some testing around, we noticed that it is enough for the kernel to boot correctly if we limit the kernel to use 4GB of memory.

Quoted 8 lines

If the kernel has 6GB, I directly get error messages like:
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page
sda: assuming drive cache: write through
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page

This is from sd.c::sd_read_cache_type

Quoted 2 lines

Any hints for me how I can use the full 6 GB of memory (and/or what I should try out to find the bug)?

Quoted 8 lines

Please change the printk in sd.c around 1482 that is

printk(KERN_ERR "%s: got wrong page\n", diskname);

to

printk(KERN_ERR "%s: got wrong page (expect: 0x%x, got 0x%x)\n", diskname, modepage, buffer[offset]);

With this patch, it returns now:
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page (expect: 0x8, got 0x0)
sda: assuming drive cache: write through
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page (expect: 0x8, got 0x0)

(Full log with your and this patch:

drivers/scsi/gdth.c +1 -1
@@ -1543,7 +1543,7 @@ static int __init gdth_init_pci(gdth_pci
         if (prot_ver < 0x2b)      /* FW < x.43: no 64-bit DMA support */
             ha->dma64_support = 0;
         else
-            ha->dma64_support = 1;
+            ha->dma64_support = 0;
     }
 
     return 1;

put at http://neualius.turmzimmer.net/~aba/6G/kernel-20060807.log . If you rather want your patch alone, please tell me.)

Cheers,
Andi

Signature · 1 line
  http://home.arcor.de/andreas-barth/
#3 lore raw
Quoted 10 lines

With this patch, it returns now:
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page (expect: 0x8, got 0x0)
sda: assuming drive cache: write through
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page (expect: 0x8, got 0x0)

If you rather want your patch alone, please tell me.)

No, it's ok this way. This way we just get a little more information.

Eike

#4 lore raw
In reply to Andrew Morton
Quoted 9 lines · Andrew Morton

If the kernel has 6GB, I directly get error messages like:
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page
sda: assuming drive cache: write through
SCSI device sda: 143299800 512-byte hdwr sectors (73369 MB)
sda: Write Protect is off
sda: got wrong page

Quoted 6 lines

The disk array controller is of type GDT8114RZ and has the most current firmware version. The box has 4 Xeon CPUs, and physical 6 GB of memory. The /-device is on the controller in question.

The full log (for 4 and for 6 GB) is put up on
http://neualius.turmzimmer.net/~aba/6GB

My strongest suspicion here is that the device is lying when it claims to support 64 bit DMA. Can you try this? It will turn off 64 bit DMA and only allow 32 bit DMA on your 6GB platform. If that works, we'll beed help from the gdth people to understand the issue.

Thanks,

James

drivers/scsi/gdth.c +1 -1
index 43afd47..83cf3ca 100644
@@ -1543,7 +1543,7 @@ static int __init gdth_init_pci(gdth_pci
         if (prot_ver < 0x2b)      /* FW < x.43: no 64-bit DMA support */
             ha->dma64_support = 0;
         else 
-            ha->dma64_support = 1;
+            ha->dma64_support = 0;
     }
 
     return 1;
#5 lore raw
Quoted 10 lines · * James Bottomley ([email protected]) [060718 15:37]:

My strongest suspicion here is that the device is lying when it claims to support 64 bit DMA. Can you try this? It will turn off 64 bit DMA and only allow 32 bit DMA on your 6GB platform. If that works, we'll beed help from the gdth people to understand the issue.

drivers/scsi/gdth.c +0 -0
index 43afd47..83cf3ca 100644

drivers/scsi/gdth.c static int __init gdth_init_pci(gdth_pci · line 1549

Quoted 8 lines
drivers/scsi/gdth.c +1 -1
@@ -1543,7 +1543,7 @@ static int __init gdth_init_pci(gdth_pci
         if (prot_ver < 0x2b)      /* FW < x.43: no 64-bit DMA support */
             ha->dma64_support = 0;
         else 
-            ha->dma64_support = 1;
+            ha->dma64_support = 0;
     }
 
     return 1;

Sorry, this patch didn't help me.

Cheers,
Andi

Signature · 1 line
  http://home.arcor.de/andreas-barth/