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.

fb2 order number not reported back in sysfs file

TI folks,

We have developed a product based on the DM814x, using:

  • DM814x PG 3.0
  • EZSDK 5.05.02.00
  • EZSDK OMX/HDVPSS Overlay 5.05.02.00
  • PSP 04.04.00.02
  • Most of the Arago updates for both linux and u-boot in ti81xx-master after the v2.6.37_TI81XXPSP_04.04.00.02.patch1 tag

Recently, I have had need to start using fb2.  I have set the node correctly to hdmi, and been able to change its size, virtual size, FB scaler setup, etc.  It's working fine, and the plane order happens to be okay for me.

However, I noticed that when I try to set the plane order specifically, as taught to me by http://processors.wiki.ti.com/index.php/TI81XX_PSP_VPSS_Video_Driver_User_Guide , my value for fb2 is not reported back to me.

Example:

# cat /sys/devices/platform/vpss/graphics0/nodes
1:hdmi

# cat /sys/devices/platform/vpss/graphics1/nodes
1:hdmi

# cat /sys/devices/platform/vpss/graphics2/nodes
1:hdmi

# cat /sys/devices/platform/vpss/display0/order
1,0/1/3/0

# echo '1,0/1/3/2' > /sys/devices/platform/vpss/display0/order

# cat /sys/devices/platform/vpss/display0/order
1,0/1/3/0

Any idea why fb2 comes back as "0"?

Dan -

  • Hello,

    You could check here:

    e2e.ti.com/.../1152299


    BR
    Margarita
  • Margarita,

    First, thank you for replying.

    Margarita Gashova said:
    Hello,

    You could check here:

    e2e.ti.com/.../1152299



    Okay - I checked there. Based on that info, and also the wiki's "Reshuffle display order on HDMI VENC(display0)" section, I realize that there are actually two issues:

    - I have no idea how the "order" file is supposed to work, and the wiki won't help me. It appears to be a kind of reshuffle control rather than an actual cross bar setting, but the meaning of the numbers for each plane is not clear.

    - Regardless of how the "order" file is supposed to work, the number for fb2 is not being saved.

    So - I have two requests now:

    1. Instead of giving me a third example, can you tell me how the "order" files is supposed to work?

    2. Can you confirm whether or not there is a bug with processing the fb2 number?

    Thanks,
    Dan -
  • Margarita,

    Daniel70334 said:

    So - I have two requests now:

    1. Instead of giving me a third example, can you tell me how the "order" files is supposed to work?

    2. Can you confirm whether or not there is a bug with processing the fb2 number?

    I believe that I have solved item 2.  There is a copy/paste error in TI's HDVPSS code, where you are incorrectly using a SHIFT instead of a MASK, forcing the fb2 number to zero.  The code is in the HDVPSS overlay, so I am afraid that TI will not allow an actual patch on e2e.  But, please look in compConfigureHDMI() in the file:

    • component-sources/hdvpss_01_00_01_44/packages/ti/psp/vps/hal/src/vpshal_comp.c

    You will see that an additional CSL_VPS_COMP_HDMI_SETTINGS_G2_ORDER_SHIFT is being used instead of CSL_VPS_COMP_HDMI_SETTINGS_G2_ORDER_MASK.

    Can you confirm?

    Dan -

  • Hello Dan,

    We will check this.

    BR

    Margarita