new megaraid driver problem at Opteron (fwd)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I posted this message to lkml, but may be this list is more relevant
(also I added some additional debugging info here).


I've found the problem with the following configuration:

- kernel 2.6.13 compiled for x86_64
- new megaraid driver (megaraid_mm.c - 2.20.2.6, megaraid_mbox.c - 2.20.4.6)
- LSI Logic / Symbios Logic MegaRAID SATA 150-6 RAID Controller
- Dual Core AMD Opteron(tm) Processor 265 AuthenticAMD

The problem looks like read operations are OK, but all write operations
are broken (write data comes to the wrong place?).

It is possible to create partitions, file system (ext2fs), to write files -
all in 32-bit mode (with the same kernel compiled for i686). And after reboot
with x86_64 kernel all data from this filesystem are perfectly readable.

But after attempts to write to this filesystem there are two kinds of result:
(1) no visible changes, and (2) corrupted filesystem.

For example, I am trying to delete partition:

-----------------------------------------------------------------
bash-3.00# fdisk /dev/sdc
Command (m for help): p

Disk /dev/sdc: 1200.2 GB, 1200265101312 bytes
255 heads, 63 sectors/track, 145923 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         400     3212968+  83  Linux

Command (m for help): d 1
Selected partition 1

Command (m for help): p

Disk /dev/sdc: 1200.2 GB, 1200265101312 bytes
255 heads, 63 sectors/track, 145923 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
bash-3.00#
-----------------------------------------------------------------


OK, looks like partition has been deleted. But


-----------------------------------------------------------------
bash-3.00# fdisk /dev/sdc

Command (m for help): p

Disk /dev/sdc: 1200.2 GB, 1200265101312 bytes
255 heads, 63 sectors/track, 145923 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         400     3212968+  83  Linux

Command (m for help): q

bash-3.00#
-----------------------------------------------------------------


No any error diagnostics. mke2fs reports the success, but mount can't
recognize the created filesystem. I kindly appreciate any help or ideas -
what may be wrong.


Some relevant information:


bash-3.00# uname -a
Linux opteron 2.6.13 #9 SMP Mon Sep 26 18:22:36 MSD 2005 x86_64 Dual Core AMD Opteron(tm) Processor 265 AuthenticAMD GNU/Linux


From lspci -v

03:02.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID (rev 01)
Subsystem: LSI Logic / Symbios Logic MegaRAID SATA 150-6 RAID Controller
        Flags: bus master, 66Mhz, slow devsel, latency 64, IRQ 9
        Memory at dfcf0000 (32-bit, prefetchable) [size=64K]
        Expansion ROM at dfc00000 [disabled] [size=64K]
        Capabilities: [80] Power Management version 2

From dmesg:

Sep 26 19:27:52 opteron kernel: megaraid cmm: 2.20.2.6 (Release Date: Mon Mar 7 00:01:03 EST 2005) Sep 26 19:27:52 opteron kernel: megaraid: 2.20.4.6 (Release Date: Mon Mar 07 12:27:22 EST 2005) Sep 26 19:27:52 opteron kernel: megaraid: probe new device 0x1000:0x1960:0x1000:0x0523: bus 3:slot 2:func 0
Sep 26 19:27:52 opteron kernel: megaraid: fw version:[713N] bios version:[G119]
Sep 26 19:27:52 opteron kernel: scsi11 : LSI Logic MegaRAID driver
Sep 26 19:27:52 opteron kernel: scsi[11]: scanning scsi channel 0 [Phy 0] for non-raid devices Sep 26 19:27:53 opteron kernel: scsi[11]: scanning scsi channel 1 [virtual] for logical drives Sep 26 19:27:53 opteron kernel: Vendor: MegaRAID Model: LD 0 RAID0 1144G Rev: 713N Sep 26 19:27:53 opteron kernel: Type: Direct-Access ANSI SCSI revision: 02 Sep 26 19:27:53 opteron kernel: SCSI device sdc: 2344267776 512-byte hdwr sectors (1200265 MB) Sep 26 19:27:53 opteron kernel: SCSI device sdc: 2344267776 512-byte hdwr sectors (1200265 MB)
Sep 26 19:27:53 opteron kernel:  sdc: sdc1
Sep 26 19:27:53 opteron kernel: Attached scsi disk sdc at scsi11, channel 1, id 0, lun 0



After a little trivial patch for megaraid_mbox.c, which make debug messages
unconditionly, I got the following debug info:


During fdisk /dev/sda:

Sep 26 23:14:56 opteron kernel: megaraid mailbox: status:0x0 cmd:0xa7 id:0x0 sec:0x40 lba:0x0 addr:0xffffffff ld:128 sg:4
Sep 26 23:14:56 opteron kernel: scsi cmnd: 0x28 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x40 0x00 Sep 26 23:14:56 opteron kernel: megaraid mailbox: status:0x0 cmd:0xa7 id:0x0 sec:0x80 lba:0x40 addr:0xffffffff ld:128 sg:9
Sep 26 23:14:56 opteron kernel: scsi cmnd: 0x28 0x00 0x00 0x00 0x00 0x40 0x00 0x00 0x80 0x00

During writing and re-read partition table ("w" command of fdisk):

Sep 26 23:15:59 opteron kernel: megaraid mailbox: status:0x0 cmd:0xa8 id:0x0 sec:0x8 lba:0x0 addr:0xffffffff ld:128 sg:1
Sep 26 23:15:59 opteron kernel: scsi cmnd: 0x2a 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x00 Sep 26 23:16:01 opteron kernel: megaraid mailbox: status:0x0 cmd:0xc3 id:0x0 sec:0x8 lba:0x0 addr:0xffffffff ld:128 sg:1 Sep 26 23:16:01 opteron kernel: scsi cmnd: 0x25 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Sep 26 23:16:01 opteron kernel: SCSI device sdc: 2344267776 512-byte hdwr sectors (1200265 MB)
Sep 26 23:16:01 opteron kernel:  sdc:<5>megaraid mailbox: status:0x0 cmd:0xa7 id:0x0 sec:0x8 lba:0x0 addr:0xffffffff ld:128 sg:1
Sep 26 23:16:01 opteron kernel: scsi cmnd: 0x28 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x00 Sep 26 23:16:03 opteron kernel: megaraid mailbox: status:0x0 cmd:0xc3 id:0x0 sec:0x8 lba:0x0 addr:0xffffffff ld:128 sg:1 Sep 26 23:16:03 opteron kernel: scsi cmnd: 0x25 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Sep 26 23:16:03 opteron kernel: SCSI device sdc: 2344267776 512-byte hdwr sectors (1200265 MB)
Sep 26 23:16:03 opteron kernel:  sdc:<5>megaraid mailbox: status:0x0 cmd:0xa7 id:0x0 sec:0x8 lba:0x0 addr:0xffffffff ld:128 sg:1
Sep 26 23:16:03 opteron kernel: scsi cmnd: 0x28 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x00




_________________________________________________________________________
Evgeny Rodichev                          Sternberg Astronomical Institute
email: er@xxxxxxxxxx                              Moscow State University
Phone: 007 (095) 939 2383
Fax:   007 (095) 932 8841                       http://www.sai.msu.su/~er
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux