Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Unaligned accesses
@ 1997-09-23  9:39 Sheer Panic
  0 siblings, 0 replies; 13+ messages in thread
From: Sheer Panic @ 1997-09-23  9:39 UTC (permalink / raw)


I have an interesting case of the scrolling unaligned access problem. I
have three identical multias, with 64megs of ram, Ether100TX cards as well
as the standerd onboard ether, and after they h ave booted, the
continuously scroll unaligned trap error messages. Has anyone else had
this problem? I am using the kernel-2.0.30 source with the pre-patch #9
and the alpha patches.

Sheer

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Unaligned accesses
@ 1998-07-05  0:54 B. James Phillippe
  0 siblings, 0 replies; 13+ messages in thread
From: B. James Phillippe @ 1998-07-05  0:54 UTC (permalink / raw)
  To: RedHat AXP list

Hello,

	I'm wondering if someone can better educate me on unaligned
accesses under Alpha.  I am aware of the basics (that Alpha, like all RISC
CPU's, requires memory accesses to be on naturally aligned boundaries), but
there are some other questions I have.  First, can someone post a snippet
of code demonstrating aligned and unaligned memory access?  Second, how do
I interpret the fields in /proc/cpuinfo pertaining to kernel unaligned
access and user unaligned access?

kernel unaligned acc	: 0 (pc=0,va=0)
user unaligned acc	: 11385 (pc=1201d1648,va=15555eb2428)

thanks,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Archives on www.lib.uaa.alaska.edu
@ 2001-07-25  0:02 Mike Tibor
  2001-07-25  0:57 ` Unaligned accesses alvin
  0 siblings, 1 reply; 13+ messages in thread
From: Mike Tibor @ 2001-07-25  0:02 UTC (permalink / raw)
  To: axp-list

I just wanted to let everyone know that I've been having some problems
with the axp-list archives on www.lib.uaa.alaska.edu, but I believe I've
fixed them.

I'd tried to upgrade the version of htdig after seeing good results in a
test environment.  Unfortunately I've had nothing but problems trying to
make it work with my axp-list archive, so I've backed off to the prior
version.

My apologies for any inconvenience,
Mike
-- 
Mike Tibor         Univ. of Alaska Anchorage    (907) 786-1001 voice
Network Technician     Consortium Library         (907) 786-6050 fax
tibor@lib.uaa.alaska.edu       http://www.lib.uaa.alaska.edu/~tibor/
http://www.lib.uaa.alaska.edu/~tibor/pgpkey  for PGP public key




^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Unaligned accesses
@ 2001-07-25 11:56 Rick Gorton
  0 siblings, 0 replies; 13+ messages in thread
From: Rick Gorton @ 2001-07-25 11:56 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

The Kernel does have code which does:
	print out unaligned access errors
	does the 'right' thing (albeit a bit slowly)

In the event that a ldwu instruction is accessing a misaligned
address.  The 'gotcha':
- Unless the code in the application is explicitly using the
  ldwu instructions, the code executed will read the content
  correctly from a misaligned address.  The only way to get
  those instructions is to compile with -mcpu=ev56 (or later)

If your machine supports ev56 instructions, you _really_ want
to use them.  Your code size will shrink (good for performance)
and your code will automatically speed up - I've seen speedups
ranging from 10%-20% by just using the new instructions.

I hope this helps,

	Rick


-----Original Message-----
From: alvin [mailto:alvin@iplink.net]
Sent: Tuesday, July 24, 2001 8:58 PM
To: axp-list@redhat.com
Subject: Unaligned accesses


I have noticed some problem with accessing unaligned data.

I have an application that has a bunch of accesses to shorts in a byte
array.  Not seeing any more alignment errors from the kernel I assumed
that all was ok due to the fact that althought it is a byte array it
seemed to be short aligned...

Well this turns out to be wrong. forcing alignment and doing memcpy's
made my problems go away.

I was under the impression that the:
1) OS/Palcode handled unaligned accessed as a fault and although there
is a performance 
   penalty  that is all.
2) The kernel generated an error message for unaligned accesses.



-- 
Alvin Starr                   ||   voice: (416)785-4051
Interlink Connectivity        ||   fax:   (416)785-3668
alvin@iplink.net              ||



_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-07-26 18:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-23  9:39 Unaligned accesses Sheer Panic
  -- strict thread matches above, loose matches on Subject: below --
1998-07-05  0:54 B. James Phillippe
2001-07-25  0:02 Archives on www.lib.uaa.alaska.edu Mike Tibor
2001-07-25  0:57 ` Unaligned accesses alvin
2001-07-25 15:47   ` Jay Estabrook
2001-07-25 20:41     ` alvin
2001-07-25 21:08       ` Christopher C. Chimelis
2001-07-25 21:15       ` Michal Jaegermann
2001-07-26 12:39         ` Ivan Kokshaysky
2001-07-26 12:40       ` Ivan Kokshaysky
2001-07-26 13:29       ` Jay Estabrook
2001-07-26 17:21         ` alvin
2001-07-26 18:45           ` Frank Palmieri
2001-07-25 11:56 Rick Gorton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox