linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* insw/outsw in ide.h
@ 2000-03-01  6:22 Paul Mackerras
  2000-03-01 12:37 ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Mackerras @ 2000-03-01  6:22 UTC (permalink / raw)
  To: Linux/PPC Developer list; +Cc: Cort Dougan


Is there any PPC platform that needs to use a byte-swapping insw/outsw in
the IDE driver?  (I can't see why any platform would, but you never
know...)

I have changed the insw/outsw/insl/outsl in include/asm-ppc/io.h to be the
non-swapping form (in my tree at least, I'll push it to bk soon).  I would
like to take out the special definitions of insw/outsw in
include/asm-ppc/ide.h and just let the ide driver use the standard
(non-swapping) form.  Will this cause a problem for any PPC platforms?

--
Paul Mackerras, Senior Open Source Researcher, Linuxcare, Inc.
+61 2 6262 8990 tel, +61 2 6262 8991 fax
paulus@linuxcare.com.au, http://www.linuxcare.com.au/
Linuxcare.  Support for the revolution.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: insw/outsw in ide.h
  2000-03-01  6:22 insw/outsw in ide.h Paul Mackerras
@ 2000-03-01 12:37 ` Gary Thomas
  2000-03-01 13:07   ` Geert Uytterhoeven
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2000-03-01 12:37 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Cort Dougan, Cort Dougan, Linux/PPC Developer list



On 01-Mar-00 Paul Mackerras wrote:
>
> Is there any PPC platform that needs to use a byte-swapping insw/outsw in
> the IDE driver?  (I can't see why any platform would, but you never
> know...)
>
> I have changed the insw/outsw/insl/outsl in include/asm-ppc/io.h to be the
> non-swapping form (in my tree at least, I'll push it to bk soon).  I would
> like to take out the special definitions of insw/outsw in
> include/asm-ppc/ide.h and just let the ide driver use the standard
> (non-swapping) form.  Will this cause a problem for any PPC platforms?
>

I can't tell for sure, but won't this break existing [already installed]
systems?  I agree that the data path really doesn't matter, but once it's
on the media it probably does.

Have you tested this change on a system with an IDE drive that has a
live file system in place?

.. just my 2c

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: insw/outsw in ide.h
  2000-03-01 12:37 ` Gary Thomas
@ 2000-03-01 13:07   ` Geert Uytterhoeven
  2000-03-03  9:32     ` Cort Dougan
  0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2000-03-01 13:07 UTC (permalink / raw)
  To: Gary Thomas
  Cc: Paul Mackerras, Cort Dougan, Cort Dougan,
	Linux/PPC Developer list


On Wed, 1 Mar 2000, Gary Thomas wrote:
> On 01-Mar-00 Paul Mackerras wrote:
> > Is there any PPC platform that needs to use a byte-swapping insw/outsw in
> > the IDE driver?  (I can't see why any platform would, but you never
> > know...)
> >
> > I have changed the insw/outsw/insl/outsl in include/asm-ppc/io.h to be the
> > non-swapping form (in my tree at least, I'll push it to bk soon).  I would
> > like to take out the special definitions of insw/outsw in
> > include/asm-ppc/ide.h and just let the ide driver use the standard
> > (non-swapping) form.  Will this cause a problem for any PPC platforms?
>
> I can't tell for sure, but won't this break existing [already installed]
> systems?  I agree that the data path really doesn't matter, but once it's
> on the media it probably does.
>
> Have you tested this change on a system with an IDE drive that has a
> live file system in place?

I know some people who formatted their disks on ia32 boxes and transferred them
to their CHRP boxes later, so the current code should work.

An easy way to find out is to try to mount a CD-ROM in an IDE CD-ROM drive. If
it works, endianness is OK.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: insw/outsw in ide.h
  2000-03-01 13:07   ` Geert Uytterhoeven
@ 2000-03-03  9:32     ` Cort Dougan
  2000-03-03  9:40       ` Geert Uytterhoeven
  0 siblings, 1 reply; 8+ messages in thread
From: Cort Dougan @ 2000-03-03  9:32 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Gary Thomas, Paul Mackerras, Linux/PPC Developer list


I think the 850's need this.  I don't have one and haven't tested on one
but I recall some IDE silliness was necessary.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: insw/outsw in ide.h
  2000-03-03  9:32     ` Cort Dougan
@ 2000-03-03  9:40       ` Geert Uytterhoeven
  2000-03-03 21:36         ` Dan Malek
  0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2000-03-03  9:40 UTC (permalink / raw)
  To: Cort Dougan; +Cc: Gary Thomas, Paul Mackerras, Linux/PPC Developer list


On Fri, 3 Mar 2000, Cort Dougan wrote:
> I think the 850's need this.  I don't have one and haven't tested on one
> but I recall some IDE silliness was necessary.

BTW, I'm in favor of having ide_*()-ops for all accesses, cfr. my comments in
the sources. Then we can distinguish between I/O port and I/O memory acces on a
per-machine/architecture base.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248638 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: insw/outsw in ide.h
  2000-03-03  9:40       ` Geert Uytterhoeven
@ 2000-03-03 21:36         ` Dan Malek
  2000-03-03 22:07           ` Cort Dougan
  0 siblings, 1 reply; 8+ messages in thread
From: Dan Malek @ 2000-03-03 21:36 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Cort Dougan, Gary Thomas, Paul Mackerras,
	Linux/PPC Developer list


Geert Uytterhoeven wrote:


> BTW, I'm in favor of having ide_*()-ops for all accesses,....


Can I also have md.ide_*() for interrupts as well?  Please :-).
On embedded processors we have internal interrupt controllers
that require different initialization and ack'ing than the assumed
8259 type controllers.

Thanks.


	-- Dan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: insw/outsw in ide.h
  2000-03-03 21:36         ` Dan Malek
@ 2000-03-03 22:07           ` Cort Dougan
  0 siblings, 0 replies; 8+ messages in thread
From: Cort Dougan @ 2000-03-03 22:07 UTC (permalink / raw)
  To: Dan Malek
  Cc: Geert Uytterhoeven, Gary Thomas, Paul Mackerras,
	Linux/PPC Developer list


} Can I also have md.ide_*() for interrupts as well?  Please :-).
} On embedded processors we have internal interrupt controllers
} that require different initialization and ack'ing than the assumed
} 8259 type controllers.

You want ppc_md.ide_{insl,outsl} and so on?

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* insw/outsw in ide.h
@ 2000-03-06  6:58 David Monro
  0 siblings, 0 replies; 8+ messages in thread
From: David Monro @ 2000-03-06  6:58 UTC (permalink / raw)
  To: Linux/ppc Dev List, paulus


> Is there any PPC platform that needs to use a byte-swapping insw/outsw in
> the IDE driver?  (I can't see why any platform would, but you never
> know...)

Yes - the IBM 850 does. Otherwise the firmware doesn't understand the
partition table and the CD drive doesn't work.

Cheers,

	David

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-03-06  6:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-01  6:22 insw/outsw in ide.h Paul Mackerras
2000-03-01 12:37 ` Gary Thomas
2000-03-01 13:07   ` Geert Uytterhoeven
2000-03-03  9:32     ` Cort Dougan
2000-03-03  9:40       ` Geert Uytterhoeven
2000-03-03 21:36         ` Dan Malek
2000-03-03 22:07           ` Cort Dougan
  -- strict thread matches above, loose matches on Subject: below --
2000-03-06  6:58 David Monro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).