public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Matt Sealey <matt@genesi-usa•com>
To: Benjamin Herrenschmidt <benh@kernel•crashing.org>
Cc: linuxppc-dev@ozlabs•org, Paul Mackerras <paulus@samba•org>,
	Zhang Wei-r63237 <Wei.Zhang@freescale•com>
Subject: Re: [PATCH 3/5] Float the pci bus number on MPC8641HPCN board.
Date: Fri, 01 Jun 2007 17:35:44 +0100	[thread overview]
Message-ID: <46604AE0.5040700@genesi-usa.com> (raw)
In-Reply-To: <1180683854.19517.419.camel@localhost.localdomain>

Re enabling proper domain support on 32-bit... now, now, now please!

X guys won't merge in code, we've been punished by both sides on Pegasos
for nearly 12 months now after there's been a bunch of misguided attempts
to 'fix' domain support in X. The real fix is in the kernel to make it
very clear that domains and proper, per-domain bus numbering (not
global bus numbering) and suchlike is the standard like it is on SPARC
and PPC64 and IA64.

If ppc32 suddenly goes the way of these, X guys will fix it, there will
be patches to work against this kernel, even if they have to detect the
kernel version to do it or look at a procfs or sysfs entry to fix up
their dumb pci scanning code.

I don't think stalling on it "because of X" is right. Fix Linux, X will
follow, because it really has to.

-- 
Matt Sealey <matt@genesi-usa•com>
Genesi, Manager, Developer Relations

Benjamin Herrenschmidt wrote:
> On Fri, 2007-06-01 at 14:45 +0800, Zhang Wei-r63237 wrote:
>> There are lots of lagacy PCI codes in kernel, such as
>> pci_bus_to_hose(busnr). If two hose's bus number have overlaps,
>> pci_bus_to_hose() can not return the correct hose. And there will
>> effect
>> /proc/pci and lspci tools.
> 
> More specifically...
> 
> Overlapping bus numbers on separate domains work... on 64 bits :-) The
> 32 bits PCI code assumes non-overlapping numbers. The main reason for
> that historically was that back then, domains didn't work well.
> 
> The second reasons why I didn't actually fix it is that turning on full
> domain support had (and probably still has) the nasty habit of breaking
> the X server :-( X is full of most horrible hacks for PCI and it will be
> terminally broken until they finally merge the pci-rework branch that
> Ian Romanick's been working on for some time now.
> 
> One of these days, one of us will finally tackle merging 32 and 64 bits
> PCI code (and fix both of them while at it to better use the generic
> code, which involves fixing issues in the said generic code too :-) at
> which point I'll enable full domain support for 32 bits as well, with an
> option to degrade it to bus number remapping.
> 
> Ben.
> 
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs•org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev

  parent reply	other threads:[~2007-06-01 16:35 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22  3:38 [PATCH 0/5] Add the support for MPC8641 silicon rev 2.0 and MPC8641HPCN board 2.0 Zhang Wei
2007-05-22  3:38 ` [PATCH 1/5] Remove the errata fix codes for MPC8641 silicon ver 1.0 which is end of life Zhang Wei
2007-05-22  3:38   ` [PATCH 2/5] Add uli1575 pci-bridge sector to MPC8641HPCN dts file Zhang Wei
2007-05-22  3:38     ` [PATCH 3/5] Float the pci bus number on MPC8641HPCN board Zhang Wei
2007-05-22  3:38       ` [PATCH 4/5] Set RC of mpc8641 to transparent bridge for transfer legacy I/O access Zhang Wei
2007-05-22  3:38         ` [PATCH 5/5] Set IDE in ULI1575 to not native mode Zhang Wei
2007-05-29 18:15           ` Jon Loeliger
2007-05-29 20:50           ` Kumar Gala
2007-05-30  2:25             ` Zhang Wei-r63237
2007-05-30 11:40               ` Benjamin Herrenschmidt
2007-05-31  2:00                 ` Zhang Wei-r63237
2007-05-30 11:18             ` Benjamin Herrenschmidt
2007-05-29 18:15         ` [PATCH 4/5] Set RC of mpc8641 to transparent bridge for transfer legacy I/O access Jon Loeliger
2007-05-22 17:59       ` [PATCH 3/5] Float the pci bus number on MPC8641HPCN board Wade Farnsworth
2007-05-23  3:35         ` Zhang Wei-r63237
2007-05-31 13:43           ` Kumar Gala
2007-06-01  2:01             ` Zhang Wei-r63237
2007-06-01  5:08               ` Kumar Gala
2007-06-01  6:28                 ` Paul Mackerras
2007-06-01  6:45                   ` Zhang Wei-r63237
2007-06-01  7:44                     ` Benjamin Herrenschmidt
2007-06-01  7:53                       ` Zhang Wei-r63237
2007-06-01  8:00                         ` Benjamin Herrenschmidt
2007-06-01 16:35                       ` Matt Sealey [this message]
2007-06-01 16:47                         ` Jon Loeliger
2007-06-01 22:41                           ` Benjamin Herrenschmidt
2007-06-01 22:41                         ` Benjamin Herrenschmidt
2007-06-02  8:36                           ` Segher Boessenkool
2007-06-02  8:55                             ` Benjamin Herrenschmidt
2007-06-01 19:58                     ` Kumar Gala
2007-06-01 23:28                       ` Benjamin Herrenschmidt
2007-06-04 19:00                         ` Jon Loeliger
2007-06-04 22:24                           ` Benjamin Herrenschmidt
2007-06-01  6:29                 ` Zhang Wei-r63237
2007-05-29 18:14       ` Jon Loeliger
2007-05-22 20:37     ` [PATCH 2/5] Add uli1575 pci-bridge sector to MPC8641HPCN dts file xianghua xiao
2007-05-23  3:38       ` Zhang Wei-r63237
2007-05-29 18:14     ` Jon Loeliger
2007-05-29 20:39     ` Kumar Gala
2007-05-30 10:02       ` Zhang Wei-r63237
2007-05-30 10:18         ` Segher Boessenkool
2007-05-30 11:07         ` Benjamin Herrenschmidt
2007-05-30 22:26       ` Wade Farnsworth
2007-05-29 18:13   ` [PATCH 1/5] Remove the errata fix codes for MPC8641 silicon ver 1.0 which is end of life Jon Loeliger
2007-05-22  3:53 ` [PATCH 0/5] Add the support for MPC8641 silicon rev 2.0 and MPC8641HPCN board 2.0 Kumar Gala
2007-05-22  4:46   ` Zhang Wei-r63237
2007-05-22 12:54     ` Kumar Gala
2007-05-22 16:28 ` Jon Loeliger
2007-05-22 17:47 ` Wade Farnsworth
2007-05-23  2:48   ` [PATCH 0/5] Add the support for MPC8641 silicon rev 2.0 andMPC8641HPCN " Zhang Wei-r63237
2007-05-23 22:37     ` Wade Farnsworth
2007-05-29 18:12 ` [PATCH 0/5] Add the support for MPC8641 silicon rev 2.0 and MPC8641HPCN " Jon Loeliger

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=46604AE0.5040700@genesi-usa.com \
    --to=matt@genesi-usa$(echo .)com \
    --cc=Wei.Zhang@freescale$(echo .)com \
    --cc=benh@kernel$(echo .)crashing.org \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=paulus@samba$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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