linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Tom Rini <trini@kernel.crashing.org>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: [PATCH and RFC] Remove request_8xxirq
Date: Thu, 20 Jun 2002 18:03:42 -0400	[thread overview]
Message-ID: <3D12513E.1000905@embeddededge.com> (raw)
In-Reply-To: 20020620213925.GH16052@opus.bloom.county


Tom Rini wrote:

> Yes, Andy who did that part of the code and claims that PCI does indeed
> work on it.

I know Andy is sitting on a ton of 82xx PCI changes that would be nice
to see checked in some day. :-)

> I don't follow you here.  Is this just another complaint about how the
> normal way of handling cascades is ugly?

Sort of.  The problem is you often have to program the CPM interrupt
vector for a particular device into the CPM.  For example, you may have
to tell the SCC2 device on the CPM what vector to use, which in turn
is also used to configure the interrupt controller.  Using this scheme
of this patch, these two numbers are different because you give request_irq()
a different number than you program into the CPM for this device.  There
are more and more integrated controllers that do this, and using hardcoded
values with offsets isn't going to work in those cases.

The other problem is the "namespace" of request_irq() usually assumes
numbers 0 to 15 are an 8259, and many legacy devices are hardcoded to
use these numbers.  Now, on the 8xx and 8260, you have changed what these
values mean.  I believe I saw a patch from Wolfgang that left request_irq()
alone (and left the other 8xx and CPM interrupt request functions as they were),
but in request_irq() he remapped the number to be something meaningful on 8xx.

I would kind of prefer his patches to this one.


> If a 'generic PC function' calls with the wrong parameters, fix the
> function.  Right now we happily panic() on all of the correctly written
> drivers as well as the broken ones.  This makes it possible to actually
> test drivers to see which ones are broken and fix them.

See Wolfgang's patches......

> Perhaps sometime later in 2.5 a 'real design improvement' will happen.
> But I also don't see what that has to do with this, other than the
> 8xx/8260 way of doing things is going.

The 8xx is more complicated due to its multiple cascaded interrupts.
The 8260 removed the CPM cascade, making it more simple to implement.
What do Andy's patches for 8260+PCI look like?  There has to be a
cascade in there someplace that isn't represented in any of these patches.


Thanks.


	-- Dan


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

  reply	other threads:[~2002-06-20 22:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20 20:34 [PATCH and RFC] Remove request_8xxirq Tom Rini
2002-06-20 21:04 ` Dan Malek
2002-06-20 21:39   ` Tom Rini
2002-06-20 22:03     ` Dan Malek [this message]
2002-06-20 16:58       ` Benjamin Herrenschmidt
2002-06-20 22:34       ` Tom Rini
2002-06-20 21:16 ` Wolfgang Denk
     [not found] <20020620214551.GI16052@opus.bloom.county>
2002-06-20 21:58 ` Wolfgang Denk
     [not found]   ` <20020620221016.GK16052@opus.bloom.county>
     [not found]     ` <3D12F667.30902@bluewin.ch>
2002-06-24 17:00       ` Tom Rini
2002-06-24 17:49         ` Dan Malek
2002-06-24 17:59           ` Tom Rini
     [not found]         ` <3D1793E1.3030509@bluewin.ch>
     [not found]           ` <20020624224100.GL3489@opus.bloom.county>
2002-06-25  0:03             ` Dan Malek
     [not found] <3D124DF4.6060505@embeddededge.com>
2002-06-20 22:02 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2002-06-21  2:32 Andy Lowe
2002-06-21  4:35 ` Dan Malek
2002-06-21  4:54   ` Andy Lowe
     [not found] <15635.16331.965632.877856@argo.ozlabs.ibm.com>
2002-06-23 16:54 ` Stephan Linke

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=3D12513E.1000905@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=trini@kernel.crashing.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;
as well as URLs for NNTP newsgroup(s).