Commit e5ebd90
iommu/amd: Enable separate interrupt for PPR and GA log
AMD IOMMU has three log buffers (i.e. Event, PPR, and GA). These logs can
be configured to generate different interrupts when an entry is inserted
into a log buffer.
However, current implementation share single interrupt to handle all three
logs. With increasing usages of the GA (for IOMMU AVIC) and PPR logs (for
IOMMUv2 APIs and SVA), interrupt sharing could potentially become
performance bottleneck.
Hence, separate IOMMU interrupt into use three separate vectors and irq
threads with corresponding name, which will be displayed in the
/proc/interrupts as "AMD-Vi<x>-[Evt/PPR/GA]", where "x" is an IOMMU id.
Note that this patch changes interrupt handling only in IOMMU x2apic mode
(MMIO 0x18[IntCapXTEn]=1). In legacy mode it will continue to use single
MSI interrupt.
Signed-off-by: Vasant Hegde<vasant.hegde@amd.com>
Reviewed-by: Alexey Kardashevskiy<aik@amd.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Link: https://lore.kernel.org/r/20230628053222.5962-3-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 2379f34 commit e5ebd90
2 files changed
Lines changed: 47 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
708 | 711 | | |
709 | 712 | | |
710 | 713 | | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
711 | 717 | | |
712 | 718 | | |
713 | 719 | | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
714 | 723 | | |
715 | 724 | | |
716 | 725 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2335 | 2335 | | |
2336 | 2336 | | |
2337 | 2337 | | |
| 2338 | + | |
2338 | 2339 | | |
2339 | 2340 | | |
2340 | 2341 | | |
| |||
2361 | 2362 | | |
2362 | 2363 | | |
2363 | 2364 | | |
2364 | | - | |
2365 | | - | |
2366 | | - | |
2367 | | - | |
2368 | | - | |
2369 | | - | |
2370 | | - | |
| 2365 | + | |
2371 | 2366 | | |
2372 | 2367 | | |
2373 | 2368 | | |
2374 | 2369 | | |
2375 | 2370 | | |
2376 | 2371 | | |
2377 | | - | |
2378 | | - | |
2379 | | - | |
| 2372 | + | |
2380 | 2373 | | |
2381 | 2374 | | |
2382 | 2375 | | |
| |||
2439 | 2432 | | |
2440 | 2433 | | |
2441 | 2434 | | |
2442 | | - | |
| 2435 | + | |
| 2436 | + | |
2443 | 2437 | | |
2444 | 2438 | | |
2445 | 2439 | | |
| |||
2453 | 2447 | | |
2454 | 2448 | | |
2455 | 2449 | | |
| 2450 | + | |
2456 | 2451 | | |
2457 | 2452 | | |
2458 | 2453 | | |
| |||
2461 | 2456 | | |
2462 | 2457 | | |
2463 | 2458 | | |
2464 | | - | |
| 2459 | + | |
2465 | 2460 | | |
2466 | 2461 | | |
2467 | 2462 | | |
| |||
2471 | 2466 | | |
2472 | 2467 | | |
2473 | 2468 | | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
2474 | 2500 | | |
2475 | 2501 | | |
2476 | 2502 | | |
| |||
0 commit comments