From: "Mark A. Greer" <mgreer@mvista.com>
To: Sven Luther <sven.luther@wanadoo.fr>
Cc: Nicolas DET <det.nicolas@free.fr>,
Dale Farnsworth <dale@farnsworth.org>,
linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: Re: mv643xx_eth SA_SHIRQ support patch
Date: Tue, 08 Mar 2005 11:19:18 -0700 [thread overview]
Message-ID: <422DECA6.1090408@mvista.com> (raw)
In-Reply-To: <20050308121501.GC4556@pegasos>
Sven Luther wrote:
>Also going to add the explicit detection of the marvell bridge in the OF tree,
>
Do you really need to do that, though? Just finding "Pegasos" or
"Pegasos2" in the 'model' field of the device tree should be sufficient,
shouldn't it? (if I'm reading the code correctly)
>but need to decide what to check for there.
>
The only way that I know of to tell if you're on a mv64x60 bridge is to
do a pci cfg read of the vendor/device id fields of fcn 0 of the
bridge's device on that pci hose. By default, the bus number of both
hoses are 0 (but OF probably sets the second one to be > 0 depending on
how many pci buses there are hanging off hose 0), the bridge will be
device 0 on both hoses, the vendor id will be PCI_VENDOR_ID_MARVELL
(0x11ab) and the device id will be PCI_DEVICE_ID_MARVELL_MV64360
(0x6460) for a mv64360.
Unfortunately, the bus number of each hose, the device # of the bridge's
device on that hose (see "PCI P2P Configuration" register offsets 0x1d14
& 0x1d94), and the vendor & device ids (by a pci cfg write to those
fields) can all be changed by the fw . I guess the device tree tells
you the bus number of each hose so you can generate the proper cfg
access and I doubt OF changes the bridge's device # and pci vendor/dev
id but I wanted to make you aware of the potential.
Mark
next prev parent reply other threads:[~2005-03-08 18:19 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-26 0:14 [PATCH][PPC32] mv64x60 updates Mark A. Greer
2005-02-24 8:25 ` Sven Luther
2005-02-24 15:28 ` Mark A. Greer
2005-02-24 16:04 ` Sven Luther
2005-02-24 17:08 ` Mark A. Greer
2005-02-24 17:05 ` Sven Luther
2005-02-24 17:24 ` Dale Farnsworth
2005-03-05 19:27 ` Sven Luther
2005-03-05 20:32 ` Sven Luther
2005-03-05 22:51 ` Dale Farnsworth
2005-03-06 7:02 ` Sven Luther
2005-03-06 10:29 ` Dale Farnsworth
2005-03-06 19:10 ` Sven Luther
2005-03-06 19:48 ` Nicolas DET
2005-03-07 1:00 ` [PATCH][PPC32] " Dale Farnsworth
2005-03-07 6:52 ` Sven Luther
2005-03-07 10:56 ` Nicolas DET
2005-03-07 10:58 ` Nicolas DET
2005-03-07 12:30 ` James Chapman
2005-03-07 12:46 ` Sven Luther
2005-03-07 12:57 ` Nicolas DET
2005-03-07 13:20 ` Sven Luther
2005-03-07 17:24 ` Mark A. Greer
2005-03-07 13:23 ` Linwoes
2005-03-07 22:54 ` mv643xx_eth SA_SHIRQ support patch Dale Farnsworth
2005-03-08 6:49 ` Sven Luther
2005-03-08 7:27 ` Benjamin Herrenschmidt
2005-03-08 12:20 ` Dale Farnsworth
2005-03-08 12:15 ` Sven Luther
2005-03-08 12:42 ` Sven Luther
[not found] ` <20050308164310.GA9891@pegasos>
2005-03-08 22:31 ` Benjamin Herrenschmidt
2005-03-09 7:17 ` Sven Luther
2005-03-09 7:39 ` Benjamin Herrenschmidt
2005-03-09 7:40 ` Sven Luther
2005-03-08 18:19 ` Mark A. Greer [this message]
2005-03-08 18:19 ` Sven Luther
2005-03-08 19:28 ` [PATCH] final mv643xx_eth pegasos patch set Sven Luther
2005-03-08 19:52 ` Sven Luther
2005-03-08 23:18 ` Nicolas DET
2005-03-09 2:03 ` mv64x60 updates Benjamin Herrenschmidt
2005-03-09 2:01 ` Benjamin Herrenschmidt
2005-03-09 15:59 ` Chris Friesen
2005-03-05 21:58 ` [PATCH][PPC32] " Dale Farnsworth
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=422DECA6.1090408@mvista.com \
--to=mgreer@mvista.com \
--cc=dale@farnsworth.org \
--cc=det.nicolas@free.fr \
--cc=linuxppc-dev@ozlabs.org \
--cc=sven.luther@wanadoo.fr \
/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.