Commit 37764b9
iommu/vt-d: Global devTLB flush when present context entry changed
This fixes a bug in context cache clear operation. The code was not
following the correct invalidation flow. A global device TLB invalidation
should be added after the IOTLB invalidation. At the same time, it
uses the domain ID from the context entry. But in scalable mode, the
domain ID is in PASID table entry, not context entry.
Fixes: 7373a8c ("iommu/vt-d: Setup context and enable RID2PASID support")
Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210712071315.3416543-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent ce36c94 commit 37764b9
1 file changed
+22
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2429 | 2429 | | |
2430 | 2430 | | |
2431 | 2431 | | |
2432 | | - | |
| 2432 | + | |
2433 | 2433 | | |
2434 | | - | |
| 2434 | + | |
2435 | 2435 | | |
| 2436 | + | |
2436 | 2437 | | |
2437 | 2438 | | |
2438 | 2439 | | |
| |||
2444 | 2445 | | |
2445 | 2446 | | |
2446 | 2447 | | |
2447 | | - | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
2448 | 2458 | | |
2449 | 2459 | | |
2450 | 2460 | | |
| |||
2462 | 2472 | | |
2463 | 2473 | | |
2464 | 2474 | | |
| 2475 | + | |
| 2476 | + | |
2465 | 2477 | | |
2466 | 2478 | | |
2467 | 2479 | | |
| |||
4425 | 4437 | | |
4426 | 4438 | | |
4427 | 4439 | | |
4428 | | - | |
| 4440 | + | |
4429 | 4441 | | |
4430 | | - | |
| 4442 | + | |
4431 | 4443 | | |
4432 | 4444 | | |
4433 | 4445 | | |
| |||
4437 | 4449 | | |
4438 | 4450 | | |
4439 | 4451 | | |
4440 | | - | |
| 4452 | + | |
4441 | 4453 | | |
4442 | | - | |
| 4454 | + | |
4443 | 4455 | | |
4444 | 4456 | | |
4445 | | - | |
| 4457 | + | |
| 4458 | + | |
4446 | 4459 | | |
4447 | 4460 | | |
4448 | 4461 | | |
| |||
4466 | 4479 | | |
4467 | 4480 | | |
4468 | 4481 | | |
4469 | | - | |
| 4482 | + | |
4470 | 4483 | | |
4471 | 4484 | | |
4472 | 4485 | | |
| |||
0 commit comments