linux/drivers/gpu/drm/tests
Christian König 4e28aa8f7e drm/drm_exec: avoid indirect goto
The drm_exec component uses a variable with scope limited to the for() and
an indirect goto to allow instantiating multiple macros in the same
function.

This unfortunately doesn't work well with certain compilers when the
indirect goto can't be lowered to a direct jump.

Switch the indirect goto to a direct goto, the drawback is that we now
can't use the dma_exec_until_all_locked() macro in the same function
multiple times.

The is currently only one user of this and only as a hacky workaround
which is about to be removed.

So document that the __label__ statement should be used when the macro is
used multiple times and fix the tests and the only use case where that is
necessary.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: 9920249a52 ("drm/amdgpu: convert amdgpu_vm_lock_by_pasid() to drm_exec")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202606231854.7LeCtlLe-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202606232356.gwHMAJAW-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202606240753.kYjobJVl-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202606241110.iUga5vVw-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202607031446.1PWG18mN-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202607031837.HSmBj8pr-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202607040159.GopyEswS-lkp@intel.com/
Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://lore.kernel.org/r/20260704084133.122053-1-christian.koenig@amd.com
2026-07-07 14:02:53 +02:00
..
.kunitconfig drm/tests: make sure drm_client_modeset tests are enabled 2025-09-16 20:20:21 +03:00
drm_atomic_commit_test.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
drm_atomic_test.c drm/tests: Create tests for drm_atomic 2025-03-20 14:45:48 +01:00
drm_bridge_test.c drm-misc-next for v7.2-rc1: 2026-05-08 14:16:04 +10:00
drm_client_modeset_test.c drm/tests: hdmi: check the infoframes behaviour 2026-01-19 13:10:35 +02:00
drm_cmdline_parser_test.c drm/tests: cmdline: Fix drm_display_mode memory leak 2025-04-08 17:28:14 +02:00
drm_connector_test.c drm/display: hdmi: Use drm_output_color_format instead of hdmi_colorspace 2026-03-24 13:54:35 +01:00
drm_damage_helper_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_dp_mst_helper_test.c drm/mst: remove mgr parameter and debug logging from drm_dp_get_vc_payload_bw() 2025-01-07 18:43:18 +02:00
drm_exec_test.c drm/drm_exec: avoid indirect goto 2026-07-07 14:02:53 +02:00
drm_fixp_test.c drm/tests: Add a few tests around drm_fixed.h 2025-11-26 23:03:33 +01:00
drm_format_helper_test.c drm/tests: Fix drm_test_fb_xrgb8888_to_xrgb2101010() on big-endian 2025-08-11 17:24:15 +02:00
drm_format_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_framebuffer_test.c drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
drm_gem_shmem_test.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
drm_hdmi_state_helper_test.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
drm_kunit_edid.h drm/tests: hdmi: check the infoframes behaviour 2026-01-19 13:10:35 +02:00
drm_kunit_helpers.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
drm_managed_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_mm_test.c Merge drm/drm-next into drm-misc-next 2026-02-23 11:48:20 +01:00
drm_modes_test.c drm/tests: modes: Fix drm_display_mode memory leak 2025-04-08 17:28:21 +02:00
drm_panic_test.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
drm_plane_helper_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_probe_helper_test.c drm/tests: probe-helper: Fix drm_display_mode memory leak 2025-04-08 17:28:25 +02:00
drm_rect_test.c drm: Suppress intentional warning backtraces in scaling unit tests 2026-05-14 10:50:00 -06:00
drm_sysfb_modeset_test.c drm/format-helper: Move drm_fb_build_fourcc_list() to sysfb helpers 2025-06-18 10:46:03 +02:00
Makefile drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00