Debugging new HW XOR engine driver
I am able to create a disk size of 40MB and mount it(mkfs.ext3 -b 4096 /dev/md0 10000). I was able to copy files to this mounted disk and read them back. If I increased the size more than 40MB file system if failing to mount. Is it possible that data I have read/write was in page cache and never really written to Hard Disks ? Is it safe to say RAID-5 is partially working ?
Thanks,
Marri
----- Original Message ----
From: tirumalareddy marri <[email protected]>
To: Dan Williams <[email protected]>
Cc: [email protected]; [email protected]
Sent: Tuesday, July 15, 2008 1:19:55 PM
Subject: Re: Debugging new HW XOR engine driver
Hi Dan,
440SPe was my refence driver . I am working new SOC with some modifications to XOR engines. I have most of the stuff working like ADMA and XOR(tested one block of data). When I use ADMA and SW XOR(with out HW XOR) RAID-5 works fine. When combined ADMA + XOR , having issues. When I create a file system and try to mount it fails. Which could be becasue of some state problem in XOR calculations. Is there any document about how full stripe write, partial stripe writes and recovery works in MD driver ?
Thanks,
Marri
----- Original Message ----
From: Dan Williams <[email protected]>
To: tirumalareddy marri <[email protected]>
Cc: [email protected]; [email protected]
Sent: Tuesday, July 15, 2008 11:34:48 AM
Subject: Re: Debugging new HW XOR engine driver
Quoted 1 line · tirumalareddy marri
I am working AMCC powerPC based SoC. It has XOR engine built in the HW.
Is this related to the driver started here?
[PATCH] [PPC32] ADMA support for PPC 440SPe processors.
http://marc.info/?l=linux-raid&m=117400143317440&w=2
If so, that may be a better starting point.
--
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · tirumalareddy marri
I am able to create a disk size of 40MB and mount it(mkfs.ext3 -b 4096
/dev/md010000). I was able to copy files to this mounted disk and read them back. If I increased the size more than 40MB file system if failing to mount.
Is it possible that data I have read/write was in page cache and never really written to Hard Disks ?
What does the corruption look like? Does it seem to be wrong data or stale data?
Quoted 1 line
Is it safe to say RAID-5 is partially working ?
Without more information this sounds like the hw-xor driver is broken.
What kernel version are you developing against? You may want to take
a look at the dmatest client in async_tx/next [1]. It currently only supports copy tests, but should exercise your driver's descriptor processing routines. When I tracked down bugs in iop-adma I used raid5 as the test client and modified the kernel to do data verification after each calculation in the ops_complete_* routines. This requires userspace to use a predictable data pattern when writing to the array.
--
Dan
[1] http://git.kernel.org/?p=linux/kernel/git/djbw/async_tx.git;a=shortlog;h=next