Re: 3c905 on alpha

David S. Miller (davem@dm.cobaltmicro.com)
Wed, 4 Feb 1998 20:20:36 -0800


Date: Wed, 4 Feb 1998 16:11:11 -0500 (EST)
From: Donald Becker <becker@cesdis1.gsfc.nasa.gov>

This is the misaligned-lock issue on the Alpha.

[ ... ]

Another solution is to change the <asm/bitops.h> to work with
non-word-aligned locks.

Heads up, take a look at other places within the kernel where objects
are used by bitops, they are all defined in such a way as to be word
aligned. This is not only a semantic issue, it is also a
performance/capability issue. [ I had to fix this in various places
at one point, linux/mm.h:mem_map_t->flags was one example ]

At least on the Alpha and Sparc64 processors, the atomic instructions
with which the bitops must be implemented, only allow word aligned
datums to be used.

So most of us would prefer that your driver defines bitop objects to
be word aligned thanks ;-)

Later,
David S. Miller
davem@dm.cobaltmicro.com