From: "Hanks Li" <hli@quicklogic.com>
To: "Atsushi Nemoto" <nemoto@toshiba-tops.co.jp>
Cc: <linux-mips@oss.sgi.com>
Subject: RE: IDE DMA mode in Big endian for mips
Date: Wed, 17 Oct 2001 13:52:20 -0400 [thread overview]
Message-ID: <APEOLACBIPNAFKJDDFIICEDCCBAA.hli@quicklogic.com> (raw)
In-Reply-To: <20011017.113842.41627007.nemoto@toshiba-tops.co.jp>
Thanks Atsushi San, the patch did help. The partition check can pass now.
But my boot (such as: usb, ethernet, etc.) could not continue after solving
the IDE problem.
Could anybody give me a hint?
Thanks
Hanks Li
-----Original Message-----
From: owner-linux-mips@oss.sgi.com
[mailto:owner-linux-mips@oss.sgi.com]On Behalf Of Atsushi Nemoto
Sent: Tuesday, October 16, 2001 10:39 PM
To: hli@quicklogic.com
Cc: linux-mips@oss.sgi.com
Subject: Re: IDE DMA mode in Big endian for mips
>>>>> On Tue, 16 Oct 2001 10:28:56 -0400, "Hanks Li" <hli@quicklogic.com>
said:
hli> We are working on the IDE/ATAPI for mips. When I changed to Big
hli> endian mode, the following information appared, and the program
hli> hang.
When I tried PCI-IDE in BigEndian (with 2.4.6 kernel), this patch
solved my problem.
--- linux/drivers/ide/ide-dma.c:1.1.1.1 Fri Jul 6 11:24:54 2001
+++ linux/drivers/ide/ide-dma.c Fri Aug 17 20:17:30 2001
@@ -492,7 +492,11 @@
SELECT_READ_WRITE(hwif,drive,func);
if (!(count = ide_build_dmatable(drive, func)))
return 1; /* try PIO instead of DMA */
+#if defined(__mips__) && defined(__BIG_ENDIAN) /* XXX mips only? */
+ outl(cpu_to_le32(hwif->dmatable_dma), dma_base + 4); /* PRD table */
+#else
outl(hwif->dmatable_dma, dma_base + 4); /* PRD table */
+#endif
outb(reading, dma_base); /* specify r/w */
outb(inb(dma_base+2)|6, dma_base+2); /* clear INTR & ERROR flags */
drive->waiting_for_dma = 1;
---
Atsushi Nemoto
WARNING: multiple messages have this Message-ID (diff)
From: "Hanks Li" <hli@quicklogic.com>
To: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Cc: linux-mips@oss.sgi.com
Subject: RE: IDE DMA mode in Big endian for mips
Date: Wed, 17 Oct 2001 13:52:20 -0400 [thread overview]
Message-ID: <APEOLACBIPNAFKJDDFIICEDCCBAA.hli@quicklogic.com> (raw)
Message-ID: <20011017175220.pZOxoxiahAKnYujdWqfMkVsuSky9JkuCfZtXr3JiYkU@z> (raw)
In-Reply-To: <20011017.113842.41627007.nemoto@toshiba-tops.co.jp>
Thanks Atsushi San, the patch did help. The partition check can pass now.
But my boot (such as: usb, ethernet, etc.) could not continue after solving
the IDE problem.
Could anybody give me a hint?
Thanks
Hanks Li
-----Original Message-----
From: owner-linux-mips@oss.sgi.com
[mailto:owner-linux-mips@oss.sgi.com]On Behalf Of Atsushi Nemoto
Sent: Tuesday, October 16, 2001 10:39 PM
To: hli@quicklogic.com
Cc: linux-mips@oss.sgi.com
Subject: Re: IDE DMA mode in Big endian for mips
>>>>> On Tue, 16 Oct 2001 10:28:56 -0400, "Hanks Li" <hli@quicklogic.com>
said:
hli> We are working on the IDE/ATAPI for mips. When I changed to Big
hli> endian mode, the following information appared, and the program
hli> hang.
When I tried PCI-IDE in BigEndian (with 2.4.6 kernel), this patch
solved my problem.
--- linux/drivers/ide/ide-dma.c:1.1.1.1 Fri Jul 6 11:24:54 2001
+++ linux/drivers/ide/ide-dma.c Fri Aug 17 20:17:30 2001
@@ -492,7 +492,11 @@
SELECT_READ_WRITE(hwif,drive,func);
if (!(count = ide_build_dmatable(drive, func)))
return 1; /* try PIO instead of DMA */
+#if defined(__mips__) && defined(__BIG_ENDIAN) /* XXX mips only? */
+ outl(cpu_to_le32(hwif->dmatable_dma), dma_base + 4); /* PRD table */
+#else
outl(hwif->dmatable_dma, dma_base + 4); /* PRD table */
+#endif
outb(reading, dma_base); /* specify r/w */
outb(inb(dma_base+2)|6, dma_base+2); /* clear INTR & ERROR flags */
drive->waiting_for_dma = 1;
---
Atsushi Nemoto
next prev parent reply other threads:[~2001-10-17 17:52 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-12 16:26 Big endian problem Hanks Li
2001-10-12 16:26 ` Hanks Li
2001-10-12 17:45 ` Ralf Baechle
2001-10-12 17:47 ` Jun Sun
2001-10-12 20:13 ` Dan Aizenstros
2001-10-13 0:35 ` Jun Sun
2001-10-13 0:55 ` Thiemo Seufer
2001-10-13 5:54 ` H . J . Lu
2001-10-13 5:54 ` H . J . Lu
2001-10-13 21:02 ` MySQL Yoshi-K
2001-10-13 21:02 ` MySQL Yoshi-K
2001-10-14 16:30 ` MySQL H . J . Lu
2001-10-14 21:01 ` MySQL Ralf Baechle
2001-10-15 5:46 ` MySQL H . J . Lu
2001-10-16 14:28 ` IDE DMA mode in Big endian for mips Hanks Li
2001-10-16 14:28 ` Hanks Li
2001-10-16 17:30 ` Jun Sun
2001-10-17 2:38 ` Atsushi Nemoto
2001-10-17 5:48 ` Geert Uytterhoeven
2001-10-17 9:33 ` Gleb O. Raiko
2001-10-17 11:43 ` Atsushi Nemoto
2001-10-18 2:18 ` Atsushi Nemoto
2001-10-18 5:54 ` Geert Uytterhoeven
2001-10-18 10:33 ` Gleb O. Raiko
2001-10-17 17:52 ` Hanks Li [this message]
2001-10-17 17:52 ` Hanks Li
2001-10-19 9:54 ` Atsushi Nemoto
2001-10-21 16:50 ` Alan Cox
2001-10-21 16:50 ` Alan Cox
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=APEOLACBIPNAFKJDDFIICEDCCBAA.hli@quicklogic.com \
--to=hli@quicklogic.com \
--cc=linux-mips@oss.sgi.com \
--cc=nemoto@toshiba-tops.co.jp \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.