Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282790
b: refs/heads/master
c: 60fe823
h: refs/heads/master
v: v3
  • Loading branch information
Alex Williamson authored and Jesse Barnes committed Dec 5, 2011
1 parent e2c6b05 commit 9d8d561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: a776c491ca5e38c26d9f66923ff574d041e747f4
refs/heads/master: 60fe823837d10673500ff685c01eb2f896fe5849
5 changes: 2 additions & 3 deletions trunk/drivers/pci/ats.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ int pci_enable_pasid(struct pci_dev *pdev, int features)
pci_read_config_word(pdev, pos + PCI_PASID_CONTROL_OFF, &control);
pci_read_config_word(pdev, pos + PCI_PASID_CAP_OFF, &supported);

if (!(supported & PCI_PASID_ENABLE))
if (control & PCI_PASID_ENABLE)
return -EINVAL;

supported &= PCI_PASID_EXEC | PCI_PASID_PRIV;
Expand Down Expand Up @@ -390,7 +390,6 @@ EXPORT_SYMBOL_GPL(pci_disable_pasid);
* Returns a negative value when no PASI capability is present.
* Otherwise is returns a bitmask with supported features. Current
* features reported are:
* PCI_PASID_ENABLE - PASID capability can be enabled
* PCI_PASID_EXEC - Execute permission supported
* PCI_PASID_PRIV - Priviledged mode supported
*/
Expand All @@ -405,7 +404,7 @@ int pci_pasid_features(struct pci_dev *pdev)

pci_read_config_word(pdev, pos + PCI_PASID_CAP_OFF, &supported);

supported &= PCI_PASID_ENABLE | PCI_PASID_EXEC | PCI_PASID_PRIV;
supported &= PCI_PASID_EXEC | PCI_PASID_PRIV;

return supported;
}
Expand Down

0 comments on commit 9d8d561

Please sign in to comment.