DSI output on TX2 buffer underflow

Hello,
I am trying to get dsi output on the TX2. I’ve attached the panel and enabled it in the device tree and added an entry in nvdisp_stub.c to register the display. However, I only get about half a second of video output where I can move the mouse around freely at which point the screen freezes. The console logs the following error

tegradc 15200000.nvdisplay: dsi: video fifo underflow. Resetting flag

for reference, this single panel works fine with the TX1.

Please make sure you’ve enabled the right mode setting.

1.Please confirm the entry you added in stub takes effect correctly.
2. Please confirm the mode is correct for you panel.

hello anthony:
I read your question and realized that your added an entry in nvdisp_stub.c to register the display.
Can you tell me what and where you added in nvdisp_stub.c
Would you like to give me your nvdisp_stub.c code? thank you very much!

It should be added to “tegra_primary_panel_get_dt_node”.

957798661,
Because I added a new panel c file instead of modifying an existing one, the entry needed to be added to the big if statements in nvdisp_stub.c.
For example:

if (!of_device_is_available(np_panel)) {
	np_panel = of_get_child_by_name(np_primary,
		"panel-s-wqxga-10-1");
	if (of_device_is_available(np_panel) && dc_out)
		tegra_panel_register_ops(dc_out,
			&dsi_s_wqxga_10_1_ops);
}

inside tegra_primary_panel_get_dt_node was copy/pasted and changed to the new arbitrary names I created.

if (!of_device_is_available(np_panel)) {
	np_panel = of_get_child_by_name(np_primary,
		"panel-a-custom-400-400");
	if (of_device_is_available(np_panel) && dc_out)
		tegra_panel_register_ops(dc_out,
			&dsi_a_custom_400-400_ops);
}

However that was not the solution to the initial problem, see this thread for the answer.
https://devtalk.nvidia.com/default/topic/1042755/dsi-support-on-tx2/#5295104