[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20060925191459.55364.qmail@web31801.mail.mud.yahoo.com>
Date: Mon, 25 Sep 2006 12:14:59 -0700 (PDT)
From: Luben Tuikov <ltuikov@...oo.com>
To: James Bottomley <James.Bottomley@...elEye.com>,
"Hammer, Jack" <Jack_Hammer@...ptec.com>,
Al Viro <viro@....linux.org.uk>
Cc: Luben Tuikov <ltuikov@...oo.com>, dougg@...que.net,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fix idiocy in asd_init_lseq_mdp()
--- James Bottomley <James.Bottomley@...elEye.com> wrote:
> On Mon, 2006-09-25 at 18:39 +0100, Al Viro wrote:
> > Far more interesting question: where does the hardware expect to see
> > the
> > upper 16 bits of that 32bit value? Which one it is -
> > LmSEQ_INTEN_SAVE(lseq)
> > ori LmSEQ_INTEN_SAVE(lseq) + 2?
>
> I don't honestly know. The change was made as part of a slew of changes
> by Robert Tarte at Adaptec to make the driver run on Big Endian
> platforms. I've copied Jack Hammer who's now looking after it in the
> hope that he can enlighten us.
Al,
I can see that you addressed your message to me, but Bottomley has
stepped in to answer. I can also see that Bottomley is looking
for an answer from Jack. To save an off the list correspondence,
I'll go ahead and answer your question addressed to me.
LSEQ_INTEN_SAVE is a 32 bit Little-Endian storage, thus
your original, first email on this subject is correct, and your
supposition that if the storage is 32 bit LE, then my version
is correct, is in itself correct.
No such "changes" (in the HW page writing area) are necessary in order
to make the code run in BE platforms. My version of my code
(NOT Bottomley's version of my code) has been extensively tested on
BE (PowerPC) platforms, and is working properly.
The version as seen in my code:
asd_write_reg_dword(asd_ha, LmSEQ_INTEN_SAVE(lseq),
(u32) LmM0INTEN_MASK);
is the correct way.
Good luck!
Luben
P.S. Git tells me that I needed to change two lines only,
in order to make the code run on BE platforms, the git commit
dates Wednesday Sept 28, 2005. That commit is present on
the GIT repo, then present on http://linux.adaptec.com/sas/.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists