120Hz HDMI?

Post Reply
blu
Posts: 59
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC, N2 eMMC
Has thanked: 1 time
Been thanked: 11 times
Contact:

120Hz HDMI?

Unread post by blu » Tue Aug 13, 2019 4:01 am

Anybody been successful in driving 1080p@120Hz? I see it's not on the list of supported resolutions, but still.

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 38 times
Contact:

Re: 120Hz HDMI?

Unread post by joy » Tue Aug 13, 2019 9:14 am

blu wrote:
Tue Aug 13, 2019 4:01 am
Anybody been successful in driving 1080p@120Hz? I see it's not on the list of supported resolutions, but still.
Hi blu,
We've not tried the mode, 1080p120Hz.
I will try to find any available monitor to support it and check S922X & driver's spec.

Anyway, do you have the one those resolution is 1080p120Hz?
If so, could you share its specification or product info?
And it will be very good if you share its edid.bin. ;)
Or this modeline can be possible.

Code: Select all

$ cvt 1920 1080 120
# 1920x1080 119.93 Hz (CVT) hsync: 139.12 kHz; pclk: 369.50 MHz
Modeline "1920x1080_120.00"  369.50  1920 2080 2288 2656  1080 1083 1088 1160 -hsync +vsync

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 38 times
Contact:

Re: 120Hz HDMI?

Unread post by joy » Tue Aug 13, 2019 11:46 am

Hello blu,
If you have a monitor which supports native resolution 1920x1080p120Hz, can you test this one when you're available?

In principle, the mode is available,
and using "HDMI PHY Manual setting" scheme, you can test it.

I tried a simple test on N2 with the following modeline.
https://wiki.odroid.com/odroid-c2/appli ... utosetting

Code: Select all

$ cvt 1920 1080 120
# 1920x1080 119.93 Hz (CVT) hsync: 139.12 kHz; pclk: 369.50 MHz
Modeline "1920x1080_120.00"  369.50  1920 2080 2288 2656  1080 1083 1088 1160 -hsync +vsync
I don't have any monitor for 1920x1080p120hz native resolution and I couldn't get any result from my monitors.
So it will be helpful if you can test it.

And one more reason why I want to confirm its operation is that I found a bug at a logic to generate hdmi phy source pll.
https://github.com/hardkernel/linux/blo ... hw.c#L2175
Current logic of "custombuilt" may not generate higher hpll over 3Gbps.

Anyway, please refer to the followings.
You can test 1920x1080p120hz by adjusting boot.ini file.
1. set display_autodetection to "false"
https://github.com/mdrjr/n2_bootini/blo ... oot.ini#L7

Code: Select all

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "false"
2. change hdmimode to "custombuilt"
https://github.com/mdrjr/n2_bootini/blo ... ot.ini#L50

Code: Select all

setenv hdmimode "custombuilt"
3. add this modeline information

Code: Select all

setenv hdmimode "custombuilt"

### 1920x1080p120hz
setenv modeline "1920,1080,369500,139120,120,1920,2080,2288,2656,1080,1083,1088,1160,0,1,1"

blu
Posts: 59
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC, N2 eMMC
Has thanked: 1 time
Been thanked: 11 times
Contact:

Re: 120Hz HDMI?

Unread post by blu » Tue Aug 13, 2019 3:12 pm

Hi joy, thank you for the quick reply!

Yes, I do have a 120Hz tv set, but I'm away from it ATM.

The modeline cvt suggests seems to have a pixel clock notably higher than my expectations, though -- too much overscan (i.e. too large HTotal * VTotal)? The reason I'm asking is that I've seen 1080p120 modelines which are 'vanilla' 1080p60 with 2x pclk = 296.70 (i.e. 148.5MHz * ~2), which is a common clock for 3840x2160p30.

Either way, I've successfully driven that set at 1080p120 from another SBC, so I'll just look up the actual xrandr modeline (received via EDID) from there.

Cheers, I'll report back later this week.

blu
Posts: 59
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC, N2 eMMC
Has thanked: 1 time
Been thanked: 11 times
Contact:

Re: 120Hz HDMI?

Unread post by blu » Thu Aug 15, 2019 8:36 pm

Success at first attempt -- N2 does 1080p120 like a champ!

