]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: Use xe_device_is_l2_flush_optimized()
authorGustavo Sousa <gustavo.sousa@intel.com>
Wed, 13 May 2026 19:07:14 +0000 (16:07 -0300)
committerGustavo Sousa <gustavo.sousa@intel.com>
Mon, 18 May 2026 21:25:40 +0000 (18:25 -0300)
commitae3c9b7472372228e83bf792874e6e625f7d043f
treefa161290ab70e10e2345678d87ca807db504978a
parentd2d23c12789cf69eddc35b8d38cd8eaabd0168f1
drm/xe/guc: Use xe_device_is_l2_flush_optimized()

We encapsulate the logic to check if the platform has L2 flush
optimization feature in xe_device_is_l2_flush_optimized(), but
guc_ctl_feature_flags() is using an open-coded version of that same type
of check.  Fix that by replacing the open-coded check with
xe_device_is_l2_flush_optimized().

Reviewed-by: Himanshu Girotra <himanshu.girotra@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patch.msgid.link/20260513-guc-l2-flush-opt-use-xe_device_is_l2_flush_optimized-v1-1-36fa866d6ed8@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
drivers/gpu/drm/xe/xe_guc.c