From: "Ayman El-Khashab" <AymanE@tanisys.com>
To: <linuxppc-dev@ozlabs.org>
Subject: RE: Problems with PCI-E devices not being detected with switch
Date: Mon, 20 Oct 2008 17:14:48 -0500 [thread overview]
Message-ID: <16691A8B34B5D9458EA3A1C37A11555A0137F832@tanisys-ex2.Tanisys.Local> (raw)
In-Reply-To: <1224539820.7654.173.camel@pasglop>
Benjamin Herrenschmidt wrote:
>>>=20
>>> + /* Check if setup is sensible at all */
>>> + if ((buses & 0xff) !=3D bus->number ||
>>> + ((buses >> 8) & 0xff) !=3D <=3D bus->number) {
>>=20
>> Note that I removed the <=3D from the above line -- I did not think =
it
>> was correct. Please let me know if that was wrong.
>=20
> My logic is that the current setup is incorrect if the primary bus of
> the bridge doesn't match the parent bus number, or if the secondary
> bus number of the bridge is not strictly superior to the parent bus
> number. =20
>=20
> What sounds incorrect ?
>=20
The part that didn't look correct is this line (note the operators)
((buses >> 8) & 0xff) !=3D <=3D bus->number) {
Operators ^^ ^^
>From reading through the code and your textual description of what was
supposed to be happening, I went ahead and changed it to ...=20
((buses >> 8) & 0xff) !=3D bus->number) {
And this is the code that generated the results from my previous
message.
Hope that made sense ...
Regards,
Ayman
next prev parent reply other threads:[~2008-10-20 22:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-15 15:47 Problems with PCI-E devices not being detected with switch Ayman El-Khashab
2008-10-16 5:20 ` Benjamin Herrenschmidt
2008-10-16 8:03 ` Stefan Roese
2008-10-16 8:29 ` Benjamin Herrenschmidt
2008-10-16 8:48 ` Stefan Roese
2008-10-16 8:58 ` Benjamin Herrenschmidt
2008-10-16 15:01 ` Ayman El-Khashab
2008-10-16 21:19 ` Benjamin Herrenschmidt
2008-10-17 0:10 ` Benjamin Herrenschmidt
2008-10-17 7:22 ` Stefan Roese
2008-10-17 14:54 ` Ayman El-Khashab
2008-10-17 21:05 ` Benjamin Herrenschmidt
2008-10-17 21:19 ` Benjamin Herrenschmidt
2008-10-20 21:03 ` Ayman El-Khashab
2008-10-20 21:57 ` Benjamin Herrenschmidt
2008-10-20 22:14 ` Ayman El-Khashab [this message]
2008-10-20 22:55 ` Benjamin Herrenschmidt
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=16691A8B34B5D9458EA3A1C37A11555A0137F832@tanisys-ex2.Tanisys.Local \
--to=aymane@tanisys.com \
--cc=linuxppc-dev@ozlabs.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).