First, EDID and modelines (via xrandr) from another SBC connected to the same TV set (modelines limited to 1080p as the rest are irrelevant):

Code: Select all

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
HDMI-1 connected primary 1920x1080+0+0 (0x43) normal (normal left inverted right x axis y axis) 1600mm x 900mm
    Identifier: 0x41
    Timestamp:  19203
    Subpixel:   unknown
    Gamma:      1.0:1.0:1.0
    Brightness: 1.0
    Clones:
    CRTC:       0
    CRTCs:      0 1
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter:
    EDID:
        00ffffffffffff001e6d010001010101
        011c010380a05a780aee91a3544c9926
        0f5054a1080031404540614071408180
        01010101010108e80030f2705a80b058
        8a0040846300001e023a801871382d40
        582c450040846300001e000000fd003a
        791e883c000a202020202020000000fc
        004c472054560a202020202020200162
        02035af1565d101f0413051403021220
        212215015e5f6263643f403209570715
        07505707016704033d1ec05f7e016e03
        0c002000b83c20008001020304e200cf
        e305c000e50e60616566eb0146d00026
        2009458a5ea3e3060d01662150b05100
        1b304070360040846300001e00000000
        00000000000000000000000000000065
    hue: 50
        range: (0, 100)
    saturation: 50
        range: (0, 100)
    contrast: 50
        range: (0, 100)
    brightness: 50
        range: (0, 100)
    hdmi_output_mode_capacity: 15
        range: (0, 15)
    hdmi_color_depth_capacity: 7
        range: (0, 255)
    hdmi_output_colorimetry: None
        supported: None, ITU_2020
    hdmi_output_format: output_rgb
        supported: output_rgb, output_ycbcr444, output_ycbcr422, output_ycbcr420, output_ycbcr_high_subsampling, output_ycbcr_low_subsampling, invalid_output
    hdmi_output_depth: 24bit
        supported: Automatic, 24bit, 30bit
  1920x1080 (0x43) 297.000MHz +HSync +VSync *current
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock 135.00KHz
        v: height 1080 start 1084 end 1089 total 1125           clock 120.00Hz
  1920x1080 (0x44) 297.000MHz +HSync +VSync
        h: width  1920 start 2448 end 2492 total 2640 skew    0 clock 112.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock 100.00Hz
  1920x1080 (0x45) 296.703MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock 134.87KHz
        v: height 1080 start 1084 end 1089 total 1125           clock 119.88Hz
  1920x1080 (0x46) 148.500MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
  1920x1080 (0x47) 148.500MHz +HSync +VSync
        h: width  1920 start 2448 end 2492 total 2640 skew    0 clock  56.25KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  50.00Hz
  1920x1080 (0x48) 148.352MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.43KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  59.94Hz
  1920x1080 (0x4b) 74.250MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  33.75KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  30.00Hz
  1920x1080 (0x4c) 74.250MHz +HSync +VSync
        h: width  1920 start 2448 end 2492 total 2640 skew    0 clock  28.12KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  25.00Hz
  1920x1080 (0x4d) 74.250MHz +HSync +VSync
        h: width  1920 start 2558 end 2602 total 2750 skew    0 clock  27.00KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  24.00Hz
  1920x1080 (0x4f) 74.176MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  33.72KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  29.97Hz
  1920x1080 (0x50) 74.176MHz +HSync +VSync
        h: width  1920 start 2558 end 2602 total 2750 skew    0 clock  26.97KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  23.98Hz

boot.ini for modeline 0x43 above:

Code: Select all

#setenv hdmimode "2160p60hz" <- original mode N2 has been running up to now
setenv hdmimode "custombuilt"
#setenv modeline "horpixels,verpixels,pixel_clock,hor_freq,ver_freq,hdisp,hsyncstart,hsyncend,htotal,vdisp,vsyncstart,vsyncend,vtotal,hsync_polarity,vsync_polarity,progress_mode"
setenv modeline "1920,1080,297000,135000,120,1920,2008,2052,2200,1080,1084,1089,1125,1,1,1"
Not only does N2 do 1080p120Hz, but it also does it while scanning over HDMI 30bpp -- TV set and N2 negotiate that automatically, no participation on my part.

