Re: 回复:Re: vgdisplay problem with hi fn795x

2008-12-07 Thread Lingbo Tang (SINA)

Evgeniy Polyakov wrote:

On Sat, Dec 06, 2008 at 10:09:55PM +0800, Lingbo Tang (SINA) ([EMAIL 
PROTECTED]) wrote:

In some cases the non-debug version can work with mkfs.xfs, but it
could not in most case.
I tried to disable most services in the system, but it seems have no
related to the system load.


So I suppose it is easy to reproduce problem. Please show 'dmesg' output
for the hung case when debug is turned off. Did you see register dump
message when that happened? Please also try attached patch and show the
hung dmesg (with tured off heavy debug).



There is no message when my system hung with debug disabled.

After I patched your new code, there is no hang anymore. I got following 
message:


Dec  7 18:06:15 localhost kernel: hifn_handle_req: nbytes: 512, started: 
23, qlen: 1, err: -115.

Dec  7 18:06:16 localhost last message repeated 87 times
Dec  7 18:06:16 localhost kernel: hifn_handle_req: nbytes: 512, started: 
23, qlen: 0, err: -115.
Dec  7 18:06:16 localhost kernel: hifn_handle_req: nbytes: 512, started: 
23, qlen: 1, err: -115.

Dec  7 18:06:18 localhost last message repeated 344 times
Dec  7 18:06:18 localhost kernel: Filesystem dm-3: Disabling barriers, 
trial barrier write failed

Dec  7 18:06:18 localhost kernel: XFS mounting filesystem dm-3
Dec  7 18:06:19 localhost kernel: hifn_handle_req: nbytes: 512, started: 
23, qlen: 1, err: -115.

Dec  7 18:06:19 localhost last message repeated 21 times
Dec  7 18:06:19 localhost kernel: XFS quotacheck dm-3: Please wait.
Dec  7 18:06:19 localhost kernel: XFS quotacheck dm-3: Done.
Dec  7 18:06:19 localhost kernel: hifn_handle_req: nbytes: 512, started: 
23, qlen: 1, err: -115.

Dec  7 18:06:19 localhost last message repeated 2 times
Dec  7 18:06:25 localhost ntpd[2125]: synchronized to LOCAL(0), stratum 10
Dec  7 18:06:25 localhost ntpd[2125]: kernel time sync enabled 0001
Dec  7 18:06:35 localhost kernel: hifn_handle_req: nbytes: 512, started: 
23, qlen: 0, err: -115.
Dec  7 18:06:35 localhost kernel: hifn_handle_req: nbytes: 512, started: 
23, qlen: 1, err: -115.


Regards,
Lingbo

--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: 回复:Re: vgdisplay problem with hi fn795x

2008-12-06 Thread Lingbo Tang (SINA)


Evgeniy Polyakov wrote:

On Sun, Nov 30, 2008 at 04:26:00PM +0800, [EMAIL PROTECTED] ([EMAIL PROTECTED]) 
wrote:

I downloaded the source file from your link and compiled successfully.
But it still hang when I tried to run mkfs.xfs.


Please enable debug mode with attached patch and send dmesg output.
Thank you.


The weird thing is that there is no problem if I turned on the debug
option. I can see kcryptd taking 99% CPU time and there are many
debug output from the serial port, but the encrypted LVM worked eventually.

In some cases the non-debug version can work with mkfs.xfs, but it
could not in most case.
I tried to disable most services in the system, but it seems have no
related to the system load.



diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
index 6e9b39c..ca621f6 100644
--- a/drivers/crypto/hifn_795x.c
+++ b/drivers/crypto/hifn_795x.c
@@ -38,7 +38,7 @@
 
 #include asm/kmap_types.h
 
-//#define HIFN_DEBUG

+#define HIFN_DEBUG
 
 #ifdef HIFN_DEBUG

 #define dprintk(f, a...)   printk(f, ##a)




--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html