Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245391
b: refs/heads/master
c: 60f723b
h: refs/heads/master
i:
  245389: aa8222c
  245387: 36d9caa
  245383: 9f5dfd3
  245375: c537cee
v: v3
  • Loading branch information
Joerg Roedel committed Apr 11, 2011
1 parent 3ca9b16 commit c944d6b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb41ed85efa01e633388314c03a4f3004c6b783b
refs/heads/master: 60f723b4117507c05c8b0b5c8b98ecc12a76878e
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/asm/amd_iommu_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ extern bool amd_iommu_dump;

/* global flag if IOMMUs cache non-present entries */
extern bool amd_iommu_np_cache;
/* Only true if all IOMMUs support device IOTLBs */
extern bool amd_iommu_iotlb_sup;

/*
* Make iterating over all IOMMUs easier
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ int amd_iommus_present;

/* IOMMUs have a non-present cache? */
bool amd_iommu_np_cache __read_mostly;
bool amd_iommu_iotlb_sup __read_mostly = true;

/*
* The ACPI table parsing functions set this variable on an error
Expand Down Expand Up @@ -673,6 +674,9 @@ static void __init init_iommu_from_pci(struct amd_iommu *iommu)
MMIO_GET_LD(range));
iommu->evt_msi_num = MMIO_MSI_NUM(misc);

if (!(iommu->cap & (1 << IOMMU_CAP_IOTLB)))
amd_iommu_iotlb_sup = false;

if (!is_rd890_iommu(iommu->dev))
return;

Expand Down

0 comments on commit c944d6b

Please sign in to comment.