mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
	mj@ucw.cz, linux-kernel@vger.kernel.org, mochel@osdl.org
Subject: Re: [BKPATCH] allow pci primary peer busses to have parents
Date: Thu, 05 Dec 2002 09:33:29 -0600	[thread overview]
Message-ID: <200212051533.gB5FXTN02203@localhost.localdomain> (raw)
In-Reply-To: Message from Ivan Kokshaysky <ink@jurassic.park.msu.ru>  of "Thu, 05 Dec 2002 16:12:05 +0300." <20021205161205.A6419@jurassic.park.msu.ru>

On Wed, Dec 04, 2002 at 11:18:24AM -0600, James Bottomley wrote:
> Now that the generic device model allows a coherent bus tree to be built

ink@jurassic.park.msu.ru said:
> Unfortunately it doesn't.

OK, consider the phrase for architectures with subordinate PCI busses added.

ink@jurassic.park.msu.ru said:
>  Currently those legacy, PnP, EISA devices all have virtual parents,
> which has nothing to do with reality. Modern systems (including most
> PCs) hang these buses off PCI bus using PCI-to-{E}ISA bridge. Such
> systems must be able to register these buses upon discovery of the ISA
> bridges (from pci layer), and use them as a parent device for legacy/
> isa/pnp stuff. This will be absolutely required if DMA operations are
> moved from pci_dev to the generic device. 

Well, we are moving in this direction.  I've already done the conversion for 
MCA.  Marc Zyngier has done it for EISA.  I believe someone is looking at PnP 
ISA.  ISA, as a non-probe'able bus fits into the legacy bus scheme anyway.

> The `sysdata' arg already contains info about parent host-to-pci
> controller on many platforms. I don't think that we need to duplicate
> it with another one. I was thinking about something like this instead
> of `sysdata': 

That's PCI specific.  We need a coherent tree in the generic model.  To do 
this, the PCI parent information has to be available just using the struct 
device, without having to cast it to pci_dev and look at pci specific fields.

This is a simplification requirement for machines whose IOMMUs lie on other 
bus types above the PCI busses.  You have to be able to walk up the device 
tree until you find the IOMMU.  Since you're sharing the implementation with 
the non-PCI busses, you need to be able to do this in a generic manner.

James



  reply	other threads:[~2002-12-05 15:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-04 17:18 James Bottomley
2002-12-05 13:12 ` Ivan Kokshaysky
2002-12-05 15:33   ` James Bottomley [this message]
2002-12-05 17:19     ` Ivan Kokshaysky

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=200212051533.gB5FXTN02203@localhost.localdomain \
    --to=james.bottomley@steeleye.com \
    --cc=ink@jurassic.park.msu.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mj@ucw.cz \
    --cc=mochel@osdl.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

Powered by JetHome