Skip to contentSkip to conversation

v3.5-rc1 ARM PXA possible regression

DISCUSSION Andrew Lunn 4 participants 4 messages Jun 4, 2012

lore
Share & tools
lore
#1 lore raw
Quoted 1 line · Andrew Lunn

Hi Paul

Hi,

Quoted 10 lines

I've got the same problem on my kirkwood based QNAP NAS box.

I bisected it, and the problem patch for me is:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=7ff9554bb578ba02166071d2d487b7fc7d860d62

printk: convert byte-buffer to variable-length record buffer

I've not looked further, so i've no idea why this is causing problems.

There has been discussions here about that iirc. I don't know when a proper fix will be merged but one *very* *ugly* workaround is:

kernel/printk.c 2012-06-03 16:41:24.000000000 +0200 renamed from kernel/printk.c 2012-06-03 15:26:20.000000000 +0200 +1 -1
@@ -228,7 +228,7 @@ static u32 clear_idx;
 
 /* record buffer */
 #if !defined(CONFIG_64BIT) || defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS)
-#define LOG_ALIGN 4
+#define LOG_ALIGN 8
 #else
 #define LOG_ALIGN 8
 #endif

At least it seems to work here.

Arnaud

#2 lore raw

Hello Andrew and Arnaud,

Yes, that fixed it! I now see kernel messages on the screen.

Thank you for your help.

Regards,
Paul

Quoted 45 lines · Arnaud Patard

Andrew Lunn <[email protected]>

Quoted 1 line · writes:

Hi Paul

Hi,

Quoted 2 lines

I've got the same problem on my kirkwood based QNAP NAS

box.

Quoted 6 lines

I bisected it, and the problem patch for me is:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=7ff9554bb578ba02166071d2d487b7fc7d860d62

printk: convert byte-buffer to variable-length record

buffer

Quoted 2 lines

I've not looked further, so i've no idea why this is

causing problems.

There has been discussions here about that iirc. I don't know when a
proper fix will be merged but one *very* *ugly* workaround is:

--- linux.orig/kernel/printk.c? 2012-06-03
15:26:20.000000000 +0200
+++ linux/kernel/printk.c? ?
???2012-06-03 16:41:24.000000000 +0200

kernel/printk.c 2012-06-03 16:41:24.000000000 +0200 renamed from kernel/printk.c 2012-06-03 15:26:20.000000000 +0200 +1 -1
@@ -228,7 +228,7 @@ static u32 clear_idx;
 
 /* record buffer */
 #if !defined(CONFIG_64BIT) ||
 defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS)
-#define LOG_ALIGN 4
+#define LOG_ALIGN 8
 #else
 #define LOG_ALIGN 8

#endif

At least it seems to work here.

Arnaud

#3 lore raw
In reply to Arnaud Patard (Rtp)

Hi Arnaud,

Am 04.06.2012 16:15, schrieb Arnaud Patard (Rtp):

Quoted 16 lines

There has been discussions here about that iirc. I don't know when a proper fix will be merged but one *very* *ugly* workaround is:

kernel/printk.c 2012-06-03 16:41:24.000000000 +0200 renamed from kernel/printk.c 2012-06-03 15:26:20.000000000 +0200 +1 -1
@@ -228,7 +228,7 @@ static u32 clear_idx;
 
 /* record buffer */
 #if !defined(CONFIG_64BIT) || defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS)
-#define LOG_ALIGN 4
+#define LOG_ALIGN 8
 #else
 #define LOG_ALIGN 8
 #endif
Quoted 1 line

At least it seems to work here.

Yes, a thread discussing this is at
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-May/101783.html
, which did not really come to a conclusion, but proposed the following fix (the original proposal used "struct log_buf", but it should be "struct log" I suppose):

/#define LOG_ALIGN (__alignof__(struct log))

/which works for me on kirkwood (but apparently may waste a couple of bytes on other architectures)

- Simon