From owner-freebsd-alpha Mon Nov 23 20:18:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA01570 for freebsd-alpha-outgoing; Mon, 23 Nov 1998 20:18:22 -0800 (PST) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from nomis.simon-shapiro.org (nomis.simon-shapiro.org [209.86.126.163]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id UAA01565 for ; Mon, 23 Nov 1998 20:18:19 -0800 (PST) (envelope-from shimon@simon-shapiro.org) Received: (qmail 54918 invoked by uid 1000); 24 Nov 1998 05:22:30 -0000 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199811240213.SAA01690@dingo.cdrom.com> Date: Tue, 24 Nov 1998 00:22:30 -0500 (EST) X-Face: (&r=uR0&yvh>h^ZL4"-TH61PD}/|Y'~58Z# Gz&BK'&uLAf:2wLb~L7YcWfau{;N(#LR2)\i.l8'ZqVhv~$rNx$]Om6Sv36S'\~5m/U'"i/L)&t$R0&?,)tm0l5xZ!\hZU^yMyCdt!KTcQ376cCkQ^Q_n.GH;Dd-q+ O51^+.K-1Kq?WsP9;cw-Ki+b.iY-5@3!YB5{I$h;E][Xlg*sPO61^5=:5k)JdGet,M|$"lq!1!j_>? $0Yc? Reply-To: shimon@simon-shapiro.org Organization: The Simon Shapiro Foundation From: Simon Shapiro To: Mike Smith Subject: Re: UnAligned Access, but why? Cc: freebsd-alpha@FreeBSD.ORG Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mike Smith, On 24-Nov-98 you wrote: > > Am trying to get the DPT driver running on alpha. > > Narrowed down the problem to this: > > > > In sys/alpha/include/bus.h there is a series of static inline functions > > to > > do the equivalient of inb, inw, and inl, as well as outb, outw, outl. > > they > > are called bus_space_{read,write}_[124]. > > > > The bus_space_read_[14] are causing unaligned access panics. These > > panics > > can be eliminated by casting explicitly: > > Don't do this. Align the objects you're trying to transfer instead. Thanx, but how? I took the CAM driver as is and just triesd to actually align the data. It makes no difference at all. I am still getting the panics. If you look again at my example (the one following the casts), you will see that it does not help. Also (forgive my ignorance here), different PCI busss appear to have different sizes for the same thing. Or, at least this is how all this bus_rea/write stuff tries to imply. The end result is a mass confusion on my part. i am trying to fit the driver into the existing framework, not change the framework (unless obviously broken). I do not have enough information to suggest anything is broken, except the panics. I may need some detailed help here.... Simon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message