Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: Ralf Baechle <ralf@linux-mips.org>,
	linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] remove dead drivers/ide/ppc/swarm.c
Date: Wed, 5 May 2004 19:34:02 +0200	[thread overview]
Message-ID: <200405051934.02630.bzolnier@elka.pw.edu.pl> (raw)
In-Reply-To: <Pine.LNX.4.55.0405051555170.17257@jurand.ds.pg.gda.pl>

On Wednesday 05 of May 2004 17:36, Maciej W. Rozycki wrote:
> On Tue, 4 May 2004, Maciej W. Rozycki wrote:
> > > The basic question is whether disk used on SiByte can be read i.e. on
> > > x86. If not than we may have serious problems with some special
> > > commands with current implementation (similar problem as on Atari
> > > Q40/Q60).
> >
> >  I can check the GPIO attachment with 2.4 (which should behave the same
> > way here).  I don't have a PCI IDE board.
>
>  Here is the result:
>
> Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
> ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
> SiByte onboard IDE configured as device 0
> hda: ST310211A, ATA DISK drive
> ide0 at 0xffffffff340b3e00-0xffffffff340b3e07,0xffffffff340b7ec0 on irq 36
> hda: attached ide-disk driver.
> hda: host protected area => 1
> hda: 19541088 sectors (10005 MB) w/1024KiB Cache, CHS=19386/16/63
> Partition check:
>  hda:
> [...]
> # dd if=/dev/hda bs=512 count=1 2>/dev/null | od -Ax -tx1
> 000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> *
> 0001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
> 000200
>
> so barring the completely bogus addresses reported (the interface is
> decoded at 0x100b0000 and that's MMIO, unrelated to the PCI I/O space -- I
> guess fixing it would require a significant update to ide-probe.c and
> elsewhere), it looks OK.  This is in a little-endian configuration -- I'll

I suppose these are the addresses after ioremap() so no problem here.

> recheck for big endianness once I have appropriate userland installed
> (which is likely not very soon).  It shouldn't matter much, though -- I've
> checked documentation and I've found out that while the generic bus (the
> IDE connector is wired to) is big-endian externally, the internal logic
> does swapping if the system is configured for little-endian operation.

IDE bus must be always LE independently of system being LE or BE.

If system is LE this is OK as the internal logic does swapping but in case
when system is BE swapping is also needed.

>  FYI, the interface is currently fixed at PIO3, but perhaps it could get
> improved to handle other speeds.  Bus-master DMA is unsupported, but
> perhaps one of the data movers could get engaged for a third-party DMA
> support.  The generic bus is clocked at 100MHz, so faster operation is
> possible, at least in theory.

:-)

Thanks,
Bartlomiej


  reply	other threads:[~2004-05-05 18:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-03 23:34 [PATCH] remove dead drivers/ide/ppc/swarm.c Bartlomiej Zolnierkiewicz
2004-05-04 11:19 ` Ralf Baechle
2004-05-04 12:28   ` Bartlomiej Zolnierkiewicz
2004-05-04 12:42     ` Bartlomiej Zolnierkiewicz
2004-05-04 12:43     ` Ralf Baechle
2004-05-04 13:10       ` Bartlomiej Zolnierkiewicz
2004-05-04 14:27         ` Maciej W. Rozycki
2004-05-05 15:36           ` Maciej W. Rozycki
2004-05-05 17:34             ` Bartlomiej Zolnierkiewicz [this message]
2004-05-05 19:05               ` Maciej W. Rozycki
2004-05-04 14:21       ` Maciej W. Rozycki

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=200405051934.02630.bzolnier@elka.pw.edu.pl \
    --to=b.zolnierkiewicz@elka.pw.edu.pl \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=macro@ds2.pg.gda.pl \
    --cc=ralf@linux-mips.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