public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.9-rc1-mm5 qlogic oops
@ 2004-09-13 18:35 Badari Pulavarty
  2004-09-13 21:24 ` Andrew Vasquez
  0 siblings, 1 reply; 4+ messages in thread
From: Badari Pulavarty @ 2004-09-13 18:35 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, linux-scsi

Hi,

I get this Oops with qlogic 2200 FC controllers with 2.6.9-rc1-mm5.
Is this a known issue ? Any fixes ?

Thanks,
Badari

QLogic Fibre Channel HBA Driver (c02f39b0)
ACPI: PCI interrupt 0000:04:05.0[A] -> GSI 20 (level, low) -> IRQ 20
qla2200 0000:04:05.0: Found an ISP2200, irq 20, iobase 0xf8870000
qla2200 0000:04:05.0: Configuring PCI space...
qla2200 0000:04:05.0: Configure NVRAM parameters...
Unable to handle kernel NULL pointer dereference at virtual address
00000000
 printing eip:
c02faf0a
*pde = 00518001
Oops: 0002 [#1]
SMP
Modules linked in:
CPU:    0
EIP:    0060:[<c02faf0a>]    Not tainted VLI
EFLAGS: 00010246   (2.6.9-rc1-mm5)
EIP is at qla2x00_nvram_config+0x19a/0x600
eax: 00000000   ebx: f7864248   ecx: 00000018   edx: f8870000
esi: 00000080   edi: 00000000   ebp: c508ae50   esp: c508ae18
ds: 007b   es: 007b   ss: 0068
Process swapper (pid: 1, threadinfo=c508a000 task=c50b15b0)
Stack: c508ae28 00000001 00000246 00000037 c508ae40 c0125dc4 c508ae5c
f7880000
       00000000 000000ff 00000000 f7864248 00000000 000000ff c508ae74
c02f99bf
       c040aec0 c04013b9 c530649c c508ae74 00000000 f7864248 00000000
c508af0c
Call Trace:
 [<c0108e76>] show_stack+0xa6/0xb0
 [<c0108ff2>] show_registers+0x152/0x1c0
 [<c01091fd>] die+0xed/0x180
 [<c011df6e>] do_page_fault+0x3fe/0x665
 [<c0108a5d>] error_code+0x2d/0x38
 [<c02f99bf>] qla2x00_initialize_adapter+0xcf/0x240
 [<c02f637b>] qla2x00_probe_one+0x37b/0x810
 [<c0264259>] pci_device_probe_static+0x49/0x70
 [<c02642b7>] __pci_device_probe+0x37/0x50
 [<c02642f6>] pci_device_probe+0x26/0x60
 [<c02aa4f5>] bus_match+0x35/0x80
 [<c02aa63f>] driver_attach+0x4f/0x90
 [<c02aaaed>] bus_add_driver+0x8d/0xc0
 [<c026459b>] pci_register_driver+0x6b/0xa0
 [<c04f8a8d>] qla2200_init+0xd/0x20
 [<c04dca26>] do_initcalls+0x26/0xc0
 [<c0100574>] init+0x94/0x1d0
 [<c01062b5>] kernel_thread_helper+0x5/0x10
Code: c6 40 1d 04 c6 40 47 04 c6 40 51 05 c6 40 52 08 66 c7 40 54 08 00
c6 40 6f 3c c7 45 f0 01 00 00 00 31 c0 b9 18 00 00 00 8b 7d e8 <f3> ab
8b 4d e4 0f b6 51 08 0f b6 41 09 80 ca 42 0c 21 80 e2 cf
 <0>Kernel panic - not syncing: Attempted to kill init!



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

* Re: 2.6.9-rc1-mm5 qlogic oops
  2004-09-13 18:35 2.6.9-rc1-mm5 qlogic oops Badari Pulavarty
@ 2004-09-13 21:24 ` Andrew Vasquez
  2004-09-13 22:47   ` Badari Pulavarty
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Vasquez @ 2004-09-13 21:24 UTC (permalink / raw)
  To: Badari Pulavarty; +Cc: akpm, linux-kernel, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

On Mon, 13 Sep 2004, Badari Pulavarty wrote:

> 
> I get this Oops with qlogic 2200 FC controllers with 2.6.9-rc1-mm5.
> Is this a known issue ? Any fixes ?
> 

Hmm, there seems to be some merging problems in changeset 1.44 for
qla_os.c -- the 'DMA pool/api usage' patch I sent is not completely
integrated (appears to be massaging problems while attempting to apply
on top off 1.43).

Please apply the attached patch which should address the issue.

Regards,
Andrew Vasquez

[-- Attachment #2: dma_fixups.diff --]
[-- Type: text/plain, Size: 1308 bytes --]

===== drivers/scsi/qla2xxx/qla_os.c 1.46 vs edited =====
--- 1.46/drivers/scsi/qla2xxx/qla_os.c	2004-09-06 12:07:52 -07:00
+++ edited/drivers/scsi/qla2xxx/qla_os.c	2004-09-13 14:07:23 -07:00
@@ -2892,6 +2892,19 @@
 			continue;
 		}
 
+		/* get consistent memory allocated for init control block */
+		ha->init_cb = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL,
+		    &ha->init_cb_dma);
+		if (ha->init_cb == NULL) {
+			qla_printk(KERN_WARNING, ha,
+			    "Memory Allocation failed - init_cb\n");
+
+			qla2x00_mem_free(ha);
+			msleep(100);
+
+			continue;
+		}
+		memset(ha->init_cb, 0, sizeof(init_cb_t));
 
 		/* Get consistent memory allocated for Get Port Database cmd */
 		ha->iodesc_pd = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL,
@@ -2982,21 +2995,6 @@
 			}
 			memset(ha->ct_sns, 0, sizeof(struct ct_sns_pkt));
 		}
-
-		/* Get consistent memory allocated for Get Port Database cmd */
-		ha->iodesc_pd = pci_alloc_consistent(ha->pdev,
-		    PORT_DATABASE_SIZE, &ha->iodesc_pd_dma);
-		if (ha->iodesc_pd == NULL) {
-			/* error */
-			qla_printk(KERN_WARNING, ha,
-			    "Memory Allocation failed - iodesc_pd\n");
-
-			qla2x00_mem_free(ha);
-			msleep(100);
-
-			continue;
-		}
-		memset(ha->iodesc_pd, 0, PORT_DATABASE_SIZE);
 
 		/* Done all allocations without any error. */
 		status = 0;

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

* Re: 2.6.9-rc1-mm5 qlogic oops
  2004-09-13 21:24 ` Andrew Vasquez
