]> www.infradead.org Git - users/jedix/linux-maple.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)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 15 Jan 2025 10:32:50 +0000 (11:32 +0100)
commitb26de02cf903b5182588c0df91a6e1b512f7d3f3
tree0da9ecc543d594041420b609a277e0152f82da29
parent5db89168c408871d306e9fb669e494a1444da8ee
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>
(cherry picked from commit 480fb9806e2e073532f7786166287114c696b340)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_gt_ccs_mode.c