Now, the juicy part: N2 does 1920x1080p120 @ MSAA16 at rock-stable 120fps. In comparison, Jetson Nano cannot keep 120fps @ MSAA4 for the same scenes.

Cheers!

ps: To get the unit tests not to rush at 2x anim speed, one needs to edit test.sh and add arg -app anim_step 0.00625 to every test.

pps: 120Hz rocks.
Last edited by blu on Sun Aug 18, 2019 2:50 pm, edited 1 time in total.
These users thanked the author blu for the post (total 3):
xabolcs (Fri Aug 16, 2019 2:46 am) • joy (Sun Aug 18, 2019 11:05 am) • rooted (Sun Aug 18, 2019 2:24 pm)

fcmts
Posts: 14
Joined: Mon May 13, 2019 8:25 pm
languages_spoken: english, portuguese
ODROIDs: N2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: 120Hz HDMI?

Unread post by fcmts » Fri Aug 16, 2019 10:48 am

blu wrote:
Thu Aug 15, 2019 8:36 pm
pps: 120Hz rocks.
Nice! How can you play this file?

https://www.blurbusters.com/wp-content/ ... _8mbps.mp4

blu
Posts: 59
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC, N2 eMMC
Has thanked: 1 time
Been thanked: 11 times
Contact:

Re: 120Hz HDMI?

Unread post by blu » Fri Aug 16, 2019 2:47 pm

fcmts wrote:
Fri Aug 16, 2019 10:48 am
Nice! How can you play this file?

https://www.blurbusters.com/wp-content/ ... _8mbps.mp4
I'm AF120 (away from 120Hz) again. I'll give it a try by the end of the month.

Apropos, I've been thinking why N2 handles 120fps so well where Nano does not, given both have comparable-performance GPUs. I think this might be a prime example of Amdahl's Law -- Nano's CPU(s) simply cannot keep up. I'll verify that theory end of month.

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 38 times
Contact:

Re: 120Hz HDMI?

Unread post by joy » Sun Aug 18, 2019 11:03 am

blu wrote:
Thu Aug 15, 2019 8:36 pm
Success at first attempt -- N2 does 1080p120 like a champ!

First, EDID and modelines (via xrandr) from another SBC connected to the same TV set (modelines limited to 1080p as the rest are irrelevant):

Code: Select all

  1920x1080 (0x43) 297.000MHz +HSync +VSync *current
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock 135.00KHz
        v: height 1080 start 1084 end 1089 total 1125           clock 120.00Hz
boot.ini for modeline 0x43 above:

Code: Select all

#setenv hdmimode "2160p60hz" <- original mode N2 has been running up to now
setenv hdmimode "custombuilt"
#setenv modeline "horpixels,verpixels,pixel_clock,hor_freq,ver_freq,hdisp,hsyncstart,hsyncend,htotal,vdisp,vsyncstart,vsyncend,vtotal,hsync_polarity,vsync_polarity,progress_mode"
setenv modeline "1920,1080,297000,135000,120,1920,2008,2052,2200,1080,1084,1089,1125,1,1,1
Not only does N2 do 1080p120Hz, but it also does it while scanning over HDMI 30bpp -- TV set and N2 negotiate that automatically, no participation on my part.
blu wrote:
Thu Aug 15, 2019 8:36 pm
Now, the juicy part: N2 does 1920x1080p120 @ MSAA16 at rock-stable 120fps. In comparison, Jetson Nano cannot keep 120fps @ MSAA4 for the same scenes.

ps: To get the unit tests not to rush at 2x anim speed, one needs to edit test.sh and add arg -app anim_step 0.00625 to every test.

pps: 120Hz rocks.
Hi blu,
Thank you for sharing your test result and useful explanations.
I was wondering if it's available to support 120fps on ODROID-N2 and how to confirm 120fps is working normally and check GPU benchmark.
And you confirmed it.

Also your test method looks awesome!
I will try it on my N2 to verify other modes. (and hope I can understand its logic, too. ;))
blu wrote:
Fri Aug 16, 2019 2:47 pm
Apropos, I've been thinking why N2 handles 120fps so well where Nano does not, given both have comparable-performance GPUs. I think this might be a prime example of Amdahl's Law -- Nano's CPU(s) simply cannot keep up. I'll verify that theory end of month.
Cool! :)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests