Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96511
b: refs/heads/master
c: a7eb08c
h: refs/heads/master
i:
  96509: e14ac1f
  96507: 52216d5
  96503: 19c1bb1
  96495: af56147
  96479: 9109b2a
  96447: 058af91
  96383: 1fe4752
  96255: 3cbcae6
v: v3
  • Loading branch information
mark gross authored and Jesse Barnes committed May 13, 2008
1 parent 58d4a77 commit 38867d6
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 34a65055e5e7304b3d6ad0f7542bf66308eae50a
refs/heads/master: a7eb08c2a14f28cb652ea6ad1a8e2b8efc55fb9a
6 changes: 3 additions & 3 deletions trunk/drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

#define DEFAULT_DOMAIN_ADDRESS_WIDTH 48

#define DMAR_OPERATION_TIMEOUT (HZ*60) /* 1m */
#define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000) /* 10sec */

#define DOMAIN_MAX_ADDR(gaw) ((((u64)1) << gaw) - 1)

Expand Down Expand Up @@ -490,12 +490,12 @@ static int iommu_alloc_root_entry(struct intel_iommu *iommu)

#define IOMMU_WAIT_OP(iommu, offset, op, cond, sts) \
{\
unsigned long start_time = jiffies;\
cycles_t start_time = get_cycles();\
while (1) {\
sts = op (iommu->reg + offset);\
if (cond)\
break;\
if (time_after(jiffies, start_time + DMAR_OPERATION_TIMEOUT))\
if (DMAR_OPERATION_TIMEOUT < (get_cycles() - start_time))\
panic("DMAR hardware is malfunctioning\n");\
cpu_relax();\
}\
Expand Down

0 comments on commit 38867d6

Please sign in to comment.