Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225684
b: refs/heads/master
c: f6f41eb
h: refs/heads/master
v: v3
  • Loading branch information
Stepan Moskovchenko authored and Daniel Walker committed Nov 30, 2010
1 parent 66be2ed commit 6d47175
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: 516cbc793eb4be5123289d067b54dfcdabeddb25
refs/heads/master: f6f41eb9ccc0e6fad0ccba4c5e0a97de935db734
15 changes: 9 additions & 6 deletions trunk/arch/arm/mach-msm/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ static void __flush_iotlb(struct iommu_domain *domain)
unsigned long *fl_table = priv->pgtable;
int i;

dmac_flush_range(fl_table, fl_table + SZ_16K);
if (!list_empty(&priv->list_attached)) {
dmac_flush_range(fl_table, fl_table + SZ_16K);

for (i = 0; i < NUM_FL_PTE; i++)
if ((fl_table[i] & 0x03) == FL_TYPE_TABLE) {
void *sl_table = __va(fl_table[i] & FL_BASE_MASK);
dmac_flush_range(sl_table, sl_table + SZ_4K);
}
for (i = 0; i < NUM_FL_PTE; i++)
if ((fl_table[i] & 0x03) == FL_TYPE_TABLE) {
void *sl_table = __va(fl_table[i] &
FL_BASE_MASK);
dmac_flush_range(sl_table, sl_table + SZ_4K);
}
}
#endif

list_for_each_entry(ctx_drvdata, &priv->list_attached, attached_elm) {
Expand Down

0 comments on commit 6d47175

Please sign in to comment.