All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: mlan@cpu.lu
Cc: hedrick@Astro.Dyer.Vanderbilt.Edu, mj@ucw.cz,
	Paul.Mackerras@cs.anu.edu.au, linuxppc-dev@lists.linuxppc.org
Subject: Re: Trying a Promise Ultra/66 on powerpc
Date: Sun, 8 Aug 1999 23:26:21 -0400	[thread overview]
Message-ID: <19990808232621.B352@them.org> (raw)
In-Reply-To: <199908081954.VAA02923@piglet.cpu.lu>; from Michel Lanners on Sun, Aug 08, 1999 at 09:54:12PM +0200


On Sun, Aug 08, 1999 at 09:54:12PM +0200, Michel Lanners wrote:
> Problems start with the changed definition of a few ide functions, now
> using hw_regs_t, in asm-ppc/ide.h. As a result,
> arch/ppc/kernel/pmac_setup.c and chrp_pci.c need to include linux/ide.h
> instead of asm/ide.h. In addition, pmac_setup.c
> defines an empty ide_init_default_hwifs(), but it was previously
> defined in asm-ppc/ide.h. Patch (linux-asm-ide.patch) below.

Check.

> Then, I had the problem of enabling the PCI IO space of the card; I
> have tried a more generic patch which I'll send in a different mail
> with other PCI-related stuff (IRQ related).

Great.  I hacked around this in Promise.

> What annoyed me the most, was getting access to the I/O-ports of the
> Promise going. Turns out that the PCI config registers contain the IO
> address as seen from the bus, which is not the same as seen from the
> CPU. In fact, they start at 0x0 on the PCI bus, but the host bridge
> maps that area to 0xf2000000 on the processor bus. 
> 
> This fact was already catered for with the definition of outb/inb and
> friends, which get an offset added to the port. Unfortunately, the
> PowerMac IDE code undoes this and replaces it with a different
> mechanism, which in essence removes the offset. Grrr..
> 
> I've solved the problem by adding the right offset directly to the
> io-port values as found in the kernel's PCI structures. I think this
> needs more serious rework, though. Paul, are you the author of the
> PowerMac IDE stuff? So we can work this out... 

This didn't, oddly, stop my card from working.  It does, however, make
me lock up hard if I hdparm -i /dev/hda.

Oh, if you didn't pick this up, you can make it ide0/1 instead of
ide2/3 by enable CONFIG_BLK_DEV_OFFBOARD.

> >> > /dev/hdc:
> >> >   Timing buffered disk reads:  32 MB in  5.83 seconds = 5.49 MB/sec
> ;-)) How about this:
> 
> /dev/hde:
>  Timing buffered disk reads:  64 MB in  6.60 seconds = 9.70 MB/sec
> Maxtor 91024D4; 10G 7200 RPM, UDMA-2 ie 33 MB/s.

Eek.  I want that :)


Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

  parent reply	other threads:[~1999-08-09  3:26 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19990727112137.A897@drow.res.cmu.edu>
     [not found] ` <Pine.LNX.3.96.990727160229.10158B-100000@Astro.Dyer.Vanderbilt.Edu>
     [not found]   ` <19990727102627.A370@drow.res.cmu.edu>
     [not found]     ` <Pine.LNX.3.96.990727093644.6993B-100000@Astro.Dyer.Vanderbilt.Edu>
     [not found]       ` <19990727235430.D1046@albireo.ucw.cz>
1999-07-28  3:04         ` Trying a Promise Ultra/66 on powerpc Daniel Jacobowitz
1999-07-28  5:48           ` Michel Lanners
1999-07-28  7:17             ` Andre M. Hedrick
1999-08-08 19:54               ` Michel Lanners
1999-08-08 20:55                 ` Tom Rini
1999-08-08 21:01                   ` Michel Lanners
1999-08-09  3:22                   ` Daniel Jacobowitz
1999-08-09  6:02                   ` Paul Mackerras
1999-08-09 19:28                     ` Tom Rini
1999-08-09 20:06                       ` Michel Lanners
1999-08-09  3:26                 ` Daniel Jacobowitz [this message]
1999-08-09 21:13                   ` Michel Lanners
1999-08-12 20:05                   ` Michel Lanners
1999-08-13  8:43                     ` Geert Uytterhoeven
1999-08-09  5:13                 ` Paul Mackerras
1999-08-09  5:18                   ` David A. Gatwood
1999-08-09  5:33                     ` Paul Mackerras
1999-08-09  5:38                       ` David A. Gatwood
1999-08-09  6:50                   ` Benjamin Herrenschmidt
1999-08-09 20:15                     ` Michel Lanners
1999-08-09 20:23                   ` Michel Lanners
1999-08-10  0:10                     ` Paul Mackerras
1999-08-10  5:38                       ` Michel Lanners
1999-08-10  8:45                         ` Benjamin Herrenschmidt
1999-08-15  9:20                         ` Martin Mares
1999-08-10 12:56                       ` Geert Uytterhoeven
1999-08-12 17:30                         ` Michel Lanners
1999-07-28  6:18           ` Tom Rini
1999-07-28  8:07           ` Martin Mares
1999-07-29  0:31             ` Andre M. Hedrick
1999-08-01  7:23           ` Michel Lanners
1999-07-29  9:16 Benjamin Herrenschmidt
1999-08-08 20:00 ` Michel Lanners
1999-08-08 20:52   ` Geert Uytterhoeven
1999-08-08 21:21     ` Michel Lanners
1999-08-08 21:27       ` Geert Uytterhoeven
1999-08-15  9:23       ` Martin Mares
  -- strict thread matches above, loose matches on Subject: below --
1999-08-13 14:28 Justin McKillican
     [not found] <199908092022.WAA00327@piglet.cpu.lu>
1999-08-15  9:39 ` Martin Mares

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=19990808232621.B352@them.org \
    --to=drow@false.org \
    --cc=Paul.Mackerras@cs.anu.edu.au \
    --cc=hedrick@Astro.Dyer.Vanderbilt.Edu \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=mj@ucw.cz \
    --cc=mlan@cpu.lu \
    /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.