@ 2004-09-13 22:47   ` Badari Pulavarty
  0 siblings, 0 replies; 4+ messages in thread
From: Badari Pulavarty @ 2004-09-13 22:47 UTC (permalink / raw)
  To: Andrew Vasquez; +Cc: akpm, linux-kernel, linux-scsi

It worked. 

Thanks,
Badari

On Mon, 2004-09-13 at 14:24, Andrew Vasquez wrote:
> On Mon, 13 Sep 2004, Badari Pulavarty wrote:
> 
> > 
> > I get this Oops with qlogic 2200 FC controllers with 2.6.9-rc1-mm5.
> > Is this a known issue ? Any fixes ?
> > 
> 
> Hmm, there seems to be some merging problems in changeset 1.44 for
> qla_os.c -- the 'DMA pool/api usage' patch I sent is not completely
> integrated (appears to be massaging problems while attempting to apply
> on top off 1.43).
> 
> Please apply the attached patch which should address the issue.
> 
> Regards,
> Andrew Vasquez


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

* RE: 2.6.9-rc1-mm5 qlogic oops
@ 2004-09-13 23:06 Andrew Vasquez
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Vasquez @ 2004-09-13 23:06 UTC (permalink / raw)
  To: James Bottomley; +Cc: akpm, linux-scsi, Badari Pulavarty

[-- Attachment #1: Type: text/plain, Size: 846 bytes --]

> On Mon, 2004-09-13 at 14:24, Andrew Vasquez wrote:
> > On Mon, 13 Sep 2004, Badari Pulavarty wrote:
> > 
> > > 
> > > I get this Oops with qlogic 2200 FC controllers with
> > > 2.6.9-rc1-mm5. Is this a known issue ? Any fixes ?
> > > 
> > 
> > Hmm, there seems to be some merging problems in changeset 1.44 for
> > qla_os.c -- the 'DMA pool/api usage' patch I sent is not completely
> > integrated (appears to be massaging problems while attempting to
> > apply on top off 1.43). 
> > 
> > Please apply the attached patch which should address the issue.
> > 

On Monday, September 13, 2004 3:48 PM, Badari Pulavarty wrote:
> It worked.
>

James,

Please apply the attached patch (I missed you in the CC list for my 
original reply).  The driver in its current state will panic during 
load.

Regards,
Andrew Vasquez

[-- Attachment #2: dma_fixups.diff --]
[-- Type: application/octet-stream, Size: 1308 bytes --]

===== drivers/scsi/qla2xxx/qla_os.c 1.46 vs edited =====
--- 1.46/drivers/scsi/qla2xxx/qla_os.c	2004-09-06 12:07:52 -07:00
+++ edited/drivers/scsi/qla2xxx/qla_os.c	2004-09-13 14:07:23 -07:00
@@ -2892,6 +2892,19 @@
 			continue;
 		}
 
+		/* get consistent memory allocated for init control block */
+		ha->init_cb = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL,
+		    &ha->init_cb_dma);
+		if (ha->init_cb == NULL) {
+			qla_printk(KERN_WARNING, ha,
+			    "Memory Allocation failed - init_cb\n");
+
+			qla2x00_mem_free(ha);
+			msleep(100);
+
+			continue;
+		}
+		memset(ha->init_cb, 0, sizeof(init_cb_t));
 
 		/* Get consistent memory allocated for Get Port Database cmd */
 		ha->iodesc_pd = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL,
@@ -2982,21 +2995,6 @@
 			}
 			memset(ha->ct_sns, 0, sizeof(struct ct_sns_pkt));
 		}
-
-		/* Get consistent memory allocated for Get Port Database cmd */
-		ha->iodesc_pd = pci_alloc_consistent(ha->pdev,
-		    PORT_DATABASE_SIZE, &ha->iodesc_pd_dma);
-		if (ha->iodesc_pd == NULL) {
-			/* error */
-			qla_printk(KERN_WARNING, ha,
-			    "Memory Allocation failed - iodesc_pd\n");
-
-			qla2x00_mem_free(ha);
-			msleep(100);
-
-			continue;
-		}
-		memset(ha->iodesc_pd, 0, PORT_DATABASE_SIZE);
 
 		/* Done all allocations without any error. */
 		status = 0;

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

end of thread, other threads:[~2004-09-13 23:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-13 18:35 2.6.9-rc1-mm5 qlogic oops Badari Pulavarty
2004-09-13 21:24 ` Andrew Vasquez
2004-09-13 22:47   ` Badari Pulavarty
  -- strict thread matches above, loose matches on Subject: below --
2004-09-13 23:06 Andrew Vasquez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox