This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS: VSDK - Issue with playing HD (1920*1080) videos in 1920* 720 display resolution

Other Parts Discussed in Thread: DRA744

Tool/software: TI-RTOS

Hi all,

We are using DRA746-Jacinto processor and 12.3 inch display (1920 * 720).
We are using vsdk3dot1 version.
We are running below usecase in IPU1 core. With the below usecase (weston_dualcamera_dsswb),we are not able to play HD videos.
We are using ipu2  for video decoding.

UseCase: weston_dualcamera_dsswb

Capture_0 -> Display_Video0
Capture_1 -> Display_Video1
DefLink_dispDist (A15) -> Display_Gfx
DefLink_dispDist_1 (A15) -> Display_vid1
Capture_dsswb -> Alg_SwCrc


Also we tried another (weston_dualcamera_screen)usecase, in that HD (1920*1080) videos playing for few seconds & then crashes. We also observe flickers while playing HD videos.

"UseCase: weston_dualcamera_screen"

Capture_0 -> Display_Video0
Capture_1 -> Display_Video1
DefLink_dispDist (A15) -> Display_Gfx
Capture_dsswb -> Alg_SwCrc

adv_high_mediaone_logs.txt


But We also have a similar usecase as below, running in dra744 Jacinto which has 7 inch display (800 *480).We don't find issues in this case.

DRA744 Jacinto & 7 inch display

Capture_0 -> Display_Video0
DefLink_dispDist (A15) -> Display_Gfx
DefLink_dispDist_1 (A15) -> Display_vid1
Capture_dsswb -> Alg_SwCrc

Can you please support on this issue ?

