crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #linux-rockchip
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #linux-rockchip
kevery has quit [Remote host closed the connection]
kevery has joined #linux-rockchip
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #linux-rockchip
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #linux-rockchip
vagrantc has joined #linux-rockchip
lurchi_ is now known as lurchi__
warpme___ has joined #linux-rockchip
<macromorgan>
so the datasheet says the rk3566 supports 2 independent displays, and the rk3568 supports 3. Does that mean the vp0 (or 1, or 2) is not present on the rk3566?
<macromorgan>
(I'm getting a null pointer exception with the VOP2 driver when I try to use vp0 on my rk3566)
<macromorgan>
I mean null pointer dereference
matthias_bgg has quit [Ping timeout: 245 seconds]
matthias_bgg has joined #linux-rockchip
matthias_bgg has quit [Ping timeout: 245 seconds]
jagan has quit [Quit: Ping timeout (120 seconds)]
<jakllsch>
macromorgan: quite possibly
<jakllsch>
macromorgan: but it'd help to know which pointer is null
<macromorgan>
not sure yet, looking now
<jakllsch>
if there are seperate TRMs for each chip, you might compare
jagan has joined #linux-rockchip
<macromorgan>
there don't appear to be, the TRM I have says rk3566/rk3568
<macromorgan>
there's like 2 or 3 notes total though that detail the differences, and I don't think that's all
<CounterPillow>
yeah the RK3566/3568 TRM is one and the same unfortunately
<macromorgan>
jakllsch: with some debug printks in place it looks like it's taking a shit at drm_crtc_init_with_planes for the 2nd port (port 1 if 0 and 1 are enabled, 2 if 1 and 2 are enabled, etc). Specifically, it looks like plane may be the NULL culprit
<macromorgan>
still sad my screen looks wonky, but I'm starting to wonder if it's actually the VOP2 and not the dsi or dphy or panel driver...
<macromorgan>
I also get some really weird format errors too
lurchi__ is now known as lurchi_
lurchi_ is now known as lurchi__
<macromorgan>
okay, think I figured out the NPE in the VOP2 driver when you set one port to one value and another port to a different value. tl;dr, it's because there's only 1 primary plane to be shared among multiple ports.
<macromorgan>
when it comes to a win that is primary, it assigns it to a port that doesn't have primary win
<macromorgan>
problem is, for an rk3566 there is only 1 primary (since the switch statement excludes 3 wins, one of which is the other primary)
<macromorgan>
so the first port gets a primary win, additional ports get nothing, and when you get to the drm_crtc_init_with_planes it takes a crap because the plane is null for the second port on an rk3566 (or null for the 3rd port on an rk3568)
<macromorgan>
don't think this came up in testing because the device tested was an rk3568 evaluation board