cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fanat9
Explorer
Explorer
2,212 Views
Registered: ‎02-16-2014

No LiveVideo and /dev/fb0 when monitor unplugged from DP.

Jump to solution

I got DiplayPort LiveVideo interface enabled, so I will get video data stream in PL for processing and output from PL to LVDS LCD panel. And everything works fine.

 

But if system boots without monitor - no /dev/fb0 appears until I plug monitor to DP and no video data coming from LiveVideo interface to PL (except clock which I get).

Plug - image on both monitor and LiveVideo, unplug monitor - no LiveVideo data.

 

How I can force/enable MaliGPU/FBDev to form image all the time - with or without monitor ?

 

 

0 Kudos
1 Solution

Accepted Solutions
fanat9
Explorer
Explorer
2,142 Views
Registered: ‎02-16-2014

I got it to work.

 

So, solution is:

1. Switch to current (as of 26July2018) master branch of Xilinx Kernel from github repo. It contains a patch which allow enable DP without PHY's attached/configured.

2. Add flag "e" to kernel cmd, in my case: video=DP-1:1024x768@60e

 

View solution in original post

0 Kudos
6 Replies
sandeepg
Moderator
Moderator
2,166 Views
Registered: ‎04-24-2017

Hi @fanat9,

 

Which release are you using? In 2018.1 DP driver supports hotplug

 

fbdev isn't initialized until the entire DRM pipeline is enabled.

 

If the lvds driver is implemented as a drm encoder driver, that will format the entire pipeline, and the fbdev will be initialized properly

if not, the drm core will see the pipeline as not complete, and fbdev emulation doesn't happen.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
fanat9
Explorer
Explorer
2,133 Views
Registered: ‎02-16-2014

Just switched to 2018.2

 

My design is just a PL converter/serializer of DP LiveVideo to LVDS based on XAPP1315 and I have to have it to work even if DP physically unplugged. I tried to pull DP_HPD_R line up and down, but it obviously failed to read EDID.

 

How I can force it always on? Its not possible to do thru devicetree?

0 Kudos
fanat9
Explorer
Explorer
2,081 Views
Registered: ‎02-16-2014

So, I switched to new DP driver with this commit. which should allow init DP without PHY.

 

But it didn't help - if DP unplugged PLL shuts down, no clock/data on LiveVideo PS-to-PL, no FBDEV got created and etc.

 

Looking around I found next PL Display Driver description, but can't make sense of it. Can any body explain what it for and how to use it properly:

https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devicetree/bindings/display/xlnx/xlnx%2Cpl-disp.txt

 

Thanks in advance!

0 Kudos
fanat9
Explorer
Explorer
2,143 Views
Registered: ‎02-16-2014

I got it to work.

 

So, solution is:

1. Switch to current (as of 26July2018) master branch of Xilinx Kernel from github repo. It contains a patch which allow enable DP without PHY's attached/configured.

2. Add flag "e" to kernel cmd, in my case: video=DP-1:1024x768@60e

 

View solution in original post

0 Kudos
ema1905
Participant
Participant
1,850 Views
Registered: ‎03-29-2012

I'm tryng to do the same thing :

  • DisplayPort enabled
  • EMIO output (No physical output pin)
  • No Lanes (= No PSGTR)
  • Custom output to PL

I've applied the commit mentionet before in config:

CONFIG_SUBSYSTEM_COMPONENT_LINUX__KERNEL_NAME_REMOTE_DOWNLOAD_PATH="git://github.com/Xilinx/linux-xlnx.git;protocol=https"
CONFIG_SUBSYSTEM_COMPONENT_LINUX__KERNEL_NAME_REMOTE_REFERENCE="99c43ab5afc0717cd6bace1a8667df2badc7b082"

 

I added also the flag "e" tokernel bootargs

setenv bootargs 'console=ttyPS0,115200 earlyprintk root=/dev/nfs nfsroot=10.0.0.1:/tftpboot/nfsroot,tcp ip=10.0.0.2:10.0.0.1:10.0.0.1:255.255.255.0:zynqmp:eth0:off rw video=DP-1:1280x1024@30e'

 

But if i enable the zynqmp_dpsub: zynqmp-display@fd4a0000 in the device tree:

&zynqmp_dpsub {
    status = "okay";
};

The kernel hang after ZynqMP DMA driver Probe success without any error.

could you help me?

Thank you

0 Kudos
ema1905
Participant
Participant
1,822 Views
Registered: ‎03-29-2012

I go  ahead on my project but i created a post to follow on:

https://forums.xilinx.com/t5/Embedded-Linux/DP-Display-Port-Live-video-to-PL/m-p/896374#M29143

0 Kudos