Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176885
b: refs/heads/master
c: 751cafe
h: refs/heads/master
i:
  176883: 23ac8f5
v: v3
  • Loading branch information
Suresh Siddha authored and David Woodhouse committed Oct 5, 2009
1 parent e3c5d88 commit 54a4e78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: ee34b32d8c2950f66038c8975747ef9aec855289
refs/heads/master: 751cafe3aeceb9ff887c97237f6daaf596c9e547
8 changes: 6 additions & 2 deletions trunk/drivers/pci/dmar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ static void __dmar_enable_qi(struct intel_iommu *iommu)
int dmar_enable_qi(struct intel_iommu *iommu)
{
struct q_inval *qi;
struct page *desc_page;

if (!ecap_qis(iommu->ecap))
return -ENOENT;
Expand All @@ -1056,13 +1057,16 @@ int dmar_enable_qi(struct intel_iommu *iommu)

qi = iommu->qi;

qi->desc = (void *)(get_zeroed_page(GFP_ATOMIC));
if (!qi->desc) {

desc_page = alloc_pages_node(iommu->node, GFP_ATOMIC | __GFP_ZERO, 0);
if (!desc_page) {
kfree(qi);
iommu->qi = 0;
return -ENOMEM;
}

qi->desc = page_address(desc_page);

qi->desc_status = kmalloc(QI_LENGTH * sizeof(int), GFP_ATOMIC);
if (!qi->desc_status) {
free_page((unsigned long) qi->desc);
Expand Down

0 comments on commit 54a4e78

Please sign in to comment.