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@amd.com> Signed-off-by: Ed Swierk <eswierk@arastra.com> Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ward Vandewege <ward@gnu.org> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2595 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
75812a66bb
commit
da38d60a70
|
@ -103,12 +103,6 @@ static unsigned int amdk8_nodeid(device_t dev)
|
||||||
|
|
||||||
static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned link, unsigned sblink, unsigned int max, unsigned offset_unitid)
|
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;
|
uint32_t link_type;
|
||||||
int i;
|
int i;
|
||||||
|
@ -212,10 +206,6 @@ static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned lin
|
||||||
((dev->link[link].subordinate) << 24);
|
((dev->link[link].subordinate) << 24);
|
||||||
f1_write_config32(config_reg, config_busses);
|
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
|
/* Now we can scan all of the subordinate busses i.e. the
|
||||||
* chain on the hypertranport link
|
* chain on the hypertranport link
|
||||||
*/
|
*/
|
||||||
|
@ -224,11 +214,6 @@ static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned lin
|
||||||
}
|
}
|
||||||
max = hypertransport_scan_chain(&dev->link[link], 0, 0xbf, max, ht_unitid_base, offset_unitid);
|
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
|
/* We know the number of busses behind this bridge. Set the
|
||||||
* subordinate bus number to it's real value
|
* subordinate bus number to it's real value
|
||||||
*/
|
*/
|
||||||
|
@ -254,11 +239,6 @@ static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned lin
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
printk_debug("%s Hypertransport scan link: %d done\n",
|
|
||||||
dev_path(dev), link);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return max;
|
return max;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,11 +251,6 @@ static unsigned int amdk8_scan_chains(device_t dev, unsigned int max)
|
||||||
nodeid = amdk8_nodeid(dev);
|
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) {
|
if(nodeid==0) {
|
||||||
sblink = (pci_read_config32(dev, 0x64)>>8) & 3;
|
sblink = (pci_read_config32(dev, 0x64)>>8) & 3;
|
||||||
|
@ -301,10 +276,6 @@ static unsigned int amdk8_scan_chains(device_t dev, unsigned int max)
|
||||||
|
|
||||||
max = amdk8_scan_chain(dev, nodeid, link, sblink, max, offset_unitid);
|
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;
|
return max;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -332,12 +303,7 @@ static int reg_useable(unsigned reg,
|
||||||
result = 1;
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1258,7 +1224,7 @@ static unsigned int cpu_bus_scan(device_t dev, unsigned int max)
|
||||||
if (dev && dev->enabled) {
|
if (dev && dev->enabled) {
|
||||||
j = pci_read_config32(dev, 0xe8);
|
j = pci_read_config32(dev, 0xe8);
|
||||||
j = (j >> 12) & 3; // dev is func 3
|
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) {
|
if(nb_cfg_54) {
|
||||||
// For e0 single core if nb_cfg_54 is set, apicid will be 0, 2, 4....
|
// For e0 single core if nb_cfg_54 is set, apicid will be 0, 2, 4....
|
||||||
|
|
Loading…
Reference in New Issue