lkml.org 
[lkml]   [2004]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] remove dead drivers/ide/ppc/swarm.c
Date
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.059 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site