From: Marc Zyngier <mzyngier@freesurf.fr>
To: Carsten Jacobi <carsten@ccac.rwth-aachen.de>
Cc: Linux Kernel Mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] lne390 and Jensen Alphas
Date: Sun, 12 Oct 2003 13:24:30 +0200 [thread overview]
Message-ID: <wrp1xtir95d.fsf@hina.wild-wind.fr.eu.org> (raw)
In-Reply-To: <20031010221723.GA12615@ccac.rwth-aachen.de> (Carsten Jacobi's message of "Sat, 11 Oct 2003 00:17:23 +0200")
Carsten,
+#ifdef CONFIG_ALPHA_JENSEN
+ /* On the Jensen board EISA cards will see their own address
+ * space */
+#else
[...]
+#ifndef CONFIG_ALPHA_JENSEN
isa_memcpy_toio(shmem, buf, count);
+#else
+ /* The mylex lne390 adapter requires 32bit access (see above) for every
+ * operation to the shared mem buffer. Since the block buffer is hardly
+ * aligned to a 32bit boundary isa_memcpy_toio() will use 16bit
+ * operations to access the buffer ... we must use something else here. */
+
+ const void *from = buf;
+ count -= 4;
+ do {
+ __raw_writel(*(const u16 *)from | (*(const u16 *)(from+2))<<16, (unsigned long) shmem);
+ count -= 4;
+ (unsigned long) shmem += 4;
+ from += 4;
+ } while (count >= 0);
+#endif
+
This doesn't look to me like a proper fix. You should unconditionally
use ioremap and memcpy_{from,to}io (not the isa_* version). No need to
have a special Jensen case here.
Please look at the way ne3210.c was fixed in 2.6.0-test7.
M.
--
Places change, faces change. Life is so very strange.
next prev parent reply other threads:[~2003-10-12 11:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-10 22:17 Carsten Jacobi
2003-10-12 11:24 ` Marc Zyngier [this message]
2003-10-13 21:14 ` Carsten Jacobi
2003-10-11 21:10 Carsten Jacobi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wrp1xtir95d.fsf@hina.wild-wind.fr.eu.org \
--to=mzyngier@freesurf.fr \
--cc=carsten@ccac.rwth-aachen.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®