mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 12:59:03 +02:00

Drop patches already merged: * 0002-Add-VASurfaceAttribMemoryType-for-ACM.patch * 0004-Set-sRGB-color-space-for-non-video-wall-and-no-backg.patch * 0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch * 0006-Add-DG2-DIDs.patch Rebased patchess: * 0001-Disable-vp9-padding-on-mtl.patch * 0002-Force-ARGB-surface-to-tile4-for-ACM.patch Added new bug fixed: * 0004-Add-device-ID-for-ARL.patch * 0005-Add-XR24-support-to-DMABuf.patch * 0006-add-INTEL-MEDIA-ALLOC-refineE-to-specify-the-memory-.patch * 0007-Skip-report-keys.patch * 0008-Limit-INTEL-MEDIA-ALLOC-MODE-to-MTL-and-ARL-only.patch * 0009-Skip-cache-bucket-realloc-for-default-mode-0.patch * 0010-Fix-failed-4k-video-wall-test-case-and-color-corrupt.patch * 0011-Disable-422H-format-output.patch * 0012-Decode-Fix-AVC-decode-SFC-4K-hang-issue.patch Release notes: https://github.com/intel/media-driver/releases/tag/intel-media-23.4.3 Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
79 lines
3.2 KiB
Diff
79 lines
3.2 KiB
Diff
From b1aebef4d342c77fc2b9c5efbf20aeb2aa9d634e Mon Sep 17 00:00:00 2001
|
|
From: Wang_Pingli <pingli.wang@intel.com>
|
|
Date: Thu, 28 Dec 2023 16:44:40 +0800
|
|
Subject: [PATCH 07/12] Skip report keys
|
|
|
|
Skip to report keys
|
|
|
|
Upstream-Status: Backport [https://github.com/intel/media-driver/commit/68ce25b0a6fa90614eb4734c8680aa4e149e8323]
|
|
Signed-off-by: Lim, Siew Hoon <siew.hoon.lim@intel.com>
|
|
---
|
|
.../os/osservice/mos_utilities_specific.cpp | 30 +++++++++++++++++--
|
|
1 file changed, 28 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp b/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
|
|
index b5df29f06..96785e21e 100644
|
|
--- a/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
|
|
+++ b/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
|
|
@@ -67,6 +67,8 @@ int32_t g_mosMemoryFailSimulateAllocCounter = 0;
|
|
int32_t *MosUtilities::m_mosAllocMemoryFailSimulateAllocCounter = &g_mosMemoryFailSimulateAllocCounter;
|
|
#endif
|
|
|
|
+static bool s_skipToReportReg = false;
|
|
+
|
|
double MosUtilities::MosGetTime()
|
|
{
|
|
struct timespec ts = {};
|
|
@@ -1551,6 +1553,10 @@ MOS_STATUS MosUtilities::MosInitializeReg(RegBufferMap ®BufferMap)
|
|
{
|
|
std::string id = "";
|
|
|
|
+ static const char *disableReportRegKeyList[] = {
|
|
+ "INTEL MEDIA ALLOC MODE"
|
|
+ };
|
|
+ static const uint32_t disableReportRegKeyListCount = sizeof(disableReportRegKeyList) / sizeof(disableReportRegKeyList[0]);
|
|
while(!regStream.eof())
|
|
{
|
|
std::string line = "";
|
|
@@ -1585,8 +1591,22 @@ MOS_STATUS MosUtilities::MosInitializeReg(RegBufferMap ®BufferMap)
|
|
{
|
|
std::string name = line.substr(0,pos);
|
|
std::string value = line.substr(pos+1);
|
|
- auto &keys = regBufferMap[id];
|
|
- keys[name] = value;
|
|
+ if (name.size() > 0 && value.size() > 0)
|
|
+ {
|
|
+ auto &keys = regBufferMap[id];
|
|
+ keys[name] = value;
|
|
+ if (s_skipToReportReg == false && id == USER_SETTING_CONFIG_PATH)
|
|
+ {
|
|
+ for (uint32_t i = 0; i < disableReportRegKeyListCount; i++)
|
|
+ {
|
|
+ if (strcmp(name.c_str(), disableReportRegKeyList[i]) == 0)
|
|
+ {
|
|
+ s_skipToReportReg = true;
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
@@ -1606,6 +1626,12 @@ MOS_STATUS MosUtilities::MosInitializeReg(RegBufferMap ®BufferMap)
|
|
MOS_STATUS MosUtilities::MosUninitializeReg(RegBufferMap ®BufferMap)
|
|
{
|
|
MOS_STATUS status = MOS_STATUS_SUCCESS;
|
|
+
|
|
+ if (s_skipToReportReg)
|
|
+ {
|
|
+ return MOS_STATUS_SUCCESS;
|
|
+ }
|
|
+
|
|
if (regBufferMap.size() == 0)
|
|
{
|
|
return MOS_STATUS_SUCCESS;
|
|
--
|
|
2.40.1
|
|
|