drm/xe: Support for mmap-ing mmio regions
Subsystems (2)
PATCH v3 1/1 drm/xe: Support for mmap-ing mmio regions
Allow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace-firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: Enforce MAP_SHARED (Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead of xe_mmio in the GEM object (MattB)
--- drivers/gpu/drm/xe/xe_device_types.h | 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 + 3 files changed, 228 insertions(+)
drivers/gpu/drm/xe/xe_device_types.h +14 -0
@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h>
@@ -162,6 +163,19 @@ struct xe_mmio {u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio +* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { +/** @base: GEM object base */ +struct drm_gem_object base; + +/** @phys_addr: The physical address of the exposed MMIO region */ +phys_addr_t phys_addr; +}; +/** * struct xe_tile - hardware tile structure *
drivers/gpu/drm/xe/xe_mmio.c +210 -0
219 lines not on this page · raw message
drivers/gpu/drm/xe/xe_mmio.h +4 -0
@@ -8,6 +8,7 @@#include "xe_gt_types.h" +struct drm_file ;struct xe_device ;struct xe_reg ;
@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) return &xe->tiles[0].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file); +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem); +#endif
Signature · 1 line
2.43.0
Patchwork
CI✓ CI.KUnit: success for drm/xe: Support for mmap-ing mmio regions (rev3)
== Series Details ==
== Series Details ==
Series: drm/xe: Support for mmap-ing mmio regions (rev3)
URL : https://patchwork.freedesktop.org/series/149977/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [16:57:58] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [16:58:02] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [16:58:29] Starting KUnit Kernel (1/1)... [16:58:29] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [16:58:29] ================== guc_buf (11 subtests) =================== [16:58:29] [PASSED] test_smallest [16:58:29] [PASSED] test_largest [16:58:29] [PASSED] test_granular [16:58:29] [PASSED] test_unique [16:58:29] [PASSED] test_overlap [16:58:29] [PASSED] test_reusable [16:58:29] [PASSED] test_too_big [16:58:29] [PASSED] test_flush [16:58:29] [PASSED] test_lookup [16:58:29] [PASSED] test_data [16:58:29] [PASSED] test_class [16:58:29] ===================== [PASSED] guc_buf ===================== [16:58:29] =================== guc_dbm (7 subtests) =================== [16:58:29] [PASSED] test_empty [16:58:29] [PASSED] test_default [16:58:29] ======================== test_size ======================== [16:58:29] [PASSED] 4 [16:58:29] [PASSED] 8 [16:58:29] [PASSED] 32 [16:58:29] [PASSED] 256 [16:58:29] ==================== [PASSED] test_size ==================== [16:58:29] ======================= test_reuse ======================== [16:58:29] [PASSED] 4 [16:58:29] [PASSED] 8 [16:58:29] [PASSED] 32 [16:58:29] [PASSED] 256 [16:58:29] =================== [PASSED] test_reuse ==================== [16:58:29] =================== test_range_overlap ==================== [16:58:29] [PASSED] 4 [16:58:29] [PASSED] 8 [16:58:29] [PASSED] 32 [16:58:29] [PASSED] 256 [16:58:29] =============== [PASSED] test_range_overlap ================ [16:58:29] =================== test_range_compact ==================== [16:58:29] [PASSED] 4 [16:58:29] [PASSED] 8 [16:58:29] [PASSED] 32 [16:58:29] [PASSED] 256 [16:58:29] =============== [PASSED] test_range_compact ================ [16:58:29] ==================== test_range_spare ===================== [16:58:29] [PASSED] 4 [16:58:29] [PASSED] 8 [16:58:29] [PASSED] 32 [16:58:29] [PASSED] 256 [16:58:29] ================ [PASSED] test_range_spare ================= [16:58:29] ===================== [PASSED] guc_dbm ===================== [16:58:29] =================== guc_idm (6 subtests) =================== [16:58:29] [PASSED] bad_init [16:58:29] [PASSED] no_init [16:58:29] [PASSED] init_fini [16:58:29] [PASSED] check_used [16:58:29] [PASSED] check_quota [16:58:29] [PASSED] check_all [16:58:29] ===================== [PASSED] guc_idm ===================== [16:58:29] ================== no_relay (3 subtests) =================== [16:58:29] [PASSED] xe_drops_guc2pf_if_not_ready [16:58:29] [PASSED] xe_drops_guc2vf_if_not_ready [16:58:29] [PASSED] xe_rejects_send_if_not_ready [16:58:29] ==================== [PASSED] no_relay ===================== [16:58:29] ================== pf_relay (14 subtests) ================== [16:58:29] [PASSED] pf_rejects_guc2pf_too_short [16:58:29] [PASSED] pf_rejects_guc2pf_too_long [16:58:29] [PASSED] pf_rejects_guc2pf_no_payload [16:58:29] [PASSED] pf_fails_no_payload [16:58:29] [PASSED] pf_fails_bad_origin [16:58:29] [PASSED] pf_fails_bad_type [16:58:29] [PASSED] pf_txn_reports_error [16:58:29] [PASSED] pf_txn_sends_pf2guc [16:58:29] [PASSED] pf_sends_pf2guc [16:58:29] [SKIPPED] pf_loopback_nop [16:58:29] [SKIPPED] pf_loopback_echo [16:58:29] [SKIPPED] pf_loopback_fail [16:58:29] [SKIPPED] pf_loopback_busy [16:58:29] [SKIPPED] pf_loopback_retry [16:58:29] ==================== [PASSED] pf_relay ===================== [16:58:29] ================== vf_relay (3 subtests) =================== [16:58:29] [PASSED] vf_rejects_guc2vf_too_short [16:58:29] [PASSED] vf_rejects_guc2vf_too_long [16:58:29] [PASSED] vf_rejects_guc2vf_no_payload [16:58:29] ==================== [PASSED] vf_relay ===================== [16:58:29] ================= pf_service (11 subtests) ================= [16:58:29] [PASSED] pf_negotiate_any [16:58:29] [PASSED] pf_negotiate_base_match [16:58:29] [PASSED] pf_negotiate_base_newer [16:58:29] [PASSED] pf_negotiate_base_next [16:58:29] [SKIPPED] pf_negotiate_base_older [16:58:29] [PASSED] pf_negotiate_base_prev [16:58:29] [PASSED] pf_negotiate_latest_match [16:58:29] [PASSED] pf_negotiate_latest_newer [16:58:29] [PASSED] pf_negotiate_latest_next [16:58:29] [SKIPPED] pf_negotiate_latest_older [16:58:29] [SKIPPED] pf_negotiate_latest_prev [16:58:29] =================== [PASSED] pf_service ==================== [16:58:29] ===================== lmtt (1 subtest) ===================== [16:58:29] ======================== test_ops ========================= [16:58:29] [PASSED] 2-level [16:58:29] [PASSED] multi-level [16:58:29] ==================== [PASSED] test_ops ===================== [16:58:29] ====================== [PASSED] lmtt ======================= [16:58:29] =================== xe_mocs (2 subtests) =================== [16:58:29] ================ xe_live_mocs_kernel_kunit ================ [16:58:29] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [16:58:29] ================ xe_live_mocs_reset_kunit ================= [16:58:29] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [16:58:29] ==================== [SKIPPED] xe_mocs ===================== [16:58:29] ================= xe_migrate (2 subtests) ================== [16:58:29] ================= xe_migrate_sanity_kunit ================= [16:58:29] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [16:58:29] ================== xe_validate_ccs_kunit ================== [16:58:29] ============= [SKIPPED] xe_validate_ccs_kunit ============== [16:58:29] =================== [SKIPPED] xe_migrate =================== [16:58:29] ================== xe_dma_buf (1 subtest) ================== [16:58:29] ==================== xe_dma_buf_kunit ===================== [16:58:29] ================ [SKIPPED] xe_dma_buf_kunit ================ [16:58:29] =================== [SKIPPED] xe_dma_buf =================== [16:58:29] ================= xe_bo_shrink (1 subtest) ================= [16:58:29] =================== xe_bo_shrink_kunit ==================== [16:58:29] =============== [SKIPPED] xe_bo_shrink_kunit =============== [16:58:29] ================== [SKIPPED] xe_bo_shrink ================== [16:58:29] ==================== xe_bo (2 subtests) ==================== [16:58:29] ================== xe_ccs_migrate_kunit =================== [16:58:29] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [16:58:29] ==================== xe_bo_evict_kunit ==================== [16:58:29] =============== [SKIPPED] xe_bo_evict_kunit ================ [16:58:29] ===================== [SKIPPED] xe_bo ====================== [16:58:29] ==================== args (11 subtests) ==================== [16:58:29] [PASSED] count_args_test [16:58:29] [PASSED] call_args_example [16:58:29] [PASSED] call_args_test [16:58:29] [PASSED] drop_first_arg_example [16:58:29] [PASSED] drop_first_arg_test [16:58:29] [PASSED] first_arg_example [16:58:29] [PASSED] first_arg_test [16:58:29] [PASSED] last_arg_example [16:58:29] [PASSED] last_arg_test [16:58:29] [PASSED] pick_arg_example [16:58:29] [PASSED] sep_comma_example [16:58:29] ====================== [PASSED] args ======================= [16:58:29] =================== xe_pci (2 subtests) ==================== [16:58:29] ==================== check_graphics_ip ==================== [16:58:29] [PASSED] 12.70 Xe_LPG [16:58:29] [PASSED] 12.71 Xe_LPG [16:58:29] [PASSED] 12.74 Xe_LPG+ [16:58:29] [PASSED] 20.01 Xe2_HPG [16:58:29] [PASSED] 20.02 Xe2_HPG [16:58:29] [PASSED] 20.04 Xe2_LPG [16:58:29] [PASSED] 30.00 Xe3_LPG [16:58:29] [PASSED] 30.01 Xe3_LPG [16:58:29] [PASSED] 30.03 Xe3_LPG [16:58:29] ================ [PASSED] check_graphics_ip ================ [16:58:29] ===================== check_media_ip ====================== [16:58:29] [PASSED] 13.00 Xe_LPM+ [16:58:29] [PASSED] 13.01 Xe2_HPM [16:58:29] [PASSED] 20.00 Xe2_LPM [16:58:29] [PASSED] 30.00 Xe3_LPM [16:58:29] [PASSED] 30.02 Xe3_LPM stty: 'standard input': Inappropriate ioctl for device [16:58:29] ================= [PASSED] check_media_ip ================== [16:58:29] ===================== [PASSED] xe_pci ====================== [16:58:29] =================== xe_rtp (2 subtests) ==================== [16:58:29] =============== xe_rtp_process_to_sr_tests ================ [16:58:29] [PASSED] coalesce-same-reg [16:58:29] [PASSED] no-match-no-add [16:58:29] [PASSED] match-or [16:58:29] [PASSED] match-or-xfail [16:58:29] [PASSED] no-match-no-add-multiple-rules [16:58:29] [PASSED] two-regs-two-entries [16:58:29] [PASSED] clr-one-set-other [16:58:29] [PASSED] set-field [16:58:29] [PASSED] conflict-duplicate [16:58:29] [PASSED] conflict-not-disjoint [16:58:29] [PASSED] conflict-reg-type [16:58:29] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [16:58:29] ================== xe_rtp_process_tests =================== [16:58:29] [PASSED] active1 [16:58:29] [PASSED] active2 [16:58:29] [PASSED] active-inactive [16:58:29] [PASSED] inactive-active [16:58:29] [PASSED] inactive-1st_or_active-inactive [16:58:29] [PASSED] inactive-2nd_or_active-inactive [16:58:29] [PASSED] inactive-last_or_active-inactive [16:58:29] [PASSED] inactive-no_or_active-inactive [16:58:29] ============== [PASSED] xe_rtp_process_tests =============== [16:58:29] ===================== [PASSED] xe_rtp ====================== [16:58:29] ==================== xe_wa (1 subtest) ===================== [16:58:29] ======================== xe_wa_gt ========================= [16:58:29] [PASSED] TIGERLAKE (B0) [16:58:29] [PASSED] DG1 (A0) [16:58:29] [PASSED] DG1 (B0) [16:58:29] [PASSED] ALDERLAKE_S (A0) [16:58:29] [PASSED] ALDERLAKE_S (B0) [16:58:29] [PASSED] ALDERLAKE_S (C0) [16:58:29] [PASSED] ALDERLAKE_S (D0) [16:58:29] [PASSED] ALDERLAKE_P (A0) [16:58:29] [PASSED] ALDERLAKE_P (B0) [16:58:29] [PASSED] ALDERLAKE_P (C0) [16:58:29] [PASSED] ALDERLAKE_S_RPLS (D0) [16:58:29] [PASSED] ALDERLAKE_P_RPLU (E0) [16:58:29] [PASSED] DG2_G10 (C0) [16:58:29] [PASSED] DG2_G11 (B1) [16:58:29] [PASSED] DG2_G12 (A1) [16:58:29] [PASSED] METEORLAKE (g:A0, m:A0) [16:58:29] [PASSED] METEORLAKE (g:A0, m:A0) [16:58:29] [PASSED] METEORLAKE (g:A0, m:A0) [16:58:29] [PASSED] LUNARLAKE (g:A0, m:A0) [16:58:29] [PASSED] LUNARLAKE (g:B0, m:A0) [16:58:29] [PASSED] BATTLEMAGE (g:A0, m:A1) [16:58:29] ==================== [PASSED] xe_wa_gt ===================== [16:58:29] ====================== [PASSED] xe_wa ====================== [16:58:29] ============================================================ [16:58:29] Testing complete. Ran 145 tests: passed: 129, skipped: 16 [16:58:29] Elapsed time: 31.395s total, 4.231s configuring, 26.847s building, 0.290s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [16:58:29] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [16:58:31] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [16:58:53] Starting KUnit Kernel (1/1)... [16:58:53] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [16:58:53] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [16:58:53] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [16:58:53] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [16:58:53] =========== drm_validate_clone_mode (2 subtests) =========== [16:58:53] ============== drm_test_check_in_clone_mode =============== [16:58:53] [PASSED] in_clone_mode [16:58:53] [PASSED] not_in_clone_mode [16:58:53] ========== [PASSED] drm_test_check_in_clone_mode =========== [16:58:53] =============== drm_test_check_valid_clones =============== [16:58:53] [PASSED] not_in_clone_mode [16:58:53] [PASSED] valid_clone [16:58:53] [PASSED] invalid_clone [16:58:53] =========== [PASSED] drm_test_check_valid_clones =========== [16:58:53] ============= [PASSED] drm_validate_clone_mode ============= [16:58:53] ============= drm_validate_modeset (1 subtest) ============= [16:58:53] [PASSED] drm_test_check_connector_changed_modeset [16:58:53] ============== [PASSED] drm_validate_modeset =============== [16:58:53] ====== drm_test_bridge_get_current_state (2 subtests) ====== [16:58:53] [PASSED] drm_test_drm_bridge_get_current_state_atomic [16:58:53] [PASSED] drm_test_drm_bridge_get_current_state_legacy [16:58:53] ======== [PASSED] drm_test_bridge_get_current_state ======== [16:58:53] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [16:58:53] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [16:58:53] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [16:58:53] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy [16:58:53] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [16:58:53] ============== drm_bridge_alloc (2 subtests) =============== [16:58:53] [PASSED] drm_test_drm_bridge_alloc_basic [16:58:53] [PASSED] drm_test_drm_bridge_alloc_get_put [16:58:53] ================ [PASSED] drm_bridge_alloc ================= [16:58:53] ================== drm_buddy (7 subtests) ================== [16:58:53] [PASSED] drm_test_buddy_alloc_limit [16:58:53] [PASSED] drm_test_buddy_alloc_optimistic [16:58:53] [PASSED] drm_test_buddy_alloc_pessimistic [16:58:53] [PASSED] drm_test_buddy_alloc_pathological [16:58:53] [PASSED] drm_test_buddy_alloc_contiguous [16:58:53] [PASSED] drm_test_buddy_alloc_clear [16:58:53] [PASSED] drm_test_buddy_alloc_range_bias [16:58:53] ==================== [PASSED] drm_buddy ==================== [16:58:53] ============= drm_cmdline_parser (40 subtests) ============= [16:58:53] [PASSED] drm_test_cmdline_force_d_only [16:58:53] [PASSED] drm_test_cmdline_force_D_only_dvi [16:58:53] [PASSED] drm_test_cmdline_force_D_only_hdmi [16:58:53] [PASSED] drm_test_cmdline_force_D_only_not_digital [16:58:53] [PASSED] drm_test_cmdline_force_e_only [16:58:53] [PASSED] drm_test_cmdline_res [16:58:53] [PASSED] drm_test_cmdline_res_vesa [16:58:53] [PASSED] drm_test_cmdline_res_vesa_rblank [16:58:53] [PASSED] drm_test_cmdline_res_rblank [16:58:53] [PASSED] drm_test_cmdline_res_bpp [16:58:53] [PASSED] drm_test_cmdline_res_refresh [16:58:53] [PASSED] drm_test_cmdline_res_bpp_refresh [16:58:53] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [16:58:53] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [16:58:53] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [16:58:53] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [16:58:53] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [16:58:53] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [16:58:53] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [16:58:53] [PASSED] drm_test_cmdline_res_margins_force_on [16:58:53] [PASSED] drm_test_cmdline_res_vesa_margins [16:58:53] [PASSED] drm_test_cmdline_name [16:58:53] [PASSED] drm_test_cmdline_name_bpp [16:58:53] [PASSED] drm_test_cmdline_name_option [16:58:53] [PASSED] drm_test_cmdline_name_bpp_option [16:58:53] [PASSED] drm_test_cmdline_rotate_0 [16:58:53] [PASSED] drm_test_cmdline_rotate_90 [16:58:53] [PASSED] drm_test_cmdline_rotate_180 [16:58:53] [PASSED] drm_test_cmdline_rotate_270 [16:58:53] [PASSED] drm_test_cmdline_hmirror [16:58:53] [PASSED] drm_test_cmdline_vmirror [16:58:53] [PASSED] drm_test_cmdline_margin_options [16:58:53] [PASSED] drm_test_cmdline_multiple_options [16:58:53] [PASSED] drm_test_cmdline_bpp_extra_and_option [16:58:53] [PASSED] drm_test_cmdline_extra_and_option [16:58:53] [PASSED] drm_test_cmdline_freestanding_options [16:58:53] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [16:58:53] [PASSED] drm_test_cmdline_panel_orientation [16:58:53] ================ drm_test_cmdline_invalid ================= [16:58:53] [PASSED] margin_only [16:58:53] [PASSED] interlace_only [16:58:53] [PASSED] res_missing_x [16:58:53] [PASSED] res_missing_y [16:58:53] [PASSED] res_bad_y [16:58:53] [PASSED] res_missing_y_bpp [16:58:53] [PASSED] res_bad_bpp [16:58:53] [PASSED] res_bad_refresh [16:58:53] [PASSED] res_bpp_refresh_force_on_off [16:58:53] [PASSED] res_invalid_mode [16:58:53] [PASSED] res_bpp_wrong_place_mode [16:58:53] [PASSED] name_bpp_refresh [16:58:53] [PASSED] name_refresh [16:58:53] [PASSED] name_refresh_wrong_mode [16:58:53] [PASSED] name_refresh_invalid_mode [16:58:53] [PASSED] rotate_multiple [16:58:53] [PASSED] rotate_invalid_val [16:58:53] [PASSED] rotate_truncated [16:58:53] [PASSED] invalid_option [16:58:53] [PASSED] invalid_tv_option [16:58:53] [PASSED] truncated_tv_option [16:58:53] ============ [PASSED] drm_test_cmdline_invalid ============= [16:58:53] =============== drm_test_cmdline_tv_options =============== [16:58:53] [PASSED] NTSC [16:58:53] [PASSED] NTSC_443 [16:58:53] [PASSED] NTSC_J [16:58:53] [PASSED] PAL [16:58:53] [PASSED] PAL_M [16:58:53] [PASSED] PAL_N [16:58:53] [PASSED] SECAM [16:58:53] [PASSED] MONO_525 [16:58:53] [PASSED] MONO_625 [16:58:53] =========== [PASSED] drm_test_cmdline_tv_options =========== [16:58:53] =============== [PASSED] drm_cmdline_parser ================ [16:58:53] ========== drmm_connector_hdmi_init (20 subtests) ========== [16:58:53] [PASSED] drm_test_connector_hdmi_init_valid [16:58:53] [PASSED] drm_test_connector_hdmi_init_bpc_8 [16:58:53] [PASSED] drm_test_connector_hdmi_init_bpc_10 [16:58:53] [PASSED] drm_test_connector_hdmi_init_bpc_12 [16:58:53] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [16:58:53] [PASSED] drm_test_connector_hdmi_init_bpc_null [16:58:53] [PASSED] drm_test_connector_hdmi_init_formats_empty [16:58:53] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [16:58:53] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [16:58:53] [PASSED] supported_formats=0x9 yuv420_allowed=1 [16:58:53] [PASSED] supported_formats=0x9 yuv420_allowed=0 [16:58:53] [PASSED] supported_formats=0x3 yuv420_allowed=1 [16:58:53] [PASSED] supported_formats=0x3 yuv420_allowed=0 [16:58:53] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [16:58:53] [PASSED] drm_test_connector_hdmi_init_null_ddc [16:58:53] [PASSED] drm_test_connector_hdmi_init_null_product [16:58:53] [PASSED] drm_test_connector_hdmi_init_null_vendor [16:58:53] [PASSED] drm_test_connector_hdmi_init_product_length_exact [16:58:53] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [16:58:53] [PASSED] drm_test_connector_hdmi_init_product_valid [16:58:53] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [16:58:53] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [16:58:53] [PASSED] drm_test_connector_hdmi_init_vendor_valid [16:58:53] ========= drm_test_connector_hdmi_init_type_valid ========= [16:58:53] [PASSED] HDMI-A [16:58:53] [PASSED] HDMI-B [16:58:53] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [16:58:53] ======== drm_test_connector_hdmi_init_type_invalid ======== [16:58:53] [PASSED] Unknown [16:58:53] [PASSED] VGA [16:58:53] [PASSED] DVI-I [16:58:53] [PASSED] DVI-D [16:58:53] [PASSED] DVI-A [16:58:53] [PASSED] Composite [16:58:53] [PASSED] SVIDEO [16:58:53] [PASSED] LVDS [16:58:53] [PASSED] Component [16:58:53] [PASSED] DIN [16:58:53] [PASSED] DP [16:58:53] [PASSED] TV [16:58:53] [PASSED] eDP [16:58:53] [PASSED] Virtual [16:58:53] [PASSED] DSI [16:58:53] [PASSED] DPI [16:58:53] [PASSED] Writeback [16:58:53] [PASSED] SPI [16:58:53] [PASSED] USB [16:58:53] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [16:58:53] ============ [PASSED] drmm_connector_hdmi_init ============= [16:58:53] ============= drmm_connector_init (3 subtests) ============= [16:58:53] [PASSED] drm_test_drmm_connector_init [16:58:53] [PASSED] drm_test_drmm_connector_init_null_ddc [16:58:53] ========= drm_test_drmm_connector_init_type_valid ========= [16:58:53] [PASSED] Unknown [16:58:53] [PASSED] VGA [16:58:53] [PASSED] DVI-I [16:58:53] [PASSED] DVI-D [16:58:53] [PASSED] DVI-A [16:58:53] [PASSED] Composite [16:58:53] [PASSED] SVIDEO [16:58:53] [PASSED] LVDS [16:58:53] [PASSED] Component [16:58:53] [PASSED] DIN [16:58:53] [PASSED] DP [16:58:53] [PASSED] HDMI-A [16:58:53] [PASSED] HDMI-B [16:58:53] [PASSED] TV [16:58:53] [PASSED] eDP [16:58:53] [PASSED] Virtual [16:58:53] [PASSED] DSI [16:58:53] [PASSED] DPI [16:58:53] [PASSED] Writeback [16:58:53] [PASSED] SPI [16:58:53] [PASSED] USB [16:58:53] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [16:58:53] =============== [PASSED] drmm_connector_init =============== [16:58:53] ========= drm_connector_dynamic_init (6 subtests) ========== [16:58:53] [PASSED] drm_test_drm_connector_dynamic_init [16:58:53] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [16:58:53] [PASSED] drm_test_drm_connector_dynamic_init_not_added [16:58:53] [PASSED] drm_test_drm_connector_dynamic_init_properties [16:58:53] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [16:58:53] [PASSED] Unknown [16:58:53] [PASSED] VGA [16:58:53] [PASSED] DVI-I [16:58:53] [PASSED] DVI-D [16:58:53] [PASSED] DVI-A [16:58:53] [PASSED] Composite [16:58:53] [PASSED] SVIDEO [16:58:53] [PASSED] LVDS [16:58:53] [PASSED] Component [16:58:53] [PASSED] DIN [16:58:53] [PASSED] DP [16:58:53] [PASSED] HDMI-A [16:58:53] [PASSED] HDMI-B [16:58:53] [PASSED] TV [16:58:53] [PASSED] eDP [16:58:53] [PASSED] Virtual [16:58:53] [PASSED] DSI [16:58:53] [PASSED] DPI [16:58:53] [PASSED] Writeback [16:58:53] [PASSED] SPI [16:58:53] [PASSED] USB [16:58:53] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [16:58:53] ======== drm_test_drm_connector_dynamic_init_name ========= [16:58:53] [PASSED] Unknown [16:58:53] [PASSED] VGA [16:58:53] [PASSED] DVI-I [16:58:53] [PASSED] DVI-D [16:58:53] [PASSED] DVI-A [16:58:53] [PASSED] Composite [16:58:53] [PASSED] SVIDEO [16:58:53] [PASSED] LVDS [16:58:53] [PASSED] Component [16:58:53] [PASSED] DIN [16:58:53] [PASSED] DP [16:58:53] [PASSED] HDMI-A [16:58:53] [PASSED] HDMI-B [16:58:53] [PASSED] TV [16:58:53] [PASSED] eDP [16:58:53] [PASSED] Virtual [16:58:53] [PASSED] DSI [16:58:53] [PASSED] DPI [16:58:53] [PASSED] Writeback [16:58:53] [PASSED] SPI [16:58:53] [PASSED] USB [16:58:53] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [16:58:53] =========== [PASSED] drm_connector_dynamic_init ============ [16:58:53] ==== drm_connector_dynamic_register_early (4 subtests) ===== [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [16:58:53] ====== [PASSED] drm_connector_dynamic_register_early ======= [16:58:53] ======= drm_connector_dynamic_register (7 subtests) ======== [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_on_list [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_no_init [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [16:58:53] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [16:58:53] ========= [PASSED] drm_connector_dynamic_register ========== [16:58:53] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [16:58:53] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [16:58:53] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [16:58:53] === [PASSED] drm_connector_attach_broadcast_rgb_property === [16:58:53] ========== drm_get_tv_mode_from_name (2 subtests) ========== [16:58:53] ========== drm_test_get_tv_mode_from_name_valid =========== [16:58:53] [PASSED] NTSC [16:58:53] [PASSED] NTSC-443 [16:58:53] [PASSED] NTSC-J [16:58:53] [PASSED] PAL [16:58:53] [PASSED] PAL-M [16:58:53] [PASSED] PAL-N [16:58:53] [PASSED] SECAM [16:58:53] [PASSED] Mono [16:58:53] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [16:58:53] [PASSED] drm_test_get_tv_mode_from_name_truncated [16:58:53] ============ [PASSED] drm_get_tv_mode_from_name ============ [16:58:53] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [16:58:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [16:58:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [16:58:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [16:58:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [16:58:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [16:58:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [16:58:53] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [16:58:53] [PASSED] VIC 96 [16:58:53] [PASSED] VIC 97 [16:58:53] [PASSED] VIC 101 [16:58:53] [PASSED] VIC 102 [16:58:53] [PASSED] VIC 106 [16:58:53] [PASSED] VIC 107 [16:58:53] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [16:58:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [16:58:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [16:58:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [16:58:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [16:58:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [16:58:53] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [16:58:53] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [16:58:53] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [16:58:53] [PASSED] Automatic [16:58:53] [PASSED] Full [16:58:53] [PASSED] Limited 16:235 [16:58:53] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [16:58:53] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [16:58:53] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [16:58:53] == drm_hdmi_connector_get_output_format_name (2 subtests) == [16:58:53] === drm_test_drm_hdmi_connector_get_output_format_name ==== [16:58:53] [PASSED] RGB [16:58:53] [PASSED] YUV 4:2:0 [16:58:53] [PASSED] YUV 4:2:2 [16:58:53] [PASSED] YUV 4:4:4 [16:58:53] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [16:58:53] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [16:58:53] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [16:58:53] ============= drm_damage_helper (21 subtests) ============== [16:58:53] [PASSED] drm_test_damage_iter_no_damage [16:58:53] [PASSED] drm_test_damage_iter_no_damage_fractional_src [16:58:53] [PASSED] drm_test_damage_iter_no_damage_src_moved [16:58:53] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [16:58:53] [PASSED] drm_test_damage_iter_no_damage_not_visible [16:58:53] [PASSED] drm_test_damage_iter_no_damage_no_crtc [16:58:53] [PASSED] drm_test_damage_iter_no_damage_no_fb [16:58:53] [PASSED] drm_test_damage_iter_simple_damage [16:58:53] [PASSED] drm_test_damage_iter_single_damage [16:58:53] [PASSED] drm_test_damage_iter_single_damage_intersect_src [16:58:53] [PASSED] drm_test_damage_iter_single_damage_outside_src [16:58:53] [PASSED] drm_test_damage_iter_single_damage_fractional_src [16:58:53] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [16:58:53] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [16:58:53] [PASSED] drm_test_damage_iter_single_damage_src_moved [16:58:53] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [16:58:53] [PASSED] drm_test_damage_iter_damage [16:58:53] [PASSED] drm_test_damage_iter_damage_one_intersect [16:58:53] [PASSED] drm_test_damage_iter_damage_one_outside [16:58:53] [PASSED] drm_test_damage_iter_damage_src_moved [16:58:53] [PASSED] drm_test_damage_iter_damage_not_visible [16:58:53] ================ [PASSED] drm_damage_helper ================ [16:58:53] ============== drm_dp_mst_helper (3 subtests) ============== [16:58:53] ============== drm_test_dp_mst_calc_pbn_mode ============== [16:58:53] [PASSED] Clock 154000 BPP 30 DSC disabled [16:58:53] [PASSED] Clock 234000 BPP 30 DSC disabled [16:58:53] [PASSED] Clock 297000 BPP 24 DSC disabled [16:58:53] [PASSED] Clock 332880 BPP 24 DSC enabled [16:58:53] [PASSED] Clock 324540 BPP 24 DSC enabled [16:58:53] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [16:58:53] ============== drm_test_dp_mst_calc_pbn_div =============== [16:58:53] [PASSED] Link rate 2000000 lane count 4 [16:58:53] [PASSED] Link rate 2000000 lane count 2 [16:58:53] [PASSED] Link rate 2000000 lane count 1 [16:58:53] [PASSED] Link rate 1350000 lane count 4 [16:58:53] [PASSED] Link rate 1350000 lane count 2 [16:58:53] [PASSED] Link rate 1350000 lane count 1 [16:58:53] [PASSED] Link rate 1000000 lane count 4 [16:58:53] [PASSED] Link rate 1000000 lane count 2 [16:58:53] [PASSED] Link rate 1000000 lane count 1 [16:58:53] [PASSED] Link rate 810000 lane count 4 [16:58:53] [PASSED] Link rate 810000 lane count 2 [16:58:53] [PASSED] Link rate 810000 lane count 1 [16:58:53] [PASSED] Link rate 540000 lane count 4 [16:58:53] [PASSED] Link rate 540000 lane count 2 [16:58:53] [PASSED] Link rate 540000 lane count 1 [16:58:53] [PASSED] Link rate 270000 lane count 4 [16:58:53] [PASSED] Link rate 270000 lane count 2 [16:58:53] [PASSED] Link rate 270000 lane count 1 [16:58:53] [PASSED] Link rate 162000 lane count 4 [16:58:53] [PASSED] Link rate 162000 lane count 2 [16:58:53] [PASSED] Link rate 162000 lane count 1 [16:58:53] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [16:58:53] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [16:58:53] [PASSED] DP_ENUM_PATH_RESOURCES with port number [16:58:53] [PASSED] DP_POWER_UP_PHY with port number [16:58:53] [PASSED] DP_POWER_DOWN_PHY with port number [16:58:53] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [16:58:53] [PASSED] DP_ALLOCATE_PAYLOAD with port number [16:58:53] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [16:58:53] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [16:58:53] [PASSED] DP_QUERY_PAYLOAD with port number [16:58:53] [PASSED] DP_QUERY_PAYLOAD with VCPI [16:58:53] [PASSED] DP_REMOTE_DPCD_READ with port number [16:58:53] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [16:58:53] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [16:58:53] [PASSED] DP_REMOTE_DPCD_WRITE with port number [16:58:53] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [16:58:53] [PASSED] DP_REMOTE_DPCD_WRITE with data array [16:58:53] [PASSED] DP_REMOTE_I2C_READ with port number [16:58:53] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [16:58:53] [PASSED] DP_REMOTE_I2C_READ with transactions array [16:58:53] [PASSED] DP_REMOTE_I2C_WRITE with port number [16:58:53] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [16:58:53] [PASSED] DP_REMOTE_I2C_WRITE with data array [16:58:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [16:58:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [16:58:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [16:58:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [16:58:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [16:58:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [16:58:53] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [16:58:53] ================ [PASSED] drm_dp_mst_helper ================ [16:58:53] ================== drm_exec (7 subtests) =================== [16:58:53] [PASSED] sanitycheck [16:58:53] [PASSED] test_lock [16:58:53] [PASSED] test_lock_unlock [16:58:53] [PASSED] test_duplicates [16:58:53] [PASSED] test_prepare [16:58:53] [PASSED] test_prepare_array [16:58:53] [PASSED] test_multiple_loops [16:58:53] ==================== [PASSED] drm_exec ===================== [16:58:53] =========== drm_format_helper_test (17 subtests) =========== [16:58:53] ============== drm_test_fb_xrgb8888_to_gray8 ============== [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [16:58:53] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [16:58:53] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [16:58:53] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [16:58:53] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [16:58:53] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [16:58:53] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [16:58:53] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [16:58:53] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [16:58:53] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [16:58:53] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [16:58:53] ============== drm_test_fb_xrgb8888_to_mono =============== [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [16:58:53] ==================== drm_test_fb_swab ===================== [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ================ [PASSED] drm_test_fb_swab ================= [16:58:53] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [16:58:53] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [16:58:53] [PASSED] single_pixel_source_buffer [16:58:53] [PASSED] single_pixel_clip_rectangle [16:58:53] [PASSED] well_known_colors [16:58:53] [PASSED] destination_pitch [16:58:53] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [16:58:53] ================= drm_test_fb_clip_offset ================= [16:58:53] [PASSED] pass through [16:58:53] [PASSED] horizontal offset [16:58:53] [PASSED] vertical offset [16:58:53] [PASSED] horizontal and vertical offset [16:58:53] [PASSED] horizontal offset (custom pitch) [16:58:53] [PASSED] vertical offset (custom pitch) [16:58:53] [PASSED] horizontal and vertical offset (custom pitch) [16:58:53] ============= [PASSED] drm_test_fb_clip_offset ============= [16:58:53] =================== drm_test_fb_memcpy ==================== [16:58:53] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [16:58:53] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [16:58:53] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [16:58:53] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [16:58:53] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [16:58:53] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [16:58:53] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [16:58:53] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [16:58:53] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [16:58:53] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [16:58:53] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [16:58:53] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [16:58:53] =============== [PASSED] drm_test_fb_memcpy ================ [16:58:53] ============= [PASSED] drm_format_helper_test ============== [16:58:53] ================= drm_format (18 subtests) ================= [16:58:53] [PASSED] drm_test_format_block_width_invalid [16:58:53] [PASSED] drm_test_format_block_width_one_plane [16:58:53] [PASSED] drm_test_format_block_width_two_plane [16:58:53] [PASSED] drm_test_format_block_width_three_plane [16:58:53] [PASSED] drm_test_format_block_width_tiled [16:58:53] [PASSED] drm_test_format_block_height_invalid [16:58:53] [PASSED] drm_test_format_block_height_one_plane [16:58:53] [PASSED] drm_test_format_block_height_two_plane [16:58:53] [PASSED] drm_test_format_block_height_three_plane [16:58:53] [PASSED] drm_test_format_block_height_tiled [16:58:53] [PASSED] drm_test_format_min_pitch_invalid [16:58:53] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [16:58:53] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [16:58:53] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [16:58:53] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [16:58:53] [PASSED] drm_test_format_min_pitch_two_plane [16:58:53] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [16:58:53] [PASSED] drm_test_format_min_pitch_tiled [16:58:53] =================== [PASSED] drm_format ==================== [16:58:53] ============== drm_framebuffer (10 subtests) =============== [16:58:53] ========== drm_test_framebuffer_check_src_coords ========== [16:58:53] [PASSED] Success: source fits into fb [16:58:53] [PASSED] Fail: overflowing fb with x-axis coordinate [16:58:53] [PASSED] Fail: overflowing fb with y-axis coordinate [16:58:53] [PASSED] Fail: overflowing fb with source width [16:58:53] [PASSED] Fail: overflowing fb with source height [16:58:53] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [16:58:53] [PASSED] drm_test_framebuffer_cleanup [16:58:53] =============== drm_test_framebuffer_create =============== [16:58:53] [PASSED] ABGR8888 normal sizes [16:58:53] [PASSED] ABGR8888 max sizes [16:58:53] [PASSED] ABGR8888 pitch greater than min required [16:58:53] [PASSED] ABGR8888 pitch less than min required [16:58:53] [PASSED] ABGR8888 Invalid width [16:58:53] [PASSED] ABGR8888 Invalid buffer handle [16:58:53] [PASSED] No pixel format [16:58:53] [PASSED] ABGR8888 Width 0 [16:58:53] [PASSED] ABGR8888 Height 0 [16:58:53] [PASSED] ABGR8888 Out of bound height * pitch combination [16:58:53] [PASSED] ABGR8888 Large buffer offset [16:58:53] [PASSED] ABGR8888 Buffer offset for inexistent plane [16:58:53] [PASSED] ABGR8888 Invalid flag [16:58:53] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [16:58:53] [PASSED] ABGR8888 Valid buffer modifier [16:58:53] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [16:58:53] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [16:58:53] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [16:58:53] [PASSED] NV12 Normal sizes [16:58:53] [PASSED] NV12 Max sizes [16:58:53] [PASSED] NV12 Invalid pitch [16:58:53] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [16:58:53] [PASSED] NV12 different modifier per-plane [16:58:53] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [16:58:53] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [16:58:53] [PASSED] NV12 Modifier for inexistent plane [16:58:53] [PASSED] NV12 Handle for inexistent plane [16:58:53] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [16:58:53] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [16:58:53] [PASSED] YVU420 Normal sizes [16:58:53] [PASSED] YVU420 Max sizes [16:58:53] [PASSED] YVU420 Invalid pitch [16:58:53] [PASSED] YVU420 Different pitches [16:58:53] [PASSED] YVU420 Different buffer offsets/pitches [16:58:53] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [16:58:53] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [16:58:53] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [16:58:53] [PASSED] YVU420 Valid modifier [16:58:53] [PASSED] YVU420 Different modifiers per plane [16:58:53] [PASSED] YVU420 Modifier for inexistent plane [16:58:53] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [16:58:53] [PASSED] X0L2 Normal sizes [16:58:53] [PASSED] X0L2 Max sizes [16:58:53] [PASSED] X0L2 Invalid pitch [16:58:53] [PASSED] X0L2 Pitch greater than minimum required [16:58:53] [PASSED] X0L2 Handle for inexistent plane [16:58:53] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [16:58:53] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [16:58:53] [PASSED] X0L2 Valid modifier [16:58:53] [PASSED] X0L2 Modifier for inexistent plane [16:58:53] =========== [PASSED] drm_test_framebuffer_create =========== [16:58:53] [PASSED] drm_test_framebuffer_free [16:58:53] [PASSED] drm_test_framebuffer_init [16:58:53] [PASSED] drm_test_framebuffer_init_bad_format [16:58:53] [PASSED] drm_test_framebuffer_init_dev_mismatch [16:58:53] [PASSED] drm_test_framebuffer_lookup [16:58:53] [PASSED] drm_test_framebuffer_lookup_inexistent [16:58:53] [PASSED] drm_test_framebuffer_modifiers_not_supported [16:58:53] ================= [PASSED] drm_framebuffer ================= [16:58:53] ================ drm_gem_shmem (8 subtests) ================ [16:58:53] [PASSED] drm_gem_shmem_test_obj_create [16:58:53] [PASSED] drm_gem_shmem_test_obj_create_private [16:58:53] [PASSED] drm_gem_shmem_test_pin_pages [16:58:53] [PASSED] drm_gem_shmem_test_vmap [16:58:53] [PASSED] drm_gem_shmem_test_get_pages_sgt [16:58:53] [PASSED] drm_gem_shmem_test_get_sg_table [16:58:53] [PASSED] drm_gem_shmem_test_madvise [16:58:53] [PASSED] drm_gem_shmem_test_purge [16:58:53] ================== [PASSED] drm_gem_shmem ================== [16:58:53] === drm_atomic_helper_connector_hdmi_check (27 subtests) === [16:58:53] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [16:58:53] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [16:58:53] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [16:58:53] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [16:58:53] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [16:58:53] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [16:58:53] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [16:58:53] [PASSED] Automatic [16:58:53] [PASSED] Full [16:58:53] [PASSED] Limited 16:235 [16:58:53] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [16:58:53] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [16:58:53] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [16:58:53] [PASSED] drm_test_check_disable_connector [16:58:53] [PASSED] drm_test_check_hdmi_funcs_reject_rate [16:58:53] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [16:58:53] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [16:58:53] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [16:58:53] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [16:58:53] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [16:58:53] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [16:58:53] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [16:58:53] [PASSED] drm_test_check_output_bpc_dvi [16:58:53] [PASSED] drm_test_check_output_bpc_format_vic_1 [16:58:53] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [16:58:53] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [16:58:53] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [16:58:53] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [16:58:53] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [16:58:53] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [16:58:53] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [16:58:53] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [16:58:53] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [16:58:53] [PASSED] drm_test_check_broadcast_rgb_value [16:58:53] [PASSED] drm_test_check_bpc_8_value [16:58:53] [PASSED] drm_test_check_bpc_10_value [16:58:53] [PASSED] drm_test_check_bpc_12_value [16:58:53] [PASSED] drm_test_check_format_value [16:58:53] [PASSED] drm_test_check_tmds_char_value [16:58:53] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [16:58:53] = drm_atomic_helper_connector_hdmi_mode_valid (4 subtests) = [16:58:53] [PASSED] drm_test_check_mode_valid [16:58:53] [PASSED] drm_test_check_mode_valid_reject [16:58:53] [PASSED] drm_test_check_mode_valid_reject_rate [16:58:53] [PASSED] drm_test_check_mode_valid_reject_max_clock [16:58:53] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [16:58:53] ================= drm_managed (2 subtests) ================= [16:58:53] [PASSED] drm_test_managed_release_action [16:58:53] [PASSED] drm_test_managed_run_action [16:58:53] =================== [PASSED] drm_managed =================== [16:58:53] =================== drm_mm (6 subtests) ==================== [16:58:53] [PASSED] drm_test_mm_init [16:58:53] [PASSED] drm_test_mm_debug [16:58:53] [PASSED] drm_test_mm_align32 [16:58:53] [PASSED] drm_test_mm_align64 [16:58:53] [PASSED] drm_test_mm_lowest [16:58:53] [PASSED] drm_test_mm_highest [16:58:53] ===================== [PASSED] drm_mm ====================== [16:58:53] ============= drm_modes_analog_tv (5 subtests) ============= [16:58:53] [PASSED] drm_test_modes_analog_tv_mono_576i [16:58:53] [PASSED] drm_test_modes_analog_tv_ntsc_480i [16:58:53] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [16:58:53] [PASSED] drm_test_modes_analog_tv_pal_576i [16:58:53] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [16:58:53] =============== [PASSED] drm_modes_analog_tv =============== [16:58:53] ============== drm_plane_helper (2 subtests) =============== [16:58:53] =============== drm_test_check_plane_state ================ [16:58:53] [PASSED] clipping_simple [16:58:53] [PASSED] clipping_rotate_reflect [16:58:53] [PASSED] positioning_simple [16:58:53] [PASSED] upscaling [16:58:53] [PASSED] downscaling [16:58:53] [PASSED] rounding1 [16:58:53] [PASSED] rounding2 [16:58:53] [PASSED] rounding3 [16:58:53] [PASSED] rounding4 [16:58:53] =========== [PASSED] drm_test_check_plane_state ============ [16:58:53] =========== drm_test_check_invalid_plane_state ============ [16:58:53] [PASSED] positioning_invalid [16:58:53] [PASSED] upscaling_invalid [16:58:53] [PASSED] downscaling_invalid [16:58:53] ======= [PASSED] drm_test_check_invalid_plane_state ======== [16:58:53] ================ [PASSED] drm_plane_helper ================= [16:58:53] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [16:58:53] ====== drm_test_connector_helper_tv_get_modes_check ======= [16:58:53] [PASSED] None [16:58:53] [PASSED] PAL [16:58:53] [PASSED] NTSC [16:58:53] [PASSED] Both, NTSC Default [16:58:53] [PASSED] Both, PAL Default [16:58:53] [PASSED] Both, NTSC Default, with PAL on command-line [16:58:53] [PASSED] Both, PAL Default, with NTSC on command-line [16:58:53] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [16:58:53] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [16:58:53] ================== drm_rect (9 subtests) =================== [16:58:53] [PASSED] drm_test_rect_clip_scaled_div_by_zero [16:58:53] [PASSED] drm_test_rect_clip_scaled_not_clipped [16:58:53] [PASSED] drm_test_rect_clip_scaled_clipped [16:58:53] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [16:58:53] ================= drm_test_rect_intersect ================= [16:58:53] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [16:58:53] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [16:58:53] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [16:58:53] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [16:58:53] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [16:58:53] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [16:58:53] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [16:58:53] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [16:58:53] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [16:58:53] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [16:58:53] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [16:58:53] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [16:58:53] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [16:58:53] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [16:58:53] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [16:58:53] ============= [PASSED] drm_test_rect_intersect ============= [16:58:53] ================ drm_test_rect_calc_hscale ================ [16:58:53] [PASSED] normal use [16:58:53] [PASSED] out of max range [16:58:53] [PASSED] out of min range [16:58:53] [PASSED] zero dst [16:58:53] [PASSED] negative src [16:58:53] [PASSED] negative dst [16:58:53] ============ [PASSED] drm_test_rect_calc_hscale ============ [16:58:53] ================ drm_test_rect_calc_vscale ================ [16:58:53] [PASSED] normal use [16:58:53] [PASSED] out of max range [16:58:53] [PASSED] out of min range [16:58:53] [PASSED] zero dst [16:58:53] [PASSED] negative src [16:58:53] [PASSED] negative dst [16:58:53] ============ [PASSED] drm_test_rect_calc_vscale ============ [16:58:53] ================== drm_test_rect_rotate =================== [16:58:53] [PASSED] reflect-x [16:58:53] [PASSED] reflect-y [16:58:53] [PASSED] rotate-0 [16:58:53] [PASSED] rotate-90 [16:58:53] [PASSED] rotate-180 [16:58:53] [PASSED] rotate-270 stty: 'standard input': Inappropriate ioctl for device [16:58:53] ============== [PASSED] drm_test_rect_rotate =============== [16:58:53] ================ drm_test_rect_rotate_inv ================= [16:58:53] [PASSED] reflect-x [16:58:53] [PASSED] reflect-y [16:58:53] [PASSED] rotate-0 [16:58:53] [PASSED] rotate-90 [16:58:53] [PASSED] rotate-180 [16:58:53] [PASSED] rotate-270 [16:58:53] ============ [PASSED] drm_test_rect_rotate_inv ============= [16:58:53] ==================== [PASSED] drm_rect ===================== [16:58:53] ============ drm_sysfb_modeset_test (1 subtest) ============ [16:58:53] ============ drm_test_sysfb_build_fourcc_list ============= [16:58:53] [PASSED] no native formats [16:58:53] [PASSED] XRGB8888 as native format [16:58:53] [PASSED] remove duplicates [16:58:53] [PASSED] convert alpha formats [16:58:53] [PASSED] random formats [16:58:53] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [16:58:53] ============= [PASSED] drm_sysfb_modeset_test ============== [16:58:53] ============================================================ [16:58:53] Testing complete. Ran 616 tests: passed: 616 [16:58:53] Elapsed time: 23.671s total, 1.671s configuring, 21.835s building, 0.142s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [16:58:53] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [16:58:55] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [16:59:02] Starting KUnit Kernel (1/1)... [16:59:02] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [16:59:03] ================= ttm_device (5 subtests) ================== [16:59:03] [PASSED] ttm_device_init_basic [16:59:03] [PASSED] ttm_device_init_multiple [16:59:03] [PASSED] ttm_device_fini_basic [16:59:03] [PASSED] ttm_device_init_no_vma_man [16:59:03] ================== ttm_device_init_pools ================== [16:59:03] [PASSED] No DMA allocations, no DMA32 required [16:59:03] [PASSED] DMA allocations, DMA32 required [16:59:03] [PASSED] No DMA allocations, DMA32 required [16:59:03] [PASSED] DMA allocations, no DMA32 required [16:59:03] ============== [PASSED] ttm_device_init_pools ============== [16:59:03] =================== [PASSED] ttm_device ==================== [16:59:03] ================== ttm_pool (8 subtests) =================== [16:59:03] ================== ttm_pool_alloc_basic =================== [16:59:03] [PASSED] One page [16:59:03] [PASSED] More than one page [16:59:03] [PASSED] Above the allocation limit [16:59:03] [PASSED] One page, with coherent DMA mappings enabled [16:59:03] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [16:59:03] ============== [PASSED] ttm_pool_alloc_basic =============== [16:59:03] ============== ttm_pool_alloc_basic_dma_addr ============== [16:59:03] [PASSED] One page [16:59:03] [PASSED] More than one page [16:59:03] [PASSED] Above the allocation limit [16:59:03] [PASSED] One page, with coherent DMA mappings enabled [16:59:03] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [16:59:03] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [16:59:03] [PASSED] ttm_pool_alloc_order_caching_match [16:59:03] [PASSED] ttm_pool_alloc_caching_mismatch [16:59:03] [PASSED] ttm_pool_alloc_order_mismatch [16:59:03] [PASSED] ttm_pool_free_dma_alloc [16:59:03] [PASSED] ttm_pool_free_no_dma_alloc [16:59:03] [PASSED] ttm_pool_fini_basic [16:59:03] ==================== [PASSED] ttm_pool ===================== [16:59:03] ================ ttm_resource (8 subtests) ================= [16:59:03] ================= ttm_resource_init_basic ================= [16:59:03] [PASSED] Init resource in TTM_PL_SYSTEM [16:59:03] [PASSED] Init resource in TTM_PL_VRAM [16:59:03] [PASSED] Init resource in a private placement [16:59:03] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [16:59:03] ============= [PASSED] ttm_resource_init_basic ============= [16:59:03] [PASSED] ttm_resource_init_pinned [16:59:03] [PASSED] ttm_resource_fini_basic [16:59:03] [PASSED] ttm_resource_manager_init_basic [16:59:03] [PASSED] ttm_resource_manager_usage_basic [16:59:03] [PASSED] ttm_resource_manager_set_used_basic [16:59:03] [PASSED] ttm_sys_man_alloc_basic [16:59:03] [PASSED] ttm_sys_man_free_basic [16:59:03] ================== [PASSED] ttm_resource =================== [16:59:03] =================== ttm_tt (15 subtests) =================== [16:59:03] ==================== ttm_tt_init_basic ==================== [16:59:03] [PASSED] Page-aligned size [16:59:03] [PASSED] Extra pages requested [16:59:03] ================ [PASSED] ttm_tt_init_basic ================ [16:59:03] [PASSED] ttm_tt_init_misaligned [16:59:03] [PASSED] ttm_tt_fini_basic [16:59:03] [PASSED] ttm_tt_fini_sg [16:59:03] [PASSED] ttm_tt_fini_shmem [16:59:03] [PASSED] ttm_tt_create_basic [16:59:03] [PASSED] ttm_tt_create_invalid_bo_type [16:59:03] [PASSED] ttm_tt_create_ttm_exists [16:59:03] [PASSED] ttm_tt_create_failed [16:59:03] [PASSED] ttm_tt_destroy_basic [16:59:03] [PASSED] ttm_tt_populate_null_ttm [16:59:03] [PASSED] ttm_tt_populate_populated_ttm [16:59:03] [PASSED] ttm_tt_unpopulate_basic [16:59:03] [PASSED] ttm_tt_unpopulate_empty_ttm [16:59:03] [PASSED] ttm_tt_swapin_basic [16:59:03] ===================== [PASSED] ttm_tt ====================== [16:59:03] =================== ttm_bo (14 subtests) =================== [16:59:03] =========== ttm_bo_reserve_optimistic_no_ticket =========== [16:59:03] [PASSED] Cannot be interrupted and sleeps [16:59:03] [PASSED] Cannot be interrupted, locks straight away [16:59:03] [PASSED] Can be interrupted, sleeps [16:59:03] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [16:59:03] [PASSED] ttm_bo_reserve_locked_no_sleep [16:59:03] [PASSED] ttm_bo_reserve_no_wait_ticket [16:59:03] [PASSED] ttm_bo_reserve_double_resv [16:59:03] [PASSED] ttm_bo_reserve_interrupted [16:59:03] [PASSED] ttm_bo_reserve_deadlock [16:59:03] [PASSED] ttm_bo_unreserve_basic [16:59:03] [PASSED] ttm_bo_unreserve_pinned [16:59:03] [PASSED] ttm_bo_unreserve_bulk [16:59:03] [PASSED] ttm_bo_put_basic [16:59:03] [PASSED] ttm_bo_put_shared_resv [16:59:03] [PASSED] ttm_bo_pin_basic [16:59:03] [PASSED] ttm_bo_pin_unpin_resource [16:59:03] [PASSED] ttm_bo_multiple_pin_one_unpin [16:59:03] ===================== [PASSED] ttm_bo ====================== [16:59:03] ============== ttm_bo_validate (22 subtests) =============== [16:59:03] ============== ttm_bo_init_reserved_sys_man =============== [16:59:03] [PASSED] Buffer object for userspace [16:59:03] [PASSED] Kernel buffer object [16:59:03] [PASSED] Shared buffer object [16:59:03] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [16:59:03] ============== ttm_bo_init_reserved_mock_man ============== [16:59:03] [PASSED] Buffer object for userspace [16:59:03] [PASSED] Kernel buffer object [16:59:03] [PASSED] Shared buffer object [16:59:03] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [16:59:03] [PASSED] ttm_bo_init_reserved_resv [16:59:03] ================== ttm_bo_validate_basic ================== [16:59:03] [PASSED] Buffer object for userspace [16:59:03] [PASSED] Kernel buffer object [16:59:03] [PASSED] Shared buffer object [16:59:03] ============== [PASSED] ttm_bo_validate_basic ============== [16:59:03] [PASSED] ttm_bo_validate_invalid_placement [16:59:03] ============= ttm_bo_validate_same_placement ============== [16:59:03] [PASSED] System manager [16:59:03] [PASSED] VRAM manager [16:59:03] ========= [PASSED] ttm_bo_validate_same_placement ========== [16:59:03] [PASSED] ttm_bo_validate_failed_alloc [16:59:03] [PASSED] ttm_bo_validate_pinned [16:59:03] [PASSED] ttm_bo_validate_busy_placement [16:59:03] ================ ttm_bo_validate_multihop ================= [16:59:03] [PASSED] Buffer object for userspace [16:59:03] [PASSED] Kernel buffer object [16:59:03] [PASSED] Shared buffer object [16:59:03] ============ [PASSED] ttm_bo_validate_multihop ============= [16:59:03] ========== ttm_bo_validate_no_placement_signaled ========== [16:59:03] [PASSED] Buffer object in system domain, no page vector [16:59:03] [PASSED] Buffer object in system domain with an existing page vector [16:59:03] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [16:59:03] ======== ttm_bo_validate_no_placement_not_signaled ======== [16:59:03] [PASSED] Buffer object for userspace [16:59:03] [PASSED] Kernel buffer object [16:59:03] [PASSED] Shared buffer object [16:59:03] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [16:59:03] [PASSED] ttm_bo_validate_move_fence_signaled [16:59:03] ========= ttm_bo_validate_move_fence_not_signaled ========= [16:59:03] [PASSED] Waits for GPU [16:59:03] [PASSED] Tries to lock straight away [16:59:03] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [16:59:03] [PASSED] ttm_bo_validate_swapout [16:59:03] [PASSED] ttm_bo_validate_happy_evict [16:59:03] [PASSED] ttm_bo_validate_all_pinned_evict [16:59:03] [PASSED] ttm_bo_validate_allowed_only_evict [16:59:03] [PASSED] ttm_bo_validate_deleted_evict [16:59:03] [PASSED] ttm_bo_validate_busy_domain_evict [16:59:03] [PASSED] ttm_bo_validate_evict_gutting [16:59:03] [PASSED] ttm_bo_validate_recrusive_evict stty: 'standard input': Inappropriate ioctl for device [16:59:03] ================= [PASSED] ttm_bo_validate ================= [16:59:03] ============================================================ [16:59:03] Testing complete. Ran 102 tests: passed: 102 [16:59:03] Elapsed time: 9.976s total, 1.643s configuring, 7.715s building, 0.532s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✓ Xe.CI.BAT: success for drm/xe: Support for mmap-ing mmio regions (rev3)
In reply to Ilia Levi== Series Details ==
== Series Details ==
Series: drm/xe: Support for mmap-ing mmio regions (rev3)
URL : https://patchwork.freedesktop.org/series/149977/
State : success
== Summary ==
CI Bug Log - changes from xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201_BAT -> xe-pw-149977v3_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (9 -> 8)
------------------------------
Missing (1): bat-adlp-vm
Changes
-------
No changes found
Build changes
-------------
* IGT: IGT_8423 -> IGT_8424
* Linux: xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201 -> xe-pw-149977v3
IGT_8423: 8423
IGT_8424: 68588b3c89a1bbe08c54d21c4d3d2e509957c795 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201: fb5dada21e3cfa26179ca58e1d7c26cdad217201
xe-pw-149977v3: 149977v3
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/index.html
Quoted 127 lines · Ilia Levi
Allow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace-firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: EnforceMAP_SHARED(Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead ofxe_mmioin the GEM object (MattB)Signed-off-by Ilia Levi <[email protected]>---
drivers/gpu/drm/xe/xe_device_types.h | 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 + 3 files changed, 228 insertions(+)drivers/gpu/drm/xe/xe_device_types.h +14
-0@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h> @@ -162,6 +163,19 @@ struct xe_mmio {u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio +* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { +/** @base: GEM object base */ +struct drm_gem_object base; + +/** @phys_addr: The physical address of the exposed MMIO region */ +phys_addr_t phys_addr; +}; +/** * struct xe_tile - hardware tile structure * drivers/gpu/drm/xe/xe_mmio.c +64
-0@@ -10,6 +10,7 @@#include <linux/minmax.h> #include <linux/pci.h> +#include <drm/drm_drv.h> #include <drm/drm_managed.h> #include <drm/drm_print.h> @@ -408,3 +409,212 @@ int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va {return __xe_mmio_wait32 (mmio, reg, mask, val, timeout_us, out_val, atomic, false); } + +/** +* DOC: Exposing MMIO regions to userspace +* +* In certain cases, the driver may allow userspace to mmap a portion of the hardware registers. +* +* This can be done as follows: +* 1. Define an xe_mmio instance that represents this portion. +* 2. Call xe_mmio_gem_create() to create a GEM object with an mmap-able fake offset. +* 3. Use drm_vma_node_offset_addr() on the created GEM object to retrieve the fake offset. +* 4. Provide the fake offset to userspace. +* 5. Userspace can call mmap with the fake offset. The length provided to mmap +* must match the size of the xe_mmio instance. +* 6. When the region is no longer needed, call xe_mmio_gem_destroy() to release the GEM object. +* +* Limitations: The exposed xe_mmio must be page-aligned with regards to its BAR offset and size. +* +* WARNING: Exposing MMIO regions to userspace can have security and stability implications. +* Make sure not to expose any sensitive registers. +*/ + +static void xe_mmio_gem_free (struct drm_gem_object *); +static int xe_mmio_gem_mmap (struct drm_gem_object *,struct vm_area_struct *); +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *); + +static const struct vm_operations_struct vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, + .fault = xe_mmio_gem_vm_fault, +}; + +static const struct drm_gem_object_funcs xe_mmio_gem_funcs = { + .free = xe_mmio_gem_free, + .mmap = xe_mmio_gem_mmap, + .vm_ops = &vm_ops, +}; + +static inline struct xe_mmio_gem *to_xe_mmio_gem (struct drm_gem_object *obj) +{ + return container_of(obj, struct xe_mmio_gem, base); +} + +static inline phys_addr_t xe_mmio_phys_addr (struct xe_mmio *mmio) +{ +struct xe_device *xe =tile_to_xe (mmio->tile); + +/* +* All MMIO instances are currently on PCI BAR 0, so we can do the trick below. +* In the future we may want to store the physical address in struct xe_mmio. +*/ +return pci_resource_start (to_pci_dev (xe->drm.dev),GTTMMADR_BAR ) + + (uintptr_t )(mmio->regs - xe->mmio.regs); +} + +/** +* xe_mmio_gem_create - Expose an MMIO region to userspace +* @mmio: xe_mmio instance +* @file: DRM file descriptor +* +* This function creates a GEM object with an mmap-able fake offset that wraps +* the provided xe_mmio instance. +* +* See: "Exposing MMIO regions to userspace"
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 484
Quoted 10 lines
drivers/gpu/drm/xe/xe_mmio.c +10
-0+*/ +struct xe_mmio_gem * +xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file) +{ +struct xe_device *xe =tile_to_xe (mmio->tile); +size_t size = mmio->regs_size; +struct xe_mmio_gem *obj; +struct drm_gem_object *base; +phys_addr_t phys_addr =xe_mmio_phys_addr (mmio); +int err;
hi, maybe rename 'err'->'ret' to follow that standard naming for return val.
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 487
Quoted 3 lines
drivers/gpu/drm/xe/xe_mmio.c +3
-0+ +if ((phys_addr %PAGE_SIZE !=0 ) || (size %PAGE_SIZE !=0 )) +return ERR_PTR (-EINVAL );
I guess that here when this will really be used, it should check that the mmio region is allowed to be exposed to userspace.
Thanks,
Dafna
Quoted 156 lines
drivers/gpu/drm/xe/xe_mmio.c +133
-0+ + obj =kzalloc (sizeof (*obj),GFP_KERNEL ); +if (!obj) +return ERR_PTR (-ENOMEM ); + + base = &obj->base; + base->funcs = &xe_mmio_gem_funcs; + obj->phys_addr = phys_addr; + +drm_gem_private_object_init (&xe->drm, base, size); + + err =drm_gem_create_mmap_offset (base); +if (err) + goto free_gem; + + err =drm_vma_node_allow (&base->vma_node, file); +if (err) + goto free_gem; + +return obj; + +free_gem: +xe_mmio_gem_free (base); +return ERR_PTR (err); +} + +static void xe_mmio_gem_free (struct drm_gem_object *base) +{ +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); + +drm_gem_object_release (base); +kfree (obj); +} + +/** +* xe_mmio_gem_destroy - Destroy the GEM object wrapping xe_mmio +* @gem: the GEM object to destroy +* +* This function releases resources associated with the GEM object created by +* xe_mmio_gem_create(). +* +* See: "Exposing MMIO regions to userspace" +*/ +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem) +{ +xe_mmio_gem_free (&gem->base); +} + +static int xe_mmio_gem_mmap (struct drm_gem_object *base,struct vm_area_struct *vma) +{ +if (vma->vm_end - vma->vm_start != base->size) +return -EINVAL ; + +if ((vma->vm_flags &VM_SHARED ) ==0 ) +return -EINVAL ; + +/* Set vm_pgoff (used as a fake buffer offset by DRM) to 0 */ + vma->vm_pgoff =0 ; + vma->vm_page_prot =pgprot_noncached (vm_get_page_prot (vma->vm_flags)); +vm_flags_set (vma,VM_IO |VM_PFNMAP |VM_DONTEXPAND |VM_DONTDUMP | +VM_DONTCOPY |VM_NORESERVE ); + +/* Defer actual mapping to the fault handler. */ +return 0 ; +} + +static void xe_mmio_gem_release_dummy_page (struct drm_device *dev,void *res) +{ +__free_page ((struct page *)res); +} + +static vm_fault_t xe_mmio_gem_vm_fault_dummy_page (struct vm_area_struct *vma) +{ +struct drm_gem_object *base = vma->vm_private_data; +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +struct page *page; +unsigned long pfn; +unsigned long i; + + page =alloc_page (GFP_KERNEL | __GFP_ZERO); +if (!page) +return VM_FAULT_OOM ; + +if (drmm_add_action_or_reset (dev, xe_mmio_gem_release_dummy_page, page)) +return VM_FAULT_OOM ; + + pfn =page_to_pfn (page); + +/* Map the entire VMA to the same dummy page */ +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; + + ret =vmf_insert_pfn (vma, addr, pfn); +if (ret &VM_FAULT_ERROR ) +break ; + } + +return ret; +} + +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *vmf) +{ +struct vm_area_struct *vma = vmf->vma; +struct drm_gem_object *base = vma->vm_private_data; +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +unsigned long i; +int idx; + +if (!drm_dev_enter (dev, &idx)) { +/* +* Provide a dummy page to avoid SIGBUS for events such as hot-unplug. +* This gives the userspace the option to recover instead of crashing. +* It is assumed the userspace will receive the notification via some +* other channel (e.g. drm uevent). +*/ +return xe_mmio_gem_vm_fault_dummy_page (vma); + } + +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; +unsigned long phys_addr = obj->phys_addr + i; + + ret =vmf_insert_pfn (vma, addr,PHYS_PFN (phys_addr)); +if (ret &VM_FAULT_ERROR ) +break ; + } + +drm_dev_exit (idx); +return ret; +}drivers/gpu/drm/xe/xe_mmio.h +4
-0@@ -8,6 +8,7 @@#include "xe_gt_types.h" +struct drm_file ;struct xe_device ;struct xe_reg ;@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) return &xe->tiles[0].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file); +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem); +#endif Signature · 1 line
2.43.0
Quoted 132 lines · Dafna Hirschfeld
Quoted 131 lines · Ilia Levi
Allow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace-firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: EnforceMAP_SHARED(Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead ofxe_mmioin the GEM object (MattB)Signed-off-by Ilia Levi <[email protected]>---
drivers/gpu/drm/xe/xe_device_types.h| 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 +3 files changed, 228 insertions(+)drivers/gpu/drm/xe/xe_device_types.h +14
-0@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h> @@ -162,6 +163,19 @@ struct xe_mmio { u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio +* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { + /** @base: GEM object base */ + struct drm_gem_object base; + + /** @phys_addr: The physical address of the exposed MMIO region */ + phys_addr_t phys_addr; +}; +/** * struct xe_tile - hardware tile structure * drivers/gpu/drm/xe/xe_mmio.c +68
-0@@ -10,6 +10,7 @@#include <linux/minmax.h> #include <linux/pci.h> +#include <drm/drm_drv.h> #include <drm/drm_managed.h> #include <drm/drm_print.h> @@ -408,3 +409,212 @@ int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va { return __xe_mmio_wait32(mmio, reg, mask, val, timeout_us, out_val, atomic, false); } + +/** +* DOC: Exposing MMIO regions to userspace +* +* In certain cases, the driver may allow userspace to mmap a portion of the hardware registers. +* +* This can be done as follows: +* 1. Define an xe_mmio instance that represents this portion. +* 2. Call xe_mmio_gem_create() to create a GEM object with an mmap-able fake offset. +* 3. Use drm_vma_node_offset_addr() on the created GEM object to retrieve the fake offset. +* 4. Provide the fake offset to userspace. +* 5. Userspace can call mmap with the fake offset. The length provided to mmap +* must match the size of the xe_mmio instance. +* 6. When the region is no longer needed, call xe_mmio_gem_destroy() to release the GEM object. +* +* Limitations: The exposed xe_mmio must be page-aligned with regards to its BAR offset and size. +* +* WARNING: Exposing MMIO regions to userspace can have security and stability implications. +* Make sure not to expose any sensitive registers. +*/ + +static void xe_mmio_gem_free (struct drm_gem_object *); +static int xe_mmio_gem_mmap (struct drm_gem_object *,struct vm_area_struct *); +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *); + +static const struct vm_operations_struct vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, + .fault = xe_mmio_gem_vm_fault, +}; + +static const struct drm_gem_object_funcs xe_mmio_gem_funcs = { + .free = xe_mmio_gem_free, + .mmap = xe_mmio_gem_mmap, + .vm_ops = &vm_ops, +}; + +static inline struct xe_mmio_gem *to_xe_mmio_gem (struct drm_gem_object *obj) +{ + return container_of(obj, struct xe_mmio_gem, base); +} + +static inline phys_addr_t xe_mmio_phys_addr (struct xe_mmio *mmio) +{ + struct xe_device *xe = tile_to_xe(mmio->tile); + + /* + * All MMIO instances are currently on PCI BAR 0, so we can do the trick below. + * In the future we may want to store the physical address in struct xe_mmio. + */ + return pci_resource_start(to_pci_dev(xe->drm.dev), GTTMMADR_BAR) + + (uintptr_t)(mmio->regs - xe->mmio.regs); +} + +/** +* xe_mmio_gem_create - Expose an MMIO region to userspace +* @mmio: xe_mmio instance +* @file: DRM file descriptor +* +* This function creates a GEM object with an mmap-able fake offset that wraps +* the provided xe_mmio instance. +* +* See: "Exposing MMIO regions to userspace" +*/ +struct xe_mmio_gem * +xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file) +{
Quoted 8 lines
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 484
Quoted 6 lines
drivers/gpu/drm/xe/xe_mmio.c +6
-0+ struct xe_device *xe = tile_to_xe(mmio->tile); + size_t size = mmio->regs_size; + struct xe_mmio_gem *obj; + struct drm_gem_object *base; + phys_addr_t phys_addr = xe_mmio_phys_addr(mmio); + int err;hi, maybe rename 'err'->'ret' to follow that standard naming for return val.
Note that the function returns obj, not err. And throughout Xe code there seem to be plenty of examples that use err, e.g. xe_device_create, xe_bo_pin, xe_exec_queue_create_ioctl etc.
- Ilia
Quoted 7 lines
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 487
Quoted 4 lines
drivers/gpu/drm/xe/xe_mmio.c +3
-0+ + if ((phys_addr % PAGE_SIZE != 0) || (size % PAGE_SIZE != 0)) + return ERR_PTR(-EINVAL);I guess that here when this will really be used, it should check that the mmio region is allowed to be exposed to userspace.
Hmm, what do you mean? I don't think we need any additional security here - xe_mmio_gem_create is an internal API in the driver. So it is expected that the driver developer will call xe_mmio_gem_create only for allowed regions. The framework does not know which regions are allowed and which are not.
- Ilia
Quoted 160 lines
Thanks,
DafnaQuoted 156 lines
drivers/gpu/drm/xe/xe_mmio.c +133
-0+ + obj = kzalloc(sizeof(*obj), GFP_KERNEL); + if (!obj) + return ERR_PTR(-ENOMEM); + + base = &obj->base; + base->funcs = &xe_mmio_gem_funcs; + obj->phys_addr = phys_addr; + + drm_gem_private_object_init(&xe->drm, base, size); + + err = drm_gem_create_mmap_offset(base); + if (err) + goto free_gem; + + err = drm_vma_node_allow(&base->vma_node, file); + if (err) + goto free_gem; + + return obj; + +free_gem: + xe_mmio_gem_free(base); + return ERR_PTR(err); +} + +static void xe_mmio_gem_free (struct drm_gem_object *base) +{ + struct xe_mmio_gem *obj = to_xe_mmio_gem(base); + + drm_gem_object_release(base); + kfree(obj); +} + +/** +* xe_mmio_gem_destroy - Destroy the GEM object wrapping xe_mmio +* @gem: the GEM object to destroy +* +* This function releases resources associated with the GEM object created by +* xe_mmio_gem_create(). +* +* See: "Exposing MMIO regions to userspace" +*/ +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem) +{ + xe_mmio_gem_free(&gem->base); +} + +static int xe_mmio_gem_mmap (struct drm_gem_object *base,struct vm_area_struct *vma) +{ + if (vma->vm_end - vma->vm_start != base->size) + return -EINVAL; + + if ((vma->vm_flags & VM_SHARED) == 0) + return -EINVAL; + + /* Set vm_pgoff (used as a fake buffer offset by DRM) to 0 */ + vma->vm_pgoff = 0; + vma->vm_page_prot = pgprot_noncached(vm_get_page_prot(vma->vm_flags)); + vm_flags_set(vma, VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP | + VM_DONTCOPY | VM_NORESERVE); + + /* Defer actual mapping to the fault handler. */ + return 0; +} + +static void xe_mmio_gem_release_dummy_page (struct drm_device *dev,void *res) +{ + __free_page((struct page *)res); +} + +static vm_fault_t xe_mmio_gem_vm_fault_dummy_page (struct vm_area_struct *vma) +{ + struct drm_gem_object *base = vma->vm_private_data; + struct drm_device *dev = base->dev; + vm_fault_t ret = VM_FAULT_NOPAGE; + struct page *page; + unsigned long pfn; + unsigned long i; + + page = alloc_page(GFP_KERNEL | __GFP_ZERO); + if (!page) + return VM_FAULT_OOM; + + if (drmm_add_action_or_reset(dev, xe_mmio_gem_release_dummy_page, page)) + return VM_FAULT_OOM; + + pfn = page_to_pfn(page); + + /* Map the entire VMA to the same dummy page */ + for (i = 0; i < base->size; i += PAGE_SIZE) { + unsigned long addr = vma->vm_start + i; + + ret = vmf_insert_pfn(vma, addr, pfn); + if (ret & VM_FAULT_ERROR) + break; + } + + return ret; +} + +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *vmf) +{ + struct vm_area_struct *vma = vmf->vma; + struct drm_gem_object *base = vma->vm_private_data; + struct xe_mmio_gem *obj = to_xe_mmio_gem(base); + struct drm_device *dev = base->dev; + vm_fault_t ret = VM_FAULT_NOPAGE; + unsigned long i; + int idx; + + if (!drm_dev_enter(dev, &idx)) { + /* + * Provide a dummy page to avoid SIGBUS for events such as hot-unplug. + * This gives the userspace the option to recover instead of crashing. + * It is assumed the userspace will receive the notification via some + * other channel (e.g. drm uevent). + */ + return xe_mmio_gem_vm_fault_dummy_page(vma); + } + + for (i = 0; i < base->size; i += PAGE_SIZE) { + unsigned long addr = vma->vm_start + i; + unsigned long phys_addr = obj->phys_addr + i; + + ret = vmf_insert_pfn(vma, addr, PHYS_PFN(phys_addr)); + if (ret & VM_FAULT_ERROR) + break; + } + + drm_dev_exit(idx); + return ret; +}drivers/gpu/drm/xe/xe_mmio.h +4
-0@@ -8,6 +8,7 @@#include "xe_gt_types.h" +struct drm_file ;struct xe_device ;struct xe_reg ;@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) return &xe->tiles[0].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file); +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem); +#endif --
2.43.0
Patchwork
CI✗ Xe.CI.Full: failure for drm/xe: Support for mmap-ing mmio regions (rev3)
In reply to Ilia Levi== Series Details ==
== Series Details ==
Series: drm/xe: Support for mmap-ing mmio regions (rev3)
URL : https://patchwork.freedesktop.org/series/149977/
State : failure
== Summary ==
CI Bug Log - changes from xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201_FULL -> xe-pw-149977v3_FULL
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with xe-pw-149977v3_FULL absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-149977v3_FULL, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (4 -> 4)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in xe-pw-149977v3_FULL:
### IGT changes ###
#### Possible regressions ####
* igt@xe_exec_system_allocator@threads-shared-vm-many-stride-new-bo-map-nomemset:
- shard-lnl: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-lnl-3/igt@xe_exec_system_allocator@threads-shared-vm-many-stride-new-bo-map-nomemset.html
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-5/igt@xe_exec_system_allocator@threads-shared-vm-many-stride-new-bo-map-nomemset.html
New tests
---------
New tests have been introduced between xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201_FULL and xe-pw-149977v3_FULL:
### New IGT tests (1) ###
* igt@kms_pipe_crc_basic@disable-crc-after-crtc@pipe-b-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.48] s
Known issues
------------
Here are the changes found in xe-pw-149977v3_FULL that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_async_flips@async-flip-with-page-flip-events-linear-atomic@pipe-c-edp-1:
- shard-lnl: [PASS][3] -> [FAIL][4] ([Intel XE#911]) +7 other tests fail
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-lnl-4/igt@kms_async_flips@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-5/igt@kms_async_flips@[email protected]
* igt@kms_async_flips@async-flip-with-page-flip-events-tiled-atomic@pipe-d-hdmi-a-2-4-mc-ccs:
- shard-dg2-set2: NOTRUN -> [SKIP][5] ([Intel XE#3767]) +15 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@kms_async_flips@async-flip-with-page-flip-events-tiled-atomic@pipe-d-hdmi-a-2-4-mc-ccs.html
* igt@kms_async_flips@crc-atomic@pipe-d-hdmi-a-1:
- shard-adlp: [PASS][6] -> [FAIL][7] ([Intel XE#3884]) +1 other test fail
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-6/igt@kms_async_flips@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@kms_async_flips@[email protected]
* igt@kms_async_flips@invalid-async-flip-atomic@pipe-b-hdmi-a-1:
- shard-adlp: [PASS][8] -> [DMESG-WARN][9] ([Intel XE#4543]) +1 other test dmesg-warn
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@kms_async_flips@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@kms_async_flips@[email protected]
* igt@kms_big_fb@4-tiled-8bpp-rotate-90:
- shard-bmg: NOTRUN -> [SKIP][10] ([Intel XE#2327]) +4 other tests skip
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0:
- shard-adlp: NOTRUN -> [SKIP][11] ([Intel XE#1124])
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-8/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- shard-lnl: NOTRUN -> [SKIP][12] ([Intel XE#1407]) +4 other tests skip
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-7/igt@[email protected]
* igt@kms_big_fb@linear-8bpp-rotate-270:
- shard-adlp: NOTRUN -> [SKIP][13] ([Intel XE#316])
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-9/igt@[email protected]
* igt@kms_big_fb@x-tiled-16bpp-rotate-270:
- shard-dg2-set2: NOTRUN -> [SKIP][14] ([Intel XE#316]) +4 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-464/igt@[email protected]
* igt@kms_big_fb@y-tiled-addfb:
- shard-bmg: NOTRUN -> [SKIP][15] ([Intel XE#2328])
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-8/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [SKIP][16] ([Intel XE#619])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][17] ([Intel XE#1467])
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-2/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-adlp: [PASS][18] -> [DMESG-FAIL][19] ([Intel XE#4543]) +11 other tests dmesg-fail
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-6/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- shard-bmg: NOTRUN -> [SKIP][20] ([Intel XE#1124]) +6 other tests skip
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][21] ([Intel XE#1124]) +4 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-8/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip:
- shard-dg2-set2: NOTRUN -> [SKIP][22] ([Intel XE#1124]) +10 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-464/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip.html
* igt@kms_bw@connected-linear-tiling-2-displays-2160x1440p:
- shard-bmg: [PASS][23] -> [SKIP][24] ([Intel XE#2314] / [Intel XE#2894])
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-8/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_bw@linear-tiling-1-displays-2560x1440p:
- shard-dg2-set2: NOTRUN -> [SKIP][25] ([Intel XE#367])
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-434/igt@[email protected]
* igt@kms_ccs@crc-primary-basic-4-tiled-dg2-rc-ccs-cc@pipe-a-hdmi-a-1:
- shard-adlp: NOTRUN -> [SKIP][26] ([Intel XE#787]) +8 other tests skip
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-primary-basic-4-tiled-dg2-rc-ccs-cc@pipe-d-hdmi-a-1:
- shard-adlp: NOTRUN -> [SKIP][27] ([Intel XE#455] / [Intel XE#787]) +4 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-primary-basic-4-tiled-lnl-ccs@pipe-b-dp-2:
- shard-bmg: NOTRUN -> [SKIP][28] ([Intel XE#2652] / [Intel XE#787]) +3 other tests skip
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-dg2-mc-ccs:
- shard-lnl: NOTRUN -> [SKIP][29] ([Intel XE#2887]) +4 other tests skip
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-2/igt@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-dg2-rc-ccs-cc:
- shard-bmg: NOTRUN -> [SKIP][30] ([Intel XE#2887]) +9 other tests skip
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-mtl-mc-ccs@pipe-a-hdmi-a-2:
- shard-dg2-set2: NOTRUN -> [SKIP][31] ([Intel XE#787]) +202 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-mtl-rc-ccs@pipe-d-dp-2:
- shard-dg2-set2: NOTRUN -> [SKIP][32] ([Intel XE#455] / [Intel XE#787]) +40 other tests skip
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@kms_ccs@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-dg2-mc-ccs:
- shard-dg2-set2: NOTRUN -> [INCOMPLETE][33] ([Intel XE#1727] / [Intel XE#2705] / [Intel XE#3113] / [Intel XE#4212] / [Intel XE#4345] / [Intel XE#4522])
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-dg2-mc-ccs@pipe-a-dp-4:
- shard-dg2-set2: NOTRUN -> [INCOMPLETE][34] ([Intel XE#1727] / [Intel XE#2705] / [Intel XE#3113] / [Intel XE#4212] / [Intel XE#4522]) +1 other test incomplete
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@kms_ccs@[email protected]
* igt@kms_cdclk@mode-transition:
- shard-bmg: NOTRUN -> [SKIP][35] ([Intel XE#2724])
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-1/igt@[email protected]
* igt@kms_cdclk@mode-transition@pipe-b-edp-1:
- shard-lnl: NOTRUN -> [SKIP][36] ([Intel XE#4417]) +3 other tests skip
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-3/igt@kms_cdclk@[email protected]
* igt@kms_cdclk@mode-transition@pipe-d-dp-4:
- shard-dg2-set2: NOTRUN -> [SKIP][37] ([Intel XE#4417]) +3 other tests skip
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-434/igt@kms_cdclk@[email protected]
* igt@kms_chamelium_color@ctm-0-25:
- shard-bmg: NOTRUN -> [SKIP][38] ([Intel XE#2325]) +1 other test skip
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-8/igt@[email protected]
* igt@kms_chamelium_color@gamma:
- shard-dg2-set2: NOTRUN -> [SKIP][39] ([Intel XE#306]) +2 other tests skip
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][40] ([Intel XE#306]) +1 other test skip
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-1/igt@[email protected]
- shard-adlp: NOTRUN -> [SKIP][41] ([Intel XE#306])
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-4/igt@[email protected]
* igt@kms_chamelium_hpd@hdmi-hpd-storm-disable:
- shard-bmg: NOTRUN -> [SKIP][42] ([Intel XE#2252]) +3 other tests skip
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@[email protected]
* igt@kms_chamelium_hpd@hdmi-hpd-with-enabled-mode:
- shard-dg2-set2: NOTRUN -> [SKIP][43] ([Intel XE#373]) +8 other tests skip
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][44] ([Intel XE#373]) +1 other test skip
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-2/igt@[email protected]
- shard-adlp: NOTRUN -> [SKIP][45] ([Intel XE#373])
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_content_protection@atomic:
- shard-bmg: NOTRUN -> [SKIP][46] ([Intel XE#2341])
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
* igt@kms_content_protection@atomic@pipe-a-dp-2:
- shard-dg2-set2: NOTRUN -> [FAIL][47] ([Intel XE#1178]) +3 other tests fail
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@kms_content_protection@[email protected]
* igt@kms_content_protection@dp-mst-lic-type-0:
- shard-dg2-set2: NOTRUN -> [SKIP][48] ([Intel XE#307]) +1 other test skip
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][49] ([Intel XE#307]) +1 other test skip
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-2/igt@[email protected]
- shard-adlp: NOTRUN -> [SKIP][50] ([Intel XE#307])
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_content_protection@dp-mst-lic-type-1:
- shard-bmg: NOTRUN -> [SKIP][51] ([Intel XE#2390]) +1 other test skip
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
* igt@kms_content_protection@lic-type-0@pipe-a-dp-2:
- shard-bmg: NOTRUN -> [FAIL][52] ([Intel XE#1178])
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-1/igt@kms_content_protection@[email protected]
* igt@kms_content_protection@uevent:
- shard-dg2-set2: NOTRUN -> [FAIL][53] ([Intel XE#1188]) +1 other test fail
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-512x170:
- shard-dg2-set2: NOTRUN -> [SKIP][54] ([Intel XE#308])
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
* igt@kms_cursor_crc@cursor-sliding-128x42:
- shard-lnl: NOTRUN -> [SKIP][55] ([Intel XE#1424]) +1 other test skip
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-4/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][56] ([Intel XE#2320]) +1 other test skip
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-7/igt@[email protected]
* igt@kms_cursor_legacy@2x-flip-vs-cursor-legacy:
- shard-bmg: [PASS][57] -> [SKIP][58] ([Intel XE#2291]) +4 other tests skip
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-3/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size:
- shard-bmg: NOTRUN -> [SKIP][59] ([Intel XE#2291]) +2 other tests skip
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size.html
- shard-lnl: NOTRUN -> [SKIP][60] ([Intel XE#309]) +2 other tests skip
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-4/igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions:
- shard-dg2-set2: NOTRUN -> [SKIP][61] ([Intel XE#323])
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions.html
* igt@kms_display_modes@extended-mode-basic:
- shard-bmg: NOTRUN -> [SKIP][62] ([Intel XE#4302])
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
* igt@kms_dp_aux_dev:
- shard-bmg: NOTRUN -> [SKIP][63] ([Intel XE#3009])
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@kms_dp_aux_dev.html
* igt@kms_fbc_dirty_rect@fbc-dirty-rectangle-out-visible-area:
- shard-adlp: NOTRUN -> [SKIP][64] ([Intel XE#4422])
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-9/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][65] ([Intel XE#4422])
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-3/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [SKIP][66] ([Intel XE#4422])
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][67] ([Intel XE#4422])
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-2/igt@[email protected]
* igt@kms_fbcon_fbt@psr:
- shard-bmg: NOTRUN -> [SKIP][68] ([Intel XE#776])
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
* igt@kms_fbcon_fbt@psr-suspend:
- shard-dg2-set2: NOTRUN -> [SKIP][69] ([Intel XE#776])
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@[email protected]
* igt@kms_flip@2x-flip-vs-absolute-wf_vblank-interruptible@ab-dp2-hdmi-a3:
- shard-bmg: [PASS][70] -> [FAIL][71] ([Intel XE#2882]) +2 other tests fail
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-1/igt@kms_flip@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-8/igt@kms_flip@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank@cd-hdmi-a6-dp4:
- shard-dg2-set2: [PASS][72] -> [FAIL][73] ([Intel XE#301])
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-435/igt@kms_flip@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@kms_flip@[email protected]
* igt@kms_flip@2x-flip-vs-modeset-vs-hang:
- shard-bmg: NOTRUN -> [SKIP][74] ([Intel XE#2316])
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
* igt@kms_flip@2x-modeset-vs-vblank-race-interruptible:
- shard-adlp: NOTRUN -> [SKIP][75] ([Intel XE#310])
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-3/igt@[email protected]
* igt@kms_flip@2x-nonexisting-fb:
- shard-bmg: [PASS][76] -> [SKIP][77] ([Intel XE#2316]) +7 other tests skip
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-8/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
* igt@kms_flip@2x-plain-flip:
- shard-lnl: NOTRUN -> [SKIP][78] ([Intel XE#1421]) +3 other tests skip
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-8/igt@[email protected]
* igt@kms_flip@2x-wf_vblank-ts-check-interruptible@ab-dp2-hdmi-a3:
- shard-bmg: NOTRUN -> [FAIL][79] ([Intel XE#2882])
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-8/igt@kms_flip@[email protected]
* igt@kms_flip@bo-too-big-interruptible@b-edp1:
- shard-lnl: NOTRUN -> [TIMEOUT][80] ([Intel XE#1504])
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-6/igt@kms_flip@[email protected]
* igt@kms_flip@dpms-vs-vblank-race-interruptible@a-hdmi-a6:
- shard-dg2-set2: [PASS][81] -> [FAIL][82] ([Intel XE#3098]) +1 other test fail
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-434/igt@kms_flip@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-lnl: NOTRUN -> [FAIL][83] ([Intel XE#301]) +3 other tests fail
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-5/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@d-dp4:
- shard-dg2-set2: NOTRUN -> [FAIL][84] ([Intel XE#301]) +3 other tests fail
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-dg2-set2: [PASS][85] -> [INCOMPLETE][86] ([Intel XE#2049] / [Intel XE#2597]) +1 other test incomplete
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-432/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@a-edp1:
- shard-lnl: [PASS][87] -> [FAIL][88] ([Intel XE#886]) +1 other test fail
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-lnl-8/igt@kms_flip@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-2/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode:
- shard-dg2-set2: NOTRUN -> [SKIP][89] ([Intel XE#455]) +14 other tests skip
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling:
- shard-bmg: NOTRUN -> [SKIP][90] ([Intel XE#2293] / [Intel XE#2380])
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-1/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling.html
- shard-lnl: NOTRUN -> [SKIP][91] ([Intel XE#1401] / [Intel XE#1745]) +1 other test skip
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-3/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling.html
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling@pipe-a-valid-mode:
- shard-bmg: NOTRUN -> [SKIP][92] ([Intel XE#2293])
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-1/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling@pipe-a-valid-mode:
- shard-adlp: [PASS][93] -> [DMESG-FAIL][94] ([Intel XE#4543] / [Intel XE#4921]) +1 other test dmesg-fail
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-3/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling@pipe-a-valid-mode.html
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling@pipe-a-default-mode:
- shard-lnl: NOTRUN -> [SKIP][95] ([Intel XE#1401]) +1 other test skip
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-7/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling@pipe-a-default-mode.html
* igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-indfb-draw-mmap-wc:
- shard-bmg: NOTRUN -> [SKIP][96] ([Intel XE#2311]) +12 other tests skip
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-shrfb-plflip-blt:
- shard-lnl: NOTRUN -> [SKIP][97] ([Intel XE#656]) +15 other tests skip
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-pgflip-blt:
- shard-bmg: NOTRUN -> [SKIP][98] ([Intel XE#4141]) +6 other tests skip
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-indfb-draw-mmap-wc:
- shard-dg2-set2: NOTRUN -> [SKIP][99] ([Intel XE#651]) +25 other tests skip
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcdrrs-rgb101010-draw-mmap-wc:
- shard-lnl: NOTRUN -> [SKIP][100] ([Intel XE#651]) +1 other test skip
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-indfb-plflip-blt:
- shard-bmg: NOTRUN -> [SKIP][101] ([Intel XE#2313]) +12 other tests skip
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-indfb-plflip-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-blt:
- shard-adlp: NOTRUN -> [SKIP][102] ([Intel XE#656]) +3 other tests skip
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-1/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-onoff:
- shard-bmg: NOTRUN -> [SKIP][103] ([Intel XE#2312]) +3 other tests skip
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-blt:
- shard-dg2-set2: NOTRUN -> [SKIP][104] ([Intel XE#653]) +20 other tests skip
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-464/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-blt:
- shard-adlp: NOTRUN -> [SKIP][105] ([Intel XE#653])
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-1/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr:
- shard-lnl: NOTRUN -> [SKIP][106] ([Intel XE#3374] / [Intel XE#3544])
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-2/igt@[email protected]
* igt@kms_hdr@invalid-hdr:
- shard-dg2-set2: [PASS][107] -> [SKIP][108] ([Intel XE#455])
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-463/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
* igt@kms_joiner@basic-big-joiner:
- shard-dg2-set2: NOTRUN -> [SKIP][109] ([Intel XE#346])
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@[email protected]
* igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
- shard-bmg: NOTRUN -> [SKIP][110] ([Intel XE#2501])
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [SKIP][111] ([Intel XE#356])
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
* igt@kms_pipe_stress@stress-xrgb8888-ytiled:
- shard-bmg: NOTRUN -> [SKIP][112] ([Intel XE#4329])
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [SKIP][113] ([Intel XE#4359])
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend:
- shard-adlp: [PASS][114] -> [DMESG-WARN][115] ([Intel XE#2953] / [Intel XE#4173]) +2 other tests dmesg-warn
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-9/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@[email protected]
- shard-bmg: [PASS][116] -> [INCOMPLETE][117] ([Intel XE#1035]) +1 other test incomplete
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-6/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_plane_multiple@2x-tiling-4:
- shard-bmg: [PASS][118] -> [SKIP][119] ([Intel XE#4596])
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-1/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_plane_multiple@tiling-y:
- shard-bmg: NOTRUN -> [SKIP][120] ([Intel XE#5020])
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-1/igt@[email protected]
* igt@kms_pm_backlight@fade-with-suspend:
- shard-dg2-set2: NOTRUN -> [SKIP][121] ([Intel XE#870])
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
* igt@kms_pm_dc@dc6-dpms:
- shard-dg2-set2: NOTRUN -> [SKIP][122] ([Intel XE#908]) +1 other test skip
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@[email protected]
* igt@kms_pm_dc@dc6-psr:
- shard-lnl: [PASS][123] -> [FAIL][124] ([Intel XE#718]) +1 other test fail
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-lnl-4/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-8/igt@[email protected]
* igt@kms_pm_rpm@modeset-non-lpsp:
- shard-lnl: NOTRUN -> [SKIP][125] ([Intel XE#1439] / [Intel XE#3141])
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-7/igt@[email protected]
- shard-adlp: NOTRUN -> [SKIP][126] ([Intel XE#836])
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_psr2_sf@fbc-psr2-plane-move-sf-dmg-area:
- shard-lnl: NOTRUN -> [SKIP][127] ([Intel XE#2893] / [Intel XE#4608])
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-4/igt@[email protected]
* igt@kms_psr2_sf@fbc-psr2-plane-move-sf-dmg-area@pipe-b-edp-1:
- shard-lnl: NOTRUN -> [SKIP][128] ([Intel XE#4608]) +1 other test skip
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-4/igt@kms_psr2_sf@[email protected]
* igt@kms_psr2_sf@pr-cursor-plane-move-continuous-sf:
- shard-lnl: NOTRUN -> [SKIP][129] ([Intel XE#2893])
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-1/igt@[email protected]
* igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-fully-sf:
- shard-bmg: NOTRUN -> [SKIP][130] ([Intel XE#1489]) +5 other tests skip
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-8/igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-fully-sf.html
* igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-sf:
- shard-adlp: NOTRUN -> [SKIP][131] ([Intel XE#1489])
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@[email protected]
* igt@kms_psr2_sf@psr2-overlay-primary-update-sf-dmg-area:
- shard-dg2-set2: NOTRUN -> [SKIP][132] ([Intel XE#1489]) +8 other tests skip
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@[email protected]
* igt@kms_psr@fbc-psr2-primary-render:
- shard-lnl: NOTRUN -> [SKIP][133] ([Intel XE#1406])
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-1/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][134] ([Intel XE#2234] / [Intel XE#2850]) +1 other test skip
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-4/igt@[email protected]
* igt@kms_psr@fbc-psr2-primary-render@edp-1:
- shard-lnl: NOTRUN -> [SKIP][135] ([Intel XE#4609])
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-1/igt@kms_psr@[email protected]
* igt@kms_psr@fbc-psr2-sprite-plane-move:
- shard-dg2-set2: NOTRUN -> [SKIP][136] ([Intel XE#2850] / [Intel XE#929]) +5 other tests skip
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
* igt@kms_rotation_crc@primary-x-tiled-reflect-x-0:
- shard-lnl: NOTRUN -> [FAIL][137] ([Intel XE#4689])
[137]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-5/igt@[email protected]
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0:
- shard-lnl: NOTRUN -> [SKIP][138] ([Intel XE#1127])
[138]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-2/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][139] ([Intel XE#2330])
[139]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-3/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [SKIP][140] ([Intel XE#1127])
[140]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@[email protected]
* igt@kms_setmode@basic:
- shard-adlp: [PASS][141] -> [FAIL][142] ([Intel XE#2883]) +2 other tests fail
[141]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_setmode@basic@pipe-b-edp-1:
- shard-lnl: [PASS][143] -> [FAIL][144] ([Intel XE#2883]) +2 other tests fail
[143]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-lnl-7/igt@kms_setmode@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-2/igt@kms_setmode@[email protected]
* igt@kms_setmode@clone-exclusive-crtc:
- shard-bmg: NOTRUN -> [SKIP][145] ([Intel XE#1435])
[145]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern:
- shard-bmg: NOTRUN -> [SKIP][146] ([Intel XE#2426])
[146]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [FAIL][147] ([Intel XE#1729])
[147]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][148] ([Intel XE#362])
[148]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-4/igt@[email protected]
* igt@kms_vrr@flip-basic:
- shard-bmg: NOTRUN -> [SKIP][149] ([Intel XE#1499])
[149]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_vrr@negative-basic:
- shard-bmg: [PASS][150] -> [SKIP][151] ([Intel XE#1499])
[150]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-1/igt@[email protected]
[151]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@sriov_basic@enable-vfs-bind-unbind-each-numvfs-all:
- shard-dg2-set2: NOTRUN -> [SKIP][152] ([Intel XE#1091] / [Intel XE#2849])
[152]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][153] ([Intel XE#1091] / [Intel XE#2849])
[153]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-5/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][154] ([Intel XE#1091] / [Intel XE#2849])
[154]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@xe_copy_basic@mem-copy-linear-0xfd:
- shard-adlp: NOTRUN -> [SKIP][155] ([Intel XE#1123])
[155]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-4/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [SKIP][156] ([Intel XE#1123])
[156]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@[email protected]
* igt@xe_eu_stall@blocking-read:
- shard-adlp: NOTRUN -> [SKIP][157] ([Intel XE#5308])
[157]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-3/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [SKIP][158] ([Intel XE#5308])
[158]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
* igt@xe_eudebug@discovery-race-vmbind:
- shard-adlp: NOTRUN -> [SKIP][159] ([Intel XE#4837]) +1 other test skip
[159]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-1/igt@[email protected]
* igt@xe_eudebug_online@reset-with-attention:
- shard-lnl: NOTRUN -> [SKIP][160] ([Intel XE#4837]) +3 other tests skip
[160]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-3/igt@[email protected]
* igt@xe_eudebug_online@stopped-thread:
- shard-bmg: NOTRUN -> [SKIP][161] ([Intel XE#4837]) +6 other tests skip
[161]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-4/igt@[email protected]
* igt@xe_evict@evict-small-multi-vm:
- shard-lnl: NOTRUN -> [SKIP][162] ([Intel XE#688])
[162]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-3/igt@[email protected]
* igt@xe_exec_basic@multigpu-many-execqueues-many-vm-basic-defer-bind:
- shard-dg2-set2: [PASS][163] -> [SKIP][164] ([Intel XE#1392]) +7 other tests skip
[163]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-463/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-basic-defer-bind.html
[164]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-basic-defer-bind.html
* igt@xe_exec_basic@multigpu-no-exec-bindexecqueue-userptr-rebind:
- shard-lnl: NOTRUN -> [SKIP][165] ([Intel XE#1392]) +1 other test skip
[165]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-3/igt@[email protected]
* igt@xe_exec_basic@multigpu-no-exec-null-rebind:
- shard-adlp: NOTRUN -> [SKIP][166] ([Intel XE#1392])
[166]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-1/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [SKIP][167] ([Intel XE#1392])
[167]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@[email protected]
* igt@xe_exec_basic@multigpu-once-bindexecqueue-rebind:
- shard-bmg: NOTRUN -> [SKIP][168] ([Intel XE#2322]) +4 other tests skip
[168]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-4/igt@[email protected]
* igt@xe_exec_fault_mode@many-userptr:
- shard-dg2-set2: NOTRUN -> [SKIP][169] ([Intel XE#288]) +25 other tests skip
[169]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@[email protected]
* igt@xe_exec_fault_mode@once-invalid-fault:
- shard-adlp: NOTRUN -> [SKIP][170] ([Intel XE#288]) +1 other test skip
[170]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@[email protected]
* igt@xe_exec_mix_modes@exec-simple-batch-store-lr:
- shard-dg2-set2: NOTRUN -> [SKIP][171] ([Intel XE#2360])
[171]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-464/igt@[email protected]
* igt@xe_exec_reset@parallel-gt-reset:
- shard-dg2-set2: [PASS][172] -> [DMESG-WARN][173] ([Intel XE#3876])
[172]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-434/igt@[email protected]
[173]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-464/igt@[email protected]
* igt@xe_exec_sip_eudebug@wait-writesip-nodebug:
- shard-dg2-set2: NOTRUN -> [SKIP][174] ([Intel XE#4837]) +10 other tests skip
[174]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@[email protected]
* igt@xe_exec_system_allocator@threads-many-large-execqueues-mmap-huge:
- shard-lnl: NOTRUN -> [SKIP][175] ([Intel XE#4943]) +10 other tests skip
[175]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-7/igt@xe_exec_system_allocator@threads-many-large-execqueues-mmap-huge.html
* igt@xe_exec_system_allocator@threads-many-large-mmap-mlock:
- shard-dg2-set2: NOTRUN -> [SKIP][176] ([Intel XE#4915]) +228 other tests skip
[176]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
* igt@xe_exec_system_allocator@threads-shared-vm-many-execqueues-mmap-new-huge-nomemset:
- shard-adlp: NOTRUN -> [SKIP][177] ([Intel XE#4915]) +23 other tests skip
[177]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-8/igt@xe_exec_system_allocator@threads-shared-vm-many-execqueues-mmap-new-huge-nomemset.html
* igt@xe_exec_system_allocator@threads-shared-vm-many-stride-mmap-free-huge:
- shard-bmg: NOTRUN -> [SKIP][178] ([Intel XE#4943]) +17 other tests skip
[178]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@xe_exec_system_allocator@threads-shared-vm-many-stride-mmap-free-huge.html
* igt@xe_mmap@pci-membarrier-bad-pagesize:
- shard-lnl: NOTRUN -> [SKIP][179] ([Intel XE#5100])
[179]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-6/igt@[email protected]
* igt@xe_mmap@small-bar:
- shard-dg2-set2: NOTRUN -> [SKIP][180] ([Intel XE#512])
[180]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-434/igt@[email protected]
* igt@xe_oa@whitelisted-registers-userspace-config:
- shard-dg2-set2: NOTRUN -> [SKIP][181] ([Intel XE#2541] / [Intel XE#3573]) +5 other tests skip
[181]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@[email protected]
- shard-adlp: NOTRUN -> [SKIP][182] ([Intel XE#2541] / [Intel XE#3573])
[182]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-4/igt@[email protected]
* igt@xe_pat@pat-index-xehpc:
- shard-dg2-set2: NOTRUN -> [SKIP][183] ([Intel XE#2838] / [Intel XE#979])
[183]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
* igt@xe_pm@d3cold-basic:
- shard-dg2-set2: NOTRUN -> [SKIP][184] ([Intel XE#2284] / [Intel XE#366])
[184]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
* igt@xe_pm@s3-vm-bind-unbind-all:
- shard-lnl: NOTRUN -> [SKIP][185] ([Intel XE#584]) +2 other tests skip
[185]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-7/igt@[email protected]
* igt@xe_pxp@pxp-stale-bo-bind-post-rpm:
- shard-dg2-set2: NOTRUN -> [SKIP][186] ([Intel XE#4733]) +3 other tests skip
[186]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
- shard-adlp: NOTRUN -> [SKIP][187] ([Intel XE#4733])
[187]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-1/igt@[email protected]
* igt@xe_pxp@pxp-termination-key-update-post-termination-irq:
- shard-bmg: NOTRUN -> [SKIP][188] ([Intel XE#4733]) +1 other test skip
[188]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@xe_query@multigpu-query-mem-usage:
- shard-lnl: NOTRUN -> [SKIP][189] ([Intel XE#944])
[189]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-1/igt@[email protected]
* igt@xe_render_copy@render-stress-2-copies:
- shard-dg2-set2: NOTRUN -> [SKIP][190] ([Intel XE#4814])
[190]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@[email protected]
* igt@xe_sriov_auto_provisioning@resources-released-on-vfs-disabling:
- shard-dg2-set2: NOTRUN -> [SKIP][191] ([Intel XE#4130])
[191]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@xe_sriov_auto_provisioning@resources-released-on-vfs-disabling.html
* igt@xe_sriov_scheduling@nonpreempt-engine-resets:
- shard-dg2-set2: NOTRUN -> [SKIP][192] ([Intel XE#4351])
[192]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@[email protected]
#### Possible fixes ####
* igt@intel_hwmon@hwmon-write:
- shard-bmg: [FAIL][193] ([Intel XE#4665]) -> [PASS][194]
[193]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-1/igt@[email protected]
[194]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
* igt@kms_big_fb@x-tiled-8bpp-rotate-0:
- shard-adlp: [SKIP][195] ([Intel XE#4947]) -> [PASS][196] +2 other tests pass
[195]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[196]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_big_fb@x-tiled-addfb-size-offset-overflow:
- shard-dg2-set2: [SKIP][197] ([Intel XE#2351] / [Intel XE#4208]) -> [PASS][198]
[197]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[198]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-464/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-adlp: [DMESG-FAIL][199] ([Intel XE#4543]) -> [PASS][200] +4 other tests pass
[199]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-1/igt@[email protected]
[200]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-8/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-dg2-mc-ccs@pipe-d-dp-4:
- shard-dg2-set2: [INCOMPLETE][201] ([Intel XE#3862]) -> [PASS][202] +1 other test pass
[201]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-435/igt@kms_ccs@[email protected]
[202]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@kms_ccs@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-dg2-rc-ccs@pipe-a-dp-4:
- shard-dg2-set2: [INCOMPLETE][203] ([Intel XE#3124]) -> [PASS][204]
[203]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@kms_ccs@[email protected]
[204]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@kms_ccs@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-dg2-rc-ccs@pipe-a-hdmi-a-6:
- shard-dg2-set2: [DMESG-WARN][205] ([Intel XE#1727] / [Intel XE#3113]) -> [PASS][206]
[205]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@kms_ccs@[email protected]
[206]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@kms_ccs@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size:
- shard-bmg: [SKIP][207] ([Intel XE#2291]) -> [PASS][208] +5 other tests pass
[207]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-5/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size.html
[208]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-1/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size.html
* igt@kms_dither@fb-8bpc-vs-panel-6bpc:
- shard-bmg: [SKIP][209] ([Intel XE#1340]) -> [PASS][210]
[209]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-6/igt@[email protected]
[210]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-3/igt@[email protected]
* igt@kms_dp_link_training@non-uhbr-sst:
- shard-bmg: [SKIP][211] ([Intel XE#4354]) -> [PASS][212]
[211]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-5/igt@[email protected]
[212]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-3/igt@[email protected]
* igt@kms_dp_linktrain_fallback@dp-fallback:
- shard-bmg: [SKIP][213] ([Intel XE#4294]) -> [PASS][214]
[213]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-5/igt@[email protected]
[214]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-4/igt@[email protected]
* igt@kms_flip@2x-flip-vs-dpms-on-nop:
- shard-bmg: [SKIP][215] ([Intel XE#2316]) -> [PASS][216] +6 other tests pass
[215]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-6/igt@[email protected]
[216]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@[email protected]
* igt@kms_flip@bo-too-big-interruptible@a-edp1:
- shard-lnl: [TIMEOUT][217] ([Intel XE#1504]) -> [PASS][218]
[217]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-lnl-5/igt@kms_flip@[email protected]
[218]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-6/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-dp4:
- shard-dg2-set2: [FAIL][219] ([Intel XE#301] / [Intel XE#3321]) -> [PASS][220] +2 other tests pass
[219]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@kms_flip@[email protected]
[220]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-434/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@b-hdmi-a6:
- shard-dg2-set2: [FAIL][221] ([Intel XE#301]) -> [PASS][222] +4 other tests pass
[221]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@kms_flip@[email protected]
[222]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-434/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend:
- shard-bmg: [INCOMPLETE][223] ([Intel XE#2049] / [Intel XE#2597]) -> [PASS][224] +1 other test pass
[223]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-1/igt@[email protected]
[224]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-4/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-adlp: [DMESG-WARN][225] ([Intel XE#2953] / [Intel XE#4173]) -> [PASS][226] +5 other tests pass
[225]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-1/igt@[email protected]
[226]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-8/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-32bpp-xtile-downscaling@pipe-a-valid-mode:
- shard-adlp: [DMESG-FAIL][227] ([Intel XE#4543] / [Intel XE#4921]) -> [PASS][228] +3 other tests pass
[227]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-8/igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-32bpp-xtile-downscaling@pipe-a-valid-mode.html
[228]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-32bpp-xtile-downscaling@pipe-a-valid-mode.html
* igt@kms_hdr@static-swap:
- shard-bmg: [SKIP][229] ([Intel XE#1503]) -> [PASS][230] +2 other tests pass
[229]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-6/igt@[email protected]
[230]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@[email protected]
* igt@kms_plane_cursor@overlay:
- shard-dg2-set2: [FAIL][231] ([Intel XE#616]) -> [PASS][232]
[231]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-463/igt@[email protected]
[232]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@[email protected]
* igt@kms_plane_multiple@tiling-none:
- shard-dg2-set2: [INCOMPLETE][233] -> [PASS][234] +3 other tests pass
[233]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-432/igt@[email protected]
[234]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@[email protected]
* igt@kms_plane_scaling@2x-scaler-multi-pipe:
- shard-bmg: [SKIP][235] ([Intel XE#2571]) -> [PASS][236]
[235]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-5/igt@[email protected]
[236]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-3/igt@[email protected]
* igt@kms_plane_scaling@plane-scaler-unity-scaling-with-rotation:
- shard-adlp: [SKIP][237] ([Intel XE#4950]) -> [PASS][238] +9 other tests pass
[237]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[238]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-3/igt@[email protected]
* igt@kms_pm_dc@dc5-psr:
- shard-lnl: [FAIL][239] ([Intel XE#718]) -> [PASS][240]
[239]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-lnl-8/igt@[email protected]
[240]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-6/igt@[email protected]
* igt@kms_pm_rpm@drm-resources-equal:
- shard-adlp: [SKIP][241] ([Intel XE#4962]) -> [PASS][242]
[241]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[242]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_prop_blob@invalid-set-prop-any:
- shard-dg2-set2: [SKIP][243] ([Intel XE#4208] / [i915#2575]) -> [PASS][244] +4 other tests pass
[243]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[244]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
* igt@kms_vrr@cmrr@pipe-a-edp-1:
- shard-lnl: [FAIL][245] ([Intel XE#4459]) -> [PASS][246] +1 other test pass
[245]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-lnl-2/igt@kms_vrr@[email protected]
[246]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-6/igt@kms_vrr@[email protected]
* igt@kms_vrr@max-min:
- shard-lnl: [FAIL][247] ([Intel XE#4227]) -> [PASS][248] +1 other test pass
[247]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-lnl-2/igt@[email protected]
[248]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-lnl-6/igt@[email protected]
* igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr:
- shard-dg2-set2: [SKIP][249] ([Intel XE#1392]) -> [PASS][250] +5 other tests pass
[249]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-432/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr.html
[250]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-464/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr.html
* igt@xe_exec_compute_mode@once-basic:
- shard-dg2-set2: [SKIP][251] ([Intel XE#4208]) -> [PASS][252] +5 other tests pass
[251]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[252]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
* igt@xe_exec_threads@threads-bal-rebind:
- shard-adlp: [SKIP][253] ([Intel XE#4945]) -> [PASS][254] +9 other tests pass
[253]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[254]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@xe_live_ktest@xe_dma_buf:
- shard-adlp: [FAIL][255] ([Intel XE#3099]) -> [PASS][256] +1 other test pass
[255]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@xe_live_ktest@xe_dma_buf.html
[256]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@xe_live_ktest@xe_dma_buf.html
#### Warnings ####
* igt@kms_big_fb@4-tiled-8bpp-rotate-90:
- shard-adlp: [SKIP][257] ([Intel XE#4947]) -> [SKIP][258] ([Intel XE#1124]) +1 other test skip
[257]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[258]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_big_fb@linear-16bpp-rotate-270:
- shard-dg2-set2: [SKIP][259] ([Intel XE#4208]) -> [SKIP][260] ([Intel XE#316])
[259]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[260]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-435/igt@[email protected]
- shard-adlp: [SKIP][261] ([Intel XE#4947]) -> [SKIP][262] ([Intel XE#316])
[261]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[262]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@[email protected]
* igt@kms_big_fb@y-tiled-8bpp-rotate-180:
- shard-adlp: [SKIP][263] ([Intel XE#4947]) -> [DMESG-FAIL][264] ([Intel XE#4543])
[263]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[264]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-1/igt@[email protected]
- shard-dg2-set2: [SKIP][265] ([Intel XE#4208]) -> [SKIP][266] ([Intel XE#1124])
[265]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[266]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip:
- shard-adlp: [DMESG-WARN][267] ([Intel XE#2953] / [Intel XE#4173]) -> [DMESG-FAIL][268] ([Intel XE#4543])
[267]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-6/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip.html
[268]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-3/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip.html
* igt@kms_bw@connected-linear-tiling-1-displays-3840x2160p:
- shard-adlp: [SKIP][269] ([Intel XE#4950]) -> [SKIP][270] ([Intel XE#367])
[269]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[270]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-9/igt@[email protected]
* igt@kms_ccs@ccs-on-another-bo-y-tiled-gen12-rc-ccs-cc:
- shard-adlp: [SKIP][271] ([Intel XE#4947]) -> [SKIP][272] ([Intel XE#455] / [Intel XE#787])
[271]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[272]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-dg2-rc-ccs:
- shard-dg2-set2: [INCOMPLETE][273] ([Intel XE#1727] / [Intel XE#3113] / [Intel XE#3124] / [Intel XE#4345]) -> [INCOMPLETE][274] ([Intel XE#1727] / [Intel XE#2705] / [Intel XE#3113] / [Intel XE#4212] / [Intel XE#4345] / [Intel XE#4522])
[273]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[274]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@[email protected]
* igt@kms_chamelium_color@ctm-0-25:
- shard-adlp: [SKIP][275] ([Intel XE#4950]) -> [SKIP][276] ([Intel XE#306])
[275]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[276]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_content_protection@lic-type-0:
- shard-bmg: [SKIP][277] ([Intel XE#2341]) -> [FAIL][278] ([Intel XE#1178])
[277]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-6/igt@[email protected]
[278]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-1/igt@[email protected]
* igt@kms_content_protection@uevent:
- shard-bmg: [FAIL][279] ([Intel XE#1188]) -> [SKIP][280] ([Intel XE#2341])
[279]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-1/igt@[email protected]
[280]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-adlp: [SKIP][281] ([Intel XE#4950]) -> [SKIP][282] ([Intel XE#309]) +1 other test skip
[281]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[282]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-6/igt@[email protected]
* igt@kms_fbcon_fbt@psr:
- shard-adlp: [SKIP][283] ([Intel XE#4947]) -> [SKIP][284] ([Intel XE#776])
[283]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[284]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-1/igt@[email protected]
- shard-dg2-set2: [SKIP][285] ([Intel XE#4208]) -> [SKIP][286] ([Intel XE#776])
[285]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[286]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-432/igt@[email protected]
* igt@kms_flip@2x-flip-vs-blocking-wf-vblank:
- shard-adlp: [SKIP][287] ([Intel XE#4950]) -> [SKIP][288] ([Intel XE#310])
[287]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[288]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@[email protected]
* igt@kms_flip@2x-wf_vblank-ts-check-interruptible:
- shard-bmg: [SKIP][289] ([Intel XE#2316]) -> [FAIL][290] ([Intel XE#2882])
[289]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-6/igt@kms_flip@2x-wf_vblank-ts-check-interruptible.html
[290]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-8/igt@kms_flip@2x-wf_vblank-ts-check-interruptible.html
* igt@kms_frontbuffer_tracking@drrs-1p-primscrn-spr-indfb-fullscreen:
- shard-adlp: [SKIP][291] ([Intel XE#4947]) -> [SKIP][292] ([Intel XE#651]) +1 other test skip
[291]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-spr-indfb-fullscreen.html
[292]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-4/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-spr-indfb-fullscreen.html
- shard-dg2-set2: [SKIP][293] ([Intel XE#4208]) -> [SKIP][294] ([Intel XE#651]) +1 other test skip
[293]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-spr-indfb-fullscreen.html
[294]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-indfb-draw-mmap-wc:
- shard-adlp: [SKIP][295] ([Intel XE#2351] / [Intel XE#4947]) -> [SKIP][296] ([Intel XE#656])
[295]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-indfb-draw-mmap-wc.html
[296]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-indfb-draw-mmap-wc.html
- shard-dg2-set2: [SKIP][297] ([Intel XE#2351] / [Intel XE#4208]) -> [SKIP][298] ([Intel XE#651])
[297]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-indfb-draw-mmap-wc.html
[298]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-indfb-draw-mmap-wc:
- shard-bmg: [SKIP][299] ([Intel XE#2312]) -> [SKIP][300] ([Intel XE#2311]) +24 other tests skip
[299]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-6/igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-indfb-draw-mmap-wc.html
[300]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-render:
- shard-bmg: [SKIP][301] ([Intel XE#2312]) -> [SKIP][302] ([Intel XE#4141]) +7 other tests skip
[301]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-5/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-render.html
[302]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-1/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-pgflip-blt:
- shard-adlp: [SKIP][303] ([Intel XE#4947]) -> [SKIP][304] ([Intel XE#656]) +3 other tests skip
[303]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[304]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-onoff:
- shard-bmg: [SKIP][305] ([Intel XE#4141]) -> [SKIP][306] ([Intel XE#2312]) +7 other tests skip
[305]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-3/igt@[email protected]
[306]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-cur-indfb-draw-mmap-wc:
- shard-bmg: [SKIP][307] ([Intel XE#2311]) -> [SKIP][308] ([Intel XE#2312]) +12 other tests skip
[307]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-8/igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-cur-indfb-draw-mmap-wc.html
[308]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-5/igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-cur-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcdrrs-rgb101010-draw-mmap-wc:
- shard-adlp: [SKIP][309] ([Intel XE#2351] / [Intel XE#4947]) -> [SKIP][310] ([Intel XE#651])
[309]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[310]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-indfb-plflip-blt:
- shard-adlp: [SKIP][311] ([Intel XE#4947]) -> [SKIP][312] ([Intel XE#653])
[311]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-indfb-plflip-blt.html
[312]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-indfb-plflip-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-msflip-blt:
- shard-dg2-set2: [SKIP][313] ([Intel XE#4208]) -> [SKIP][314] ([Intel XE#653])
[313]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-msflip-blt.html
[314]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-msflip-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-shrfb-plflip-blt:
- shard-bmg: [SKIP][315] ([Intel XE#2312]) -> [SKIP][316] ([Intel XE#2313]) +21 other tests skip
[315]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-6/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-shrfb-plflip-blt.html
[316]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-2/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-shrfb-plflip-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-indfb-scaledprimary:
- shard-dg2-set2: [SKIP][317] ([Intel XE#2351] / [Intel XE#4208]) -> [SKIP][318] ([Intel XE#653])
[317]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[318]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-464/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-indfb-plflip-blt:
- shard-bmg: [SKIP][319] ([Intel XE#2313]) -> [SKIP][320] ([Intel XE#2312]) +15 other tests skip
[319]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-3/igt@[email protected]
[320]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr:
- shard-dg2-set2: [SKIP][321] ([Intel XE#4208] / [i915#2575]) -> [SKIP][322] ([Intel XE#455]) +1 other test skip
[321]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[322]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-463/igt@[email protected]
* igt@kms_plane_multiple@2x-tiling-y:
- shard-bmg: [SKIP][323] ([Intel XE#4596]) -> [SKIP][324] ([Intel XE#5021])
[323]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-5/igt@[email protected]
[324]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-3/igt@[email protected]
* igt@kms_plane_multiple@2x-tiling-yf:
- shard-bmg: [SKIP][325] ([Intel XE#5021]) -> [SKIP][326] ([Intel XE#4596])
[325]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-bmg-8/igt@[email protected]
[326]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-bmg-6/igt@[email protected]
* igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-fully-sf:
- shard-adlp: [SKIP][327] ([Intel XE#4947]) -> [SKIP][328] ([Intel XE#1489])
[327]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-fully-sf.html
[328]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-8/igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-fully-sf.html
* igt@kms_vrr@flip-basic:
- shard-adlp: [SKIP][329] ([Intel XE#4950]) -> [SKIP][330] ([Intel XE#455]) +1 other test skip
[329]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[330]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-4/igt@[email protected]
* igt@xe_copy_basic@mem-set-linear-0xfffe:
- shard-dg2-set2: [SKIP][331] ([Intel XE#4208]) -> [SKIP][332] ([Intel XE#1126])
[331]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[332]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-433/igt@[email protected]
- shard-adlp: [SKIP][333] ([Intel XE#4945]) -> [SKIP][334] ([Intel XE#1126])
[333]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[334]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-4/igt@[email protected]
* igt@xe_eudebug_online@interrupt-reconnect:
- shard-adlp: [SKIP][335] ([Intel XE#4945]) -> [SKIP][336] ([Intel XE#4837])
[335]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[336]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-8/igt@[email protected]
- shard-dg2-set2: [SKIP][337] ([Intel XE#4208]) -> [SKIP][338] ([Intel XE#4837])
[337]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[338]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-464/igt@[email protected]
* igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-rebind:
- shard-adlp: [SKIP][339] ([Intel XE#4945]) -> [SKIP][340] ([Intel XE#1392])
[339]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-rebind.html
[340]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-2/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-rebind.html
* igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-imm:
- shard-adlp: [SKIP][341] ([Intel XE#4945]) -> [SKIP][342] ([Intel XE#288]) +1 other test skip
[341]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-imm.html
[342]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-8/igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-imm.html
- shard-dg2-set2: [SKIP][343] ([Intel XE#4208]) -> [SKIP][344] ([Intel XE#288])
[343]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-imm.html
[344]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-434/igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-imm.html
* igt@xe_exec_reset@cm-cat-error:
- shard-adlp: [SKIP][345] ([Intel XE#4945]) -> [DMESG-FAIL][346] ([Intel XE#3868])
[345]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[346]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-3/igt@[email protected]
* igt@xe_exec_system_allocator@many-large-mmap-remap-dontunmap-eocheck:
- shard-adlp: [SKIP][347] ([Intel XE#4945]) -> [SKIP][348] ([Intel XE#4915]) +32 other tests skip
[347]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@xe_exec_system_allocator@many-large-mmap-remap-dontunmap-eocheck.html
[348]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-3/igt@xe_exec_system_allocator@many-large-mmap-remap-dontunmap-eocheck.html
* igt@xe_exec_system_allocator@threads-many-new-race-nomemset:
- shard-dg2-set2: [SKIP][349] ([Intel XE#4208]) -> [SKIP][350] ([Intel XE#4915]) +16 other tests skip
[349]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-dg2-436/igt@[email protected]
[350]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-dg2-436/igt@[email protected]
* igt@xe_oa@invalid-create-userspace-config:
- shard-adlp: [SKIP][351] ([Intel XE#4945]) -> [SKIP][352] ([Intel XE#2541] / [Intel XE#3573])
[351]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201/shard-adlp-4/igt@[email protected]
[352]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/shard-adlp-3/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[Intel XE#1035]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1035
[Intel XE#1091]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1091
[Intel XE#1123]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1123
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1126]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1126
[Intel XE#1127]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1127
[Intel XE#1178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1178
[Intel XE#1188]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1188
[Intel XE#1340]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1340
[Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392
[Intel XE#1401]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1401
[Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
[Intel XE#1407]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1407
[Intel XE#1421]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1421
[Intel XE#1424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1424
[Intel XE#1435]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1435
[Intel XE#1439]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1439
[Intel XE#1467]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1467
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1499]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1499
[Intel XE#1503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1503
[Intel XE#1504]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1504
[Intel XE#1727]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1727
[Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729
[Intel XE#1745]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1745
[Intel XE#2049]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2049
[Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
[Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
[Intel XE#2284]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2284
[Intel XE#2291]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2291
[Intel XE#2293]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2293
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2312]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2312
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2314]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2314
[Intel XE#2316]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2316
[Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
[Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
[Intel XE#2325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2325
[Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327
[Intel XE#2328]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2328
[Intel XE#2330]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2330
[Intel XE#2341]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2341
[Intel XE#2351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2351
[Intel XE#2360]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2360
[Intel XE#2380]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2380
[Intel XE#2390]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2390
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2501]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2501
[Intel XE#2541]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2541
[Intel XE#2571]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2571
[Intel XE#2597]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2597
[Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
[Intel XE#2705]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2705
[Intel XE#2724]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2724
[Intel XE#2838]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2838
[Intel XE#2849]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2849
[Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
[Intel XE#288]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/288
[Intel XE#2882]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2882
[Intel XE#2883]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2883
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#2893]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2893
[Intel XE#2894]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2894
[Intel XE#2953]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2953
[Intel XE#3009]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3009
[Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
[Intel XE#306]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/306
[Intel XE#307]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/307
[Intel XE#308]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/308
[Intel XE#309]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/309
[Intel XE#3098]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3098
[Intel XE#3099]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3099
[Intel XE#310]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/310
[Intel XE#3113]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3113
[Intel XE#3124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3124
[Intel XE#3141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3141
[Intel XE#316]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/316
[Intel XE#323]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/323
[Intel XE#3321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3321
[Intel XE#3374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3374
[Intel XE#346]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/346
[Intel XE#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544
[Intel XE#356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/356
[Intel XE#3573]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3573
[Intel XE#362]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/362
[Intel XE#366]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/366
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/373
[Intel XE#3767]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3767
[Intel XE#3862]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3862
[Intel XE#3868]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3868
[Intel XE#3876]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3876
[Intel XE#3884]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3884
[Intel XE#4130]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4130
[Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
[Intel XE#4173]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4173
[Intel XE#4208]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4208
[Intel XE#4212]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4212
[Intel XE#4227]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4227
[Intel XE#4294]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4294
[Intel XE#4302]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4302
[Intel XE#4329]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4329
[Intel XE#4345]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4345
[Intel XE#4351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4351
[Intel XE#4354]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4354
[Intel XE#4359]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4359
[Intel XE#4417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4417
[Intel XE#4422]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4422
[Intel XE#4459]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4459
[Intel XE#4522]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4522
[Intel XE#4543]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4543
[Intel XE#455]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/455
[Intel XE#4596]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4596
[Intel XE#4608]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4608
[Intel XE#4609]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4609
[Intel XE#4665]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4665
[Intel XE#4689]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4689
[Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
[Intel XE#4814]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4814
[Intel XE#4837]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4837
[Intel XE#4915]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4915
[Intel XE#4921]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4921
[Intel XE#4943]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4943
[Intel XE#4945]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4945
[Intel XE#4947]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4947
[Intel XE#4950]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4950
[Intel XE#4962]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4962
[Intel XE#5020]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5020
[Intel XE#5021]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5021
[Intel XE#5100]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5100
[Intel XE#512]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/512
[Intel XE#5191]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5191
[Intel XE#5300]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5300
[Intel XE#5308]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5308
[Intel XE#584]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/584
[Intel XE#616]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/616
[Intel XE#619]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/619
[Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651
[Intel XE#653]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/653
[Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656
[Intel XE#688]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/688
[Intel XE#718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/718
[Intel XE#776]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/776
[Intel XE#787]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/787
[Intel XE#836]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/836
[Intel XE#870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/870
[Intel XE#886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/886
[Intel XE#908]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/908
[Intel XE#911]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/911
[Intel XE#929]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/929
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
[Intel XE#979]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/979
[i915#2575]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2575
Build changes
-------------
* IGT: IGT_8423 -> IGT_8424
* Linux: xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201 -> xe-pw-149977v3
IGT_8423: 8423
IGT_8424: 68588b3c89a1bbe08c54d21c4d3d2e509957c795 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-3297-fb5dada21e3cfa26179ca58e1d7c26cdad217201: fb5dada21e3cfa26179ca58e1d7c26cdad217201
xe-pw-149977v3: 149977v3
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-149977v3/index.html
Quoted 140 lines
-----Original Message-----
From: Levi, Ilia <[email protected]>
Sent: 24 June 2025 21:22
To: [email protected]
Cc: Levi, Ilia <[email protected]>; Elbaz, Koby <[email protected]>; Sinyuk, Konstantin <[email protected]>; Avizrat, Yaron <[email protected]>; Haimovski, Moti <[email protected]>; Freiman, Didi <[email protected]>; Upadhyay, Tejas <[email protected]>; Auld, Matthew <[email protected]>; Roper, Matthew D <[email protected]>; Brost, Matthew <[email protected]>
Subject: [PATCH v3] drm/xe: Support for mmap-ing mmio regionsAllow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace- firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: EnforceMAP_SHARED(Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead ofxe_mmioin the GEM object (MattB)Signed-off-by Ilia Levi <[email protected]>--- drivers/gpu/drm/xe/xe_device_types.h | 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 + 3 files changed, 228 insertions(+)drivers/gpu/drm/xe/xe_device_types.h +14
-0@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h> @@ -162,6 +163,19 @@ struct xe_mmio {u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio +* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { +/** @base: GEM object base */ +struct drm_gem_object base; + +/** @phys_addr: The physical address of the exposed MMIO region */ +phys_addr_t phys_addr; +}; +/** * struct xe_tile - hardware tile structure * drivers/gpu/drm/xe/xe_mmio.c +6
-0@@ -10,6 +10,7 @@#include <linux/minmax.h> #include <linux/pci.h> +#include <drm/drm_drv.h> #include <drm/drm_managed.h> #include <drm/drm_print.h> @@ -408,3 +409,212 @@ int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va { return __xe_mmio_wait32(mmio, reg, mask, val, timeout_us, out_val,atomic ,false ); } + +/** +* DOC: Exposing MMIO regions to userspace +* +* In certain cases, the driver may allow userspace to mmap a portion of the hardware registers.
+ *
+ * This can be done as follows:
+ * 1. Define anxe_mmioinstance that represents this portion.
+ * 2. Callxe_mmio_gem_create()to create a GEM object with an mmap-able fake offset.
+ * 3. Usedrm_vma_node_offset_addr()on the created GEM object to retrieve the fake offset.
+ * 4. Provide the fake offset to userspace.
+ * 5. Userspace can call mmap with the fake offset. The length provided to mmap
+ * must match the size of thexe_mmioinstance.
+ * 6. When the region is no longer needed, callxe_mmio_gem_destroy()to release the GEM object.
+ *
+ * Limitations: The exposedxe_mmiomust be page-aligned with regards to its BAR offset and size.
+ *
+ * WARNING: Exposing MMIO regions to userspace can have security and stability implications.
+ * Make sure not to expose any sensitive registers.
+ */drivers/gpu/drm/xe/xe_mmio.c +26
-0+ +static void xe_mmio_gem_free (struct drm_gem_object *);static int +xe_mmio_gem_mmap (struct drm_gem_object *,struct vm_area_struct *); +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *); + +static const struct vm_operations_struct vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, + .fault = xe_mmio_gem_vm_fault, +}; + +static const struct drm_gem_object_funcs xe_mmio_gem_funcs = { + .free = xe_mmio_gem_free, + .mmap = xe_mmio_gem_mmap, + .vm_ops = &vm_ops, +}; + +static inline struct xe_mmio_gem *to_xe_mmio_gem (struct drm_gem_object +*obj) { + return container_of(obj, struct xe_mmio_gem, base); } + +static inline phys_addr_t xe_mmio_phys_addr (struct xe_mmio *mmio) { +struct xe_device *xe =tile_to_xe (mmio->tile); + +/* +* All MMIO instances are currently on PCI BAR 0, so we can do the trick below.
drivers/gpu/drm/xe/xe_mmio.c +1
-0+* In the future we may want to store the physical address in struct
xe_mmio.drivers/gpu/drm/xe/xe_mmio.c +2
-0+*/ + return pci_resource_start(to_pci_dev(xe->drm.dev),
GTTMMADR_BAR) +
drivers/gpu/drm/xe/xe_mmio.c
Quoted 1 line
drivers/gpu/drm/xe/xe_mmio.c +1
-0+ (uintptr_t )(mmio->regs - xe->mmio.regs); }
Can you please elaborate which physical addresses mapped here!
Quoted 42 lines
drivers/gpu/drm/xe/xe_mmio.c +42
-0+ +/** +* xe_mmio_gem_create - Expose an MMIO region to userspace +* @mmio: xe_mmio instance +* @file: DRM file descriptor +* +* This function creates a GEM object with an mmap-able fake offset +that wraps +* the provided xe_mmio instance. +* +* See: "Exposing MMIO regions to userspace" +*/ +struct xe_mmio_gem * +xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file) { +struct xe_device *xe =tile_to_xe (mmio->tile); +size_t size = mmio->regs_size; +struct xe_mmio_gem *obj; +struct drm_gem_object *base; +phys_addr_t phys_addr =xe_mmio_phys_addr (mmio); +int err; + +if ((phys_addr %PAGE_SIZE !=0 ) || (size %PAGE_SIZE !=0 )) +return ERR_PTR (-EINVAL ); + + obj =kzalloc (sizeof (*obj),GFP_KERNEL ); +if (!obj) +return ERR_PTR (-ENOMEM ); + + base = &obj->base; + base->funcs = &xe_mmio_gem_funcs; + obj->phys_addr = phys_addr; + +drm_gem_private_object_init (&xe->drm, base, size); + + err =drm_gem_create_mmap_offset (base); +if (err) + goto free_gem; + + err =drm_vma_node_allow (&base->vma_node, file); +if (err) + goto free_gem; +
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 517
Quoted 10 lines
drivers/gpu/drm/xe/xe_mmio.c +10
-0+return obj; + +free_gem: +xe_mmio_gem_free (base); +return ERR_PTR (err); +} + +static void xe_mmio_gem_free (struct drm_gem_object *base) { +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +
We can release fake offset here!
Tejas
Quoted 133 lines
drivers/gpu/drm/xe/xe_mmio.c +29
-0+drm_gem_object_release (base); +kfree (obj); +} + +/** +* xe_mmio_gem_destroy - Destroy the GEM object wrapping xe_mmio +* @gem: the GEM object to destroy +* +* This function releases resources associated with the GEM object +created by +* xe_mmio_gem_create(). +* +* See: "Exposing MMIO regions to userspace" +*/ +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem) { +xe_mmio_gem_free (&gem->base); +} + +static int xe_mmio_gem_mmap (struct drm_gem_object *base,struct +vm_area_struct *vma) { +if (vma->vm_end - vma->vm_start != base->size) +return -EINVAL ; + +if ((vma->vm_flags &VM_SHARED ) ==0 ) +return -EINVAL ; + +/* Set vm_pgoff (used as a fake buffer offset by DRM) to 0 */ + vma->vm_pgoff =0 ; + vma->vm_page_prot = pgprot_noncached(vm_get_page_prot(vma-Quoted 1 line
vm_flags));drivers/gpu/drm/xe/xe_mmio.c +1
-0+ vm_flags_set(vma, VM_IO | VM_PFNMAP | VM_DONTEXPAND |
VM_DONTDUMP|drivers/gpu/drm/xe/xe_mmio.c +7
-0+ VM_DONTCOPY | VM_NORESERVE); + +/* Defer actual mapping to the fault handler. */ +return 0 ; +} + +static void xe_mmio_gem_release_dummy_page(struct drm_device *dev,void
drivers/gpu/drm/xe/xe_mmio.c +5
-0+*res) { +__free_page ((struct page *)res); +} + +static vm_fault_t xe_mmio_gem_vm_fault_dummy_page(struct
vm_area_structdrivers/gpu/drm/xe/xe_mmio.c +13
-0+*vma) { +struct drm_gem_object *base = vma->vm_private_data; +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +struct page *page; +unsigned long pfn; +unsigned long i; + + page =alloc_page (GFP_KERNEL | __GFP_ZERO); +if (!page) +return VM_FAULT_OOM ; + + if (drmm_add_action_or_reset(dev,
xe_mmio_gem_release_dummy_page, page))drivers/gpu/drm/xe/xe_mmio.c +28
-0+return VM_FAULT_OOM ; + + pfn =page_to_pfn (page); + +/* Map the entire VMA to the same dummy page */ +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; + + ret =vmf_insert_pfn (vma, addr, pfn); +if (ret &VM_FAULT_ERROR ) +break ; + } + +return ret; +} + +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *vmf) { +struct vm_area_struct *vma = vmf->vma; +struct drm_gem_object *base = vma->vm_private_data; +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +unsigned long i; +int idx; + +if (!drm_dev_enter (dev, &idx)) { +/* +* Provide a dummy page to avoid SIGBUS for events such as hot-unplug.
drivers/gpu/drm/xe/xe_mmio.c +1
-0+* This gives the userspace the option to recover instead of crashing.
drivers/gpu/drm/xe/xe_mmio.c +1
-0+* It is assumed the userspace will receive the notification via some
drivers/gpu/drm/xe/xe_mmio.c +17
-0+* other channel (e.g. drm uevent). +*/ +return xe_mmio_gem_vm_fault_dummy_page (vma); + } + +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; +unsigned long phys_addr = obj->phys_addr + i; + + ret =vmf_insert_pfn (vma, addr,PHYS_PFN (phys_addr)); +if (ret &VM_FAULT_ERROR ) +break ; + } + +drm_dev_exit (idx); +return ret; +}drivers/gpu/drm/xe/xe_mmio.h +4
-0@@ -8,6 +8,7 @@#include "xe_gt_types.h" +struct drm_file ;struct xe_device ;struct xe_reg ;@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe)return &xe->tiles[0 ].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create (struct xe_mmio *mmio,struct +drm_file *file);void xe_mmio_gem_destroy (struct xe_mmio_gem *gem); +#endif
--
2.43.0
Quoted 133 lines · Tejas
Quoted 133 lines
-----Original Message-----
From: Levi, Ilia <[email protected]>
Sent: 24 June 2025 21:22
To: [email protected]
Cc: Levi, Ilia <[email protected]>; Elbaz, Koby <[email protected]>; Sinyuk, Konstantin <[email protected]>; Avizrat, Yaron <[email protected]>; Haimovski, Moti <[email protected]>; Freiman, Didi <[email protected]>; Upadhyay, Tejas <[email protected]>; Auld, Matthew <[email protected]>; Roper, Matthew D <[email protected]>; Brost, Matthew <[email protected]>
Subject: [PATCH v3] drm/xe: Support for mmap-ing mmio regionsAllow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace- firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: EnforceMAP_SHARED(Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead ofxe_mmioin the GEM object (MattB)Signed-off-by Ilia Levi <[email protected]>--- drivers/gpu/drm/xe/xe_device_types.h | 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 + 3 files changed, 228 insertions(+)drivers/gpu/drm/xe/xe_device_types.h +14
-0@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h> @@ -162,6 +163,19 @@ struct xe_mmio {u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio +* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { +/** @base: GEM object base */ +struct drm_gem_object base; + +/** @phys_addr: The physical address of the exposed MMIO region */ +phys_addr_t phys_addr; +}; +/** * struct xe_tile - hardware tile structure * drivers/gpu/drm/xe/xe_mmio.c +6
-0@@ -10,6 +10,7 @@#include <linux/minmax.h> #include <linux/pci.h> +#include <drm/drm_drv.h> #include <drm/drm_managed.h> #include <drm/drm_print.h> @@ -408,3 +409,212 @@ int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va { return __xe_mmio_wait32(mmio, reg, mask, val, timeout_us, out_val,atomic ,false ); } + +/** +* DOC: Exposing MMIO regions to userspace +* +* In certain cases, the driver may allow userspace to mmap a portion of the hardware registers.
+ *
+ * This can be done as follows:
+ * 1. Define anxe_mmioinstance that represents this portion.
+ * 2. Callxe_mmio_gem_create()to create a GEM object with an mmap-able fake offset.
+ * 3. Usedrm_vma_node_offset_addr()on the created GEM object to retrieve the fake offset.
+ * 4. Provide the fake offset to userspace.
+ * 5. Userspace can call mmap with the fake offset. The length provided to mmap
+ * must match the size of thexe_mmioinstance.
+ * 6. When the region is no longer needed, callxe_mmio_gem_destroy()to release the GEM object.
+ *
+ * Limitations: The exposedxe_mmiomust be page-aligned with regards to its BAR offset and size.
+ *
+ * WARNING: Exposing MMIO regions to userspace can have security and stability implications.
+ * Make sure not to expose any sensitive registers.
+ */drivers/gpu/drm/xe/xe_mmio.c +26
-0+ +static void xe_mmio_gem_free (struct drm_gem_object *);static int +xe_mmio_gem_mmap (struct drm_gem_object *,struct vm_area_struct *); +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *); + +static const struct vm_operations_struct vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, + .fault = xe_mmio_gem_vm_fault, +}; + +static const struct drm_gem_object_funcs xe_mmio_gem_funcs = { + .free = xe_mmio_gem_free, + .mmap = xe_mmio_gem_mmap, + .vm_ops = &vm_ops, +}; + +static inline struct xe_mmio_gem *to_xe_mmio_gem (struct drm_gem_object +*obj) { + return container_of(obj, struct xe_mmio_gem, base); } + +static inline phys_addr_t xe_mmio_phys_addr (struct xe_mmio *mmio) { +struct xe_device *xe =tile_to_xe (mmio->tile); + +/* +* All MMIO instances are currently on PCI BAR 0, so we can do the
Quoted 8 lines
drivers/gpu/drm/xe/xe_mmio.c
Quoted 7 lines
trick below.
drivers/gpu/drm/xe/xe_mmio.c +1
-0+* In the future we may want to store the physical address in struct
xe_mmio.drivers/gpu/drm/xe/xe_mmio.c +2
-0+*/ + return pci_resource_start(to_pci_dev(xe->drm.dev),
GTTMMADR_BAR) +drivers/gpu/drm/xe/xe_mmio.c +1
-0+ (uintptr_t )(mmio->regs - xe->mmio.regs); }Can you please elaborate which physical addresses mapped here!
Could you clarify your comment? xe_mmio_gem_create receives an xe_mmio struct to map. In order to perform the map, we need to extract from xe_mmio the physical address of the start of its region and the size of the region. xe_mmio_phys_addr calculates this physical address, currently by leveraging the fact that xe->mmio.regs points to the start of the BAR. - Ilia
Quoted 55 lines
Quoted 43 lines
drivers/gpu/drm/xe/xe_mmio.c +42
-0+ +/** +* xe_mmio_gem_create - Expose an MMIO region to userspace +* @mmio: xe_mmio instance +* @file: DRM file descriptor +* +* This function creates a GEM object with an mmap-able fake offset +that wraps +* the provided xe_mmio instance. +* +* See: "Exposing MMIO regions to userspace" +*/ +struct xe_mmio_gem * +xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file) { +struct xe_device *xe =tile_to_xe (mmio->tile); +size_t size = mmio->regs_size; +struct xe_mmio_gem *obj; +struct drm_gem_object *base; +phys_addr_t phys_addr =xe_mmio_phys_addr (mmio); +int err; + +if ((phys_addr %PAGE_SIZE !=0 ) || (size %PAGE_SIZE !=0 )) +return ERR_PTR (-EINVAL ); + + obj =kzalloc (sizeof (*obj),GFP_KERNEL ); +if (!obj) +return ERR_PTR (-ENOMEM ); + + base = &obj->base; + base->funcs = &xe_mmio_gem_funcs; + obj->phys_addr = phys_addr; + +drm_gem_private_object_init (&xe->drm, base, size); + + err =drm_gem_create_mmap_offset (base); +if (err) + goto free_gem; + + err =drm_vma_node_allow (&base->vma_node, file); +if (err) + goto free_gem; +drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 517
Quoted 10 lines
drivers/gpu/drm/xe/xe_mmio.c +10
-0+return obj; + +free_gem: +xe_mmio_gem_free (base); +return ERR_PTR (err); +} + +static void xe_mmio_gem_free (struct drm_gem_object *base) { +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +We can release fake offset here!
Quoted 1 line
Tejas
drm_gem_object_release does that, see:
https://elixir.bootlin.com/linux/v6.15.5/source/drivers/gpu/drm/drm_gem.c#L983
- Ilia
Quoted 133 lines
Quoted 133 lines
drivers/gpu/drm/xe/xe_mmio.c +29
-0+drm_gem_object_release (base); +kfree (obj); +} + +/** +* xe_mmio_gem_destroy - Destroy the GEM object wrapping xe_mmio +* @gem: the GEM object to destroy +* +* This function releases resources associated with the GEM object +created by +* xe_mmio_gem_create(). +* +* See: "Exposing MMIO regions to userspace" +*/ +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem) { +xe_mmio_gem_free (&gem->base); +} + +static int xe_mmio_gem_mmap (struct drm_gem_object *base,struct +vm_area_struct *vma) { +if (vma->vm_end - vma->vm_start != base->size) +return -EINVAL ; + +if ((vma->vm_flags &VM_SHARED ) ==0 ) +return -EINVAL ; + +/* Set vm_pgoff (used as a fake buffer offset by DRM) to 0 */ + vma->vm_pgoff =0 ; + vma->vm_page_prot = pgprot_noncached(vm_get_page_prot(vma-Quoted 1 line
vm_flags));drivers/gpu/drm/xe/xe_mmio.c +1
-0+ vm_flags_set(vma, VM_IO | VM_PFNMAP | VM_DONTEXPAND |
VM_DONTDUMP|drivers/gpu/drm/xe/xe_mmio.c +7
-0+ VM_DONTCOPY | VM_NORESERVE); + +/* Defer actual mapping to the fault handler. */ +return 0 ; +} + +static void xe_mmio_gem_release_dummy_page(struct drm_device *dev,void
drivers/gpu/drm/xe/xe_mmio.c +5
-0+*res) { +__free_page ((struct page *)res); +} + +static vm_fault_t xe_mmio_gem_vm_fault_dummy_page(struct
vm_area_structdrivers/gpu/drm/xe/xe_mmio.c +13
-0+*vma) { +struct drm_gem_object *base = vma->vm_private_data; +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +struct page *page; +unsigned long pfn; +unsigned long i; + + page =alloc_page (GFP_KERNEL | __GFP_ZERO); +if (!page) +return VM_FAULT_OOM ; + + if (drmm_add_action_or_reset(dev,
xe_mmio_gem_release_dummy_page, page))drivers/gpu/drm/xe/xe_mmio.c +28
-0+return VM_FAULT_OOM ; + + pfn =page_to_pfn (page); + +/* Map the entire VMA to the same dummy page */ +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; + + ret =vmf_insert_pfn (vma, addr, pfn); +if (ret &VM_FAULT_ERROR ) +break ; + } + +return ret; +} + +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *vmf) { +struct vm_area_struct *vma = vmf->vma; +struct drm_gem_object *base = vma->vm_private_data; +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +unsigned long i; +int idx; + +if (!drm_dev_enter (dev, &idx)) { +/* +* Provide a dummy page to avoid SIGBUS for events such as hot-unplug.
drivers/gpu/drm/xe/xe_mmio.c +1
-0+* This gives the userspace the option to recover instead of crashing.
drivers/gpu/drm/xe/xe_mmio.c +1
-0+* It is assumed the userspace will receive the notification via some
drivers/gpu/drm/xe/xe_mmio.c +17
-0+* other channel (e.g. drm uevent). +*/ +return xe_mmio_gem_vm_fault_dummy_page (vma); + } + +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; +unsigned long phys_addr = obj->phys_addr + i; + + ret =vmf_insert_pfn (vma, addr,PHYS_PFN (phys_addr)); +if (ret &VM_FAULT_ERROR ) +break ; + } + +drm_dev_exit (idx); +return ret; +}drivers/gpu/drm/xe/xe_mmio.h +4
-0@@ -8,6 +8,7 @@#include "xe_gt_types.h" +struct drm_file ;struct xe_device ;struct xe_reg ;@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe)return &xe->tiles[0 ].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create (struct xe_mmio *mmio,struct +drm_file *file);void xe_mmio_gem_destroy (struct xe_mmio_gem *gem); +#endif
--
2.43.0
Upadhyay, Tejas
Reviewed-byQuoted 171 lines
-----Original Message-----
From: Levi, Ilia <[email protected]>
Sent: 08 July 2025 16:22
To: Upadhyay, Tejas <[email protected]>; intel- [email protected]
Cc: Elbaz, Koby <[email protected]>; Sinyuk, Konstantin <[email protected]>; Avizrat, Yaron <[email protected]>; Haimovski, Moti <[email protected]>; Freiman, Didi <[email protected]>; Auld, Matthew <[email protected]>; Roper, Matthew D <[email protected]>; Brost, Matthew <[email protected]>
Subject: Re: [PATCH v3] drm/xe: Support for mmap-ing mmio regionsQuoted 13 lines · Tejas
Quoted 13 lines
-----Original Message-----
From: Levi, Ilia <[email protected]>
Sent: 24 June 2025 21:22
To: [email protected]
Cc: Levi, Ilia <[email protected]>; Elbaz, Koby <[email protected]>; Sinyuk, Konstantin <[email protected]>; Avizrat, Yaron <[email protected]>; Haimovski, Moti <[email protected]>; Freiman, Didi <[email protected]>; Upadhyay, Tejas <[email protected]>; Auld, Matthew <[email protected]>; Roper, Matthew D <[email protected]>; Brost, MatthewQuoted 62 lines
Quoted 62 lines
Subject: [PATCH v3] drm/xe: Support for mmap-ing mmio regions
Allow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace- firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: EnforceMAP_SHARED(Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead ofxe_mmioin the GEM object
(MattB)Signed-off-by Ilia Levi <[email protected]>--- drivers/gpu/drm/xe/xe_device_types.h | 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 + 3 files changed, 228 insertions(+)drivers/gpu/drm/xe/xe_device_types.h +14
-0@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h> @@ -162,6 +163,19 @@ struct xe_mmio {u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio +* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { +/** @base: GEM object base */ +struct drm_gem_object base; + +/** @phys_addr: The physical address of the exposed MMIO region */ +phys_addr_t phys_addr; +}; +/** * struct xe_tile - hardware tile structure * (quoted diff) +0
-0
b/drivers/gpu/drm/xe/xe_mmio.cindex7357458bc0d2..3298ab0f1fb4100644drivers/gpu/drm/xe/xe_mmio.c +0
-0@@ -10,6 +10,7 @@#include <linux/minmax.h> #include <linux/pci.h> Quoted 5 lines
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio
Quoted 5 lines
drivers/gpu/drm/xe/xe_mmio.c +1
-0+#include <drm/drm_drv.h> #include <drm/drm_managed.h> #include <drm/drm_print.h> @@ -408,3 +409,212 @@ int xe_mmio_wait32_not(struct xe_mmio*mmio,
Quoted 30 lines
Quoted 30 lines
drivers/gpu/drm/xe/xe_mmio.c +6
-0struct xe_reg reg, u32 mask, u32 va { return __xe_mmio_wait32(mmio, reg, mask, val, timeout_us, out_val,atomic ,false ); } + +/** +* DOC: Exposing MMIO regions to userspace +* +* In certain cases, the driver may allow userspace to mmap a +portion of the hardware registers.
+ *
+ * This can be done as follows:
+ * 1. Define anxe_mmioinstance that represents this portion.
+ * 2. Callxe_mmio_gem_create()to create a GEM object with an
+ mmap-able
fake offset.
+ * 3. Usedrm_vma_node_offset_addr()on the created GEM object to retrieve the fake offset.
+ * 4. Provide the fake offset to userspace.
+ * 5. Userspace can call mmap with the fake offset. The length
+ provided to
mmap
+ * must match the size of thexe_mmioinstance.
+ * 6. When the region is no longer needed, call
+xe_mmio_gem_destroy()to
release the GEM object.
+ *
+ * Limitations: The exposedxe_mmiomust be page-aligned with
+ regards to its
BAR offset and size.Quoted 8 lines
drivers/gpu/drm/xe/xe_mmio.c
Quoted 8 lines
+ *
+ * WARNING: Exposing MMIO regions to userspace can have security and stability implications.
+ * Make sure not to expose any sensitive registers.
+ */drivers/gpu/drm/xe/xe_mmio.c +3
-0+ +static void xe_mmio_gem_free (struct drm_gem_object *);static int +xe_mmio_gem_mmap(struct drm_gem_object *, struct vm_area_struct*);
Quoted 25 lines
Quoted 25 lines
drivers/gpu/drm/xe/xe_mmio.c +24
-0+static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *); + +static const struct vm_operations_struct vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, + .fault = xe_mmio_gem_vm_fault, +}; + +static const struct drm_gem_object_funcs xe_mmio_gem_funcs = { + .free = xe_mmio_gem_free, + .mmap = xe_mmio_gem_mmap, + .vm_ops = &vm_ops, +}; + +static inline struct xe_mmio_gem *to_xe_mmio_gem (struct +drm_gem_object +*obj) { + return container_of(obj, struct xe_mmio_gem, base); } + +static inline phys_addr_t xe_mmio_phys_addr (struct xe_mmio *mmio) { +struct xe_device *xe =tile_to_xe (mmio->tile); + +/* +* All MMIO instances are currently on PCI BAR 0, so we can do the trick below.
Quoted 8 lines
drivers/gpu/drm/xe/xe_mmio.c
Quoted 7 lines
drivers/gpu/drm/xe/xe_mmio.c +2
-0+ * In the future we may want to store the physical address in +struct
xe_mmio.drivers/gpu/drm/xe/xe_mmio.c +2
-0+*/ + return pci_resource_start(to_pci_dev(xe->drm.dev),
GTTMMADR_BAR) +drivers/gpu/drm/xe/xe_mmio.c +1
-0+ (uintptr_t )(mmio->regs - xe->mmio.regs); }Can you please elaborate which physical addresses mapped here!
Quoted 6 lines
Could you clarify your comment?
xe_mmio_gem_createreceives anxe_mmiostruct to map.
In order to perform the map, we need to extract fromxe_mmiothe physical address of the start of its region and the size of the region.xe_mmio_phys_addrcalculates this physical address, currently by leveraging the fact that xe->mmio.regs points to the start of the BAR. - Ilia
Ok
Quoted 55 lines
Quoted 55 lines
Quoted 43 lines
drivers/gpu/drm/xe/xe_mmio.c +42
-0+ +/** +* xe_mmio_gem_create - Expose an MMIO region to userspace +* @mmio: xe_mmio instance +* @file: DRM file descriptor +* +* This function creates a GEM object with an mmap-able fake offset +that wraps +* the provided xe_mmio instance. +* +* See: "Exposing MMIO regions to userspace" +*/ +struct xe_mmio_gem * +xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file) { +struct xe_device *xe =tile_to_xe (mmio->tile); +size_t size = mmio->regs_size; +struct xe_mmio_gem *obj; +struct drm_gem_object *base; +phys_addr_t phys_addr =xe_mmio_phys_addr (mmio); +int err; + +if ((phys_addr %PAGE_SIZE !=0 ) || (size %PAGE_SIZE !=0 )) +return ERR_PTR (-EINVAL ); + + obj =kzalloc (sizeof (*obj),GFP_KERNEL ); +if (!obj) +return ERR_PTR (-ENOMEM ); + + base = &obj->base; + base->funcs = &xe_mmio_gem_funcs; + obj->phys_addr = phys_addr; + +drm_gem_private_object_init (&xe->drm, base, size); + + err =drm_gem_create_mmap_offset (base); +if (err) + goto free_gem; + + err =drm_vma_node_allow (&base->vma_node, file); +if (err) + goto free_gem; +drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 517
Quoted 10 lines
drivers/gpu/drm/xe/xe_mmio.c +10
-0+return obj; + +free_gem: +xe_mmio_gem_free (base); +return ERR_PTR (err); +} + +static void xe_mmio_gem_free (struct drm_gem_object *base) { +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +We can release fake offset here!
Quoted 6 lines
Quoted 1 line
Tejas
drm_gem_object_releasedoes that, see:
https://elixir.bootlin.com/linux/v6.15.5/source/drivers/gpu/drm/drm_gem.c
#L983
Yes.
The change overall looks good to me :
Quoted 139 lines
- Ilia
Quoted 123 lines
Quoted 123 lines
drivers/gpu/drm/xe/xe_mmio.c +29
-0+drm_gem_object_release (base); +kfree (obj); +} + +/** +* xe_mmio_gem_destroy - Destroy the GEM object wrapping xe_mmio +* @gem: the GEM object to destroy +* +* This function releases resources associated with the GEM object +created by +* xe_mmio_gem_create(). +* +* See: "Exposing MMIO regions to userspace" +*/ +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem) { +xe_mmio_gem_free (&gem->base); +} + +static int xe_mmio_gem_mmap (struct drm_gem_object *base,struct +vm_area_struct *vma) { +if (vma->vm_end - vma->vm_start != base->size) +return -EINVAL ; + +if ((vma->vm_flags &VM_SHARED ) ==0 ) +return -EINVAL ; + +/* Set vm_pgoff (used as a fake buffer offset by DRM) to 0 */ + vma->vm_pgoff =0 ; + vma->vm_page_prot = pgprot_noncached(vm_get_page_prot(vma-Quoted 1 line
vm_flags));drivers/gpu/drm/xe/xe_mmio.c +1
-0+ vm_flags_set(vma, VM_IO | VM_PFNMAP | VM_DONTEXPAND |
VM_DONTDUMP|drivers/gpu/drm/xe/xe_mmio.c +7
-0+ VM_DONTCOPY | VM_NORESERVE); + +/* Defer actual mapping to the fault handler. */ +return 0 ; +} + +static void xe_mmio_gem_release_dummy_page(struct drm_device *dev,void
drivers/gpu/drm/xe/xe_mmio.c +5
-0+*res) { +__free_page ((struct page *)res); +} + +static vm_fault_t xe_mmio_gem_vm_fault_dummy_page(struct
vm_area_structdrivers/gpu/drm/xe/xe_mmio.c +13
-0+*vma) { +struct drm_gem_object *base = vma->vm_private_data; +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +struct page *page; +unsigned long pfn; +unsigned long i; + + page =alloc_page (GFP_KERNEL | __GFP_ZERO); +if (!page) +return VM_FAULT_OOM ; + + if (drmm_add_action_or_reset(dev,
xe_mmio_gem_release_dummy_page, page))drivers/gpu/drm/xe/xe_mmio.c +28
-0+return VM_FAULT_OOM ; + + pfn =page_to_pfn (page); + +/* Map the entire VMA to the same dummy page */ +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; + + ret =vmf_insert_pfn (vma, addr, pfn); +if (ret &VM_FAULT_ERROR ) +break ; + } + +return ret; +} + +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *vmf) { +struct vm_area_struct *vma = vmf->vma; +struct drm_gem_object *base = vma->vm_private_data; +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +unsigned long i; +int idx; + +if (!drm_dev_enter (dev, &idx)) { +/* +* Provide a dummy page to avoid SIGBUS for events such as hot-unplug.
drivers/gpu/drm/xe/xe_mmio.c +1
-0+* This gives the userspace the option to recover instead of crashing.
drivers/gpu/drm/xe/xe_mmio.c +1
-0+* It is assumed the userspace will receive the notification via some
drivers/gpu/drm/xe/xe_mmio.c +17
-0+* other channel (e.g. drm uevent). +*/ +return xe_mmio_gem_vm_fault_dummy_page (vma); + } + +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; +unsigned long phys_addr = obj->phys_addr + i; + + ret =vmf_insert_pfn (vma, addr,PHYS_PFN (phys_addr)); +if (ret &VM_FAULT_ERROR ) +break ; + } + +drm_dev_exit (idx); +return ret; +}(quoted diff) +0
-0
b/drivers/gpu/drm/xe/xe_mmio.hindexc151ba569003..2990bbcef24d100644drivers/gpu/drm/xe/xe_mmio.h +1
-0@@ -8,6 +8,7 @@#include "xe_gt_types.h" +struct drm_file ;struct xe_device ;struct xe_reg ;Quoted 6 lines
drivers/gpu/drm/xe/xe_mmio.h static inline struct xe_mmio · line 47
Quoted 6 lines
drivers/gpu/drm/xe/xe_mmio.h +1
-0@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) return &xe->tiles[0].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create(struct xe_mmio *mmio,struct
Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/xe/xe_mmio.h +2
-0+drm_file *file); void xe_mmio_gem_destroy(struct xe_mmio_gem *gem); +#endif
--
2.43.0
Matthew Brost
maintainerQuoted 34 lines · Ilia Levi
Allow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace-firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: EnforceMAP_SHARED(Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead ofxe_mmioin the GEM object (MattB)Signed-off-by Ilia Levi <[email protected]>--- drivers/gpu/drm/xe/xe_device_types.h | 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 + 3 files changed, 228 insertions(+)drivers/gpu/drm/xe/xe_device_types.h +3
-0@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h> @@ -162,6 +163,19 @@ struct xe_mmio {u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio
drivers/gpu/drm/xe/xe_device_types.h struct xe_mmio { · line 177
Quoted 10 lines
drivers/gpu/drm/xe/xe_device_types.h +10
-0+* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { +/** @base: GEM object base */ +struct drm_gem_object base; + +/** @phys_addr: The physical address of the exposed MMIO region */ +phys_addr_t phys_addr; +};
You can make this structure private to xe_mmio.c. For example, xe_migrate.c does this with struct xe_migrate. Maarten also has a series
[1] doing this for xe_ggtt. I have series doing this extensively for struct xe_dep_scheduler [2] and xe_gt_tlb_inval_job [3].
We should apply this practice to several existing structures in the driver as well, but going forward, let's practice making new structs private where possible to maintain proper layering.
[1] https://patchwork.freedesktop.org/series/139778/
[2] https://patchwork.freedesktop.org/patch/662188/?series=150402&rev=2
[3] https://patchwork.freedesktop.org/patch/662190/?series=150402&rev=2
Quoted 34 lines
drivers/gpu/drm/xe/xe_device_types.h +1
-0+/** * struct xe_tile - hardware tile structure * drivers/gpu/drm/xe/xe_mmio.c +15
-0@@ -10,6 +10,7 @@#include <linux/minmax.h> #include <linux/pci.h> +#include <drm/drm_drv.h> #include <drm/drm_managed.h> #include <drm/drm_print.h> @@ -408,3 +409,212 @@ int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va {return __xe_mmio_wait32 (mmio, reg, mask, val, timeout_us, out_val, atomic, false); } + +/** +* DOC: Exposing MMIO regions to userspace +* +* In certain cases, the driver may allow userspace to mmap a portion of the hardware registers. +* +* This can be done as follows: +* 1. Define an xe_mmio instance that represents this portion. +* 2. Call xe_mmio_gem_create() to create a GEM object with an mmap-able fake offset. +* 3. Use drm_vma_node_offset_addr() on the created GEM object to retrieve the fake offset. +* 4. Provide the fake offset to userspace. +* 5. Userspace can call mmap with the fake offset. The length provided to mmap +* must match the size of the xe_mmio instance. +* 6. When the region is no longer needed, call xe_mmio_gem_destroy() to release the GEM object.
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 435
Quoted 10 lines
drivers/gpu/drm/xe/xe_mmio.c +10
-0+* +* Limitations: The exposed xe_mmio must be page-aligned with regards to its BAR offset and size. +* +* WARNING: Exposing MMIO regions to userspace can have security and stability implications. +* Make sure not to expose any sensitive registers. +*/ + +static void xe_mmio_gem_free (struct drm_gem_object *); +static int xe_mmio_gem_mmap (struct drm_gem_object *,struct vm_area_struct *); +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *);
Should xe_mmio_gem implementation be its own files? I think that would be better.
Quoted 38 lines
drivers/gpu/drm/xe/xe_mmio.c +38
-0+ +static const struct vm_operations_struct vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, + .fault = xe_mmio_gem_vm_fault, +}; + +static const struct drm_gem_object_funcs xe_mmio_gem_funcs = { + .free = xe_mmio_gem_free, + .mmap = xe_mmio_gem_mmap, + .vm_ops = &vm_ops, +}; + +static inline struct xe_mmio_gem *to_xe_mmio_gem (struct drm_gem_object *obj) +{ + return container_of(obj, struct xe_mmio_gem, base); +} + +static inline phys_addr_t xe_mmio_phys_addr (struct xe_mmio *mmio) +{ +struct xe_device *xe =tile_to_xe (mmio->tile); + +/* +* All MMIO instances are currently on PCI BAR 0, so we can do the trick below. +* In the future we may want to store the physical address in struct xe_mmio. +*/ +return pci_resource_start (to_pci_dev (xe->drm.dev),GTTMMADR_BAR ) + + (uintptr_t )(mmio->regs - xe->mmio.regs); +} + +/** +* xe_mmio_gem_create - Expose an MMIO region to userspace +* @mmio: xe_mmio instance +* @file: DRM file descriptor +* +* This function creates a GEM object with an mmap-able fake offset that wraps +* the provided xe_mmio instance. +*
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 483
Quoted 10 lines
drivers/gpu/drm/xe/xe_mmio.c +10
-0+* See: "Exposing MMIO regions to userspace" +*/ +struct xe_mmio_gem * +xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file) +{ +struct xe_device *xe =tile_to_xe (mmio->tile); +size_t size = mmio->regs_size; +struct xe_mmio_gem *obj; +struct drm_gem_object *base; +phys_addr_t phys_addr =xe_mmio_phys_addr (mmio);
Can we just pass in struct xe_device *xe, size_t size, and phys_addr_t phys_addr rather than xe_mmio? That would seem better than defining a xe_mmio on the stack and passing this in.
Quoted 142 lines
drivers/gpu/drm/xe/xe_mmio.c +137
-0+int err; + +if ((phys_addr %PAGE_SIZE !=0 ) || (size %PAGE_SIZE !=0 )) +return ERR_PTR (-EINVAL ); + + obj =kzalloc (sizeof (*obj),GFP_KERNEL ); +if (!obj) +return ERR_PTR (-ENOMEM ); + + base = &obj->base; + base->funcs = &xe_mmio_gem_funcs; + obj->phys_addr = phys_addr; + +drm_gem_private_object_init (&xe->drm, base, size); + + err =drm_gem_create_mmap_offset (base); +if (err) + goto free_gem; + + err =drm_vma_node_allow (&base->vma_node, file); +if (err) + goto free_gem; + +return obj; + +free_gem: +xe_mmio_gem_free (base); +return ERR_PTR (err); +} + +static void xe_mmio_gem_free (struct drm_gem_object *base) +{ +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); + +drm_gem_object_release (base); +kfree (obj); +} + +/** +* xe_mmio_gem_destroy - Destroy the GEM object wrapping xe_mmio +* @gem: the GEM object to destroy +* +* This function releases resources associated with the GEM object created by +* xe_mmio_gem_create(). +* +* See: "Exposing MMIO regions to userspace" +*/ +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem) +{ +xe_mmio_gem_free (&gem->base); +} + +static int xe_mmio_gem_mmap (struct drm_gem_object *base,struct vm_area_struct *vma) +{ +if (vma->vm_end - vma->vm_start != base->size) +return -EINVAL ; + +if ((vma->vm_flags &VM_SHARED ) ==0 ) +return -EINVAL ; + +/* Set vm_pgoff (used as a fake buffer offset by DRM) to 0 */ + vma->vm_pgoff =0 ; + vma->vm_page_prot =pgprot_noncached (vm_get_page_prot (vma->vm_flags)); +vm_flags_set (vma,VM_IO |VM_PFNMAP |VM_DONTEXPAND |VM_DONTDUMP | +VM_DONTCOPY |VM_NORESERVE ); + +/* Defer actual mapping to the fault handler. */ +return 0 ; +} + +static void xe_mmio_gem_release_dummy_page (struct drm_device *dev,void *res) +{ +__free_page ((struct page *)res); +} + +static vm_fault_t xe_mmio_gem_vm_fault_dummy_page (struct vm_area_struct *vma) +{ +struct drm_gem_object *base = vma->vm_private_data; +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +struct page *page; +unsigned long pfn; +unsigned long i; + + page =alloc_page (GFP_KERNEL | __GFP_ZERO); +if (!page) +return VM_FAULT_OOM ; + +if (drmm_add_action_or_reset (dev, xe_mmio_gem_release_dummy_page, page)) +return VM_FAULT_OOM ; + + pfn =page_to_pfn (page); + +/* Map the entire VMA to the same dummy page */ +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; + + ret =vmf_insert_pfn (vma, addr, pfn); +if (ret &VM_FAULT_ERROR ) +break ; + } + +return ret; +} + +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *vmf) +{ +struct vm_area_struct *vma = vmf->vma; +struct drm_gem_object *base = vma->vm_private_data; +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +unsigned long i; +int idx; + +if (!drm_dev_enter (dev, &idx)) { +/* +* Provide a dummy page to avoid SIGBUS for events such as hot-unplug. +* This gives the userspace the option to recover instead of crashing. +* It is assumed the userspace will receive the notification via some +* other channel (e.g. drm uevent). +*/ +return xe_mmio_gem_vm_fault_dummy_page (vma); + } + +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; +unsigned long phys_addr = obj->phys_addr + i; + + ret =vmf_insert_pfn (vma, addr,PHYS_PFN (phys_addr)); +if (ret &VM_FAULT_ERROR ) +break ; + } + +drm_dev_exit (idx); +return ret; +}drivers/gpu/drm/xe/xe_mmio.h +0
-0
drivers/gpu/drm/xe/xe_mmio.h line 11
Quoted 4 lines
drivers/gpu/drm/xe/xe_mmio.h +1
-0@@ -8,6 +8,7 @@#include "xe_gt_types.h" +struct drm_file ;
With a private struct xe_mmio_gem, you'd need:
struct xe_mmio_gem;
Matt
Quoted 14 lines
drivers/gpu/drm/xe/xe_mmio.h +3
-0struct xe_device ;struct xe_reg ;@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) return &xe->tiles[0].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file); +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem); +#endif Signature · 1 line
2.43.0
Quoted 50 lines · Matthew Brost
Quoted 34 lines · Ilia Levi
Allow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace-firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: EnforceMAP_SHARED(Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead ofxe_mmioin the GEM object (MattB)Signed-off-by Ilia Levi <[email protected]>--- drivers/gpu/drm/xe/xe_device_types.h | 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 + 3 files changed, 228 insertions(+)drivers/gpu/drm/xe/xe_device_types.h +3
-0@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h> @@ -162,6 +163,19 @@ struct xe_mmio {u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio drivers/gpu/drm/xe/xe_device_types.h struct xe_mmio { · line 177
Quoted 10 lines
drivers/gpu/drm/xe/xe_device_types.h +10
-0+* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { +/** @base: GEM object base */ +struct drm_gem_object base; + +/** @phys_addr: The physical address of the exposed MMIO region */ +phys_addr_t phys_addr; +};You can make this structure private to
xe_mmio.c. For example,xe_migrate.cdoes this with structxe_migrate. Maarten also has a series
[1] doing this forxe_ggtt. I have series doing this extensively for structxe_dep_scheduler[2] andxe_gt_tlb_inval_job[3].
Quoted 7 lines
We should apply this practice to several existing structures in the driver as well, but going forward, let's practice making new structs private where possible to maintain proper layering.
[1] https://patchwork.freedesktop.org/series/139778/
[2] https://patchwork.freedesktop.org/patch/662188/?series=150402&rev=2
[3] https://patchwork.freedesktop.org/patch/662190/?series=150402&rev=2
Makes sense to me, thank you for pointing this out and providing examples. This means that one more function would be needed for extracting the mmap offset, say:
u64 xe_mmio_gem_mmap_offset(struct xe_mmio_gem *gem);
But that's a reasonable price for code encapsulation.
- Ilia
Quoted 38 lines
Quoted 38 lines
drivers/gpu/drm/xe/xe_device_types.h +1
-0+/** * struct xe_tile - hardware tile structure * drivers/gpu/drm/xe/xe_mmio.c +19
-0@@ -10,6 +10,7 @@#include <linux/minmax.h> #include <linux/pci.h> +#include <drm/drm_drv.h> #include <drm/drm_managed.h> #include <drm/drm_print.h> @@ -408,3 +409,212 @@ int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va {return __xe_mmio_wait32 (mmio, reg, mask, val, timeout_us, out_val, atomic, false); } + +/** +* DOC: Exposing MMIO regions to userspace +* +* In certain cases, the driver may allow userspace to mmap a portion of the hardware registers. +* +* This can be done as follows: +* 1. Define an xe_mmio instance that represents this portion. +* 2. Call xe_mmio_gem_create() to create a GEM object with an mmap-able fake offset. +* 3. Use drm_vma_node_offset_addr() on the created GEM object to retrieve the fake offset. +* 4. Provide the fake offset to userspace. +* 5. Userspace can call mmap with the fake offset. The length provided to mmap +* must match the size of the xe_mmio instance. +* 6. When the region is no longer needed, call xe_mmio_gem_destroy() to release the GEM object. +* +* Limitations: The exposed xe_mmio must be page-aligned with regards to its BAR offset and size. +* +* WARNING: Exposing MMIO regions to userspace can have security and stability implications.
Quoted 8 lines
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 435
Quoted 6 lines
drivers/gpu/drm/xe/xe_mmio.c +6
-0+* Make sure not to expose any sensitive registers. +*/ + +static void xe_mmio_gem_free (struct drm_gem_object *); +static int xe_mmio_gem_mmap (struct drm_gem_object *,struct vm_area_struct *); +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *);Should
xe_mmio_gemimplementation be its own files? I think that would be better.
Agreed. It started small, but got big enough to merit its own .h and .c.
- Ilia
Quoted 44 lines
Quoted 44 lines
drivers/gpu/drm/xe/xe_mmio.c +43
-0+ +static const struct vm_operations_struct vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, + .fault = xe_mmio_gem_vm_fault, +}; + +static const struct drm_gem_object_funcs xe_mmio_gem_funcs = { + .free = xe_mmio_gem_free, + .mmap = xe_mmio_gem_mmap, + .vm_ops = &vm_ops, +}; + +static inline struct xe_mmio_gem *to_xe_mmio_gem (struct drm_gem_object *obj) +{ + return container_of(obj, struct xe_mmio_gem, base); +} + +static inline phys_addr_t xe_mmio_phys_addr (struct xe_mmio *mmio) +{ +struct xe_device *xe =tile_to_xe (mmio->tile); + +/* +* All MMIO instances are currently on PCI BAR 0, so we can do the trick below. +* In the future we may want to store the physical address in struct xe_mmio. +*/ +return pci_resource_start (to_pci_dev (xe->drm.dev),GTTMMADR_BAR ) + + (uintptr_t )(mmio->regs - xe->mmio.regs); +} + +/** +* xe_mmio_gem_create - Expose an MMIO region to userspace +* @mmio: xe_mmio instance +* @file: DRM file descriptor +* +* This function creates a GEM object with an mmap-able fake offset that wraps +* the provided xe_mmio instance. +* +* See: "Exposing MMIO regions to userspace" +*/ +struct xe_mmio_gem * +xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file) +{
Quoted 8 lines
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 483
Quoted 5 lines
drivers/gpu/drm/xe/xe_mmio.c +5
-0+struct xe_device *xe =tile_to_xe (mmio->tile); +size_t size = mmio->regs_size; +struct xe_mmio_gem *obj; +struct drm_gem_object *base; +phys_addr_t phys_addr =xe_mmio_phys_addr (mmio);Can we just pass in struct
xe_device*xe,size_tsize, andphys_addr_tphys_addrrather thanxe_mmio? That would seem better than defining axe_mmioon the stack and passing this in.
Hmm, calculating the physical address is not trivial, that's why I've added xe_mmio_phys_addr helper in this patch that accepts an xe_mmio. With your proposed API, some other method of figuring out the conversion from PCI offset to physical address will be required. A helper function or maybe storing pci_resource_start(to_pci_dev(xe->drm.dev), GTTMMADR_BAR) in xe->mmio.
Anyway, I do see your point - while I was thinking of xe_mmio_gem as wrapping an xe_mmio instance, it does not have to be this way and can be decoupled.
- Ilia
Quoted 143 lines
Quoted 143 lines
drivers/gpu/drm/xe/xe_mmio.c +137
-0+int err; + +if ((phys_addr %PAGE_SIZE !=0 ) || (size %PAGE_SIZE !=0 )) +return ERR_PTR (-EINVAL ); + + obj =kzalloc (sizeof (*obj),GFP_KERNEL ); +if (!obj) +return ERR_PTR (-ENOMEM ); + + base = &obj->base; + base->funcs = &xe_mmio_gem_funcs; + obj->phys_addr = phys_addr; + +drm_gem_private_object_init (&xe->drm, base, size); + + err =drm_gem_create_mmap_offset (base); +if (err) + goto free_gem; + + err =drm_vma_node_allow (&base->vma_node, file); +if (err) + goto free_gem; + +return obj; + +free_gem: +xe_mmio_gem_free (base); +return ERR_PTR (err); +} + +static void xe_mmio_gem_free (struct drm_gem_object *base) +{ +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); + +drm_gem_object_release (base); +kfree (obj); +} + +/** +* xe_mmio_gem_destroy - Destroy the GEM object wrapping xe_mmio +* @gem: the GEM object to destroy +* +* This function releases resources associated with the GEM object created by +* xe_mmio_gem_create(). +* +* See: "Exposing MMIO regions to userspace" +*/ +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem) +{ +xe_mmio_gem_free (&gem->base); +} + +static int xe_mmio_gem_mmap (struct drm_gem_object *base,struct vm_area_struct *vma) +{ +if (vma->vm_end - vma->vm_start != base->size) +return -EINVAL ; + +if ((vma->vm_flags &VM_SHARED ) ==0 ) +return -EINVAL ; + +/* Set vm_pgoff (used as a fake buffer offset by DRM) to 0 */ + vma->vm_pgoff =0 ; + vma->vm_page_prot =pgprot_noncached (vm_get_page_prot (vma->vm_flags)); +vm_flags_set (vma,VM_IO |VM_PFNMAP |VM_DONTEXPAND |VM_DONTDUMP | +VM_DONTCOPY |VM_NORESERVE ); + +/* Defer actual mapping to the fault handler. */ +return 0 ; +} + +static void xe_mmio_gem_release_dummy_page (struct drm_device *dev,void *res) +{ +__free_page ((struct page *)res); +} + +static vm_fault_t xe_mmio_gem_vm_fault_dummy_page (struct vm_area_struct *vma) +{ +struct drm_gem_object *base = vma->vm_private_data; +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +struct page *page; +unsigned long pfn; +unsigned long i; + + page =alloc_page (GFP_KERNEL | __GFP_ZERO); +if (!page) +return VM_FAULT_OOM ; + +if (drmm_add_action_or_reset (dev, xe_mmio_gem_release_dummy_page, page)) +return VM_FAULT_OOM ; + + pfn =page_to_pfn (page); + +/* Map the entire VMA to the same dummy page */ +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; + + ret =vmf_insert_pfn (vma, addr, pfn); +if (ret &VM_FAULT_ERROR ) +break ; + } + +return ret; +} + +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *vmf) +{ +struct vm_area_struct *vma = vmf->vma; +struct drm_gem_object *base = vma->vm_private_data; +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +unsigned long i; +int idx; + +if (!drm_dev_enter (dev, &idx)) { +/* +* Provide a dummy page to avoid SIGBUS for events such as hot-unplug. +* This gives the userspace the option to recover instead of crashing. +* It is assumed the userspace will receive the notification via some +* other channel (e.g. drm uevent). +*/ +return xe_mmio_gem_vm_fault_dummy_page (vma); + } + +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; +unsigned long phys_addr = obj->phys_addr + i; + + ret =vmf_insert_pfn (vma, addr,PHYS_PFN (phys_addr)); +if (ret &VM_FAULT_ERROR ) +break ; + } + +drm_dev_exit (idx); +return ret; +}drivers/gpu/drm/xe/xe_mmio.h +0
-0@@ -8,6 +8,7 @@
Quoted 8 lines
drivers/gpu/drm/xe/xe_mmio.h line 11
Quoted 3 lines
drivers/gpu/drm/xe/xe_mmio.h +1
-0#include "xe_gt_types.h" +struct drm_file ;With a private struct
xe_mmio_gem, you'd need:struct
xe_mmio_gem;Matt
I'll move it to a separate file as you suggested, so no need for it here.
- Ilia
Quoted 15 lines
Quoted 15 lines
drivers/gpu/drm/xe/xe_mmio.h +3
-0struct xe_device ;struct xe_reg ;@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) return &xe->tiles[0].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file); +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem); +#endif Signature · 1 line
2.43.0
Quoted 73 lines · Ilia Levi
Allow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace-firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: EnforceMAP_SHARED(Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead ofxe_mmioin the GEM object (MattB)Signed-off-by Ilia Levi <[email protected]>---
drivers/gpu/drm/xe/xe_device_types.h | 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 + 3 files changed, 228 insertions(+)drivers/gpu/drm/xe/xe_device_types.h +14
-0@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h> @@ -162,6 +163,19 @@ struct xe_mmio {u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio +* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { +/** @base: GEM object base */ +struct drm_gem_object base; + +/** @phys_addr: The physical address of the exposed MMIO region */ +phys_addr_t phys_addr; +}; +/** * struct xe_tile - hardware tile structure * drivers/gpu/drm/xe/xe_mmio.c +10
-0@@ -10,6 +10,7 @@#include <linux/minmax.h> #include <linux/pci.h> +#include <drm/drm_drv.h> #include <drm/drm_managed.h> #include <drm/drm_print.h> @@ -408,3 +409,212 @@ int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va {return __xe_mmio_wait32 (mmio, reg, mask, val, timeout_us, out_val, atomic, false); } + +/** +* DOC: Exposing MMIO regions to userspace +* +* In certain cases, the driver may allow userspace to mmap a portion of the hardware registers. +* +* This can be done as follows: +* 1. Define an xe_mmio instance that represents this portion. +* 2. Call xe_mmio_gem_create() to create a GEM object with an mmap-able fake offset.
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 430
Quoted 10 lines
drivers/gpu/drm/xe/xe_mmio.c +10
-0+* 3. Use drm_vma_node_offset_addr() on the created GEM object to retrieve the fake offset. +* 4. Provide the fake offset to userspace. +* 5. Userspace can call mmap with the fake offset. The length provided to mmap +* must match the size of the xe_mmio instance. +* 6. When the region is no longer needed, call xe_mmio_gem_destroy() to release the GEM object. +* +* Limitations: The exposed xe_mmio must be page-aligned with regards to its BAR offset and size. +* +* WARNING: Exposing MMIO regions to userspace can have security and stability implications. +* Make sure not to expose any sensitive registers.
what exactly in this patch is preventing that?
how is that any better than simply mmap the BAR already exposed in sysfs?
Lucas De Marchi
Quoted 213 lines
drivers/gpu/drm/xe/xe_mmio.c +190
-0+*/ + +static void xe_mmio_gem_free (struct drm_gem_object *); +static int xe_mmio_gem_mmap (struct drm_gem_object *,struct vm_area_struct *); +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *); + +static const struct vm_operations_struct vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, + .fault = xe_mmio_gem_vm_fault, +}; + +static const struct drm_gem_object_funcs xe_mmio_gem_funcs = { + .free = xe_mmio_gem_free, + .mmap = xe_mmio_gem_mmap, + .vm_ops = &vm_ops, +}; + +static inline struct xe_mmio_gem *to_xe_mmio_gem (struct drm_gem_object *obj) +{ + return container_of(obj, struct xe_mmio_gem, base); +} + +static inline phys_addr_t xe_mmio_phys_addr (struct xe_mmio *mmio) +{ +struct xe_device *xe =tile_to_xe (mmio->tile); + +/* +* All MMIO instances are currently on PCI BAR 0, so we can do the trick below. +* In the future we may want to store the physical address in struct xe_mmio. +*/ +return pci_resource_start (to_pci_dev (xe->drm.dev),GTTMMADR_BAR ) + + (uintptr_t )(mmio->regs - xe->mmio.regs); +} + +/** +* xe_mmio_gem_create - Expose an MMIO region to userspace +* @mmio: xe_mmio instance +* @file: DRM file descriptor +* +* This function creates a GEM object with an mmap-able fake offset that wraps +* the provided xe_mmio instance. +* +* See: "Exposing MMIO regions to userspace" +*/ +struct xe_mmio_gem * +xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file) +{ +struct xe_device *xe =tile_to_xe (mmio->tile); +size_t size = mmio->regs_size; +struct xe_mmio_gem *obj; +struct drm_gem_object *base; +phys_addr_t phys_addr =xe_mmio_phys_addr (mmio); +int err; + +if ((phys_addr %PAGE_SIZE !=0 ) || (size %PAGE_SIZE !=0 )) +return ERR_PTR (-EINVAL ); + + obj =kzalloc (sizeof (*obj),GFP_KERNEL ); +if (!obj) +return ERR_PTR (-ENOMEM ); + + base = &obj->base; + base->funcs = &xe_mmio_gem_funcs; + obj->phys_addr = phys_addr; + +drm_gem_private_object_init (&xe->drm, base, size); + + err =drm_gem_create_mmap_offset (base); +if (err) + goto free_gem; + + err =drm_vma_node_allow (&base->vma_node, file); +if (err) + goto free_gem; + +return obj; + +free_gem: +xe_mmio_gem_free (base); +return ERR_PTR (err); +} + +static void xe_mmio_gem_free (struct drm_gem_object *base) +{ +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); + +drm_gem_object_release (base); +kfree (obj); +} + +/** +* xe_mmio_gem_destroy - Destroy the GEM object wrapping xe_mmio +* @gem: the GEM object to destroy +* +* This function releases resources associated with the GEM object created by +* xe_mmio_gem_create(). +* +* See: "Exposing MMIO regions to userspace" +*/ +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem) +{ +xe_mmio_gem_free (&gem->base); +} + +static int xe_mmio_gem_mmap (struct drm_gem_object *base,struct vm_area_struct *vma) +{ +if (vma->vm_end - vma->vm_start != base->size) +return -EINVAL ; + +if ((vma->vm_flags &VM_SHARED ) ==0 ) +return -EINVAL ; + +/* Set vm_pgoff (used as a fake buffer offset by DRM) to 0 */ + vma->vm_pgoff =0 ; + vma->vm_page_prot =pgprot_noncached (vm_get_page_prot (vma->vm_flags)); +vm_flags_set (vma,VM_IO |VM_PFNMAP |VM_DONTEXPAND |VM_DONTDUMP | +VM_DONTCOPY |VM_NORESERVE ); + +/* Defer actual mapping to the fault handler. */ +return 0 ; +} + +static void xe_mmio_gem_release_dummy_page (struct drm_device *dev,void *res) +{ +__free_page ((struct page *)res); +} + +static vm_fault_t xe_mmio_gem_vm_fault_dummy_page (struct vm_area_struct *vma) +{ +struct drm_gem_object *base = vma->vm_private_data; +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +struct page *page; +unsigned long pfn; +unsigned long i; + + page =alloc_page (GFP_KERNEL | __GFP_ZERO); +if (!page) +return VM_FAULT_OOM ; + +if (drmm_add_action_or_reset (dev, xe_mmio_gem_release_dummy_page, page)) +return VM_FAULT_OOM ; + + pfn =page_to_pfn (page); + +/* Map the entire VMA to the same dummy page */ +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; + + ret =vmf_insert_pfn (vma, addr, pfn); +if (ret &VM_FAULT_ERROR ) +break ; + } + +return ret; +} + +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *vmf) +{ +struct vm_area_struct *vma = vmf->vma; +struct drm_gem_object *base = vma->vm_private_data; +struct xe_mmio_gem *obj =to_xe_mmio_gem (base); +struct drm_device *dev = base->dev; +vm_fault_t ret =VM_FAULT_NOPAGE ; +unsigned long i; +int idx; + +if (!drm_dev_enter (dev, &idx)) { +/* +* Provide a dummy page to avoid SIGBUS for events such as hot-unplug. +* This gives the userspace the option to recover instead of crashing. +* It is assumed the userspace will receive the notification via some +* other channel (e.g. drm uevent). +*/ +return xe_mmio_gem_vm_fault_dummy_page (vma); + } + +for (i =0 ; i < base->size; i +=PAGE_SIZE ) { +unsigned long addr = vma->vm_start + i; +unsigned long phys_addr = obj->phys_addr + i; + + ret =vmf_insert_pfn (vma, addr,PHYS_PFN (phys_addr)); +if (ret &VM_FAULT_ERROR ) +break ; + } + +drm_dev_exit (idx); +return ret; +}drivers/gpu/drm/xe/xe_mmio.h +4
-0@@ -8,6 +8,7 @@#include "xe_gt_types.h" +struct drm_file ;struct xe_device ;struct xe_reg ;@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) return &xe->tiles[0].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file); +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem); +#endif Signature · 1 line
2.43.0
Quoted 78 lines · Lucas De Marchi
Quoted 77 lines · Ilia Levi
Allow the driver to expose hardware register spaces to userspace through GEM objects with fake mmap offsets. This can be useful for userspace-firmware communication, debugging, etc.
v2: Minor doc fix (CI)
v3: EnforceMAP_SHARED(Tejas)
Add fault handler with dummy page (Tejas, Matt Auld) Store physical address instead ofxe_mmioin the GEM object (MattB)Signed-off-by Ilia Levi <[email protected]>---
drivers/gpu/drm/xe/xe_device_types.h| 14 ++ drivers/gpu/drm/xe/xe_mmio.c | 210 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_mmio.h | 4 +3 files changed, 228 insertions(+)drivers/gpu/drm/xe/xe_device_types.h +14
-0@@ -10,6 +10,7 @@#include <drm/drm_device.h> #include <drm/drm_file.h> +#include <drm/drm_gem.h> #include <drm/drm_pagemap.h> #include <drm/ttm/ttm_device.h> @@ -162,6 +163,19 @@ struct xe_mmio { u32 adj_offset; }; +/** +* struct xe_mmio_gem - GEM wrapper for xe_mmio +* +* A GEM object for exposing xe_mmio instance to userspace via mmap. +*/ +struct xe_mmio_gem { + /** @base: GEM object base */ + struct drm_gem_object base; + + /** @phys_addr: The physical address of the exposed MMIO region */ + phys_addr_t phys_addr; +}; +/** * struct xe_tile - hardware tile structure * drivers/gpu/drm/xe/xe_mmio.c +14
-0@@ -10,6 +10,7 @@#include <linux/minmax.h> #include <linux/pci.h> +#include <drm/drm_drv.h> #include <drm/drm_managed.h> #include <drm/drm_print.h> @@ -408,3 +409,212 @@ int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va { return __xe_mmio_wait32(mmio, reg, mask, val, timeout_us, out_val, atomic, false); } + +/** +* DOC: Exposing MMIO regions to userspace +* +* In certain cases, the driver may allow userspace to mmap a portion of the hardware registers. +* +* This can be done as follows: +* 1. Define an xe_mmio instance that represents this portion. +* 2. Call xe_mmio_gem_create() to create a GEM object with an mmap-able fake offset. +* 3. Use drm_vma_node_offset_addr() on the created GEM object to retrieve the fake offset. +* 4. Provide the fake offset to userspace. +* 5. Userspace can call mmap with the fake offset. The length provided to mmap +* must match the size of the xe_mmio instance.
Quoted 8 lines
drivers/gpu/drm/xe/xe_mmio.c int xe_mmio_wait32_not(struct xe_mmio *mmio, struct xe_reg reg, u32 mask, u32 va · line 430
Quoted 6 lines
drivers/gpu/drm/xe/xe_mmio.c +6
-0+* 6. When the region is no longer needed, call xe_mmio_gem_destroy() to release the GEM object. +* +* Limitations: The exposed xe_mmio must be page-aligned with regards to its BAR offset and size. +* +* WARNING: Exposing MMIO regions to userspace can have security and stability implications. +* Make sure not to expose any sensitive registers. what exactly in this patch is preventing that?
Like I wrote to Dafna above, I don't think we need any additional security here - xe_mmio_gem_create is an internal API in the driver. So it is expected that the driver developer will call xe_mmio_gem_create only for allowed regions. The framework does not know which regions are allowed and which are not. Or am I missing something?
- Ilia
Quoted 2 lines
how is that any better than simply mmap the BAR already exposed in sysfs?
Are you referring to the resourceN files? AFAIK they are available only to root user. Moreover, one envisioned use-case is where the firmware manages the allocation of HW contexts - the driver will thus expose an MMIO region appropriate to the context identifier received from firmware.
- Ilia
Quoted 216 lines
Lucas De Marchi
Quoted 213 lines
drivers/gpu/drm/xe/xe_mmio.c +190
-0+*/ + +static void xe_mmio_gem_free (struct drm_gem_object *); +static int xe_mmio_gem_mmap (struct drm_gem_object *,struct vm_area_struct *); +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *); + +static const struct vm_operations_struct vm_ops = { + .open = drm_gem_vm_open, + .close = drm_gem_vm_close, + .fault = xe_mmio_gem_vm_fault, +}; + +static const struct drm_gem_object_funcs xe_mmio_gem_funcs = { + .free = xe_mmio_gem_free, + .mmap = xe_mmio_gem_mmap, + .vm_ops = &vm_ops, +}; + +static inline struct xe_mmio_gem *to_xe_mmio_gem (struct drm_gem_object *obj) +{ + return container_of(obj, struct xe_mmio_gem, base); +} + +static inline phys_addr_t xe_mmio_phys_addr (struct xe_mmio *mmio) +{ + struct xe_device *xe = tile_to_xe(mmio->tile); + + /* + * All MMIO instances are currently on PCI BAR 0, so we can do the trick below. + * In the future we may want to store the physical address in struct xe_mmio. + */ + return pci_resource_start(to_pci_dev(xe->drm.dev), GTTMMADR_BAR) + + (uintptr_t)(mmio->regs - xe->mmio.regs); +} + +/** +* xe_mmio_gem_create - Expose an MMIO region to userspace +* @mmio: xe_mmio instance +* @file: DRM file descriptor +* +* This function creates a GEM object with an mmap-able fake offset that wraps +* the provided xe_mmio instance. +* +* See: "Exposing MMIO regions to userspace" +*/ +struct xe_mmio_gem * +xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file) +{ + struct xe_device *xe = tile_to_xe(mmio->tile); + size_t size = mmio->regs_size; + struct xe_mmio_gem *obj; + struct drm_gem_object *base; + phys_addr_t phys_addr = xe_mmio_phys_addr(mmio); + int err; + + if ((phys_addr % PAGE_SIZE != 0) || (size % PAGE_SIZE != 0)) + return ERR_PTR(-EINVAL); + + obj = kzalloc(sizeof(*obj), GFP_KERNEL); + if (!obj) + return ERR_PTR(-ENOMEM); + + base = &obj->base; + base->funcs = &xe_mmio_gem_funcs; + obj->phys_addr = phys_addr; + + drm_gem_private_object_init(&xe->drm, base, size); + + err = drm_gem_create_mmap_offset(base); + if (err) + goto free_gem; + + err = drm_vma_node_allow(&base->vma_node, file); + if (err) + goto free_gem; + + return obj; + +free_gem: + xe_mmio_gem_free(base); + return ERR_PTR(err); +} + +static void xe_mmio_gem_free (struct drm_gem_object *base) +{ + struct xe_mmio_gem *obj = to_xe_mmio_gem(base); + + drm_gem_object_release(base); + kfree(obj); +} + +/** +* xe_mmio_gem_destroy - Destroy the GEM object wrapping xe_mmio +* @gem: the GEM object to destroy +* +* This function releases resources associated with the GEM object created by +* xe_mmio_gem_create(). +* +* See: "Exposing MMIO regions to userspace" +*/ +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem) +{ + xe_mmio_gem_free(&gem->base); +} + +static int xe_mmio_gem_mmap (struct drm_gem_object *base,struct vm_area_struct *vma) +{ + if (vma->vm_end - vma->vm_start != base->size) + return -EINVAL; + + if ((vma->vm_flags & VM_SHARED) == 0) + return -EINVAL; + + /* Set vm_pgoff (used as a fake buffer offset by DRM) to 0 */ + vma->vm_pgoff = 0; + vma->vm_page_prot = pgprot_noncached(vm_get_page_prot(vma->vm_flags)); + vm_flags_set(vma, VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP | + VM_DONTCOPY | VM_NORESERVE); + + /* Defer actual mapping to the fault handler. */ + return 0; +} + +static void xe_mmio_gem_release_dummy_page (struct drm_device *dev,void *res) +{ + __free_page((struct page *)res); +} + +static vm_fault_t xe_mmio_gem_vm_fault_dummy_page (struct vm_area_struct *vma) +{ + struct drm_gem_object *base = vma->vm_private_data; + struct drm_device *dev = base->dev; + vm_fault_t ret = VM_FAULT_NOPAGE; + struct page *page; + unsigned long pfn; + unsigned long i; + + page = alloc_page(GFP_KERNEL | __GFP_ZERO); + if (!page) + return VM_FAULT_OOM; + + if (drmm_add_action_or_reset(dev, xe_mmio_gem_release_dummy_page, page)) + return VM_FAULT_OOM; + + pfn = page_to_pfn(page); + + /* Map the entire VMA to the same dummy page */ + for (i = 0; i < base->size; i += PAGE_SIZE) { + unsigned long addr = vma->vm_start + i; + + ret = vmf_insert_pfn(vma, addr, pfn); + if (ret & VM_FAULT_ERROR) + break; + } + + return ret; +} + +static vm_fault_t xe_mmio_gem_vm_fault (struct vm_fault *vmf) +{ + struct vm_area_struct *vma = vmf->vma; + struct drm_gem_object *base = vma->vm_private_data; + struct xe_mmio_gem *obj = to_xe_mmio_gem(base); + struct drm_device *dev = base->dev; + vm_fault_t ret = VM_FAULT_NOPAGE; + unsigned long i; + int idx; + + if (!drm_dev_enter(dev, &idx)) { + /* + * Provide a dummy page to avoid SIGBUS for events such as hot-unplug. + * This gives the userspace the option to recover instead of crashing. + * It is assumed the userspace will receive the notification via some + * other channel (e.g. drm uevent). + */ + return xe_mmio_gem_vm_fault_dummy_page(vma); + } + + for (i = 0; i < base->size; i += PAGE_SIZE) { + unsigned long addr = vma->vm_start + i; + unsigned long phys_addr = obj->phys_addr + i; + + ret = vmf_insert_pfn(vma, addr, PHYS_PFN(phys_addr)); + if (ret & VM_FAULT_ERROR) + break; + } + + drm_dev_exit(idx); + return ret; +}drivers/gpu/drm/xe/xe_mmio.h +4
-0@@ -8,6 +8,7 @@#include "xe_gt_types.h" +struct drm_file ;struct xe_device ;struct xe_reg ;@@ -42,4 +43,7 @@ static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) return &xe->tiles[0].mmio; } +struct xe_mmio_gem *xe_mmio_gem_create (struct xe_mmio *mmio,struct drm_file *file); +void xe_mmio_gem_destroy (struct xe_mmio_gem *gem); +#endif --
2.43.0