* /proc/bus/pci
@ 2003-06-05 3:21 Albert Cahalan
2003-06-05 3:35 ` /proc/bus/pci William Lee Irwin III
` (2 more replies)
0 siblings, 3 replies; 36+ messages in thread
From: Albert Cahalan @ 2003-06-05 3:21 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, torvalds, bcollins, wli, tom_gall, anton
I notice that /proc/bus/pci doesn't offer a sane
interface for multiple PCI domains and choice of BAR.
What do people think of this?
bus/pci/00/00.0 -> ../hose0/bus0/dev0/fn0/config-space
bus/pci/hose0/bus0/dev0/fn0/config-space
bus/pci/hose0/bus0/dev0/fn0/bar0
bus/pci/hose0/bus0/dev0/fn0/bar1
bus/pci/hose0/bus0/dev0/fn0/bar2
bus/pci/hose0/bus0/dev0/fn0/status
Then with some mmap flags, the nasty ioctl() stuff
won't be needed anymore. It can die during 2.7.xx
development. If MAP_MMIO isn't generally acceptable,
then it could be via filename suffixes. (eeew, IMHO)
One remaining problem is permission. Any complaints
about implementing chmod() for those? Since this
does bypass capabilities, a mount option might be
used to enable it.
As alternatives to /proc changes, a distinct filesystem
could be developed or sysfs could be abused.
^ permalink raw reply [flat|nested] 36+ messages in thread* Re: /proc/bus/pci
2003-06-05 3:21 /proc/bus/pci Albert Cahalan
@ 2003-06-05 3:35 ` William Lee Irwin III
2003-06-05 4:23 ` /proc/bus/pci Linus Torvalds
2003-06-05 16:58 ` /proc/bus/pci Greg KH
2 siblings, 0 replies; 36+ messages in thread
From: William Lee Irwin III @ 2003-06-05 3:35 UTC (permalink / raw)
To: Albert Cahalan; +Cc: linux-kernel, davem, torvalds, bcollins, tom_gall, anton
On Wed, Jun 04, 2003 at 11:21:43PM -0400, Albert Cahalan wrote:
> I notice that /proc/bus/pci doesn't offer a sane
> interface for multiple PCI domains and choice of BAR.
> What do people think of this?
> bus/pci/00/00.0 -> ../hose0/bus0/dev0/fn0/config-space
> bus/pci/hose0/bus0/dev0/fn0/config-space
> bus/pci/hose0/bus0/dev0/fn0/bar0
> bus/pci/hose0/bus0/dev0/fn0/bar1
> bus/pci/hose0/bus0/dev0/fn0/bar2
> bus/pci/hose0/bus0/dev0/fn0/status
I would be happy with such an interface.
-- wli
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 3:21 /proc/bus/pci Albert Cahalan
2003-06-05 3:35 ` /proc/bus/pci William Lee Irwin III
@ 2003-06-05 4:23 ` Linus Torvalds
2003-06-05 5:01 ` /proc/bus/pci David S. Miller
2003-06-05 12:05 ` /proc/bus/pci Albert Cahalan
2003-06-05 16:58 ` /proc/bus/pci Greg KH
2 siblings, 2 replies; 36+ messages in thread
From: Linus Torvalds @ 2003-06-05 4:23 UTC (permalink / raw)
To: Albert Cahalan; +Cc: linux-kernel, davem, bcollins, wli, tom_gall, anton
On Wed, 4 Jun 2003, Albert Cahalan wrote:
>
> I notice that /proc/bus/pci doesn't offer a sane
> interface for multiple PCI domains and choice of BAR.
> What do people think of this?
>
> bus/pci/00/00.0 -> ../hose0/bus0/dev0/fn0/config-space
Why do we have that stupid "hose" name? Only because of strange alpha
naming, or did somebody else also use that incredibly silly name?
Please talk about "domains", at least it makes some sense as a name.
I'm also hoping that /proc/bus will eventually go away, so I don't see a
major problem with not understanding multiple domains at that level.
On a /sys/bus/xxx level we actually should already be able to handle
multiple domains, but the naming is broken. However, in /sys we should be
able to nicely handling non-zero domains by just extending the name space
a bit.
Linus
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 4:23 ` /proc/bus/pci Linus Torvalds
@ 2003-06-05 5:01 ` David S. Miller
2003-06-05 12:05 ` /proc/bus/pci Albert Cahalan
1 sibling, 0 replies; 36+ messages in thread
From: David S. Miller @ 2003-06-05 5:01 UTC (permalink / raw)
To: torvalds; +Cc: albert, linux-kernel, bcollins, wli, tom_gall, anton
From: Linus Torvalds <torvalds@transmeta.com>
Date: Wed, 4 Jun 2003 21:23:16 -0700 (PDT)
On Wed, 4 Jun 2003, Albert Cahalan wrote:
> bus/pci/00/00.0 -> ../hose0/bus0/dev0/fn0/config-space
Why do we have that stupid "hose" name? Only because of strange alpha
naming, or did somebody else also use that incredibly silly name?
Please talk about "domains", at least it makes some sense as a name.
I agree.
I'm also hoping that /proc/bus will eventually go away, so I don't
see a major problem with not understanding multiple domains at that
level.
On a /sys/bus/xxx level we actually should already be able to handle
multiple domains, but the naming is broken. However, in /sys we should be
able to nicely handling non-zero domains by just extending the name space
a bit.
My only concern is what file lookup algorithm we should be encouraging
things like xfree86 to use. Check /sys then /proc/bus?
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 4:23 ` /proc/bus/pci Linus Torvalds
2003-06-05 5:01 ` /proc/bus/pci David S. Miller
@ 2003-06-05 12:05 ` Albert Cahalan
2003-06-05 12:16 ` /proc/bus/pci David S. Miller
` (2 more replies)
1 sibling, 3 replies; 36+ messages in thread
From: Albert Cahalan @ 2003-06-05 12:05 UTC (permalink / raw)
To: Linus Torvalds
Cc: Albert Cahalan, linux-kernel, davem, bcollins, wli, tom_gall,
anton
On Thu, 2003-06-05 at 00:23, Linus Torvalds wrote:
> On Wed, 4 Jun 2003, Albert Cahalan wrote:
> >
> > I notice that /proc/bus/pci doesn't offer a sane
> > interface for multiple PCI domains and choice of BAR.
> > What do people think of this?
> >
> > bus/pci/00/00.0 -> ../hose0/bus0/dev0/fn0/config-space
>
> Why do we have that stupid "hose" name? Only because of strange alpha
> naming, or did somebody else also use that incredibly silly name?
>
> Please talk about "domains", at least it makes some sense as a name.
"hose" does sound pretty crazy, but...
a. "domain" is way overused in OSes and programming
b. "hose" is short
c. with old names like "d4", "hose" is better for tab-completion
I'm sure somebody could name a dozen things called "domain".
> I'm also hoping that /proc/bus will eventually go away, so I don't see a
> major problem with not understanding multiple domains at that level.
>
> On a /sys/bus/xxx level we actually should already be able to handle
> multiple domains, but the naming is broken. However, in /sys we should be
> able to nicely handling non-zero domains by just extending the name space
> a bit.
Does this mean you'd like to see per-BAR kobject stuff?
If I'm not mistaken, that is required for sysfs to work.
So sysfs then has:
devices/pci2/02:0b.0 -> ../hose0/bus2/dev11/fn0
devices/hose0/bus2/dev11/fn0/config-space
devices/hose0/bus2/dev11/fn0/bar0
devices/hose0/bus2/dev11/fn0/bar1
devices/hose0/bus2/dev11/fn0/bar2
devices/hose0/bus2/dev11/fn0/class
devices/hose0/bus2/dev11/fn0/power
devices/hose0/bus2/dev11/fn0/subsystem_vendor
devices/hose0/bus2/dev11/fn0/and-so-on
To make this clear, mmap() on bar0 would get you
a mapping of that BAR.
^ permalink raw reply [flat|nested] 36+ messages in thread* Re: /proc/bus/pci
2003-06-05 12:05 ` /proc/bus/pci Albert Cahalan
@ 2003-06-05 12:16 ` David S. Miller
2003-06-05 12:42 ` /proc/bus/pci Albert Cahalan
2003-06-05 12:36 ` /proc/bus/pci Albert Cahalan
2003-06-05 12:43 ` /proc/bus/pci Benjamin Herrenschmidt
2 siblings, 1 reply; 36+ messages in thread
From: David S. Miller @ 2003-06-05 12:16 UTC (permalink / raw)
To: albert; +Cc: torvalds, linux-kernel, bcollins, wli, tom_gall, anton
From: Albert Cahalan <albert@users.sourceforge.net>
Date: Thu, 05 Jun 2003 08:05:59 -0400
To make this clear, mmap() on bar0 would get you
a mapping of that BAR.
We have a way to portably mmap() PCI devices using just the device
node.
If you make this new method, you might have to define a whole
new set of arch level support hooks.
What I'm saying is, we should reuse all of this code we have
to support mmap()'ing PCI devices properly now (via procfs
device node files).
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 12:16 ` /proc/bus/pci David S. Miller
@ 2003-06-05 12:42 ` Albert Cahalan
0 siblings, 0 replies; 36+ messages in thread
From: Albert Cahalan @ 2003-06-05 12:42 UTC (permalink / raw)
To: David S. Miller
Cc: albert, torvalds, linux-kernel, bcollins, wli, tom_gall, anton
On Thu, 2003-06-05 at 08:16, David S. Miller wrote:
> From: Albert Cahalan <albert@users.sourceforge.net>
> Date: Thu, 05 Jun 2003 08:05:59 -0400
>
> To make this clear, mmap() on bar0 would get you
> a mapping of that BAR.
>
> We have a way to portably mmap() PCI devices using just the device
> node.
The "device node"? You mean stuff in /proc, right?
> If you make this new method, you might have to define a whole
> new set of arch level support hooks.
No. You explained why not:
> What I'm saying is, we should reuse all of this code we have
> to support mmap()'ing PCI devices properly now (via procfs
> device node files).
The existing per-arch code looks like it would work.
At worst, an offset (probably already a #define somewhere)
might need to be added.
Pushing a MAP_MMIO through to the per-arch code
might be slightly more involved. I can do PowerPC
and x86 at least, if it comes to that.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 12:05 ` /proc/bus/pci Albert Cahalan
2003-06-05 12:16 ` /proc/bus/pci David S. Miller
@ 2003-06-05 12:36 ` Albert Cahalan
2003-06-05 15:51 ` /proc/bus/pci Linus Torvalds
2003-06-05 12:43 ` /proc/bus/pci Benjamin Herrenschmidt
2 siblings, 1 reply; 36+ messages in thread
From: Albert Cahalan @ 2003-06-05 12:36 UTC (permalink / raw)
To: Albert Cahalan
Cc: Linus Torvalds, linux-kernel, davem, bcollins, wli, tom_gall,
anton
On Thu, 2003-06-05 at 08:05, Albert Cahalan wrote:
> On Thu, 2003-06-05 at 00:23, Linus Torvalds wrote:
> > On Wed, 4 Jun 2003, Albert Cahalan wrote:
> > >
> > > I notice that /proc/bus/pci doesn't offer a sane
> > > interface for multiple PCI domains and choice of BAR.
> > > What do people think of this?
> > >
> > > bus/pci/00/00.0 -> ../hose0/bus0/dev0/fn0/config-space
> >
> > Why do we have that stupid "hose" name? Only because of strange alpha
> > naming, or did somebody else also use that incredibly silly name?
> >
> > Please talk about "domains", at least it makes some sense as a name.
>
> "hose" does sound pretty crazy, but...
>
> a. "domain" is way overused in OSes and programming
> b. "hose" is short
> c. with old names like "d4", "hose" is better for tab-completion
>
> I'm sure somebody could name a dozen things called "domain".
>
> > I'm also hoping that /proc/bus will eventually go away, so I don't see a
> > major problem with not understanding multiple domains at that level.
> >
> > On a /sys/bus/xxx level we actually should already be able to handle
> > multiple domains, but the naming is broken. However, in /sys we should be
> > able to nicely handling non-zero domains by just extending the name space
> > a bit.
>
> Does this mean you'd like to see per-BAR kobject stuff?
> If I'm not mistaken, that is required for sysfs to work.
>
> So sysfs then has:
>
> devices/pci2/02:0b.0 -> ../hose0/bus2/dev11/fn0
> devices/hose0/bus2/dev11/fn0/config-space
> devices/hose0/bus2/dev11/fn0/bar0
> devices/hose0/bus2/dev11/fn0/bar1
> devices/hose0/bus2/dev11/fn0/bar2
> devices/hose0/bus2/dev11/fn0/class
> devices/hose0/bus2/dev11/fn0/power
> devices/hose0/bus2/dev11/fn0/subsystem_vendor
> devices/hose0/bus2/dev11/fn0/and-so-on
>
> To make this clear, mmap() on bar0 would get you
> a mapping of that BAR.
Some of the IBMers use "phb" instead of "hose" or "domain".
It's Primary Host Bridge, which can only be confused
with Pointy-Haired Boss AFAIK.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 12:36 ` /proc/bus/pci Albert Cahalan
@ 2003-06-05 15:51 ` Linus Torvalds
2003-06-05 16:00 ` /proc/bus/pci William Lee Irwin III
` (3 more replies)
0 siblings, 4 replies; 36+ messages in thread
From: Linus Torvalds @ 2003-06-05 15:51 UTC (permalink / raw)
To: Albert Cahalan; +Cc: linux-kernel, davem, bcollins, wli, tom_gall, anton
On Thu, 5 Jun 2003, Albert Cahalan wrote:
>
> Some of the IBMers use "phb" instead of "hose" or "domain".
Gods, did they run out of vowels in _that_ part of IBM too?
Where do they go? Is there somebody at IBM that hoards vowels, and will
one day hold the rest of the world hostage? "Mwahahahaa! If you don't buy
support from IBM, you can never use the letter 'A' again! Whahahahhhaah!".
I can see it now.
What the _f*ck_ is wrong with just calling it "PCI domain". It's a fine
word, and yes, "domain" is used commonly in computer language, but that's
a _good_ thing. Everybody immediately understands what it is about.
There is no goodness to acronyms where you have to be some "insider" to
know what the hell it means. That "hose" thing has the same problem: I
don't know about anybody else, but to me a "hose" is a logn narrow conduit
for water, and a "PCI hose" doesn't much make sense to me.
A "phb" just makes me go "Whaa?"
Linus
^ permalink raw reply [flat|nested] 36+ messages in thread* Re: /proc/bus/pci
2003-06-05 15:51 ` /proc/bus/pci Linus Torvalds
@ 2003-06-05 16:00 ` William Lee Irwin III
2003-06-05 17:23 ` /proc/bus/pci Benjamin Herrenschmidt
2003-06-05 17:18 ` /proc/bus/pci Riley Williams
` (2 subsequent siblings)
3 siblings, 1 reply; 36+ messages in thread
From: William Lee Irwin III @ 2003-06-05 16:00 UTC (permalink / raw)
To: Linus Torvalds
Cc: Albert Cahalan, linux-kernel, davem, bcollins, tom_gall, anton
On Thu, 5 Jun 2003, Albert Cahalan wrote:
>> Some of the IBMers use "phb" instead of "hose" or "domain".
On Thu, Jun 05, 2003 at 08:51:31AM -0700, Linus Torvalds wrote:
> Gods, did they run out of vowels in _that_ part of IBM too?
> Where do they go? Is there somebody at IBM that hoards vowels, and will
> one day hold the rest of the world hostage? "Mwahahahaa! If you don't buy
> support from IBM, you can never use the letter 'A' again! Whahahahhhaah!".
> I can see it now.
> What the _f*ck_ is wrong with just calling it "PCI domain". It's a fine
> word, and yes, "domain" is used commonly in computer language, but that's
> a _good_ thing. Everybody immediately understands what it is about.
> There is no goodness to acronyms where you have to be some "insider" to
> know what the hell it means. That "hose" thing has the same problem: I
> don't know about anybody else, but to me a "hose" is a logn narrow conduit
> for water, and a "PCI hose" doesn't much make sense to me.
> A "phb" just makes me go "Whaa?"
I've never seen this; however, I've seen "PCI segment" used in some
Intel docs. I do agree that neither "phb" nor "hose" are particularly
nice nomenclature.
-- wli
^ permalink raw reply [flat|nested] 36+ messages in thread* Re: /proc/bus/pci
2003-06-05 16:00 ` /proc/bus/pci William Lee Irwin III
@ 2003-06-05 17:23 ` Benjamin Herrenschmidt
2003-06-05 17:36 ` /proc/bus/pci William Lee Irwin III
0 siblings, 1 reply; 36+ messages in thread
From: Benjamin Herrenschmidt @ 2003-06-05 17:23 UTC (permalink / raw)
To: William Lee Irwin III
Cc: Linus Torvalds, Albert Cahalan, linux-kernel mailing list,
David S. Miller, bcollins, tom_gall, Anton Blanchard
>
> I've never seen this; however, I've seen "PCI segment" used in some
> Intel docs. I do agree that neither "phb" nor "hose" are particularly
> nice nomenclature.
imho, calling a domain a "segment" is plain wrong, I'd rather call
"segment" a single electrical PCI bus ...
Note: I'm to blame for polluting ppc32 with the "hose" name in
variable/function names =P
Ben.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 17:23 ` /proc/bus/pci Benjamin Herrenschmidt
@ 2003-06-05 17:36 ` William Lee Irwin III
0 siblings, 0 replies; 36+ messages in thread
From: William Lee Irwin III @ 2003-06-05 17:36 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Linus Torvalds, Albert Cahalan, linux-kernel mailing list,
David S. Miller, bcollins, tom_gall, Anton Blanchard
At some point in the past, I wrote:
>> I've never seen this; however, I've seen "PCI segment" used in some
>> Intel docs. I do agree that neither "phb" nor "hose" are particularly
>> nice nomenclature.
On Thu, Jun 05, 2003 at 07:23:21PM +0200, Benjamin Herrenschmidt wrote:
> imho, calling a domain a "segment" is plain wrong, I'd rather call
> "segment" a single electrical PCI bus ...
> Note: I'm to blame for polluting ppc32 with the "hose" name in
> variable/function names =P
I wouldn't particularly advocate segment over anything, I've merely
seen it used. I think we're all happy with "domain" (and are more
concerned with the functional issues anyway).
-- wli
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 15:51 ` /proc/bus/pci Linus Torvalds
2003-06-05 16:00 ` /proc/bus/pci William Lee Irwin III
@ 2003-06-05 17:18 ` Riley Williams
2003-06-06 16:30 ` /proc/bus/pci Ross Biro
2003-06-07 0:25 ` /proc/bus/pci Robert White
3 siblings, 0 replies; 36+ messages in thread
From: Riley Williams @ 2003-06-05 17:18 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Hi Linus.
> I don't know about anybody else, but to me a "hose" is a long
> narrow conduit for water, and a "PCI hose" doesn't much make
> sense to me.
To me a "PCI hose" is a device used on one of these new-fangled
water-cooled systems to cool down an overheated PCI bus somewhere.
Any other use is, at best, broken...
Best wishes from Riley.
---
* Nothing as pretty as a smile, nothing as ugly as a frown.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 1-Jun-2003
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 15:51 ` /proc/bus/pci Linus Torvalds
2003-06-05 16:00 ` /proc/bus/pci William Lee Irwin III
2003-06-05 17:18 ` /proc/bus/pci Riley Williams
@ 2003-06-06 16:30 ` Ross Biro
2003-06-06 18:13 ` /proc/bus/pci Riley Williams
2003-06-07 2:02 ` /proc/bus/pci Horst von Brand
2003-06-07 0:25 ` /proc/bus/pci Robert White
3 siblings, 2 replies; 36+ messages in thread
From: Ross Biro @ 2003-06-06 16:30 UTC (permalink / raw)
To: Linus Torvalds
Cc: Albert Cahalan, linux-kernel, davem, bcollins, wli, tom_gall,
anton
Linus Torvalds wrote:
>A "phb" just makes me go "Whaa?"
>
> Linus
>
Everyone knows phb stands for pointy haired boss.
Sorry, couldn't help myself.
Ross
^ permalink raw reply [flat|nested] 36+ messages in thread* Re: /proc/bus/pci
2003-06-06 16:30 ` /proc/bus/pci Ross Biro
@ 2003-06-06 18:13 ` Riley Williams
2003-06-07 2:02 ` /proc/bus/pci Horst von Brand
1 sibling, 0 replies; 36+ messages in thread
From: Riley Williams @ 2003-06-06 18:13 UTC (permalink / raw)
To: Ross Biro, Linus Torvalds
Cc: Albert Cahalan, linux-kernel, davem, bcollins, wli, tom_gall,
anton
Hi Ross.
>> A "phb" just makes me go "Whaa?"
> Everyone knows phb stands for pointy haired boss.
I didn't - I always thought it stood for Pointless Hacker's Boasts...
Also, isn't this getting off-topic here ???
Best wishes from Riley.
---
* Nothing as pretty as a smile, nothing as ugly as a frown.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 5-Jun-2003
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-06 16:30 ` /proc/bus/pci Ross Biro
2003-06-06 18:13 ` /proc/bus/pci Riley Williams
@ 2003-06-07 2:02 ` Horst von Brand
1 sibling, 0 replies; 36+ messages in thread
From: Horst von Brand @ 2003-06-07 2:02 UTC (permalink / raw)
To: Ross Biro; +Cc: Linus Torvalds, linux-kernel
Ross Biro <rossb@google.com> said:
> Linus Torvalds wrote:
[...]
> >A "phb" just makes me go "Whaa?"
> Everyone knows phb stands for pointy haired boss.
Then Linus is absolutely right ;-)
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
^ permalink raw reply [flat|nested] 36+ messages in thread
* RE: /proc/bus/pci
2003-06-05 15:51 ` /proc/bus/pci Linus Torvalds
` (2 preceding siblings ...)
2003-06-06 16:30 ` /proc/bus/pci Ross Biro
@ 2003-06-07 0:25 ` Robert White
2003-06-07 0:35 ` /proc/bus/pci Linus Torvalds
3 siblings, 1 reply; 36+ messages in thread
From: Robert White @ 2003-06-07 0:25 UTC (permalink / raw)
To: Linus Torvalds, Albert Cahalan
Cc: linux-kernel, davem, bcollins, wli, tom_gall, anton
My Humble Opinion:
"hose0" -> bad, I know I didn't have a clue where it came from
"domain0" -> obscure but mathematical 8-), probably hard to teach what with
the name used all over heck
"phb0" -> "eh what is phb?" "primary host bridge"...
"bridge0" -> not bad, is it platform agnostic? (e.g. is the connection
called a bridge on non- Intel/AMD/PS platforms?) don't know... but if it
is... good
Note: There are no "good" synonyms for "Domain" (from M-W.com:)
"field, bailiwick, champaign, demesne, dominion, province, sphere, terrain,
territory, walk"
So, my heard groans for another "domain" in the computer, and I like the way
bridge reads
"devices/bridge0/bus2/dev11/fn0/whatever"
but regardless (going back to pc-isms) that puts things like the pci-agp
"bridge" and such into the namespace if one were to be especially
conformant, which may or may not be a good thing.
Rob.
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Linus Torvalds
Sent: Thursday, June 05, 2003 8:52 AM
To: Albert Cahalan
Cc: linux-kernel; davem@redhat.com; bcollins@debian.org;
wli@holomorphy.com; tom_gall@vnet.ibm.com; anton@samba.org
Subject: Re: /proc/bus/pci
On Thu, 5 Jun 2003, Albert Cahalan wrote:
>
> Some of the IBMers use "phb" instead of "hose" or "domain".
Gods, did they run out of vowels in _that_ part of IBM too?
Where do they go? Is there somebody at IBM that hoards vowels, and will
one day hold the rest of the world hostage? "Mwahahahaa! If you don't buy
support from IBM, you can never use the letter 'A' again! Whahahahhhaah!".
I can see it now.
What the _f*ck_ is wrong with just calling it "PCI domain". It's a fine
word, and yes, "domain" is used commonly in computer language, but that's
a _good_ thing. Everybody immediately understands what it is about.
There is no goodness to acronyms where you have to be some "insider" to
know what the hell it means. That "hose" thing has the same problem: I
don't know about anybody else, but to me a "hose" is a logn narrow conduit
for water, and a "PCI hose" doesn't much make sense to me.
A "phb" just makes me go "Whaa?"
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 36+ messages in thread* RE: /proc/bus/pci
2003-06-07 0:25 ` /proc/bus/pci Robert White
@ 2003-06-07 0:35 ` Linus Torvalds
2003-06-07 1:01 ` /proc/bus/pci Robert White
2003-06-07 1:43 ` /proc/bus/pci Albert Cahalan
0 siblings, 2 replies; 36+ messages in thread
From: Linus Torvalds @ 2003-06-07 0:35 UTC (permalink / raw)
To: Robert White
Cc: Albert Cahalan, linux-kernel, davem, bcollins, wli, tom_gall,
anton
On Fri, 6 Jun 2003, Robert White wrote:
>
> So, my heard groans for another "domain" in the computer, and I like the way
> bridge reads
"bridge" means something completely different in PCI, it's a hub inside a
PCI domain, literally "bridging" two separate parts of the same domain
more-or-less seamlessly together.
A PCI domain, in contrast, is something that is _not_ bridged to another
PCI domain - two PCI domains are disjunct, and do not share any connection
(PCI-wise) to each other.
(Obviously there is some _non_PCI connection, since they are in the same
box, but that non-PCI connection might be the CPU, or it might be some
other switching fabric that is not itself visible in the PCI space).
This is why "domain" makes sense - at least to me "domain" is a
independent area as in "I am the master of my domain", correctly implying
that there may be other domains, but that they are separate.
Linus
^ permalink raw reply [flat|nested] 36+ messages in thread
* RE: /proc/bus/pci
2003-06-07 0:35 ` /proc/bus/pci Linus Torvalds
@ 2003-06-07 1:01 ` Robert White
2003-06-07 1:43 ` /proc/bus/pci Albert Cahalan
1 sibling, 0 replies; 36+ messages in thread
From: Robert White @ 2003-06-07 1:01 UTC (permalink / raw)
To: Linus Torvalds
Cc: Albert Cahalan, linux-kernel, davem, bcollins, wli, tom_gall,
anton
From: Linus Torvalds [mailto:torvalds@transmeta.com]
> This is why "domain" makes sense - at least to me "domain" is a
> independent area as in "I am the master of my domain", correctly implying
> that there may be other domains, but that they are separate.
Yea, somebody needs to jump all over the mathematicians and get them to
invent _another_ good word for "peer of the realm" style independent first
order super-sets.... 8-)
Rob.
^ permalink raw reply [flat|nested] 36+ messages in thread
* RE: /proc/bus/pci
2003-06-07 0:35 ` /proc/bus/pci Linus Torvalds
2003-06-07 1:01 ` /proc/bus/pci Robert White
@ 2003-06-07 1:43 ` Albert Cahalan
1 sibling, 0 replies; 36+ messages in thread
From: Albert Cahalan @ 2003-06-07 1:43 UTC (permalink / raw)
To: Linus Torvalds
Cc: Albert Cahalan, linux-kernel, davem, bcollins, wli, tom_gall,
anton
It turns out I picked up "hose" from the PowerPC code.
I always thought of it as something that sprays data.
To be really clear, "superbus" is descriptive.
While "bridge" is no good, "hostbridge" works.
Anyway, how about some substance?
I suppose sysfs can just change, since there wasn't
a sysfs filesystem in the 2.4.xx kernels.
Fixing up /proc/bus/pci isn't terribly bad,
assuming the PCI structs could hold per-bar
proc filesystem entries. I hope there isn't
an objection to that.
For mmap, I'm thinking this:
#define MAP_MMIO (MAP_ARCH_FOO | MAP_ARCH_BAR)
That is, MAP_MMIO is defined in terms of
arch-specific flags that are appropriate for
typical memory-mapped IO. The old ioctl()
takes priority.
Another way to do this is via filename, which
is kind of ugly but great for non-mmap usage.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 12:05 ` /proc/bus/pci Albert Cahalan
2003-06-05 12:16 ` /proc/bus/pci David S. Miller
2003-06-05 12:36 ` /proc/bus/pci Albert Cahalan
@ 2003-06-05 12:43 ` Benjamin Herrenschmidt
2 siblings, 0 replies; 36+ messages in thread
From: Benjamin Herrenschmidt @ 2003-06-05 12:43 UTC (permalink / raw)
To: Albert Cahalan
Cc: Linus Torvalds, linux-kernel mailing list, David S. Miller,
bcollins, wli, tom_gall, Anton Blanchard
> So sysfs then has:
>
> devices/pci2/02:0b.0 -> ../hose0/bus2/dev11/fn0
> devices/hose0/bus2/dev11/fn0/config-space
> devices/hose0/bus2/dev11/fn0/bar0
> devices/hose0/bus2/dev11/fn0/bar1
> devices/hose0/bus2/dev11/fn0/bar2
> devices/hose0/bus2/dev11/fn0/class
> devices/hose0/bus2/dev11/fn0/power
> devices/hose0/bus2/dev11/fn0/subsystem_vendor
> devices/hose0/bus2/dev11/fn0/and-so-on
The first entry (devices/pci2/....) is wrong imho.
With multiple domains, we can have several busses with the same bus number,
one in each domain. So it's a matter of taking the current set of pciN
entries and moving them below a "pci-domain" entry (or hose, or whatever
Linus prefers).
Also, the node name for individual PCI devices must include the domain
number, the current bus:dev.fn notation isn't enough, that will break
things like /sys/bus/pci/devices when you have several identical bus/devfn
pairs on different domains
Ben.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 3:21 /proc/bus/pci Albert Cahalan
2003-06-05 3:35 ` /proc/bus/pci William Lee Irwin III
2003-06-05 4:23 ` /proc/bus/pci Linus Torvalds
@ 2003-06-05 16:58 ` Greg KH
2003-06-05 18:27 ` /proc/bus/pci Matt Wilson
2 siblings, 1 reply; 36+ messages in thread
From: Greg KH @ 2003-06-05 16:58 UTC (permalink / raw)
To: Albert Cahalan, msw, tinglett, engebret, jdewand
Cc: linux-kernel, davem, torvalds, bcollins, wli, tom_gall, anton
On Wed, Jun 04, 2003 at 11:21:43PM -0400, Albert Cahalan wrote:
> I notice that /proc/bus/pci doesn't offer a sane
> interface for multiple PCI domains and choice of BAR.
> What do people think of this?
>
> bus/pci/00/00.0 -> ../hose0/bus0/dev0/fn0/config-space
> bus/pci/hose0/bus0/dev0/fn0/config-space
> bus/pci/hose0/bus0/dev0/fn0/bar0
> bus/pci/hose0/bus0/dev0/fn0/bar1
> bus/pci/hose0/bus0/dev0/fn0/bar2
> bus/pci/hose0/bus0/dev0/fn0/status
>
> Then with some mmap flags, the nasty ioctl() stuff
> won't be needed anymore. It can die during 2.7.xx
> development. If MAP_MMIO isn't generally acceptable,
> then it could be via filename suffixes. (eeew, IMHO)
>
> One remaining problem is permission. Any complaints
> about implementing chmod() for those? Since this
> does bypass capabilities, a mount option might be
> used to enable it.
>
> As alternatives to /proc changes, a distinct filesystem
> could be developed or sysfs could be abused.
Matt Wilson and I have been talking about some changes like this
recently. This was because some of the ppc64 ports are doing some other
weird things to try to handle the bigger IBM machines (they were abusing
the pci structures pretty badly, not pretty stuff.)
We agreed that we should call this a "domain", too, and he has a patch
that he says works for X.
Hopefully this prod will get him to send out his patch :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 16:58 ` /proc/bus/pci Greg KH
@ 2003-06-05 18:27 ` Matt Wilson
2003-06-05 19:35 ` /proc/bus/pci Greg KH
0 siblings, 1 reply; 36+ messages in thread
From: Matt Wilson @ 2003-06-05 18:27 UTC (permalink / raw)
To: Greg KH
Cc: Albert Cahalan, tinglett, engebret, jdewand, linux-kernel, davem,
torvalds, bcollins, wli, tom_gall, anton
On Thu, Jun 05, 2003 at 09:58:31AM -0700, Greg KH wrote:
>
> We agreed that we should call this a "domain", too, and he has a patch
> that he says works for X.
>
> Hopefully this prod will get him to send out his patch :)
it's a simple change to parsing /proc/bus/pci/devices in
xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_pci.c. For the
rest of pci setup, you need to write arch specific code in
xc/programs/Xserver/hw/xfree86/os-support/bus/* anyway.
Cheers,
Matt
msw@redhat.com
--
Matt Wilson
Manager, Base Operating Systems
Red Hat, Inc.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: /proc/bus/pci
2003-06-05 18:27 ` /proc/bus/pci Matt Wilson
@ 2003-06-05 19:35 ` Greg KH
0 siblings, 0 replies; 36+ messages in thread
From: Greg KH @ 2003-06-05 19:35 UTC (permalink / raw)
To: Matt Wilson
Cc: Albert Cahalan, tinglett, engebret, jdewand, linux-kernel, davem,
torvalds, bcollins, wli, tom_gall, anton
On Thu, Jun 05, 2003 at 02:27:12PM -0400, Matt Wilson wrote:
> On Thu, Jun 05, 2003 at 09:58:31AM -0700, Greg KH wrote:
> >
> > We agreed that we should call this a "domain", too, and he has a patch
> > that he says works for X.
> >
> > Hopefully this prod will get him to send out his patch :)
>
> it's a simple change to parsing /proc/bus/pci/devices in
> xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_pci.c. For the
> rest of pci setup, you need to write arch specific code in
> xc/programs/Xserver/hw/xfree86/os-support/bus/* anyway.
No, I meant your kernel patches that add domain support in a sane way.
I don't care about X patches :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 36+ messages in thread
[parent not found: <20030605125013$41ac@gated-at.bofh.it>]
* RE: /proc/bus/pci
@ 2003-06-09 17:03 Grover, Andrew
0 siblings, 0 replies; 36+ messages in thread
From: Grover, Andrew @ 2003-06-09 17:03 UTC (permalink / raw)
To: Robert White, Linus Torvalds, Albert Cahalan
Cc: linux-kernel, davem, bcollins, wli, tom_gall, anton
What about "PCI segment"?
Another overloaded CS word but it's certainly better than some of the
alternatives below. It's also the only one that is actually used in a
relevant specification (the ACPI spec.)
Regards - Andy
> -----Original Message-----
> From: Robert White [mailto:rwhite@casabyte.com]
> Sent: Friday, June 06, 2003 5:25 PM
> To: Linus Torvalds; Albert Cahalan
> Cc: linux-kernel; davem@redhat.com; bcollins@debian.org;
> wli@holomorphy.com; tom_gall@vnet.ibm.com; anton@samba.org
> Subject: RE: /proc/bus/pci
>
>
> My Humble Opinion:
>
> "hose0" -> bad, I know I didn't have a clue where it came from
>
> "domain0" -> obscure but mathematical 8-), probably hard to
> teach what with
> the name used all over heck
>
> "phb0" -> "eh what is phb?" "primary host bridge"...
>
> "bridge0" -> not bad, is it platform agnostic? (e.g. is the connection
> called a bridge on non- Intel/AMD/PS platforms?) don't
> know... but if it
> is... good
>
> Note: There are no "good" synonyms for "Domain" (from M-W.com:)
>
> "field, bailiwick, champaign, demesne, dominion, province,
> sphere, terrain,
> territory, walk"
>
> So, my heard groans for another "domain" in the computer, and
> I like the way
> bridge reads
>
> "devices/bridge0/bus2/dev11/fn0/whatever"
>
> but regardless (going back to pc-isms) that puts things like
> the pci-agp
> "bridge" and such into the namespace if one were to be especially
> conformant, which may or may not be a good thing.
>
> Rob.
>
>
> -----Original Message-----
> From: linux-kernel-owner@vger.kernel.org
> [mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Linus Torvalds
> Sent: Thursday, June 05, 2003 8:52 AM
> To: Albert Cahalan
> Cc: linux-kernel; davem@redhat.com; bcollins@debian.org;
> wli@holomorphy.com; tom_gall@vnet.ibm.com; anton@samba.org
> Subject: Re: /proc/bus/pci
>
>
>
> On Thu, 5 Jun 2003, Albert Cahalan wrote:
> >
> > Some of the IBMers use "phb" instead of "hose" or "domain".
>
> Gods, did they run out of vowels in _that_ part of IBM too?
>
> Where do they go? Is there somebody at IBM that hoards
> vowels, and will
> one day hold the rest of the world hostage? "Mwahahahaa! If
> you don't buy
> support from IBM, you can never use the letter 'A' again!
> Whahahahhhaah!".
>
> I can see it now.
>
>
> What the _f*ck_ is wrong with just calling it "PCI domain".
> It's a fine
> word, and yes, "domain" is used commonly in computer
> language, but that's
> a _good_ thing. Everybody immediately understands what it is about.
>
> There is no goodness to acronyms where you have to be some
> "insider" to
> know what the hell it means. That "hose" thing has the same problem: I
> don't know about anybody else, but to me a "hose" is a logn
> narrow conduit
> for water, and a "PCI hose" doesn't much make sense to me.
>
> A "phb" just makes me go "Whaa?"
>
> Linus
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 36+ messages in thread
end of thread, other threads:[~2003-06-13 19:23 UTC | newest]
Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-05 3:21 /proc/bus/pci Albert Cahalan
2003-06-05 3:35 ` /proc/bus/pci William Lee Irwin III
2003-06-05 4:23 ` /proc/bus/pci Linus Torvalds
2003-06-05 5:01 ` /proc/bus/pci David S. Miller
2003-06-05 12:05 ` /proc/bus/pci Albert Cahalan
2003-06-05 12:16 ` /proc/bus/pci David S. Miller
2003-06-05 12:42 ` /proc/bus/pci Albert Cahalan
2003-06-05 12:36 ` /proc/bus/pci Albert Cahalan
2003-06-05 15:51 ` /proc/bus/pci Linus Torvalds
2003-06-05 16:00 ` /proc/bus/pci William Lee Irwin III
2003-06-05 17:23 ` /proc/bus/pci Benjamin Herrenschmidt
2003-06-05 17:36 ` /proc/bus/pci William Lee Irwin III
2003-06-05 17:18 ` /proc/bus/pci Riley Williams
2003-06-06 16:30 ` /proc/bus/pci Ross Biro
2003-06-06 18:13 ` /proc/bus/pci Riley Williams
2003-06-07 2:02 ` /proc/bus/pci Horst von Brand
2003-06-07 0:25 ` /proc/bus/pci Robert White
2003-06-07 0:35 ` /proc/bus/pci Linus Torvalds
2003-06-07 1:01 ` /proc/bus/pci Robert White
2003-06-07 1:43 ` /proc/bus/pci Albert Cahalan
2003-06-05 12:43 ` /proc/bus/pci Benjamin Herrenschmidt
2003-06-05 16:58 ` /proc/bus/pci Greg KH
2003-06-05 18:27 ` /proc/bus/pci Matt Wilson
2003-06-05 19:35 ` /proc/bus/pci Greg KH
[not found] <20030605125013$41ac@gated-at.bofh.it>
[not found] ` <20030605160017$10e1@gated-at.bofh.it>
2003-06-05 16:41 ` /proc/bus/pci Julien Oster
2003-06-05 16:57 ` /proc/bus/pci Mike Dresser
2003-06-05 17:00 ` /proc/bus/pci Richard B. Johnson
2003-06-07 0:31 ` /proc/bus/pci Robert White
2003-06-05 20:49 ` /proc/bus/pci Michal Jaegermann
2003-06-12 4:29 ` /proc/bus/pci Andre Hedrick
2003-06-13 7:10 ` /proc/bus/pci Riley Williams
2003-06-13 8:43 ` /proc/bus/pci Olivier Galibert
2003-06-13 16:28 ` /proc/bus/pci Mr. James W. Laferriere
2003-06-13 17:59 ` /proc/bus/pci Riley Williams
2003-06-13 19:37 ` /proc/bus/pci Mr. James W. Laferriere
-- strict thread matches above, loose matches on Subject: below --
2003-06-09 17:03 /proc/bus/pci Grover, Andrew
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox