wasutton3_mobile has quit [Remote host closed the connection]
popolon has quit [Quit: WeeChat 1.9.1]
beeble has quit [Ping timeout: 240 seconds]
jstefanop has joined #linux-sunxi
dddddd has quit [Ping timeout: 272 seconds]
<parco>
is there anything else that could be causing the "vblank wait timed out", i'm certain one of the 50 panel timing configurations i tried had to be correct :/
<parco>
well not certain, i'm going off of an incomplete datasheet
<parco>
and some mdss configurations i found in the wild
<anarsoul|2>
parco: do you get any picture on your panel?
jstefanop has quit [Ping timeout: 244 seconds]
<parco>
anarsoul|2: nothing at all, not even any flickers
<parco>
anarsoul|2: i've got the backlight fully on
<anarsoul|2>
parco: what platform are you trying it on?
<parco>
anarsoul|2: a33/r16, the SoC is the Banana Pi M2M
<parco>
or sbc rather
<anarsoul|2>
parco: if you get no picture your panel configuration is definitely wrong, maybe your panel needs some init
<anarsoul|2>
or maybe it's not taken out of reset
<anarsoul|2>
or not powered
<parco>
i've verified all the electrical (reset and power) with an o-scope
<anarsoul|2>
any data on data lanes?
<parco>
the driver IC is a TD4310, from synaptics
<parco>
anarsoul|2: i haven't tried actually, my oscope is only a 100MHz. i suppose i could try'
<anarsoul|2>
parco: does your panel need any init?
<parco>
just three DCS commands it seems
<anarsoul|2>
(hint: check your datasheet)
<anarsoul|2>
parco: do you send them?
<parco>
Yep
<anarsoul|2>
parco: note that driver doesn't support burst mode. So if your panel needs burst mode you're out of luck
<parco>
oh crap
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<anarsoul|2>
I have it working on A64
beeble has joined #linux-sunxi
<anarsoul|2>
but A33 probably needs more changes
<parco>
anarsoul|2: from the datasheet, it looks like it supports Non-burst mode with sync events
<parco>
not sync pulses though
<anarsoul|2>
parco: you should probably check what's supported by driver
<anarsoul|2>
parco: looks like mripard tested it with MIPI_DSI_MODE_VIDEO_SYNC_PULSE
<anarsoul|2>
sorry - I haven't had time to clean it up yet
<anarsoul|2>
parco: but make sure that you compare it to DSI driver from BSP kernel
<parco>
ok thanks i'll take a look
<anarsoul|2>
parco: I tested these changes in burst mode only
Da_Coynul has joined #linux-sunxi
<anarsoul|2>
and only on A64
<parco>
i'm using mainline 4.18+ kernel, will i still need to check DSI driver from BSP kernel?
<anarsoul|2>
parco: mainline driver doesn't support all the hardware features. So if you want to add support for burst mode you'll need to look at BSP driver
jstefanop has joined #linux-sunxi
jstefanop has quit [Ping timeout: 244 seconds]
Da_Coynul has quit [Ping timeout: 252 seconds]
<parco>
trying to dig into this a bit here, "[CRTC:40:crtc-0] vblank wait timed out" is the message that keeps popping up
<parco>
sounds to me like the CRTC, which is the composition stage, is waiting for a vblank signal from something
<parco>
anarsoul|2: i'm not seeing any mention of the constants for video mode in either mripards or your changes, are these being derived from something else?
<anarsoul|2>
parco: it means that tcon didn't report vblank interrupt. Since tcon driver is fine something's wrong with DSI driver
<anarsoul|2>
parco: grep for BURST
<anarsoul|2>
in mripard's code it's MIPI_DSI_MODE_VIDEO_SYNC_PULSE in panel driver
<anarsoul|2>
in my code look for MIPI_DSI_MODE_VIDEO_BURST
<parco>
but i'm not seeing that accessed in any sunxi files...
<anarsoul|2>
did you check out sunxi64-4.17-dsi branch? :)
<anarsoul|2>
it's not default branch in my repo
<parco>
i'll check yours now
<parco>
i was referring to mainline
<anarsoul|2>
parco: yes, mainline supports only MIPI_DSI_MODE_VIDEO_SYNC_PULSE
<anarsoul|2>
so it doesn't check video mode flags
<parco>
oh i see, it's hardwired into the driver
<anarsoul|2>
yes
<parco>
sun6i_mipi_dsi ?
<anarsoul|2>
yes
<parco>
which contains functions like "sun6i_dsi_setup_burst". Dang, i thought it was supported
<anarsoul|2>
:)
<parco>
anarsoul|2: why is your repo called linux-2.6?
<parco>
i guess my question is, your branch sunxi64-4.17-dsi, it up to date with mainline 4.17?
<anarsoul>
parco: and repo is called linux-2.6 because I started to hack linux kernel when it was 2.6
<parco>
gotcha, thats a while back
<parco>
now that I can read from the panel, I'm noticing my writes are not saving. Hoping it's just an issue of power modes or something
airwind has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
selfbg has joined #linux-sunxi
jernej has quit [Quit: Konversation terminated!]
nuuuciano has quit [Ping timeout: 268 seconds]
kevans91 has quit [Read error: Connection reset by peer]
kevans91 has joined #linux-sunxi
kevans91 has joined #linux-sunxi
kevans91 has quit [Changing host]
reinforce has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 264 seconds]
dc13ff has joined #linux-sunxi
<parco>
super strange, it looks like only the first read works, all subsequent read attempts fail, even with substantial delay
f11f12 has joined #linux-sunxi
lkcl has joined #linux-sunxi
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 272 seconds]
kaspter has quit [Ping timeout: 272 seconds]
matthias_bgg has joined #linux-sunxi
kaspter has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
jogoes has joined #linux-sunxi
tnovotny has joined #linux-sunxi
mavkhimenia has quit [Ping timeout: 252 seconds]
tnovotny has quit [Client Quit]
<bbrezillon>
parco: I have a fix for that one :)
<parco>
i'm noticing, maybe the FIFO isn't being read correctly...
<bbrezillon>
parco: nope
<bbrezillon>
it's just that the reg clk is disabled by regmap after each access
<bbrezillon>
and it has the side effect of auto-clearing the RX_FLAG
<bbrezillon>
just take the clk at probe time (clk_prepare_enable()) and you should be good
<bbrezillon>
anarsoul: I still don't understand what could cause this missing VBLANK
<bbrezillon>
AFAIU, when you're in VIDEO mode the panel has no way to nack/stop the stream
<bbrezillon>
and host is in control of when V/HSYNC events are sent
<parco>
bbrezillon: how does one "take the clock at probe time"?
<parco>
sorry, i'm in the deep-end over here
<bbrezillon>
clk_prepare_enable()
<parco>
i call that from somewhere?
<bbrezillon>
from the probe function
<parco>
of the sun6i_mipi_dsi?
<bbrezillon>
yes
<parco>
ok cool, thanks :)
<mripard>
bbrezillon: there's a FIFO between the TCON and the DSI blocks, maybe it's simply that the FIFO underruns and it's never completely drained, therefore never creating the VBLANK event?
jogoes has quit [Quit: Page closed]
<bbrezillon>
mripard: yes, that was the idea I had in mind
<bbrezillon>
but why?
jogoes has joined #linux-sunxi
clemens3_ has joined #linux-sunxi
<bbrezillon>
that would mean TCON and DSI timings are not in sync
<bbrezillon>
and I don't see any DSI/DPHY STATUS reg containing such an UNDERRUN bit
yann has quit [Ping timeout: 272 seconds]
f0xx has joined #linux-sunxi
<mripard>
well, the documentation is sparse, at best :)
caznar has joined #linux-sunxi
<bbrezillon>
mripard: do you know the size of this FIFO?
<bbrezillon>
I guess a wrong val in the video start delay field could cause this FIFO underrun
<bbrezillon>
or OVERRUN
<bbrezillon>
parco: add those 2 lines before the regmap_mmio() call
<bbrezillon>
busclk = devm_clk_get(dev, "bus");
<bbrezillon>
clk_prepare_enable(busclk);
<mripard>
bbrezillon: I don't
<parco>
bbrezillon: that did the trick!
<parco>
i'm also noticing now the entire FIFO doesn't clear out
<parco>
i guess it's safe to keep it as is, where it only utilizes the first FIFO register
<parco>
so by calling clk_prepare_enable, is the driver registering itself with that peripheral? (so it doesn't shut down when not in use)
<bbrezillon>
yes, but we should probably put that in the runtime pm resume hook
<bbrezillon>
that's just a hack to make it work
reinforce has quit [Ping timeout: 264 seconds]
kos_tom has joined #linux-sunxi
<parco>
bbrezillon: would there happen to be a similar fix for TX?
lkcl has quit [Ping timeout: 252 seconds]
<bbrezillon>
parco: nope
<bbrezillon>
TX flag seems flaky, but I checked with a scope
<bbrezillon>
and write transactions look good
<bbrezillon>
plus, when I read the reg back I get the correct value
<parco>
yea, that parts not happening for me
tllim has quit [Ping timeout: 252 seconds]
<parco>
trying to read, write, and read from PIXEL_FORMAT register
<parco>
oh woops
IgorPec has quit [Ping timeout: 272 seconds]
reinforce has joined #linux-sunxi
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-sunxi
indy has joined #linux-sunxi
d_ed has quit [Changing host]
d_ed has joined #linux-sunxi
<bbrezillon>
parco: did you try to play with the video start delay value?
<parco>
bbrezillon: where's that at?
<bbrezillon>
sun6i_dsi_get_video_start_delay()
<parco>
bbrezillon: i also realized according to the docs the max res is 1280x800 for MIPI, i've got a 1080x1920
<parco>
yikes
jstefanop has joined #linux-sunxi
<parco>
i wonder what causes that limitation, and if I still have a chance
<mripard>
the PLL, most likely, and no :)
jstefanop has quit [Ping timeout: 244 seconds]
yann has joined #linux-sunxi
msimpson has joined #linux-sunxi
msimpson_ has joined #linux-sunxi
caznar_ has joined #linux-sunxi
caznar_ has quit [Client Quit]
caznar_ has joined #linux-sunxi
msimpson has quit [Ping timeout: 244 seconds]
msimpson_ has quit [Read error: Connection reset by peer]
caznar has quit [Ping timeout: 252 seconds]
jogoes has quit [Quit: Page closed]
msimpson has joined #linux-sunxi
fkluknav has joined #linux-sunxi
clonak has quit [Remote host closed the connection]
clonak has joined #linux-sunxi
msimpson_ has joined #linux-sunxi
msimpson__ has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
fkluknav has quit [Ping timeout: 268 seconds]
msimpson__ has quit [Remote host closed the connection]
msimpson has quit [Ping timeout: 244 seconds]
msimpson__ has joined #linux-sunxi
msimpson_ has quit [Ping timeout: 264 seconds]
mavkhimenia has quit [Ping timeout: 272 seconds]
f11f13 has joined #linux-sunxi
f11f12 has quit [Read error: Connection reset by peer]
fkluknav has joined #linux-sunxi
dc13ff has quit [Quit: Connection closed for inactivity]
victhor has joined #linux-sunxi
tnovotny has joined #linux-sunxi
caznar has joined #linux-sunxi
caznar_ has quit [Quit: Page closed]
caznar has quit [Client Quit]
fossxplorer has quit [Remote host closed the connection]
fkluknav has quit [Ping timeout: 268 seconds]
fkluknav has joined #linux-sunxi
SJRvanSchaik has joined #linux-sunxi
reinforce has quit [Ping timeout: 276 seconds]
reinforce has joined #linux-sunxi
fkluknav has quit [Ping timeout: 268 seconds]
victhor has quit [Ping timeout: 252 seconds]
mavkhimenia has joined #linux-sunxi
lukasz has joined #linux-sunxi
mavkhimenia has quit [Remote host closed the connection]
mavkhimenia has joined #linux-sunxi
selfbg has quit [Ping timeout: 268 seconds]
selfbg has joined #linux-sunxi
dddddd has joined #linux-sunxi
vicpt has joined #linux-sunxi
fkluknav has joined #linux-sunxi
fkluknav has quit [Ping timeout: 268 seconds]
fkluknav has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
afaerber has quit [Quit: Leaving]
cnxsoft has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
zoobab has quit [Ping timeout: 260 seconds]
afaerber has joined #linux-sunxi
zoobab has joined #linux-sunxi
vicpt has quit [Quit: Leaving]
IgorPec has joined #linux-sunxi
tnovotny has quit [Ping timeout: 252 seconds]
tnovotny has joined #linux-sunxi
jogoes has joined #linux-sunxi
<FergusL>
check
fkluknav has quit [Ping timeout: 268 seconds]
mavkhimenia has quit [Remote host closed the connection]
mavkhimenia has joined #linux-sunxi
return0xe has quit [Remote host closed the connection]
return0xe has joined #linux-sunxi
parco has quit [Ping timeout: 244 seconds]
f11f13 has quit [Quit: f11f13]
f11f12 has joined #linux-sunxi
return0xe has quit [Remote host closed the connection]
return0xe has joined #linux-sunxi
fkluknav has joined #linux-sunxi
return0xe has quit [Remote host closed the connection]
return0e has joined #linux-sunxi
__martin has joined #linux-sunxi
<__martin>
anarsoul?
f11f12 has quit [Quit: f11f12]
airwind has quit [Quit: airwind]
|jbrown| has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-sunxi
mavkhimenia has quit [Remote host closed the connection]
mavkhimenia has joined #linux-sunxi
mavkhimenia has quit [Remote host closed the connection]
lurchi_ is now known as lurchi__
mavkhimenia has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
selfbg has quit [Remote host closed the connection]
rexxster has joined #linux-sunxi
massi_ has joined #linux-sunxi
massi_ has quit [Client Quit]
IgorPec has quit [Ping timeout: 244 seconds]
massi_ has joined #linux-sunxi
massi_ has quit [Remote host closed the connection]
massi_ has joined #linux-sunxi
massi_ has quit [Quit: Leaving]
massi_ has joined #linux-sunxi
massi_ has quit [Remote host closed the connection]
fkluknav has quit [Ping timeout: 244 seconds]
massi_ has joined #linux-sunxi
massi_ has quit [Remote host closed the connection]
massi_ has joined #linux-sunxi
massi_ has quit [Remote host closed the connection]
reinforce has quit [Quit: Leaving.]
massi_ has joined #linux-sunxi
vicpt has joined #linux-sunxi
rexxster has quit [Remote host closed the connection]
massi_ is now known as m4ssi
Z3RO_ has joined #linux-sunxi
massi_ has joined #linux-sunxi
m4ssi has quit [Quit: Leaving]
massi_ has quit [Remote host closed the connection]
m4ssi has joined #linux-sunxi
popolon has joined #linux-sunxi
fkluknav has joined #linux-sunxi
massi_ has joined #linux-sunxi
massi_ has quit [Client Quit]
m4ssi has quit [Client Quit]
m4ssi has joined #linux-sunxi
m4ssi has quit [Client Quit]
m4ssi has joined #linux-sunxi
fkluknav_ has joined #linux-sunxi
fkluknav has quit [Ping timeout: 244 seconds]
fkluknav_ is now known as fkluknav
<anarsoul>
__martin: yes?
tllim has joined #linux-sunxi
Z3RO_ has quit [Quit: Leaving]
mavkhimenia has quit [Remote host closed the connection]
mavkhimenia has joined #linux-sunxi
mavkhimenia has quit [Remote host closed the connection]
Mr__Anderson has joined #linux-sunxi
reinforce has joined #linux-sunxi
|jbrown| has quit [Quit: Leaving]
msimpson__ has quit [Quit: Leaving]
elros1 has joined #linux-sunxi
msimpson has joined #linux-sunxi
jbrown has joined #linux-sunxi
msimpson has quit [Read error: Connection reset by peer]
<__martin>
anarsoul: jared mcneill asked me to talk to you
<__martin>
I have a pinebook that can most of the time reproduce the u-boot edid/display problem
<__martin>
I have serial console and can test patches
<__martin>
I have no idea where to start looking ;-)
<anarsoul>
__martin: IIRC we already figured out that aux for some reason is not working, so bridge can't get EDID and other panel params
<anarsoul>
i.e. it works with hardcoded EDID, data rate and lane numbers
<__martin>
yeah, he gave me a patched u-boot with hard coded edid and that always works
<anarsoul>
__martin: I believe it's hardware problem. aux is supposed to work
clemens3_ has quit [Remote host closed the connection]
<vagrantc>
hrm. pinebook LCD flickering rapidly for a while ... after updating to linux 4.18.5 ... seems to have calmed down eventually
<vagrantc>
but doesn't actually display
* vagrantc
should try 4.19-rc1
paulliu has quit [Quit: Leaving.]
<anarsoul|2>
vagrantc: I haven't tried 4.18 yet
<anarsoul|2>
I'll rebase my patches to 4.19-rc this weekend
lukasz has joined #linux-sunxi
<vagrantc>
also running u-boot 2018.07 + patches from anarsoul|2's branch
<vagrantc>
tried using upstream arm-trusted-firmware, but that didn't include the patches to enable the LCD ... so switch back to the atf-allwinner package in debian
gumblex_ has joined #linux-sunxi
gumblex has quit [Read error: Connection reset by peer]
<vagrantc>
anarsoul|2: be great to have something based on 4.19-rc*
<vagrantc>
anarsoul|2: thanks
CSoto has joined #linux-sunxi
<jernej>
MoeIcenowy: I want to rebase H6 HDMI patches on top of linux-next
<jernej>
but I have issues with SD card
<jernej>
it seems like the driver is not loaded
<jernej>
am I missing something?
<jernej>
ah, it was missing MFD I2C option
carlos_ has joined #linux-sunxi
carlos_ has left #linux-sunxi [#linux-sunxi]
CSoto_ has joined #linux-sunxi
<CSoto_>
jernej: I'm trying your A64-hdmi-wip and I'm having some problems