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.

AM3517EVM Rotation + Resize issue

Other Parts Discussed in Thread: AM3517

Hi.
My customer evaluates the rotation and the resize function using AM3517EVM.
When it runs the video loopback program with 270 degrees rotation and resize,
the system freezing occur after few minutes of the running program.

[Evaluation conditions]
-EVM: TI AM3517EVM
-EZSDK: Linux v5.03.02 + Patch for 270 degrees rotation
-Input image(NTSC): 720x480
-Output resize image: 504x378

The following evaluation conditions could run the program without system freezing.
-EVM: TI AM3517EVM
-EZSDK: Linux v5.03.02 + Patch for 270 degrees rotation
-Input image(Fixed): 720x480
-Output resize image: 456x342

Can anyone advise as to the causes and solutions?
Thanks in advance for your helps.

Regards,
Kanae

  • Information is very limited to conclude anything, Do you have any other symptoms? What do you mean, freezing occurs? Is it only console freeze OR whole system got frozen?

    What is this patch you are referring to?

    Also, there are various fixes we have done on top of PSP 04.02.00.7 release, I recommend you to migrate the kernel to -

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=shortlog;h=refs/heads/OMAPPSP_04.02.00.07

    Can you check with above kernel?

    Thanks,

    Vaibhav

  • Thank you for your reply.
    Here is additional information.

    It is whole system freezing, because it cannot recover
    without the power restart or H/W reset.

    And the patch means exactly the kernel you recommended.
    My customer uses this kernel.
    http://arago-project.org/git/projects/?p=linux-omap3.git;a=shortlog;h=refs/heads/OMAPPSP_04.02.00.07
    I am sorry my explanation made you confused.

    Sample code: "saUserPtrLoopBack.c"  in SDK 05.03.02
    Command:     ./saUserPtrLoopback -i 0 -l 1000 -x 0 -y 0 -X 456 -Y 342 -a 0 -b 0 -c 720 -d 480 -r 270

    If you need more infomation, please let me know.

    Regards,
    Kanae

  • Hi.
    There is similar problem in am3517evm in another post.
    http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/416/t/180272.aspx

    Could you please give me any advice?
    I appreciate your help in advance.

    Regards,
    Kanae 

  • Dear All,

    I am working on AM3517 omap3 controller. Problem is with display. Display is getting rotated in 180 degrees  and from 180  to 0 degrees without any problem but when i tried to rotate display either to 90 or 270 degrees following is the error.

    "detected fb_set_par error, error code: -22"

      Rotation commands are in following site: http://omappedia.org/wiki/Bootargs_for_enabling_display

    I tried rotating display in all directions i mean 90, 180, 270 degree rotation.
    Display is getting rotated in 180 degrees but i am unable to rotate to 90 & 270 degrees
    when i dig through kernel code i came to know that this is because of overlay failure
        
        ovl->setup_overlay_info failed
         setup_overlay failed
         apply_changes failed
         detected fb_set_par error, error code: -22


     Default rotation applied to all framebuffers.
          0 - 0 degree rotation
          1 - 90 degree rotation
          2 - 180 degree rotation
          3 - 270 degree rotation

    ERROR LOG WHILE ROTATING 90 DEGREES

    root@devkit:~# echo "1" > /sys/class/g
    [  157.027130] max frame size 8388608, line size 480
    [  157.027130] max frame size 8388608, line size 480
    [  157.027160] value of r == 0 Memory Region = cda7e884
    [  157.027191] setup_overlay 0, posx 0, posy 0, outw 320, outh 240
    [  157.027191] paddr 8e000000, vaddr d1000000
    [  157.027221] check_overlay 0: (0,0 320x240 -> 320x240) disp (240x320)
    [  157.027221] R in setup_overlay_info == -22 RotationType = 0 Width = 320 Height = 240
    [  157.027252] ovl->setup_overlay_info failed
    [  157.027252] setup_overlay failed
    [  157.027252] apply_changes failed
    [  157.027282] detected fb_set_par error, error code: -22

    NO ERROR FOR 180 DEGREE ROTATION

    root@devkit:~# echo "2" > /sys/class/graphics/fb0/rotate
    [  142.355346] max frame size 8388608, line size 480
    [  142.355346] max frame size 8388608, line size 480
    [  142.355377] value of r == 0 Memory Region = cda7e884
    [  142.355407] setup_overlay 0, posx 0, posy 0, outw 240, outh 320
    [  142.355407] paddr 8e000000, vaddr d1000000
    [  142.355438] check_overlay 0: (0,0 240x320 -> 240x320) disp (240x320)
    [  142.355468] R in setup_overlay_info == 0 RotationType = 0 Width = 240 Height = 320
    [  142.355468] check_overlay 0: (0,0 240x320 -> 240x320) disp (240x320)
    [  142.355529] offset0 153598, offset1 153598, row_inc -3, pix_inc -3

    ERROR LOG WHILE ROTATING 270 DEGREES

    root@devkit:~# echo "3" > /sys/class/g
    [  245.988098] max frame size 8388608, line size 480
    [  245.988098] max frame size 8388608, line size 480
    [  245.988128] value of r == 0 Memory Region = cda7e884
    [  245.988159] setup_overlay 0, posx 0, posy 0, outw 320, outh 240
    [  245.988159] paddr 8e000000, vaddr d1000000
    [  245.988189] check_overlay 0: (0,0 320x240 -> 320x240) disp (240x320)
    [  245.988220] R in setup_overlay_info == -22 RotationType = 0 Width = 320 Height = 240
    [  245.988220] ovl->setup_overlay_info failed
    [  245.988220] setup_overlay failed
    [  245.988250] apply_changes failed
    [  245.988250] detected fb_set_par error, error code: -22
    raphics/fb0/rotate

    NO ERROR FOR 180 TO 0 DEGREE ROTATION

    root@devkit:~# echo "0" > /sys/class/g[  281.659881] max frame size 8388608, line size 480
    [  281.659881] max frame size 8388608, line size 480
    [  281.659912] value of r == 0 Memory Region = cda7e884
    [  281.659942] setup_overlay 0, posx 0, posy 0, outw 240, outh 320
    [  281.659942] paddr 8e000000, vaddr d1000000
    [  281.659973] check_overlay 0: (0,0 240x320 -> 240x320) disp (240x320)
    [  281.660003] R in setup_overlay_info == 0 RotationType = 0 Width = 240 Height = 320
    [  281.660003] check_overlay 0: (0,0 240x320 -> 240x320) disp (240x320)
    [  281.660064] offset0 0, offset1 0, row_inc 1, pix_inc 1
    raphics/fb0/rotate
    root@devkit:~#

    And other problem is that i am getting colour stripes in display.(very less but visible) i had tried to correct colour but with no success. any one can help me in this regard

    Best Regards,

    Rajeev.

  • Lets track it in one thread, http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/416/t/180272.aspx#659738

    I have already responded there.

    Thanks,

    Vaibhav