Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable status report for release version by default #82

Open
wants to merge 4 commits into
base: celadon/u/mr0/master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
162 changes: 162 additions & 0 deletions Tools/MediaDriverTools/UMDPerfProfiler/CodecDbgSetting.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
###################################################################
## CodecDbgSettings.cfg
## - White space should be agnostic.
## - '#' as first non-white space char denotes line as comment
## - '@frame ALL' MUST be present as the first directive, even if
## nothing is dumped for every frame.
###################################################################

###################################################################
## key words defined under @mode ALL works for both encode & decode
###################################################################

@mode ALL
@Frame ALL

PicParams:1
SlcParams:1
SubsetsParams:0
IqParams:0
Bitstream:1
DecodeBitstream:1
#HucRegions:0
#HucDmem:0
CmdBufferMfx:1
#2ndLvlBatchMfx:1
#HuffmanTbl:0
#ScanParams:0
#DriverUltDump:0
#DumpBufferInBinary:1
#DumpToThreadFolder:1
#DumpCmdBufInBinary:1
StatusReport:1

#StreamOut:1
#StreamIn:1
##ResidualDifference:0
##Deblocking:0
#MvData:1
#SfcOutputSurface:1
#ReferenceSurfaces:1
##EncodeRawInputSurface:0
##ReconstructedSurface:0
##PakInput:0
##PakOutput:0
##UpsamplingInput:0
##ResidualSurface:0
##StCoeff:0
##CoeffPredCs:0
##MbRecord:0
##PakObjStreamOut:0
##TileBasedStats:0
##OverwriteCommands:0
##ForceCmdDumpLvl:0
##ForceCurbeDumpLvl:0
##FrameState:0
##BrcPakStats:0
##CUStreamout:0
##ImageState:0
##SliceSizeStreamout:0
##PakHwCoeffProbs:0
##ROIInput:0
##MD5HasEnable:0
##MD5FlushInterval:0
##MD5PicWidth:0
##MD5PicHeight:0

###################################################################
## key words defined under @mode decode works for decode only
###################################################################

@mode decode
@Frame ALL

#SegmentParams:1
#MbParams:1
#Vc1Bitplane:1
#CoefProb:1
#SegId:1
DecodeOutputSurface:1
#DumpAuxsurface:1
#DecodeProcParams:1
DecodeBitstream:1
###############################################################
## key words defined under @mode encode works for encode only
###############################################################

#@mode encode
#@Frame ALL

#FeiPicParams:0
#SeqParams:0
#VuiParams:0
#DumpEncodePar:0
#VdencOutput:0

###############################################################
## key words defined for kernel
###############################################################
#@Vc1Olp ALL
#@MbEncNorm ALL
#@MbEncPerf ALL
#@MbEncQlty ALL
#@IFrameDist ALL
#@32xScaling ALL
#@16xScaling ALL
#@4xScaling ALL
#@32xMe ALL
#@16xMe ALL
#@4xMe ALL
#@BrcInitReset ALL
#@BrcUpdate ALL
#@MbPakP1 ALL
#@MbPakP2 ALL
#@MbEncChroma ALL
#@MbEncLuma ALL
#@Mpu ALL
#@Tpu ALL
#@MbEncADV ALL
#@2xScaling ALL
#@HEVC_32x32_PU_MD ALL
#@HEVC_16x16_PU_SAD ALL
#@HEVC_16x16_PU_MD ALL
#@HEVC_8x8_PU_MD ALL
#@HEVC_8x8_PU_FMODE ALL
#@HEVC_32x32_B_INTRA_CHECK ALL
#@HEVC_B_MBENC ALL
#@HEVC_B_PAK ALL
#@HEVC_LCU_BRCUpdate ALL
#@MeVDEncStreamIn ALL
#@VP9_I_32x32_MBENC ALL
#@VP9_I_16x16_MBENC ALL
#@VP9_P_MBENC ALL
#@VP9_TX_MBENC ALL
#@VP9_DYS ALL
#@VP9_I_MBPAK_LumaRecon ALL
#@VP9_I_MBPAK_ChromaRecon ALL
#@VP9_I_MBPAK_DeblockMask ALL
#@VP9_I_MBPAK_LumaDeblock ALL
#@VP9_I_MBPAK_ChromaDeblock ALL
#@VP9_P_MbPak_McPred ALL
#@VP9_P_MbPak_LumaRecon ALL
#@VP9_P_MbPak_LumaRecon ALL
#@VP9_P_MbPak_ChromaRecon ALL
#@VP9_Intra_P_MbPak_LumaRecon ALL
#@VP9_Intra_P_MbPak_ChromaRecon ALL
#@PreProc ALL
#@WP ALL
#@HEVC_I_MBENC ALL
#@CSCDsCopy ALL
#@2x_4xScaling ALL
#@HEVC_LCU64_B_MBENC ALL
#@MbBrcUpdate ALL
#@StaticFrameDetection ALL
#@HEVC_ROI ALL
#@InitSWScoreboard ALL

### Encode plug-in ###
#@force
#ForceCmpDumpLvl:3
#@OverwriteCurbe
#ForceCurbeDumpLvl:3

