Commit e04dac1
committed
drm/xe/oa/uapi: Expose media OA units
On Xe2+ platforms, media engines are attached to "SCMI" OA media (OAM)
units. One or more SCMI OAM units might be present on a platform. In
addition there is another OAM unit for global events, called
OAM-SAG. Performance metrics for media workloads can be obtained from these
OAM units, similar to OAG.
Expose these OAM units for userspace to use. OAM-SAG is exposed as an OA
unit without any attached engines.
Bspec: 70819, 67103, 63844, 72572, 74476, 61284
v2: Fix xe_gt_WARN_ON in __hwe_oam_unit for < 12.7 platforms
v3: Return XE_OA_UNIT_INVALID for < 12.7 to indicate no OAM units
v4: Move xe_oa_print_oa_units() to separate patch
v5: Introduce DRM_XE_OA_UNIT_TYPE_OAM_SAG
v6: Introduce DRM_XE_OA_CAPS_OAM
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://lore.kernel.org/r/20250606192618.4133817-2-ashutosh.dixit@intel.com1 parent 2e273e4 commit e04dac1
File tree
3 files changed
+57
-19
lines changed- drivers/gpu/drm/xe
- include/uapi/drm
3 files changed
+57
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| |||
1881 | 1887 | | |
1882 | 1888 | | |
1883 | 1889 | | |
| 1890 | + | |
1884 | 1891 | | |
1885 | 1892 | | |
1886 | 1893 | | |
| |||
2448 | 2455 | | |
2449 | 2456 | | |
2450 | 2457 | | |
2451 | | - | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
2452 | 2464 | | |
2453 | 2465 | | |
2454 | 2466 | | |
2455 | 2467 | | |
2456 | | - | |
2457 | | - | |
2458 | | - | |
2459 | | - | |
2460 | | - | |
2461 | | - | |
| 2468 | + | |
| 2469 | + | |
2462 | 2470 | | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
2463 | 2474 | | |
2464 | | - | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
2465 | 2490 | | |
2466 | 2491 | | |
2467 | 2492 | | |
| |||
2475 | 2500 | | |
2476 | 2501 | | |
2477 | 2502 | | |
| 2503 | + | |
2478 | 2504 | | |
2479 | 2505 | | |
2480 | 2506 | | |
| |||
2514 | 2540 | | |
2515 | 2541 | | |
2516 | 2542 | | |
2517 | | - | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
2518 | 2549 | | |
2519 | 2550 | | |
2520 | 2551 | | |
2521 | 2552 | | |
2522 | 2553 | | |
2523 | | - | |
| 2554 | + | |
2524 | 2555 | | |
2525 | 2556 | | |
2526 | | - | |
2527 | | - | |
2528 | | - | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
2529 | 2562 | | |
2530 | 2563 | | |
2531 | 2564 | | |
| |||
2560 | 2593 | | |
2561 | 2594 | | |
2562 | 2595 | | |
2563 | | - | |
2564 | | - | |
2565 | | - | |
2566 | | - | |
2567 | 2596 | | |
2568 | 2597 | | |
2569 | 2598 | | |
| |||
2579 | 2608 | | |
2580 | 2609 | | |
2581 | 2610 | | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
2582 | 2616 | | |
2583 | 2617 | | |
2584 | 2618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
687 | | - | |
| 686 | + | |
| 687 | + | |
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1617 | 1617 | | |
1618 | 1618 | | |
1619 | 1619 | | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
1620 | 1623 | | |
1621 | 1624 | | |
1622 | 1625 | | |
| |||
1638 | 1641 | | |
1639 | 1642 | | |
1640 | 1643 | | |
| 1644 | + | |
1641 | 1645 | | |
1642 | 1646 | | |
1643 | 1647 | | |
| |||
0 commit comments