Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173084
b: refs/heads/master
c: 303fc08
h: refs/heads/master
v: v3
  • Loading branch information
Prarit Bhargava authored and Ingo Molnar committed Nov 16, 2009
1 parent 38c9be0 commit edb1147
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: e84446de5cccd90de7d7ec46527d3b343b022a09
refs/heads/master: 303fc0870f8fbfabe260c5c32b18e53458d597ea
9 changes: 8 additions & 1 deletion trunk/arch/x86/kernel/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ static void __init quirk_amd_nb_node(struct pci_dev *dev)
{
struct pci_dev *nb_ht;
unsigned int devfn;
u32 node;
u32 val;

devfn = PCI_DEVFN(PCI_SLOT(dev->devfn), 0);
Expand All @@ -507,7 +508,13 @@ static void __init quirk_amd_nb_node(struct pci_dev *dev)
return;

pci_read_config_dword(nb_ht, 0x60, &val);
set_dev_node(&dev->dev, val & 7);
node = val & 7;
/*
* Some hardware may return an invalid node ID,
* so check it first:
*/
if (node_online(node))
set_dev_node(&dev->dev, node);
pci_dev_put(nb_ht);
}

Expand Down

0 comments on commit edb1147

Please sign in to comment.