6 changes: 5 additions & 1 deletion Tools/MediaDriverTools/UMDPerfProfiler/igfx_user_feature.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[KEY]
0x00000001
UFKEY_INTERNAL\
UFKEY_INTERNAL\Report
[VALUE]
Perf Profiler Enable
4
Expand All @@ -13,3 +13,7 @@
Perf Profiler Buffer Size
4
512000000
[VALUE]
Status Reporting
4
1
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,20 @@ Perf Profiler Buffer Size=10000000
Enable HCP Scalability Decode=0
Disable Media Encode Scalability=1

[report]
Dump Command Buffer Enable=1
Message HLT Output Directory=/data/local/tmp
CodecHal Debug Output Directory=/data/local/tmp/codechal_dump

Message Print Enabled=1
Mos Message Tags=3
Mhw Message Tags=3
Codec Message Tags=3
VP Message Tags=3
CP Message Tags=3
DDI Message Tags=3
CM Message Tags=3
SCALABILITY Message Tags=3
MMC Message Tags=3
MCPY Message Tags=3

[report]
4 changes: 3 additions & 1 deletion media_driver/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,9 @@ LOCAL_CPPFLAGS = \
-D__STDC_CONSTANT_MACROS \
-D__STDC_LIMIT_MACROS \
-D__VPHAL_SFC_SUPPORTED=1 \
-DiHD_drv_video_EXPORTS
-DiHD_drv_video_EXPORTS \
-D_RELEASE_INTERNAL \
-Wno-format-security

LOCAL_CONLYFLAGS = -x c++
LOCAL_CFLAGS = $(LOCAL_CPPFLAGS)
Expand Down
2 changes: 1 addition & 1 deletion media_driver/linux/common/vp/ddi/media_libva_vp.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "media_libva_vp_tools.h"
#if (_DEBUG || _RELEASE_INTERNAL)
#if ANDROID
#include "media_libva_vp_tools_android.h"
//#include "media_libva_vp_tools_android.h"
#endif
#endif // #if (_DEBUG || _RELEASE_INTERNAL)

Expand Down
8 changes: 4 additions & 4 deletions media_softlet/agnostic/common/codec/hal/codechal_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ CodechalDebugInterface::CodechalDebugInterface()
uint32_t sizeToBeCopied = 0;
MOS_GFXRES_TYPE ResType;

#if !defined(LINUX)
#if !defined(LINUX) && !defined(ANDROID)
ResType = surface->OsResource.ResType;

CODECHAL_DEBUG_CHK_STATUS(ReAllocateSurface(
Expand Down Expand Up @@ -2590,7 +2590,7 @@ MOS_STATUS CodechalDebugInterface::DumpRgbDataOnYUVSurface(
uint32_t sizeToBeCopied = 0;
MOS_GFXRES_TYPE ResType;

#if LINUX
#if LINUX || ANDROID
// Linux does not have OsResource->ResType
ResType = surface->Type;
#else
Expand Down Expand Up @@ -4004,7 +4004,7 @@ MOS_STATUS CodechalDebugInterface::DumpYUVSurfaceToBuffer(PMOS_SURFACE surface,
uint32_t sizeToBeCopied = 0;
MOS_GFXRES_TYPE ResType;

#if LINUX
#if LINUX || ANDROID
// Linux does not have OsResource->ResType
ResType = surface->Type;
#else
Expand Down Expand Up @@ -4385,7 +4385,7 @@ MOS_STATUS CodechalDebugInterface::DumpSurfaceInfo(
FIELD_TO_OFS(bOverlay, );
FIELD_TO_OFS(bFlipChain, );

#if !defined(LINUX)
#if !defined(LINUX) && !defined(ANDROID)
EMPTY_TO_OFS();
UNION_STRUCT_START_TO_OFS();
UNION_STRUCT_FIELD_TO_OFS(dwFirstArraySlice);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ MOS_STATUS MediaDebugInterface::DumpMosSpecificResourceInfoToOfs(

PMOS_RESOURCE ptr = pOsResource;
ofs << "MOS_RESOURCE:" << std::endl;
#if !defined(LINUX) || defined(WDDM_LINUX)
#if !defined(ANDROID) && (!defined(LINUX) || defined(WDDM_LINUX))
FIELD_TO_OFS(RunTimeHandle, );
#else
FIELD_TO_OFS(iWidth, );
Expand Down Expand Up @@ -455,7 +455,7 @@ MOS_STATUS MediaDebugInterface::DumpMosSpecificResourceInfoToOfs(
FIELD_TO_OFS_8SHIFT(Info.TiledYs);
FIELD_TO_OFS_8SHIFT(Info.XAdapter);
FIELD_TO_OFS_8SHIFT(Info.__PreallocatedResInfo);
#if !defined(LINUX)
#if !defined(LINUX) && !defined(ANDROID)
FIELD_TO_OFS_8SHIFT(Info.LMemBarPreferred);
FIELD_TO_OFS_8SHIFT(Info.LMemBarOrNonlocalOnly);
FIELD_TO_OFS_8SHIFT(Info.LMemBarIndifferent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
#include <fcntl.h> //open

#ifdef ANDROID
#include <android/log.h>
// #include <android/log.h>
#include <log/log.h>
#undef printf
#define printf(...) ALOGW(__VA_ARGS__)
#else
#include <signal.h>
#endif // ANDROID
Expand Down