Skip to contentSkip to conversation

2.6.11.10 failure on Hypersparc sparc32

DISCUSSION David S. Miller 2 participants 3 messages Jun 5, 2005 – Jun 6, 2005

lore
Share & tools
lore
#0 lore raw

From: Bob Breuer <[email protected]>
Date: Sat, 04 Jun 2005 11:34:25 -0500

Quoted 3 lines

Look for hypersparc_copy_1page in arch/sparc/mm/hypersparc.S where it uses ASI_M_BCOPY. I think the src and dest need to be 32 byte aligned in this case.

We fixed a similar problem in the past, by putting the "aligned to 8 bytes" check into __constant_memcpy().

Let's just remove the __copy_1page() optimization altogether, it causes more trouble than it's worth. Similarly for memset().

In fact, most of this inline stuff can be removed entirely. In particular, we should just use a plain memcpy() symbol and let GCC output the inline builtin copy if it wants to automatically.

#1 lore raw
Quoted 9 lines · David S. Miller

We fixed a similar problem in the past, by putting the "aligned to 8 bytes" check into __constant_memcpy(). Let's just remove the __copy_1page() optimization altogether, it causes more trouble than it's worth. Similarly for memset().
In fact, most of this inline stuff can be removed entirely. In particular, we should just use a plain memcpy() symbol and let GCC output the inline builtin copy if it wants to automatically.

I've got something along these lines cooked up; does anyone who can actively reproduce this bug care to take it for a spin?

-- wli

#2 lore raw
In reply to David S. Miller

From: William Lee Irwin III <[email protected]>
Date: Mon, 6 Jun 2005 14:11:02 -0700

Quoted 2 lines

I've got something along these lines cooked up; does anyone who can actively reproduce this bug care to take it for a spin?

Just post it when you have a patch ready :)