[parisc-linux-cvs] DIFF 2.5.53-pa2 new DMA and device model

Grant Grundler grundler@dsl2.external.hp.com
Thu, 26 Dec 2002 23:36:08 -0700


On Tue, Dec 24, 2002 at 06:39:22PM -0600, James Bottomley wrote:
> All of the parisc DMA operations are now done in terms of the generic dma_ 
> APIs.

excellent - that makes life alot easier.

> I bet there are a few cases I can't test that are broken, let me know how it 
> goes.

I tried to build an hppa64 kernel plus modules.
After fixing some nits (I need to commit those), I was able to link
a kernel. But I can't build modules.  The assembler dies with:
...
  hppa64-linux-gcc -Wp,-MD,net/sctp/.sm_make_chunk.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -D__linux__ -pipe -fno-strength-reduce -mno-space-regs -mfast-indirect-calls -mdisable-fpregs -ffunction-sections -march=2.0 -mschedule=8000 -fomit-frame-pointer -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=sm_make_chunk -DKBUILD_MODNAME=sctp   -c -o net/sctp/sm_make_chunk.o net/sctp/sm_make_chunk.c
{standard input}: Assembler messages:
{standard input}:2347: Error: Field not properly aligned [8] (52).
{standard input}:2347: Error: Invalid operands 
{standard input}:2359: Error: Field not properly aligned [8] (52).
{standard input}:2359: Error: Invalid operands 
make[2]: *** [net/sctp/sm_make_chunk.o] Error 1
..

I had this problem with both "old" binutils and the most recent
one in testing:
ii  binutils       2.13.90.0.16-1 The GNU assembler, linker and binary utils
ii  gcc            3.0.4-8        The GNU C compiler.
ii  gcc-hppa64     3.0.4ds3-7.1   Cross gcc for hppa64

The gcc-hppa64 is from our ftp.p-l.o:unofficial-debs/
If someone can build a newer gcc-3.2 deb for hppa64 target,
I'd be willing to try it.

Of course, I just realize the obvious thing to do is figure out
which field isn't properly aligned. It's possibly a SW bug
the tools caught.

thanks,
grant