]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: make change ccs_mode a synchronous action
authorMaciej Patelczyk <maciej.patelczyk@intel.com>
Wed, 11 Dec 2024 11:17:27 +0000 (12:17 +0100)
committerNirmoy Das <nirmoy.das@intel.com>
Mon, 13 Jan 2025 09:44:43 +0000 (10:44 +0100)
commit480fb9806e2e073532f7786166287114c696b340
tree8fce95e31ef17d8f672d9aeda3807090484deecb
parent155c77f45f63dd58a37eeb0896b0b140ab785836
drm/xe: make change ccs_mode a synchronous action

If ccs_mode is being modified via
   /sys/class/drm/cardX/device/tileY/gtY/ccs_mode
the asynchronous reset is triggered and the write returns immediately.

With that some test receive false information about number of CCS engines
or even fail if they proceed without delay after changing the ccs_mode.

Changing the ccs_mode change from async to sync to prevent failures in
tests.

Signed-off-by: Maciej Patelczyk <maciej.patelczyk@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Fixes: f3bc5bb4d53d ("drm/xe: Allow userspace to configure CCS mode")
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241211111727.1481476-3-maciej.patelczyk@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
drivers/gpu/drm/xe/xe_gt_ccs_mode.c