Re: [PATCH] USB/ISP1760: Fix for unaligned exceptions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sebastian Andrzej Siewior
Date: Wednesday, November 19, 2008 - 3:55 am

Hennerich, Michael wrote:

ach. So that's wrong anyway. There are arches which can't DMA stack 
memory. So fixing this properly does not fix just your arch.

Okay. A packed struct with a u8 followed by u16 which is required by the 
spec can't be fixed. unaligned helper is the only solution. I agree here. 
Allocating memory on the stack for a dma transfer is wrong.
On PowerPC and X86 get_unaligned() does not behave any different than a 
normal dereference. So I doubt that there is a performance improvement.


Having a fixup in the exception handler like sparc does is probably little 
slower than the fixup here. On the other hand you would not have to fix 
unaligned access anymore.


Sebastian
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] USB/ISP1760: Fix for unaligned exceptions, Bryan Wu, (Tue Nov 18, 2:22 am)
Re: [PATCH] USB/ISP1760: Fix for unaligned exceptions, Sebastian Andrzej Si ..., (Tue Nov 18, 3:52 am)
RE: [PATCH] USB/ISP1760: Fix for unaligned exceptions, Hennerich, Michael, (Tue Nov 18, 8:41 am)
Re: [PATCH] USB/ISP1760: Fix for unaligned exceptions, Sebastian Andrzej Si ..., (Wed Nov 19, 2:18 am)
RE: [PATCH] USB/ISP1760: Fix for unaligned exceptions, Hennerich, Michael, (Wed Nov 19, 3:30 am)
Re: [PATCH] USB/ISP1760: Fix for unaligned exceptions, Sebastian Andrzej Si ..., (Wed Nov 19, 3:55 am)