From 3bc2264160257a3c19f6fe5ee730cac0483c1e4d Mon Sep 17 00:00:00 2001 From: manxiaoliang Date: Wed, 3 Jul 2024 06:10:08 +0000 Subject: [PATCH] Fixed CTS issues Scalability feature will cause gpu hang issue. when run video cts of CtsMediaEncoderTestCases. set the configs below in igfx_user_feature_next.txt * Enable HCP Scalability Decode=0 * Disable Media Encode Scalability=1 to disable Scalability feature. Tracked-On: OAM-120515 Signed-off-by: manxiaoliang --- .../UMDPerfProfiler/igfx_user_feature_next.txt | 2 ++ .../linux/common/os/osservice/mos_utilities_specific.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Tools/MediaDriverTools/UMDPerfProfiler/igfx_user_feature_next.txt b/Tools/MediaDriverTools/UMDPerfProfiler/igfx_user_feature_next.txt index 9e944857a3..6cdf1fa6ff 100644 --- a/Tools/MediaDriverTools/UMDPerfProfiler/igfx_user_feature_next.txt +++ b/Tools/MediaDriverTools/UMDPerfProfiler/igfx_user_feature_next.txt @@ -4,5 +4,7 @@ Perf Profiler Output File Name=linux_perf_out.bin Perf Profiler Multi Process Support=0 Perf Profiler Register 8=1835148 Perf Profiler Buffer Size=10000000 +Enable HCP Scalability Decode=0 +Disable Media Encode Scalability=1 [report] \ No newline at end of file diff --git a/media_softlet/linux/common/os/osservice/mos_utilities_specific.h b/media_softlet/linux/common/os/osservice/mos_utilities_specific.h index 946fc178bb..ace056fc29 100644 --- a/media_softlet/linux/common/os/osservice/mos_utilities_specific.h +++ b/media_softlet/linux/common/os/osservice/mos_utilities_specific.h @@ -46,8 +46,9 @@ class MosMutex; #define USER_FEATURE_KEY_EXTERNAL "UFKEY_EXTERNAL\\" //user feature -#if ANDROID_VERSION >= 800 -#define USER_FEATURE_FILE "/data/igfx_user_feature.txt" +#ifdef ANDROID +#define USER_FEATURE_FILE "/vendor/etc/igfx_user_feature.txt" +#define USER_FEATURE_FILE_NEXT "/vendor/etc/igfx_user_feature_next.txt" #else #define USER_FEATURE_FILE "/etc/igfx_user_feature.txt" #define USER_FEATURE_FILE_NEXT "/etc/igfx_user_feature_next.txt"