Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32892
b: refs/heads/master
c: 089bbbc
h: refs/heads/master
v: v3
  • Loading branch information
Muli Ben-Yehuda authored and Linus Torvalds committed Jul 30, 2006
1 parent 6545c8c commit 6bffdd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e5f61b00c577da698fb00cd9c91a96b79044dfd
refs/heads/master: 089bbbcb36979166131868a89ca5f4e695d6637d
7 changes: 3 additions & 4 deletions trunk/arch/x86_64/kernel/pci-calgary.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ static int __init calgary_init(void)
int i, ret = -ENODEV;
struct pci_dev *dev = NULL;

for (i = 0; i <= num_online_nodes() * MAX_NUM_OF_PHBS; i++) {
for (i = 0; i < num_online_nodes() * MAX_NUM_OF_PHBS; i++) {
dev = pci_get_device(PCI_VENDOR_ID_IBM,
PCI_DEVICE_ID_IBM_CALGARY,
dev);
Expand Down Expand Up @@ -890,9 +890,8 @@ void __init detect_calgary(void)
specified_table_size = determine_tce_table_size(end_pfn * PAGE_SIZE);

for (bus = 0, table_idx = 0;
bus <= num_online_nodes() * MAX_PHB_BUS_NUM;
bus < num_online_nodes() * MAX_PHB_BUS_NUM;
bus++) {
BUG_ON(bus > MAX_NUMNODES * MAX_PHB_BUS_NUM);
if (read_pci_config(bus, 0, 0, 0) != PCI_VENDOR_DEVICE_ID_CALGARY)
continue;
if (test_bit(bus, translation_disabled)) {
Expand Down Expand Up @@ -1002,7 +1001,7 @@ static int __init calgary_parse_options(char *p)
if (p == endp)
break;

if (bridge <= (num_online_nodes() * MAX_PHB_BUS_NUM)) {
if (bridge < (num_online_nodes() * MAX_PHB_BUS_NUM)) {
printk(KERN_INFO "Calgary: disabling "
"translation for PHB 0x%x\n", bridge);
set_bit(bridge, translation_disabled);
Expand Down

0 comments on commit 6bffdd1

Please sign in to comment.