Regards,
Gokul

  • Hi Gokul,

    Couple of questions:

    1. Can you confirm if the Vision-SDK version used is 3.01? vDRM support is lacking on Vision-SDK 3.01.
    2. Have you modified the timing parameters on the display link for 1920x720 configuration? By default the display link is set up to 1920x1080 configuration.

    Regards
    Shravan
  • 1 .Yes Shravan. We are using vision-SDK 3 .01 version. It has weston-binary changes for M4 as display-server.
    2 It is customized board & we have updated timing parameters for our display.

    Regards,
    Gokul
  • Hi Gokul,
    1) Is the issue seen only for 1920x1080 streams? Other smaller resolution streams work fine?
    2) What is the observation if you don't use window-resolution property of the waylandsink plugin in the pipeline?
    3) Please share dmesg logs when this issue happens.

    Thanks
    Ramprasad
  • Hi Ram,

    1) Is the issue seen only for 1920x1080 streams? Other smaller resolution streams work fine?

    It is observed in other video also  (H264-MPEG4 AVC 1280*720) .

    No issue is  observed in playing (MPEG4 480*360 )

    2) What is the observation if you don't use window-resolution property of the waylandsink plugin in the pipeline?

    No change in obervation .same behaviour

    3) Please share dmesg logs when this issue happens

    root@mmt2020-a880:~# sync[ 1429.669722] omapdrm omapdrm.0: could not remap: -12 (3)

    [ 1429.675460] omapdrm omapdrm.0: could not remap: -12 (3)

    [ 1429.680834] rpmsg_rpc rpmsg-dce: unwinding UVA to RDA translations! translation = 1

    [ 1429.689669] rpmsg_rpc rpmsg-dce: failed to translate all pointers for remote core!

    [ 1429.707939] free private data struct

    Please check the logs .5287.dmesglog.txt.

    Regards,

    Gokul

  • Hii Gokul,
    Error omapdrm omapdrm.0: could not remap: -12 (3) means
    TILER memory of 128MB is exhauasted.

    For lower resolution streams, it is able to fit within 128MB .

    Can you share details of
    cat /sys/kernel/debug/dri/0/tiler_map
    and
    cat /sys/kernel/debug/dri/0/gem

    before starting video playback ?

    Ram
  • Hello RamPrasad,

    Carplay also not working.

    same error as below

    [ 1429.675460] omapdrm omapdrm.0: could not remap: -12 (3)

    [ 1429.680834] rpmsg_rpc rpmsg-dce: unwinding UVA to RDA translations! translation = 1

    [ 1429.689669] rpmsg_rpc rpmsg-dce: failed to translate all pointers for remote core!


    Regards,
    Gokul
  • Hi Gokul,
    Please share the dt file used and the commitID of omap5-sgx-ddk-um-linux

    Ram
  • Hi Ram,

    We are using following revision:
    SRCREV = "d184140aa5c17e13e1bf21151f1a7bc068bdf8bf"


    I will update the dts files in email.

    Regards,
    Gokul
  • Hello Ram,

    Please find the  tiler logs.

    [Fri Nov 16 18:48:26.188 2018] ~cat /sys/kernel/debug/dri/0/tiler_map 
    [Fri Nov 16 18:48:27.269 2018] CONTAINER 0 DUMP BEGIN
    [Fri Nov 16 18:48:27.274 2018] 000:fffffffffffff(64*1)fffffffffffffeeeeeeeeeeeee(64*1)eeeeeeeeeeeeeddddd(32*1)dddddccccc(32*1)cccccbbbbb(32*1)bbbbbaaaaa(32*1)aaaaa
    [Fri Nov 16 18:48:27.289 2018] 001:                                                                                                                                
    [Fri Nov 16 18:48:27.307 2018] 002:                                                                                                                                
    [Fri Nov 16 18:48:27.317 2018] 003:                                                                                                                                
    [Fri Nov 16 18:48:27.324 2018] 004:                                                                                                                                
    [Fri Nov 16 18:48:27.336 2018] 005:                                                                                                                                
    [Fri Nov 16 18:48:27.348 2018] 006:                                                                                                                                
    [Fri Nov 16 18:48:27.361 2018] 007:                                                                                                                                
    [Fri Nov 16 18:48:27.364 2018] 008:                                                                                                                                
    [Fri Nov 16 18:48:27.377 2018] 009:                                                                                                                                
    [Fri Nov 16 18:48:27.388 2018] 010:                                                                                                                                
    [Fri Nov 16 18:48:27.400 2018] 011:                                                                                                                                
    [Fri Nov 16 18:48:27.412 2018] 012:                                                                                                                                
    [Fri Nov 16 18:48:27.425 2018] 013:                                                                                                                                
    [Fri Nov 16 18:48:27.436 2018] 014:                                                                                                                                
    [Fri Nov 16 18:48:27.448 2018] 015:                                                                                                                                
    [Fri Nov 16 18:48:27.461 2018] 016:                                                                                                                                
    [Fri Nov 16 18:48:27.472 2018] 017:                                                                                                                                
    [Fri Nov 16 18:48:27.484 2018] 018:                                                                                                                                
    [Fri Nov 16 18:48:27.496 2018] 019:                                                                                                                                
    [Fri Nov 16 18:48:27.508 2018] 020:                                                                                                                                
    [Fri Nov 16 18:48:27.517 2018] 021:                                                                                                                                
    [Fri Nov 16 18:48:27.529 2018] 022:                                                                                                                                
    [Fri Nov 16 18:48:27.540 2018] 023:                                                                                                                                
    [Fri Nov 16 18:48:27.552 2018] 024:                                                                                                                                
    [Fri Nov 16 18:48:27.564 2018] 025:                                                                                                                                
    [Fri Nov 16 18:48:27.577 2018] 026:                                                                                                                                
    [Fri Nov 16 18:48:27.588 2018] 027:                                                                                                                                
    [Fri Nov 16 18:48:27.600 2018] 028:                                                                                                                                
    [Fri Nov 16 18:48:27.612 2018] 029:                                                                                                                                
    [Fri Nov 16 18:48:27.625 2018] 030:                                                                                                                                
    [Fri Nov 16 18:48:27.636 2018] 031:                                                                                                                                
    [Fri Nov 16 18:48:27.648 2018] 032:                                                                                                                                
    [Fri Nov 16 18:48:27.661 2018] 033:                                                                                                                                
    [Fri Nov 16 18:48:27.672 2018] 034:                                                                                                                                
    [Fri Nov 16 18:48:27.682 2018] 035:                                                                                                                                
    [Fri Nov 16 18:48:27.693 2018] 036:                                                                                                                                
    [Fri Nov 16 18:48:27.704 2018] 037:                                                                                                                                
    [Fri Nov 16 18:48:27.716 2018] 038:                                                                                                                                
    [Fri Nov 16 18:48:27.728 2018] 039:                                                                                                                                
    [Fri Nov 16 18:48:27.740 2018] 040:                                                                                                                                
    [Fri Nov 16 18:48:27.752 2018] 041:                                                                                                                                
    [Fri Nov 16 18:48:27.764 2018] 042:                                                                                                                                
    [Fri Nov 16 18:48:27.777 2018] 043:                                                                                                                                
    [Fri Nov 16 18:48:27.788 2018] 044:                                                                                                                                
    [Fri Nov 16 18:48:27.800 2018] 045:                                                                                                                                
    [Fri Nov 16 18:48:27.812 2018] 046:                                                                                                                                
    [Fri Nov 16 18:48:27.824 2018] 047:                                                                                                                                
    [Fri Nov 16 18:48:27.838 2018] 048:                                                                                                                                
    [Fri Nov 16 18:48:27.845 2018] 049:                                                                                                                                
    [Fri Nov 16 18:48:27.856 2018] 050:                                                                                                                                
    [Fri Nov 16 18:48:27.868 2018] 051:                                                                                                                                
    [Fri Nov 16 18:48:27.880 2018] 052:                                                                                                                                
    [Fri Nov 16 18:48:27.893 2018] 053:                                                                                                                                
    [Fri Nov 16 18:48:27.904 2018] 054:                                                                                                                                
    [Fri Nov 16 18:48:27.916 2018] 055:                                                                                                                                
    [Fri Nov 16 18:48:27.928 2018] 056:                                                                                                                                
    [Fri Nov 16 18:48:27.940 2018] 057:                                                                                                                                
    [Fri Nov 16 18:48:27.952 2018] 058:                                                                                                                                
    [Fri Nov 16 18:48:27.964 2018] 059:                                                                                                                                
    [Fri Nov 16 18:48:27.977 2018] 060:                                                                                                                                
    [Fri Nov 16 18:48:27.988 2018] 061:                                                                                                                                
    [Fri Nov 16 18:48:28.002 2018] 062:                                                                                                                                
    [Fri Nov 16 18:48:28.008 2018] 063:                                                                                                                                
    [Fri Nov 16 18:48:28.020 2018] 064:                                                                                                                                
    [Fri Nov 16 18:48:28.032 2018] 065:                                                                                                                                
    [Fri Nov 16 18:48:28.045 2018] 066:                                                                                                                                
    [Fri Nov 16 18:48:28.056 2018] 067:                                                                                                                                
    [Fri Nov 16 18:48:28.068 2018] 068:                                                                                                                                
    [Fri Nov 16 18:48:28.080 2018] 069:                                                                                                                                
    [Fri Nov 16 18:48:28.093 2018] 070:                                                                                                                                
    [Fri Nov 16 18:48:28.104 2018] 071:                                                                                                                                
    [Fri Nov 16 18:48:28.116 2018] 072:                                                                                                                                
    [Fri Nov 16 18:48:28.128 2018] 073:                                                                                                                                
    [Fri Nov 16 18:48:28.141 2018] 074:                                                                                                                                
    [Fri Nov 16 18:48:28.152 2018] 075:                                                                                                                                
    [Fri Nov 16 18:48:28.163 2018] 076:                                                                                                                                
    [Fri Nov 16 18:48:28.172 2018] 077:                                                                                                                                
    [Fri Nov 16 18:48:28.184 2018] 078:                                                                                                                                
    [Fri Nov 16 18:48:28.196 2018] 079:                                                                                                                                
    [Fri Nov 16 18:48:28.208 2018] 080:                                                                                                                                
    [Fri Nov 16 18:48:28.220 2018] 081:                                                                                                                                
    [Fri Nov 16 18:48:28.232 2018] 082:                                                                                                                                
    [Fri Nov 16 18:48:28.244 2018] 083:                                                                                                                                
    [Fri Nov 16 18:48:28.256 2018] 084:                                                                                                                                
    [Fri Nov 16 18:48:28.268 2018] 085:                                                                                                                                
    [Fri Nov 16 18:48:28.280 2018] 086:                                                                                                                                
    [Fri Nov 16 18:48:28.293 2018] 087:                                                                                                                                
    [Fri Nov 16 18:48:28.304 2018] 088:                                                                                                                                
    [Fri Nov 16 18:48:28.316 2018] 089:                                                                                                                                
    [Fri Nov 16 18:48:28.325 2018] 090:                                                                                                                                
    [Fri Nov 16 18:48:28.336 2018] 091:                                                                                                                                
    [Fri Nov 16 18:48:28.348 2018] 092:                                                                                                                                
    [Fri Nov 16 18:48:28.360 2018] 093:                                                                                                                                
    [Fri Nov 16 18:48:28.372 2018] 094:                                                                                                                                
    [Fri Nov 16 18:48:28.384 2018] 095:                                                                                                                                
    [Fri Nov 16 18:48:28.396 2018] 096:                                                                                                                                
    [Fri Nov 16 18:48:28.408 2018] 097:                                                                                                                                
    [Fri Nov 16 18:48:28.420 2018] 098:                                                                                                                                
    [Fri Nov 16 18:48:28.432 2018] 099:                                                                                                                                
    [Fri Nov 16 18:48:28.444 2018] 100:                                                                                                                                
    [Fri Nov 16 18:48:28.456 2018] 101:                                                                                                                                
    [Fri Nov 16 18:48:28.468 2018] 102:                                                                                                                                
    [Fri Nov 16 18:48:28.480 2018] 103:                                                                                                                                
    [Fri Nov 16 18:48:28.488 2018] 104:                                                                                                                                
    [Fri Nov 16 18:48:28.500 2018] 105:                                                                                                                                
    [Fri Nov 16 18:48:28.512 2018] 106:                                                                                                                                
    [Fri Nov 16 18:48:28.524 2018] 107:                                                                                                                                
    [Fri Nov 16 18:48:28.536 2018] 108:                                                                                                                                
    [Fri Nov 16 18:48:28.548 2018] 109:                                                                                                                                
    [Fri Nov 16 18:48:28.560 2018] 110:                                                                                                                                
    [Fri Nov 16 18:48:28.572 2018] 111:                                                                                                                                
    [Fri Nov 16 18:48:28.584 2018] 112:                                                                                                                                
    [Fri Nov 16 18:48:28.596 2018] 113:                                                                                                                                
    [Fri Nov 16 18:48:28.608 2018] 114:                                                                                                                                
    [Fri Nov 16 18:48:28.620 2018] 115:                                                                                                                                
    [Fri Nov 16 18:48:28.632 2018] 116:                                                                                                                                
    [Fri Nov 16 18:48:28.648 2018] 117:                                                                                                                                
    [Fri Nov 16 18:48:28.652 2018] 118:                                                                                                                                
    [Fri Nov 16 18:48:28.664 2018] 119:                                                                                                                                
    [Fri Nov 16 18:48:28.676 2018] 120:                                                                                                                                
    [Fri Nov 16 18:48:28.688 2018] 121:                                                                                                                                
    [Fri Nov 16 18:48:28.700 2018] 122:                                                                                                                                
    [Fri Nov 16 18:48:28.712 2018] 123:                                                                                                                                
    [Fri Nov 16 18:48:28.724 2018] 124:                                                                                                                                
    [Fri Nov 16 18:48:28.736 2018] 125:                                                                                                                                
    [Fri Nov 16 18:48:28.748 2018] 126:                                                                                                                                
    [Fri Nov 16 18:48:28.760 2018] 127:                                                                                                                                
    [Fri Nov 16 18:48:28.772 2018] CONTAINER 0 DUMP END
    [Fri Nov 16 18:48:28.772 2018] CONTAINER 1 DUMP BEGIN
    [Fri Nov 16 18:48:28.780 2018] 000:                                                                                                                                
    [Fri Nov 16 18:48:28.788 2018] 001:                                                                                                                                
    [Fri Nov 16 18:48:28.800 2018] 002:                                                                                                                                
    [Fri Nov 16 18:48:28.808 2018] 003:                                                                                                                                
    [Fri Nov 16 18:48:28.820 2018] 004:                                                                                                                                
    [Fri Nov 16 18:48:28.832 2018] 005:                                                                                                                                
    [Fri Nov 16 18:48:28.844 2018] 006:                                                                                                                                
    [Fri Nov 16 18:48:28.856 2018] 007:                                                                                                                                
    [Fri Nov 16 18:48:28.868 2018] 008:                                                                                                                                
    [Fri Nov 16 18:48:28.880 2018] 009:                                                                                                                                
    [Fri Nov 16 18:48:28.892 2018] 010:                                                                                                                                
    [Fri Nov 16 18:48:28.904 2018] 011:                                                                                                                                
    [Fri Nov 16 18:48:28.916 2018] 012:                                                                                                                                
    [Fri Nov 16 18:48:28.928 2018] 013:                                       <========================================================================================
    [Fri Nov 16 18:48:28.940 2018] 014:=============================================================3600K==============================================================
    [Fri Nov 16 18:48:28.952 2018] 015:================================================================================================================================
    [Fri Nov 16 18:48:28.964 2018] 016:=========================================================================================================X======================
    [Fri Nov 16 18:48:28.972 2018] 017:================================================================================================================================
    [Fri Nov 16 18:48:28.984 2018] 018:=============================================================3600K==============================================================
    [Fri Nov 16 18:48:28.996 2018] 019:================================================================================================================================
    [Fri Nov 16 18:48:29.008 2018] 020:===========================================X====================================================================================
    [Fri Nov 16 18:48:29.020 2018] 021:=============================================================3600K==============================================================
    [Fri Nov 16 18:48:29.032 2018] 022:================================================================================================================================
    [Fri Nov 16 18:48:29.044 2018] 023:=============================================================================================================X==================
    [Fri Nov 16 18:48:29.056 2018] 024:================================================================================================================================
    [Fri Nov 16 18:48:29.068 2018] 025:=============================================================3600K==============================================================
    [Fri Nov 16 18:48:29.080 2018] 026:================================================================================================================================
    [Fri Nov 16 18:48:29.092 2018] 027:===============================================X=====================================1500K======================================
    [Fri Nov 16 18:48:29.104 2018] 028:==========================================================================================================><====================
    [Fri Nov 16 18:48:29.116 2018] 029:=============================================================1500K==============================================================
    [Fri Nov 16 18:48:29.128 2018] 030:======================================X==========================================1500K==========================================
    [Fri Nov 16 18:48:29.136 2018] 031:=================================================================================================><=============================
    [Fri Nov 16 18:48:29.148 2018] 032:================================================================================================================================
    [Fri Nov 16 18:48:29.160 2018] 033:================================================================================================================================
    [Fri Nov 16 18:48:29.171 2018] 034:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.183 2018] 035:================================================================================================================================
    [Fri Nov 16 18:48:29.195 2018] 036:================================================================================================================================
    [Fri Nov 16 18:48:29.208 2018] 037:====><==========================================================================================================================
    [Fri Nov 16 18:48:29.219 2018] 038:================================================================================================================================
    [Fri Nov 16 18:48:29.231 2018] 039:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.243 2018] 040:================================================================================================================================
    [Fri Nov 16 18:48:29.256 2018] 041:================================================================================================================================
    [Fri Nov 16 18:48:29.267 2018] 042:=======================================><=========================================1500K=========================================
    [Fri Nov 16 18:48:29.279 2018] 043:===================================================================================================X============================
    [Fri Nov 16 18:48:29.292 2018] 044:=============================================================1500K==============================================================
    [Fri Nov 16 18:48:29.300 2018] 045:==============================><=============================================1500K==============================================
    [Fri Nov 16 18:48:29.312 2018] 046:==========================================================================================>                                     
    [Fri Nov 16 18:48:29.324 2018] 047:                                                                                                                                
    [Fri Nov 16 18:48:29.335 2018] 048:                      <=========================================================================================================
    [Fri Nov 16 18:48:29.347 2018] 049:================================================================================================================================
    [Fri Nov 16 18:48:29.360 2018] 050:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.371 2018] 051:================================================================================================================================
    [Fri Nov 16 18:48:29.383 2018] 052:================================================================================================================================
    [Fri Nov 16 18:48:29.395 2018] 053:========================================================><======================================================================
    [Fri Nov 16 18:48:29.408 2018] 054:================================================================================================================================
    [Fri Nov 16 18:48:29.419 2018] 055:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.431 2018] 056:================================================================================================================================
    [Fri Nov 16 18:48:29.443 2018] 057:================================================================================================================================
    [Fri Nov 16 18:48:29.459 2018] 058:===========================================================================================><===================================
    [Fri Nov 16 18:48:29.463 2018] 059:================================================================================================================================
    [Fri Nov 16 18:48:29.476 2018] 060:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.487 2018] 061:================================================================================================================================
    [Fri Nov 16 18:48:29.499 2018] 062:================================================================================================================================
    [Fri Nov 16 18:48:29.511 2018] 063:==============================================================================================================================><
    [Fri Nov 16 18:48:29.524 2018] 064:================================================================================================================================
    [Fri Nov 16 18:48:29.535 2018] 065:================================================================================================================================
    [Fri Nov 16 18:48:29.547 2018] 066:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.560 2018] 067:================================================================================================================================
    [Fri Nov 16 18:48:29.571 2018] 068:================================================================================================================================
    [Fri Nov 16 18:48:29.583 2018] 069:=================================><=============================================================================================
    [Fri Nov 16 18:48:29.595 2018] 070:================================================================================================================================
    [Fri Nov 16 18:48:29.608 2018] 071:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.615 2018] 072:================================================================================================================================
    [Fri Nov 16 18:48:29.627 2018] 073:================================================================================================================================
    [Fri Nov 16 18:48:29.640 2018] 074:====================================================================><==========================================================
    [Fri Nov 16 18:48:29.651 2018] 075:================================================================================================================================
    [Fri Nov 16 18:48:29.663 2018] 076:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.675 2018] 077:================================================================================================================================
    [Fri Nov 16 18:48:29.687 2018] 078:================================================================================================================================
    [Fri Nov 16 18:48:29.699 2018] 079:=======================================================================================================><=======================
    [Fri Nov 16 18:48:29.711 2018] 080:================================================================================================================================
    [Fri Nov 16 18:48:29.724 2018] 081:================================================================================================================================
    [Fri Nov 16 18:48:29.735 2018] 082:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.747 2018] 083:================================================================================================================================
    [Fri Nov 16 18:48:29.759 2018] 084:================================================================================================================================
    [Fri Nov 16 18:48:29.771 2018] 085:==========><====================================================================================================================
    [Fri Nov 16 18:48:29.780 2018] 086:================================================================================================================================
    [Fri Nov 16 18:48:29.792 2018] 087:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.803 2018] 088:================================================================================================================================
    [Fri Nov 16 18:48:29.815 2018] 089:================================================================================================================================
    [Fri Nov 16 18:48:29.827 2018] 090:=============================================><=================================================================================
    [Fri Nov 16 18:48:29.840 2018] 091:================================================================================================================================
    [Fri Nov 16 18:48:29.851 2018] 092:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.863 2018] 093:================================================================================================================================
    [Fri Nov 16 18:48:29.876 2018] 094:================================================================================================================================
    [Fri Nov 16 18:48:29.887 2018] 095:================================================================================><==============================================
    [Fri Nov 16 18:48:29.899 2018] 096:================================================================================================================================
    [Fri Nov 16 18:48:29.911 2018] 097:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.924 2018] 098:================================================================================================================================
    [Fri Nov 16 18:48:29.935 2018] 099:================================================================================================================================
    [Fri Nov 16 18:48:29.945 2018] 100:===================================================================================================================><===========
    [Fri Nov 16 18:48:29.955 2018] 101:================================================================================================================================
    [Fri Nov 16 18:48:29.967 2018] 102:================================================================================================================================
    [Fri Nov 16 18:48:29.979 2018] 103:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:29.991 2018] 104:================================================================================================================================
    [Fri Nov 16 18:48:30.003 2018] 105:================================================================================================================================
    [Fri Nov 16 18:48:30.015 2018] 106:======================><========================================================================================================
    [Fri Nov 16 18:48:30.027 2018] 107:================================================================================================================================
    [Fri Nov 16 18:48:30.039 2018] 108:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:30.051 2018] 109:================================================================================================================================
    [Fri Nov 16 18:48:30.063 2018] 110:================================================================================================================================
    [Fri Nov 16 18:48:30.075 2018] 111:=========================================================><=====================================================================
    [Fri Nov 16 18:48:30.087 2018] 112:================================================================================================================================
    [Fri Nov 16 18:48:30.101 2018] 113:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:30.108 2018] 114:================================================================================================================================
    [Fri Nov 16 18:48:30.119 2018] 115:================================================================================================================================
    [Fri Nov 16 18:48:30.131 2018] 116:============================================================================================><==================================
    [Fri Nov 16 18:48:30.143 2018] 117:================================================================================================================================
    [Fri Nov 16 18:48:30.156 2018] 118:=============================================================5400K==============================================================
    [Fri Nov 16 18:48:30.167 2018] 119:================================================================================================================================
    [Fri Nov 16 18:48:30.179 2018] 120:================================================================================================================================
    [Fri Nov 16 18:48:30.191 2018] 121:===============================================================================================================================>
    [Fri Nov 16 18:48:30.203 2018] 122:<============================================================1024K=============================================================>
    [Fri Nov 16 18:48:30.215 2018] 123:<============================================================1024K=============================================================>
    [Fri Nov 16 18:48:30.227 2018] 124:<============================================================1024K=============================================================>
    [Fri Nov 16 18:48:30.240 2018] 125:<============================================================1024K=============================================================>
    [Fri Nov 16 18:48:30.251 2018] 126:<============================================================1024K=============================================================>
    [Fri Nov 16 18:48:30.265 2018] 127:<============================================================1024K=============================================================>
    [Fri Nov 16 18:48:30.271 2018] CONTAINER 1 DUMP END
    [Fri Nov 16 18:48:30.287 2018] root@mmt2020-a880:~# cat /sys/kernel/debug/dri/0/tiler_map gem
    [Fri Nov 16 18:48:32.311 2018] All Objects:
    [Fri Nov 16 18:48:32.311 2018]    02000003: 22 ( 3) 00000000 0x78d4f000 ( 2)   (null)    0 3686400
    [Fri Nov 16 18:48:32.324 2018]    02000003:  0 ( 2) 00000000 0x790d3000 ( 1)   (null)    0 3686400
    [Fri Nov 16 18:48:32.334 2018]    02000003:  6 ( 3) 00000000 0x79457000 ( 2)   (null)    0 3686400
    [Fri Nov 16 18:48:32.347 2018]    02000003:  0 ( 2) 00000000 0x797db000 ( 1)   (null)    0 3686400
    [Fri Nov 16 18:48:32.347 2018]    02000003: 18 ( 4) 00014836 0x79b5f000 ( 1)   (null)    0 1536000
    [Fri Nov 16 18:48:32.356 2018]    02000003: 17 ( 3) 00000000 0x79cd6000 ( 2)   (null)    0 1536000
    [Fri Nov 16 18:48:32.356 2018]    02000003:  0 ( 2) 00000000 0x79e4d000 ( 1)   (null)    0 1536000
    [Fri Nov 16 18:48:32.363 2018]    02000003: 16 ( 3) 00000000 0x79fc4000 ( 2)   (null)    0 5529600
    [Fri Nov 16 18:48:32.371 2018]    02000003: 19 ( 3) 00000000 0x7a50a000 ( 2)   (null)    0 5529600
    [Fri Nov 16 18:48:32.379 2018]    02000003: 15 ( 4) 000146bf 0x7aa50000 ( 1)   (null)    0 1536000
    [Fri Nov 16 18:48:32.379 2018]    02000003: 14 ( 3) 00000000 0x7abc7000 ( 2)   (null)    0 1536000
    [Fri Nov 16 18:48:32.385 2018]    02000003:  0 ( 2) 00000000 0x7ad3e000 ( 1)   (null)    0 1536000
    [Fri Nov 16 18:48:32.395 2018]    02000003:  3 ( 2) 00000000 0x7b02c000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.401 2018]    02000003: 13 ( 4) 00014002 0x7b572000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.401 2018]    02000003: 12 ( 6) 00013abc 0x7bab8000 ( 2)   (null)    0 5529600
    [Fri Nov 16 18:48:32.412 2018]    02000003: 10 ( 4) 00013576 0x7bffe000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.412 2018]    02000003:  8 ( 4) 00013030 0x7c544000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.416 2018]    02000003:  5 ( 4) 00012aea 0x7ca8a000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.425 2018]    02000003: 20 ( 4) 000125a4 0x7cfd0000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.430 2018]    02000003:  2 ( 2) 00000000 0x7d516000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.439 2018]    02000003: 11 ( 4) 0001205e 0x7da5c000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.445 2018]    02000003:  9 ( 4) 00011b18 0x7dfa2000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.451 2018]    02000003:  7 ( 6) 000115d2 0x7e4e8000 ( 2)   (null)    0 5529600
    [Fri Nov 16 18:48:32.460 2018]    02000003:  4 ( 6) 0001108c 0x7ea2e000 ( 2)   (null)    0 5529600
    [Fri Nov 16 18:48:32.465 2018]    02000003:  1 ( 4) 00010b46 0x7ef74000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.473 2018]    02000003: 21 ( 4) 00010600 0x7f4ba000 ( 1)   (null)    0 5529600
    [Fri Nov 16 18:48:32.473 2018]    02000003:  0 ( 3) 00010500 0x7fa00000 ( 1)   (null)    0 1048576
    [Fri Nov 16 18:48:32.479 2018]    02000003:  0 ( 3) 00010400 0x7fb00000 ( 1)   (null)    0 1048576
    [Fri Nov 16 18:48:32.486 2018]    02000003:  0 ( 3) 00010300 0x7fc00000 ( 1)   (null)    0 1048576
    [Fri Nov 16 18:48:32.495 2018]    02000003:  0 ( 3) 00010200 0x7fd00000 ( 1)   (null)    0 1048576
    [Fri Nov 16 18:48:32.500 2018]    02000003:  0 ( 3) 00010100 0x7fe00000 ( 1)   (null)    0 1048576
    [Fri Nov 16 18:48:32.510 2018]    02000003:  0 ( 3) 00010000 0x7ff00000 ( 1)   (null)    0 1048576
    [Fri Nov 16 18:48:32.515 2018] Total 32 objects, 118726656 bytes
    [Fri Nov 16 18:48:32.526 2018] root@mmt2020-a880:~# 

    Gokul

  • Hi Gokul,
    For the timer log , all graphics buffers are allocated in TILER region (5400K = 1920x720x4) and there will be no space left for ducati when video playback starts for Full HD video buffers.

    Please apply the patch mentioned in this link (PSDKLA-3573)
    processors.wiki.ti.com/.../Processor_SDK_Linux_Automotive_Post_Release_Fixes

    These patches are to allocate buffers in CMA region.

    Thanks
    Ram
  • Thanks Ram. For SGX-KERNEL (omap5-sgx-ddk-linux) which commit id should be used ?

    Regards,
    Gokul
  • Hi Gokul,
    No changes are required in sgx-km. You can continue with
    SRCREV = "fd47e44b18944cf7ade480ac67a9c0172619ff7e"
  • Hi Ram,

    We tried manually updating sgx-um & libdrm libraries. Weston is not coming up.

    Is these changes applicable for VSDK 3 dot 1 version with M4 as display- server ?

    cat /tmp/weston.log
    Date: 1970-01-01 UTC
    [00:00:10.568] weston 1.11.0
    http://wayland.freedesktop.org
    Bug reports to: bugs.freedesktop.org/enter_bug.cgi
    Build: 1.10.93-2-g2d825ed configure.ac: bump to version 1.11.0 for the official release (2016-05-31 17:10:40 -0700)
    [00:00:10.569] OS: Linux, 4.4.84, #Rel_Elina_J6_MMT_18321A SMP PREEMPT Fri Oct 26 20:23:37 IST 201, armv7l
    [00:00:10.570] Using config file '/etc/xdg/weston/weston.ini'
    [00:00:10.571] Output repaint window is 0 ms maximum.
    [00:00:10.572] Loading module '/usr/lib/weston/disp-dist-backend.so'
    [00:00:10.581] initializing disp_dist backend
    [00:00:10.582] Loading module '/usr/lib/weston/gl-renderer.so'
    [00:00:10.601] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
    [00:00:10.613] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
    [00:00:10.613] Retrieving EGL client extension string failed.
    [00:00:10.614] warning: no input devices on entering Weston. Possible causes:
    - no input devices are attached
    - no permissions to read /dev/input/event*
    - seats misconfigured (Weston backend option 'seat', udev device property ID_SEAT)
    [00:00:10.650] EGL version: 1.4 build 1.14@3699939 (MAIN)
    [00:00:10.650] EGL vendor: Imagination Technologies
    [00:00:10.650] EGL client APIs: OpenGL_ES
    [00:00:10.650] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
    EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
    EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
    EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
    EGL_IMG_context_priority EGL_IMG_hibernate_process
    EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
    EGL_KHR_wait_sync EGL_KHR_create_context
    EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    [00:00:10.650] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
    [00:00:10.651] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
    [00:00:10.651] GL vendor: Imagination Technologies
    [00:00:10.651] GL renderer: PowerVR SGX 544MP
    [00:00:10.651] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
    GL_OES_vertex_half_float GL_OES_texture_float
    GL_OES_texture_half_float GL_OES_element_index_uint
    GL_OES_mapbuffer GL_OES_fragment_precision_high
    GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
    GL_OES_EGL_image_external GL_OES_required_internalformat
    GL_OES_depth_texture GL_OES_get_program_binary
    GL_OES_packed_depth_stencil GL_OES_standard_derivatives
    GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
    GL_OES_surfaceless_context GL_EXT_discard_framebuffer
    GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
    GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
    GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
    GL_EXT_texture_rg GL_EXT_draw_buffers
    GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
    GL_IMG_texture_compression_pvrtc
    GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
    GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
    GL_IMG_program_binary GL_IMG_uniform_buffer_object
    GL_IMG_multisampled_render_to_texture GL_KHR_debug
    [00:00:10.651] GL ES 2 renderer features:
    read-back format: RGBA
    wl_shm sub-image to texture: no
    EGL Wayland extension: yes
    [00:00:10.651] Chosen EGL config details:
    RGBA bits: 8 8 8 8
    swap interval range: 1 - 1
    [00:00:10.651] Compositor capabilities:
    arbitrary surface rotation: yes
    screen capture uses y-flip: yes
    presentation clock: CLOCK_REALTIME, id 0
    [00:00:10.652] Loading module '/usr/lib/weston/systemd-notify.so'
    [00:00:10.665] caught signal: 11
    [00:00:10.665] disp_dist_restore

    Regards,
    Gokul
  • Hi Gokul,
    Please share your current bb and bbappend files for sgx-um, Libdrm, libgm, kernel and Weston.

    From the commitID you shared , this should have worked.

    Ram
  • Hi Gokul,
    I checked bb files of ti-sgx-um, libdrm and libgbm shared by your team.
    Current SRCREV for sgx-um is d184140aa5c17e13e1bf21151f1a7bc068bdf8bf.
    With 1145367010f416dbed87884bac329158eda26777 commit-id, there is only one line change is there in sgx-um to add a flag before creating buffers .

    Just upgrading the sgx-um to this commit-ID should have worked and weston should have come up.
    Can you please double check again?

    Thanks
    Ram
  • Hi Gokul,
    Switch back to commitID d184140aa5c17e13e1bf21151f1a7bc068bdf8bf and copy only libdbm.so from commit-id
    1145367010f416dbed87884bac329158eda26777 (omap5-sgx-ddk-um-linux/targetfs/jacinto6evm/lib/libdbm.so) and confirm weston is coming up.

    Only this .so has the change required to create dumb buffers in CMA region instead of TILER.

    Thanks
    Ram
  • Hi Gokul,
    Please make sure , you copy all libdbm.so* (with links) to rootfs.
  • Forgot to mention, please increase cma in bootargs to 128MB or more if it is 64MB.

    This could be the issue why Weston is not coming up.
  • Hi Ram.

    We will add cma=128M in the kernel bootargs.
    Do we need to mention the cma region in dts ?

    Regards,
    Gokul
  • Hi Gokul,

    cma configuration in bootArgs should be sufficient. I will check if any change required in dts file. cma configuration from 64MB to 128MB is required if there is failure during allocation but your weston doesn't show any allocation failure .

    and the modified libgbm.so just adds a flag which tells the kernel to allocate buffer in CMA region. Since you have not modified the kernel yet with the patches, this should not matter now.

    but weston should come up first.

    Thanks

    Ram

  • Hi Ram,

    From where, the weston graphics buffer memory will be allocated ? Is it from cma or tiler memory ? we are using vsdk3.01 version.

    I think, from vsdk3.04 version the weston graphics buffer memory will be allocated from cma .

    Can you please check with Subhajit ?


    Regards
    Gokul
  • Hi Gokul,
    PSDKLA3.02 supported allocating graphics buffers in TILER memory. After few customers reported video playback issue due to no memory left for ducati in TILER, TI added patches for PSDKLA-3753(mentioned in Post release update) to allocate graphics buffers in CMA region.

    PSDKLA3.04 + VISION-SDK3.04 combination supported CMA for weston with vDRM.

    Are you able to get weston up when you replaced libdbm.so* to rootfs?

    Ram
  • Hello Ram,

    Related to Weston Crash you suggested three components, please provide your feedback for below queries:
    1. Kernel Patches --> patches related to kernel are already part of our kernel tree, so need to apply.
    2. libdrm --> Is it required to add.
    3. sgx-um --> Only libdbm.so need to update?
    4. Update cma=128 boot arguments need to update .


    Regards,
    Ikshwaku
  • Hi Ikshwaku,
    Yes, you need to apply patches on kernel, libdrm and sgx-um and make changes for in bootArgs to reserve atleast 128MB in cma.

    Could you bringup weston when you just replaced libdbm.so* without kernel patches?

    Ram
  • Hi Ikshwaku/Gokul,
    What is the PSDKLA version used in your case? If it is PSDKLA3.03, all the patches I mentioned will be available in this release.

    Thanks
    Ram
  • Hello Ram,

    We are using PSDK 3.03 and yes it contains kernel patches.
    But libdrm and sgx-um patches are not included .

    Regards,
    Ikshwaku
  • ok,
    Can you do this experiment?
    Stay with current sgx-um and after boot, stop weston.
    Check how tiler_map looks like with cat /sys/kernel/debug/dri/0/tiler_map

    Run kmscube application in background and check tiler_map. This should show 3 5400KB allocation pattern (for your 1920x720 display) in tiler_map.

    Now upgrade sgx-um to the commitID to 1145367010f416dbed87884bac329158eda26777
    and run kmscube and check how tiler_map look like with cat /sys/kernel/debug/dri/0/tiler_map

    There should be no change in tiler_map before and after kmscube launch since graphics buffers will no more be allocated in TILER and will be in CMA region.

    Ram
  • Not able to rum kmscube test.

    root@mmt2020-a880:~# kmscube
    trying to load module omapdrm...success.
    no connected connector!
    failed to initialize DRM
    root@mmt2020-a880:~#

    Regards,
    Ikshwaku
  • Hi Ram,

    We also tried just replacing libdbm.so* in the existing root file system .But weston is not coming up with that change alone.

    Regards,
    Gokul
  • Hi Gokul,
    Can you change cma argument in the bootargs as
    cma=128M@0xB0000000
    and give a try?

    Ram
  • Hi Gokul,
    Can you please share the current dtb used in your system and the dmesg logs after booting? I will get this reviewed.
  • Hi Ramprasad,

    After  adding the bootargs cma=128M@0xB0000000., Weston is running.

    But still the same issue is seen. 

    I am attaching the tiler logs and dmesg logs.

    tiler_withcma.log

    Regards,

    Gokul

  • Hi Gokul,

    After applying the sgx patch, ideally tiler_map pattern should be empty( no memory occupied) but I still see memory 5400kb pattern in tiler_map.

    Can you check

    1) After boot stop Weston and check tiler_map.

    2)Start Weston and check tiler_map

    3) Compare if these two patterns between before and after applying sgx-um patch.

    I see many other allocations in TILer, do you know what are those allocations?

    Are you still seeing omapdrm: could not remap error after starting video playback?

    Can you also share /process/meningitis details?

    Does your HMI application uses omap_bo_new() to allocate buffers?

    If yes, it needs to set no flag with OMAP_MEM_CONTIG.

    Thanks

    Ram

  • Hi Ramprasad,

    Please find my inline comments

    1) After boot stop Weston and check tiler_map.

    2)Start Weston and check tiler_map

    >>There is no difference in tiler map for 1 & 2 case. Same result. Attached log 

    3) Compare if these two patterns between before and after applying sgx-um patch.

    >>with sgx-um patches, nearly 10 mb( 2* 5400K )used. Without patches, more than 10 mb used (attached log)

    I see many other allocations in TILer, do you know what are those allocations? I am not sure, who is allocating.

    Are you still seeing omapdrm: could not remap error after starting video playback? No .

    But  always display goes blank. Also sometimes target get reset.

    Now we have nearly 110 MB left in tiler. But still Why we are n't able to play HD videos ?

     

    CONTAINER 0 DUMP BEGIN
    000:fffffffffffff(64*1)fffffffffffffeeeeeeeeeeeee(64*1)eeeeeeeeeeeeeddddd(32*1)dddddccccc(32*1)cccccbbbbb(32*1)bbbbbaaaaa(32*1)aaaaa
    001:                                                                                                                                
    002:                                                                                                                                
    003:                                                                                                                                
    004:                                                                                                                                
    005:                                                                                                                                
    006:                                                                                                                                
    007:                                                                                                                                
    008:                                                                                                                                
    009:                                                                                                                                
    010:                                                                                                                                
    011:                                                                                                                                
    012:                                                                                                                                
    013:                                                                                                                                
    014:                                                                                                                                
    015:                                                                                                                                
    016:                                                                                                                                
    017:                                                                                                                                
    018:                                                                                                                                
    019:                                                                                                                                
    020:                                                                                                                                
    021:                                                                                                                                
    022:                                                                                                                                
    023:                                                                                                                                
    024:                                                                                                                                
    025:                                                                                                                                
    026:                                                                                                                                
    027:                                                                                                                                
    028:                                                                                                                                
    029:                                                                                                                                
    030:                                                                                                                                
    031:                                                                                                                                
    032:                                                                                                                                
    033:                                                                                                                                
    034:                                                                                                                                
    035:                                                                                                                                
    036:                                                                                                                                
    037:                                                                                                                                
    038:                                                                                                                                
    039:                                                                                                                                
    040:                                                                                                                                
    041:                                                                                                                                
    042:                                                                                                                                
    043:                                                                                                                                
    044:                                                                                                                                
    045:                                                                                                                                
    046:                                                                                                                                
    047:                                                                                                                                
    048:                                                                                                                                
    049:                                                                                                                                
    050:                                                                                                                                
    051:                                                                                                                                
    052:                                                                                                                                
    053:                                                                                                                                
    054:                                                                                                                                
    055:                                                                                                                                
    056:                                                                                                                                
    057:                                                                                                                                
    058:                                                                                                                                
    059:                                                                                                                                
    060:                                                                                                                                
    061:                                                                                                                                
    062:                                                                                                                                
    063:                                                                                                                                
    064:                                                                                                                                
    065:                                                                                                                                
    066:                                                                                                                                
    067:                                                                                                                                
    068:                                                                                                                                
    069:                                                                                                                                
    070:                                                                                                                                
    071:                                                                                                                                
    072:                                                                                                                                
    073:                                                                                                                                
    074:                                                                                                                                
    075:                                                                                                                                
    076:                                                                                                                                
    077:                                                                                                                                
    078:                                                                                                                                
    079:                                                                                                                                
    080:                                                                                                                                
    081:                                                                                                                                
    082:                                                                                                                                
    083:                                                                                                                                
    084:                                                                                                                                
    085:                                                                                                                                
    086:                                                                                                                                
    087:                                                                                                                                
    088:                                                                                                                                
    089:                                                                                                                                
    090:                                                                                                                                
    091:                                                                                                                                
    092:                                                                                                                                
    093:                                                                                                                                
    094:                                                                                                                                
    095:                                                                                                                                
    096:                                                                                                                                
    097:                                                                                                                                
    098:                                                                                                                                
    099:                                                                                                                                
    100:                                                                                                                                
    101:                                                                                                                                
    102:                                                                                                                                
    103:                                                                                                                                
    104:                                                                                                                                
    105:                                                                                                                                
    106:                                                                                                                                
    107:                                                                                                                                
    108:                                                                                                                                
    109:                                                                                                                                
    110:                                                                                                                                
    111:                                                                                                                                
    112:                                                                                                                                
    113:                                                                                                                                
    114:                                                                                                                                
    115:                                                                                                                                
    116:                                                                                                                                
    117:                                                                                                                                
    118:                                                                                                                                
    119:                                                                                                                                
    120:                                                                                                                                
    121:                                                                                                                                
    122:                                                                                                                                
    123:                                                                                                                                
    124:                                                                                                                                
    125:                                                                                                                                
    126:                                                                                                                                
    127:                                                                                                                                
    CONTAINER 0 DUMP END
    CONTAINER 1 DUMP BEGIN
    000:                                                                                                                                
    001:                                                                                                                                
    002:                                                                                                                                
    003:                                                                                                                                
    004:                                                                                                                                
    005:                                                                                                                                
    006:                                 <==============================================================================================
    007:=============================================================3600K==============================================================
    008:================================================================================================================================
    009:===================================================================================================X============================
    010:================================================================================================================================
    011:=============================================================3600K==============================================================
    012:================================================================================================================================
    013:=====================================X==========================================================================================
    014:=============================================================3600K==============================================================
    015:================================================================================================================================
    016:=======================================================================================================X========================
    017:================================================================================================================================
    018:=============================================================3600K==============================================================
    019:================================================================================================================================
    020:=========================================X======================================================================================
    021:=============================================================3600K==============================================================
    022:================================================================================================================================
    023:===========================================================================================================X====================
    024:================================================================================================================================
    025:=============================================================3600K==============================================================
    026:================================================================================================================================
    027:=============================================> <=====================================1500K======================================
    028:==========================================================================================================><====================
    029:================================================================================================================================
    030:================================================================================================================================
    031:=============================================================5400K==============================================================
    032:================================================================================================================================
    033:================================================================================================================================
    034:=============><=================================================================================================================
    035:================================================================================================================================
    036:=============================================================5400K==============================================================
    037:================================================================================================================================
    038:================================================================================================================================
    039:================================================><====================================1500K=====================================
    040:============================================================================================================X===================
    041:=============================================================1500K==============================================================
    042:=======================================><=========================================1500K=========================================
    043:===================================================================================================X============================
    044:=============================================================1500K==============================================================
    045:==============================><=============================================1500K==============================================
    046:==========================================================================================>           <==========704K===========
    047:=============================================================><==============================704K===============================
    048:=====================><=========================================================================================================
    049:================================================================================================================================
    050:=============================================================5400K==============================================================
    051:================================================================================================================================
    052:================================================================================================================================
    053:========================================================><======================================================================
    054:================================================================================================================================
    055:=============================================================5400K==============================================================
    056:================================================================================================================================
    057:================================================================================================================================
    058:===========================================================================================><===================================
    059:================================================================================================================================
    060:=============================================================5400K==============================================================
    061:================================================================================================================================
    062:================================================================================================================================
    063:==============================================================================================================================><
    064:================================================================================================================================
    065:================================================================================================================================
    066:=============================================================5400K==============================================================
    067:================================================================================================================================
    068:================================================================================================================================
    069:=================================><=============================================================================================
    070:================================================================================================================================
    071:=============================================================5400K==============================================================
    072:================================================================================================================================
    073:================================================================================================================================
    074:====================================================================><==========================================================
    075:================================================================================================================================
    076:=============================================================5400K==============================================================
    077:================================================================================================================================
    078:================================================================================================================================
    079:=======================================================================================================><=======================
    080:================================================================================================================================
    081:================================================================================================================================
    082:=============================================================5400K==============================================================
    083:================================================================================================================================
    084:================================================================================================================================
    085:==========><====================================================================================================================
    086:================================================================================================================================
    087:=============================================================5400K==============================================================
    088:================================================================================================================================
    089:================================================================================================================================
    090:=============================================><=================================================================================
    091:================================================================================================================================
    092:=============================================================5400K==============================================================
    093:================================================================================================================================
    094:================================================================================================================================
    095:================================================================================><==============================================
    096:================================================================================================================================
    097:=============================================================5400K==============================================================
    098:================================================================================================================================
    099:================================================================================================================================
    100:===================================================================================================================><===========
    101:================================================================================================================================
    102:================================================================================================================================
    103:=============================================================5400K==============================================================
    104:================================================================================================================================
    105:================================================================================================================================
    106:======================><========================================================================================================
    107:================================================================================================================================
    108:=============================================================5400K==============================================================
    109:================================================================================================================================
    110:================================================================================================================================
    111:=========================================================><=====================================================================
    112:================================================================================================================================
    113:=============================================================5400K==============================================================
    114:================================================================================================================================
    115:================================================================================================================================
    116:============================================================================================><==================================
    117:================================================================================================================================
    118:=============================================================5400K==============================================================
    119:================================================================================================================================
    120:================================================================================================================================
    121:===============================================================================================================================>
    122:<============================================================1024K=============================================================>
    123:<============================================================1024K=============================================================>
    124:<============================================================1024K=============================================================>
    125:<============================================================1024K=============================================================>
    126:<============================================================1024K=============================================================>
    127:<============================================================1024K=============================================================>
    CONTAINER 1 DUMP END
    root@mmt2020-a880:~# 
    root@mmt2020-a880:~# 
    root@mmt2020-a880:~# 
    root@mmt2020-a880:~# x cat /proc/xc c  cmdline 
    console=ttyS2,115200n8 earlyprintk quiet loglevel=3 clk_ignore_unused 			    root=/dev/mmcblk0p3 ro rootfstype=ext4 rootwait mem=1007M@0x80000000 mem=1024M@0xC0000000                  mem=1G@0x200000000 ramoops.mem_address=0xBEF00000 ramoops.mem_size=65536 			    oops=panic panic=1 
    root@mmt2020-a880:~# 

    7462.tiler_withcma.log

    Regards,

    Gokul

  • Hi Ram,

    After applying this patches, display goes blank & sometimes target get reset.

    Regards,
    Gokul
  • Hi Gokul,
    Comparing the with and without CMA logs, now all graphics buffers are allocated in CMA and so around 110MB TILER is available for video playback usecase
    which is sufficient for single display video-playback usecase, but not still clear why 2 x 5400KB of patterns are there.

    There is no issue with "omapdrm: could not remap" error in dmesg means TILER is available for video playback and there is sufficient memmory.

    1) Do you see target getting reset with only HD videos? or any other smaller resolution videos also? Upto what resolution it works?
    2) Can you try running manual gstreamer pipeline with video-sink set to fakesink? This is just to check if video decoding + vpe is causing any issue.
    3) Please collect dmesg and userspace logs when the issue happens.

    Thanks
    Ram
  • Hi Ram,

    1. It is observed in HD videos.I have already transferred the videos. (a1 .mp4 & e1.mp4 not working )
    It will play for one or two times and then display goes Blank & system gets reset sometimes.

    2 Please update the complete gstreamer command.

    3. I have already updated the logs . Do you have any macro to increase the verbosity & print the logs from all cores ?

    Have you started testing this use-case from your end ?



    Regards,
    Gokul
  • Hi Gokul,
    Can you try with these gstreamer pipelines instead of starting the playback using HMI?
    gst-launch-1.0 playbin uri=file:///tmp/SDCard_Slot1-p1/a1.mp4 video-sink=waylandsink ?

    The tiler_map logs you shared seems just before starting the videoplayback. Please keep on executing
    cat /sys/kernel/debug/dri/t0/tiler_map during playback and check if the pattern show all 128MB is occupied and omapdrm: could not remap error is observed or not.

    The logs you share doesn't show any error or problem. I didn't get any clue here.

    Is it possible to do one experiment? Change your display back to 800x480 and check if the issue is observed now with these two changes you have made now. a) SGX-UM update b) CMA in bootargs update.

    Thanks
    Ram
  • Hi Ram,

    We tried via  gst- command. The video plays for two to three times & then display goes blank.

    Also sometimes  display goes blank & target will get reset.

     

    while true

    > do

    > gst-launch-1.0 playbin uri=file:///tmp/SDCard_Slot1-p1/vd/a1.mp4 video-sink=wa ylandsink

    > sleep 3

    > layer-add-surfaces 1000 1 &

    > done

    Ikshwaku tried your (SGX-UM update , CMA in bootargs ) patches in 7 inch. There is no issue in 7 inch display.

    logs_nov27.zip

    Regards,

    Gokul

  • Hi Gokul,


    Can you please provide the output of the below command.

    omapconf read 0x58001018

    Regards

    Shravan

  • Shravan,

    omapconf read 0x58001018
    00000000

    Regards,
    Gokul
  • Hi Ikshwaku,
    Can you try these two experiments individually on 1920x720 display?

    while true
    > do
    > gst-launch-1.0 playbin uri=file:///tmp/SDCard_Slot1-p1/vd/a1.mp4 video-sink=fakesink
    > sleep 3
    > done

    This is to confirm if decode + vpe is causing the issue or not. This doesn't involve display. Check if loop runs more than 3 iterations, but
    you don't observe anything on display.

    If above experiment doesn't reproduce display blank issue try below GST pipeline.
    gst-launch-1.0 videotesrsrc ! 'video/x-raw, format=NV12 , width=1920, height=720' ! waylandsink use-drm=true

    This involves only display , no decoding but continuously 1920x720 NV12 buffers are submitted to display.
    If this pipeline reproduces display going blank issue, there could be issue with display settings.

    Ram
  • Hi Gokul,

    Just to confirm, this value ( omapconf read 0x58001018 = 0x0) is recorded when the screen is blank correct / system resets correct?


    Regards

    Shravan

  • Hi Shravan,

    We checked the value after display blank & shows 0x0.


    Regards,
    Gokul
  • Hello Ram,

    I have tried this experiment:
    while true
    > do
    > gst-launch-1.0 playbin uri=file:///tmp/SDCard_Slot1-p1/vd/a1.mp4 video-sink=fakesink
    > sleep 3
    > done

    And issue is reproduced in the third iteration.

    Regards,
    Ikshwaku
  • Hi Ikshwaku,

    Could it be possible to add a heart-beat code on the IPU? I assume you're using vision-SDK. Can you add message in the IPU code which prints every second. I assume you're using IPU-1 for VSDK, so you can add a print message in the function IPU1_0_main which prints every second. The function is found in the file links_fw/src/rtos/bios_app_common/tda2xx/ipu1_0/src/main_common_ipu1_0.c in vision-SDK.
    This will help us determine, if IPU controlling display is still running.

    Regards
    Shravan
  • Hi Shravan,

    As we discussed in the last call, I checked the /sys/kernel/debug/remoteproc/remoteproce0/status value . It shows running only.

    But sometimes we will not get control to console & system resets.

    Regards,
    Gokul
  • Hi Ikshwaku,
    Can you check the behavior for these two pipelines?

    gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080' ! waylandsink window-resolution=1920x720 use-drm=true

    gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080' ! vpe ! waylandsink window-resolution=1920x720

    Thanks
    Ram
  • Hi Ikshwaku/Gokul,
    Are you seeing proper behavior with 30fps setting for the display for this issue also?

    Ram
  • Hii Ikshwaku,
    Please check if the issue is reproduced with the pipeline mentioned to try out.

    Thanks
    Ram