Jetson TX2/r28 Display debug

Get prepared
This section focuses on debug display driver issue on rel-28.x BSP. Drivers of tegra display controller are under kernel source: https://developer.nvidia.com/embedded/downloads For T210(TX1) kernel/display/drivers/video/tegra/dc/ For T186(TX2). Note that TX2 still uses part of driver codes of T210. kernel/t18x/drivers/video/tegra/dc

Tips
dmesg |grep tegradc sudo cat /sys/kernel/debug/tegradc.X/mode #X=0,1,2. sudo cat /sys/class/graphics/fb0/mode #if more than one fb, just change the fbX to whatever you want. sudo cat /sys/kernel/debug/tegradc.X/edid #X=0,1,2. 1. Prepare a known 256byte EDID. 2. set use_fallback = true; in tegra_edid_get_monspecs under edid.c. 3. fill in the known EDID to default_720p_edid[256]. sudo cat /sys/kernel/debug/tegradc.0/stats underflows: 35 underflows_a: 143 underflows_b: 0 underflows_c: 0
 * Print out display kernel related message
 * Print current mode in dc
 * Print current mode in fbcon
 * Capture edid
 * Forcing edid (This is most likely when your monitor failed to be up due to problematic default EDID)
 * Do I hit underflow? (red screen or blank line flicker)

sudo echo 4 > /sys/class/graphics/fb0/blank  #blank display and power down sudo echo 1 > /sys/class/graphics/fb0/blank  #blank display and show the background color sudo echo 0 > /sys/class/graphics/fb0/blank  #unblank display
 * Blank/Unblank window/display

Section "Device" ...  Option   "ModeDebug" ... EndSection Please be aware that tegra only supports to read modes from either device tree or edid. Thus, for those methods which put a mode in xorg.conf, it would be rejected by L4T graphic drivers.
 * Error log from X11
 * 1) Add below option in /etc/X11/xorg.conf, 'Section "Device"'. Verbose mode logging will be shown in /var/log/Xorg.0.log

Issues

 * HDMI
 * Display is not be able to up. Moreover, system is not able to up.(Fixed after rel-28.2)
 * https://devtalk.nvidia.com/default/topic/1003956/jetson-tx2/tx2-not-booting-up-with-hdmi-connected/post/5160211/#5160211
 * X11 returns below error and cause failure (TX2)
 * https://devtalk.nvidia.com/default/topic/1027467
 * https://devtalk.nvidia.com/default/topic/1031399/
 * This is due to uart1_tx pin causing memory bandwidth issue. Please review the OEM design guide for your carrier board
 * Full range RGB (0-255) support on TX2, HOW to?
 * https://devtalk.nvidia.com/default/topic/1028918/jetson-tx2/rgb-full-range-0-255-on-hdmi/post/5233830/#5233830
 * Dual HDMI on TX2 (r32) #similar steps on r28
 * https://devtalk.nvidia.com/default/topic/1058350/
 * Weston supports on r32
 * https://devtalk.nvidia.com/default/topic/1068803/