narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
warpme_ has quit [Quit: Connection closed for inactivity]
sputnik_ has joined #linux-amlogic
chewitt has joined #linux-amlogic
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #linux-amlogic
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-amlogic
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
vagrantc has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
Elpaulo has quit [Quit: Elpaulo]
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 240 seconds]
<xdarklight> narmstrong: I can finally get CVBS video output on the 32-bit SoCs. kmscube screenshot for reference: https://abload.de/img/vlcsnap-2019-11-30-103qjbc.png
<narmstrong> xdarklight: wow nice !
<xdarklight> narmstrong: however, it requires a very weird patch to the meson DRM driver: https://pastebin.com/NR2h632w - without that neither kmscube, nor X nor anything else will start. any idea why that is?
<narmstrong> xdarklight: interesting, not really it’s not used for hw setup at all, but I did use X11 successfully at the time with this, but maybe the mode strict has evolved and something else is missing to define the aspect ratio
<narmstrong> xdarklight: can you compare with the same CEA mode on drm_modes ?
<narmstrong> *in
<xdarklight> narmstrong: drm_edid.c has edid_cea_modes and that contains a "720x576i" mode with HDMI_PICTURE_ASPECT_4_3 (and another one with HDMI_PICTURE_ASPECT_16_9)
<narmstrong> Maybe this HDMI_PICTURE_* should only be used with hdmi connectors
<xdarklight> maybe. I need to find one of my GXL/GXM/G12A boxes with CVBS output and test there and see if it has the same problem
<xdarklight> oh, unlike Khadas VIM the Le Potato has AV OUT. got one :-)
<narmstrong> Odroid-n2 has one but is not enabled upstream
<xdarklight> that makes 2 out of 3 which don't set HDMI_PICTURE_ASPECT_*. not setting it makes it default to 0 which is HDMI_PICTURE_ASPECT_NONE
<xdarklight> I don't have an Odroid-N2, but the Le Potato was right next to my desk :)
grw has quit [*.net *.split]
grw has joined #linux-amlogic
<narmstrong> xdarklight: what error gives kmscube ?
<xdarklight> narmstrong: you mean when I try it without that patch?
<narmstrong> Can you enable drm.debug=0x3f on the kernel cmdline ? To know what rejects the modeset
<xdarklight> it actually fails because of meson_venc_cvbs_encoder_atomic_check
<xdarklight> that drm_mode_equal never returns true when run from kmscube
<xdarklight> that's how I found the different aspect ratio
<xdarklight> but I can still enable drm.debug if you want
<narmstrong> Yeah I suspect that but it wasn’t checking aspect ratio before...
<narmstrong> Could you replace with drm_mode_match but without aspect ratio flag ?
<xdarklight> v4.18 is the first kernel which checks for the aspect ratio
<xdarklight> yep, will try drm_mode_match
sputnik_ has quit [Ping timeout: 250 seconds]
<xdarklight> drm_mode_match without DRM_MODE_MATCH_ASPECT_RATIO works
vagrantc has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Read error: Connection reset by peer]
ldevulder__ has joined #linux-amlogic
ldevulder_ has quit [Ping timeout: 265 seconds]
chewitt has quit [Ping timeout: 268 seconds]
Darkmatter66 has quit [Ping timeout: 268 seconds]
Darkmatter66_ has joined #linux-amlogic
chewitt has joined #linux-amlogic
warpme_ has joined #linux-amlogic
ldevulder__ is now known as ldevulder
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
<xdarklight> narmstrong: finally powered up my Le Potato: CVBS is also broken there. I'll send a patch later fixing it (by removing the aspect ratio to make behavior of the meson driver identical to the sun4i and zte drivers)
<narmstrong> xdarklight: Nice, thanks for checking this !
<xdarklight> narmstrong: last question for today: do you have any hint where to check if I'm not receiving VPU interrupts? the u-boot on my EC-100 board doesn't have video output enabled and it's the only board where CVBS is currently not working. I *think* I have the power domain right as I can read/write VPU registers without hanging the board. I'm "just" missing the interrupt
sputnik_ has joined #linux-amlogic
<narmstrong> xdarklight: the vpu irq is tied to a clock gate, check by enabling all the gates
<narmstrong> xdarklight: I’ll try to think of something else
Darkmatter66_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Max SendQ exceeded]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Max SendQ exceeded]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Max SendQ exceeded]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Max SendQ exceeded]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Max SendQ exceeded]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Max SendQ exceeded]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Max SendQ exceeded]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Client Quit]
Darkmatter66 has joined #linux-amlogic
<xdarklight> narmstrong: I enabled all clk81 gates and all others which seems related to video output, no luck. if you have additional ideas: let me know. I guess I'll call it a day for now
sputnik_ has quit [Ping timeout: 252 seconds]