Jetson TK1 gk20a error

I have seen a problem in TK1 devices, while problem occurs, device will go into black screen, I have checked kernel log, there are some gpu errors in kernel log like below, is there anyone can help me in this problem?

[ 369.240577] tegra-i2c tegra12-i2c.4: — register dump for debugging ----
[ 369.240581] tegra-i2c tegra12-i2c.4: I2C_CNFG - 0x2c00
[ 369.240584] tegra-i2c tegra12-i2c.4: I2C_PACKET_TRANSFER_STATUS - 0x1ff0001
[ 369.240586] tegra-i2c tegra12-i2c.4: I2C_FIFO_CONTROL - 0xe0
[ 369.240589] tegra-i2c tegra12-i2c.4: I2C_FIFO_STATUS - 0x800080
[ 369.240591] tegra-i2c tegra12-i2c.4: I2C_INT_MASK - 0xec
[ 369.240594] tegra-i2c tegra12-i2c.4: I2C_INT_STATUS - 0xc2
[ 369.240596] tegra-i2c tegra12-i2c.4: msg->len - 2
[ 369.240598] tegra-i2c tegra12-i2c.4: is_msg_write - 1
[ 369.240600] tegra-i2c tegra12-i2c.4: buf_remaining - 0
[ 369.240607] tegra-i2c tegra12-i2c.4: i2c transfer timed out, addr 0x0040, data 0x4d
[ 369.240653] ------------[ cut here ]------------
[ 369.240662] WARNING: at /home/kevin/jtk1-android-l-open-source/kernel/arch/arm/mach-tegra/powergate-t12x.c:507 tegra12x_unpowergate_partition+0x1b4/0x288()
[ 369.240669] Could not Un-Railgate 1
[ 369.240680] Modules linked in: mbt8897 opzoon_pwm wg_tegra mac80211 sd8xxx mlan
[ 369.240684] CPU: 2 PID: 1492 Comm: RenderThread Not tainted 3.10.33-svn558 #25
[ 369.240694] [] (unwind_backtrace+0x0/0x13c) from [] (show_stack+0x18/0x1c)
[ 369.240702] [] (show_stack+0x18/0x1c) from [] (warn_slowpath_common+0x5c/0x74)
[ 369.240708] [] (warn_slowpath_common+0x5c/0x74) from [] (warn_slowpath_fmt+0x38/0x48)
[ 369.240713] [] (warn_slowpath_fmt+0x38/0x48) from [] (tegra12x_unpowergate_partition+0x1b4/0x288)
[ 369.240718] [] (tegra12x_unpowergate_partition+0x1b4/0x288) from [] (tegra_unpowergate_partition+0x68/0x10c)
[ 369.240726] [] (tegra_unpowergate_partition+0x68/0x10c) from [] (gk20a_pm_unrailgate+0x50/0x64)
[ 369.240733] [] (gk20a_pm_unrailgate+0x50/0x64) from [] (__pm_genpd_poweron+0x234/0x2b0)
[ 369.240739] [] (__pm_genpd_poweron+0x234/0x2b0) from [] (pm_genpd_runtime_resume+0xa4/0x2f0)
[ 369.240745] [] (pm_genpd_runtime_resume+0xa4/0x2f0) from [] (__rpm_callback+0x34/0x68)
[ 369.240750] [] (__rpm_callback+0x34/0x68) from [] (rpm_callback+0x28/0x7c)
[ 369.240754] [] (rpm_callback+0x28/0x7c) from [] (rpm_resume+0x3dc/0x6a4)
[ 369.240758] [] (rpm_resume+0x3dc/0x6a4) from [] (__pm_runtime_resume+0x50/0x68)
[ 369.240764] [] (__pm_runtime_resume+0x50/0x68) from [] (gk20a_busy+0x38/0xa4)
[ 369.240769] [] (gk20a_busy+0x38/0xa4) from [] (gk20a_submit_channel_gpfifo+0x94/0xa70)
[ 369.240773] [] (gk20a_submit_channel_gpfifo+0x94/0xa70) from [] (gk20a_channel_ioctl+0x604/0xf50)
[ 369.240778] [] (gk20a_channel_ioctl+0x604/0xf50) from [] (do_vfs_ioctl+0x408/0x5d4)
[ 369.240783] [] (do_vfs_ioctl+0x408/0x5d4) from [] (SyS_ioctl+0x78/0x88)
[ 369.240788] [] (SyS_ioctl+0x78/0x88) from [] (ret_fast_syscall+0x0/0x30)
[ 369.240790] —[ end trace fcf97d77c66b2587 ]—
[ 369.240811] gk20a gk20a.0: gk20a_submit_channel_gpfifo: failed to host gk20a to submit gpfifo
[ 369.241056] gk20a gk20a.0: gk20a_submit_channel_gpfifo: failed to host gk20a to submit gpfifo
[ 369.241113] gk20a gk20a.0: gk20a_submit_channel_gpfifo: failed to host gk20a to submit gpfifo
[ 369.241135] gk20a gk20a.0: gk20a_submit_channel_gpfifo: failed to host gk20a to submit gpfifo
[ 369.241160] gk20a gk20a.0: gk20a_submit_channel_gpfifo: failed to host gk20a to submit gpfifo
[ 369.242633] gk20a gk20a.0: gk20a_submit_channel_gpfifo: failed to host gk20a to submit gpfifo
[ 369.242692] gk20a gk20a.0: gk20a_submit_channel_gpfifo: failed to host gk20a to submit gpfifo
[ 369.243081] gk20a gk20a.0: gk20a_submit_channel_gpfifo: failed to host gk20a to submit gpfifo
[ 380.247740] gk20a gk20a.0: gk20a_channel_ioctl: failed to host gk20a for ioctl cmd: 0x8008486d
[ 380.256362] gk20a gk20a.0: gk20a_channel_release: failed to release channel 1
[ 384.626602] gk20a gk20a.0: gk20a_channel_ioctl: failed to host gk20a for ioctl cmd: 0x8008486d
[ 384.635252] gk20a gk20a.0: gk20a_channel_release: failed to release channel 4
[ 387.088652] gk20a gk20a.0: gk20a_channel_ioctl: failed to host gk20a for ioctl cmd: 0x8008486d
[ 387.097263] gk20a gk20a.0: gk20a_channel_release: failed to release channel 9
[ 387.327317] gk20a gk20a.0: gk20a_channel_release: failed to release channel 0
[ 387.336396] gk20a gk20a.0: gk20a_channel_release: failed to release channel 2
[ 387.557740] gk20a gk20a.0: __gk20a_channel_open: failed to power on, -22
[ 387.625805] gk20a gk20a.0: gk20a_channel_release: failed to release channel 8
[ 387.625869] gk20a gk20a.0: gk20a_channel_release: failed to release channel 6
[ 387.625893] gk20a gk20a.0: gk20a_channel_release: failed to release channel 10
[ 387.625988] gk20a gk20a.0: gk20a_channel_release: failed to release channel 5
[ 387.697287] gk20a gk20a.0: gk20a_channel_release: failed to release channel 7
[ 387.706431] gk20a gk20a.0: gk20a_channel_release: failed to release channel 3

Sometims we need insert usb-disk with a lot of images into devices usb port, and while we frequently plug in usb-disk for some time, screen will go to black, and no any view in it, so we checked kernel log from uart port, there are many gk20a error log like above print repeatedly

Hi,

Want to confirm issue first:

Did you get gk20a error when inserting USB-disk?
Did you run any GPU program at the same time or any device connected to PCIe?

MediaScanner will scan media files in the USB-disk while insert it, there is no PCIe device connecting with TK1.

Hi,

Is the screen will back to normal after MediaScanner’s job finished?
Since tk1’s memory is quite small, the application may use too much memory that cause the black screen.