From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: [PATCH] ppc64: fix OF <-> PCI linkage for G5 AGP bus
Date: Thu, 12 Feb 2004 19:24:10 +1100 [thread overview]
Message-ID: <1076574249.874.212.camel@gaston> (raw)
Hi Linus !
This patch fixes the failure of radeonfb to retreive the clock
and EDID data from Open Firmware. The linkage between the PCI device
and the OF node couldn't be established properly at boot because of
the renumbering we do to the G5's AGP bus.
Please apply,
Ben.
===== arch/ppc64/kernel/pmac_pci.c 1.1 vs edited =====
--- 1.1/arch/ppc64/kernel/pmac_pci.c Thu Feb 12 14:47:58 2004
+++ edited/arch/ppc64/kernel/pmac_pci.c Thu Feb 12 19:18:24 2004
@@ -709,10 +709,24 @@
* does it only for childs of the host bridges
*/
pmac_fixup_phb_resources();
-
+
/* Setup the linkage between OF nodes and PHBs */
pci_devs_phb_init();
+ /* We have to deal with the renumbering we do for the AGP bus and update
+ * the device-node accordingly
+ */
+ if (u3_agp) {
+ struct device_node *np = (struct device_node *)u3_agp->arch_data;
+ np->busno = 0xf0;
+ np = np->child;
+ while(np) {
+ np->busno = 0xf0;
+ np = np->sibling;
+ }
+ }
+
+ /* Check HyperTransport link speed */
pmac_check_ht_link();
/* Tell pci.c to use the common resource allocation mecanism */
reply other threads:[~2004-02-12 8:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1076574249.874.212.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@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
all inboxes | Powered by JetHome®