[LinuxBIOS] r2595 - trunk/LinuxBIOSv2/src/northbridge/amd/amdk8
svn at openbios.org
svn at openbios.org
Fri Apr 6 22:59:54 CEST 2007
Author: stepan
Date: 2007-04-06 22:59:54 +0200 (Fri, 06 Apr 2007)
New Revision: 2595
Modified:
trunk/LinuxBIOSv2/src/northbridge/amd/amdk8/northbridge.c
Log:
This commit is part of YhLu's patch from January 18th.
Drop a lot of debugging code from northbridge.c
Signed-off-by: Yinghai Lu <yinghai.lu at amd.com>
Signed-off-by: Ed Swierk <eswierk at arastra.com>
Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Ward Vandewege <ward at gnu.org>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified: trunk/LinuxBIOSv2/src/northbridge/amd/amdk8/northbridge.c
===================================================================
--- trunk/LinuxBIOSv2/src/northbridge/amd/amdk8/northbridge.c 2007-04-06 20:58:37 UTC (rev 2594)
+++ trunk/LinuxBIOSv2/src/northbridge/amd/amdk8/northbridge.c 2007-04-06 20:59:54 UTC (rev 2595)
@@ -103,12 +103,6 @@
static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned link, unsigned sblink, unsigned int max, unsigned offset_unitid)
{
-#if 0
- printk_debug("%s amdk8_scan_chains max: %d starting...\n",
- dev_path(dev), max);
-#endif
-// I want to put sb chain in bus 0 can I?
-
uint32_t link_type;
int i;
@@ -212,10 +206,6 @@
((dev->link[link].subordinate) << 24);
f1_write_config32(config_reg, config_busses);
-#if 0
- printk_debug("%s Hyper transport scan link: %d max: %d\n",
- dev_path(dev), link, max);
-#endif
/* Now we can scan all of the subordinate busses i.e. the
* chain on the hypertranport link
*/
@@ -224,11 +214,6 @@
}
max = hypertransport_scan_chain(&dev->link[link], 0, 0xbf, max, ht_unitid_base, offset_unitid);
-#if 0
- printk_debug("%s Hyper transport scan link: %d new max: %d\n",
- dev_path(dev), link, max);
-#endif
-
/* We know the number of busses behind this bridge. Set the
* subordinate bus number to it's real value
*/
@@ -254,11 +239,6 @@
}
-#if 0
- printk_debug("%s Hypertransport scan link: %d done\n",
- dev_path(dev), link);
-#endif
-
return max;
}
@@ -271,11 +251,6 @@
nodeid = amdk8_nodeid(dev);
-#if 0
- printk_debug("%s amdk8_scan_chains max: %d starting...\n",
- dev_path(dev), max);
-#endif
-// I want to put sb chain in bus 0
if(nodeid==0) {
sblink = (pci_read_config32(dev, 0x64)>>8) & 3;
@@ -301,10 +276,6 @@
max = amdk8_scan_chain(dev, nodeid, link, sblink, max, offset_unitid);
}
-#if 0
- printk_debug("%s amdk8_scan_chains max: %d done\n",
- dev_path(dev), max);
-#endif
return max;
}
@@ -332,12 +303,7 @@
result = 1;
}
}
-#if 0
- printk_debug("reg: %02x result: %d gnodeid: %u glink: %u nodeid: %u link: %u\n",
- reg, result,
- goal_nodeid, goal_link,
- nodeid, link);
-#endif
+
return result;
}
@@ -1258,7 +1224,7 @@
if (dev && dev->enabled) {
j = pci_read_config32(dev, 0xe8);
j = (j >> 12) & 3; // dev is func 3
- printk_debug(" %s siblings=%d\r\n", dev_path(dev), j);
+ printk_debug(" %s siblings=%d\n", dev_path(dev), j);
if(nb_cfg_54) {
// For e0 single core if nb_cfg_54 is set, apicid will be 0, 2, 4....
More information about the coreboot
mailing list