rellla changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi - *only registered users can talk*
gaston1980 has quit [Quit: Konversation terminated!]
florian has quit [Ping timeout: 265 seconds]
florian has joined #linux-sunxi
<megi> looks like the rsb bus doesn't like if reads from different devices happen too close together
<megi> the mainline rsb bus driver has locking for the reads/writes, but this still doesn't help
<megi> adding a small delay after the read fixes the issue
<dgp> lvrp16: TBH it already shouldn't happen. The kernel disables what looks like a stuck interrupt AFAIK
florian has quit [Ping timeout: 272 seconds]
bjne has quit [Ping timeout: 240 seconds]
Mangy_Dog has quit [Ping timeout: 260 seconds]
<megi> ah, it's not the delay, it was a bug in the rsb bus driver :)
<megi> if the driver did a 16bit read and the 8bit read, the 8bit read would contain a high byte from the previous 16bit read
<megi> and this would confuse the stack above (regmap and friends)
<megi> masking the result of the read with the read size solved the issue
dddddd has quit [Remote host closed the connection]
<megi> patch sent :)
<megi> it's really not good if PMIC driver thinks pmic registers look like this and then does actually write the garbage into the PMIC, causing havoc :)
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej_ has joined #linux-sunxi
jernej_ is now known as jernej
LargePrime has joined #linux-sunxi
ChriChri_ has joined #linux-sunxi
RichardG867_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 240 seconds]
ChriChri_ is now known as ChriChri
lurchi_ is now known as lurchi__
maccraft has quit [Quit: WeeChat 2.7]
megi has quit [Ping timeout: 240 seconds]
RichardG867_ has quit [Quit: Keyboard not found, press F1 to continue]
ldevulder has quit [Ping timeout: 248 seconds]
RichardG867_ has joined #linux-sunxi
RichardG867_ has quit [Changing host]
RichardG867_ has joined #linux-sunxi
RichardG867 has quit [Ping timeout: 272 seconds]
JohnDoe_71Rus has joined #linux-sunxi
ldevulder has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 272 seconds]
malestorm has joined #linux-sunxi
reinforce has joined #linux-sunxi
selfbg has joined #linux-sunxi
ganbold_ has joined #linux-sunxi
ganbold has quit [Ping timeout: 260 seconds]
kaspter has quit [Remote host closed the connection]
kaspter has joined #linux-sunxi
OnkelUlla has quit [Ping timeout: 272 seconds]
OnkelUlla has joined #linux-sunxi
damex has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
suprothunderbolt has quit [Ping timeout: 265 seconds]
tnovotny has joined #linux-sunxi
lvrp16 has quit [Ping timeout: 248 seconds]
steev has quit [Ping timeout: 248 seconds]
ric96 has quit [Ping timeout: 248 seconds]
lvrp16 has joined #linux-sunxi
ric96 has joined #linux-sunxi
yann has joined #linux-sunxi
steev has joined #linux-sunxi
yann has quit [Ping timeout: 272 seconds]
bjne has joined #linux-sunxi
warpme_ has joined #linux-sunxi
tl_lim has quit [Read error: Connection reset by peer]
florian_kc has joined #linux-sunxi
bjne has quit [Ping timeout: 248 seconds]
florian_kc is now known as florian
matthias_bgg has quit [Ping timeout: 260 seconds]
ganbold_ has quit [Ping timeout: 260 seconds]
ganbold has joined #linux-sunxi
iyzsong has joined #linux-sunxi
megi has joined #linux-sunxi
<willmore> megi, good find!
chewitt has joined #linux-sunxi
pmp-p has quit [Ping timeout: 272 seconds]
pmp-p has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
davidebeatrici has quit [*.net *.split]
davidebeatrici has joined #linux-sunxi
AneoX has joined #linux-sunxi
lkcl has quit [Ping timeout: 260 seconds]
gsz has joined #linux-sunxi
atsampson has quit [Ping timeout: 272 seconds]
<megi> willmore: https://lkml.org/lkml/2020/2/19/416 here's more explanation :)
dev1990 has joined #linux-sunxi
atsampson has joined #linux-sunxi
OnkelUlla has quit [Ping timeout: 260 seconds]
OnkelUlla has joined #linux-sunxi
<megi> I feel like no mystery remains on this issue anymore
<KotCzarny> those masks look very offensive
<KotCzarny> ;)
<megi> you'd use some bit shifting and -1 magic, wouldn't you :)
<KotCzarny> nah, just had some smile seeing ffffu
<KotCzarny> ;0
<KotCzarny> ;)
<megi> ah
<megi> lol
<megi> hmm, maybe that's my feelings debuging this issue
<KotCzarny> maybe it's the reasone people obfuscate them with shifting and -1 ;)
dev1990 has quit [Quit: Konversation terminated!]
<KotCzarny> good job on debugging tho
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
maccraft has joined #linux-sunxi
rex_victor has quit [Ping timeout: 260 seconds]
rex_victor has joined #linux-sunxi
<megi> anyone tested cedrus on ARMv8? :)
<megi> libva-v4l2-requests doesn't run due to a missing symbol (easily fixable) and then some ioctls (like VIDIOC_S_EXT_CTRLS) are returning EFAULT (at least in mpv)
<fALSO> yap
<fALSO> libva-v4l2-requests sucks to build
<fALSO> someone should update it to be able to build with recent kernels
<fALSO> when you go down that rabbit hole it sucks
<megi> it builds for me, (I think necessary kernel headers are included)
<megi> but maybe they changed since
<fALSO> nah, i tried it with 5.6
<fALSO> needs stuff that doesnt exist in the original v4l2 that is in the kernel
<fALSO> it seems to be *dead* or seomthing
<fALSO> last commit may 2019
<megi> unless the public API changed, I wouldn't expect much activity
<megi> maybe jernej knows a bit more
<fALSO> i wanted to play with it on my rockpro64 (i know its the wrong channel)
<fALSO> but only managed to get it to work with a hacked version of ffmpeg that already includes the v4l2-request code
<megi> ah
<fALSO> i wanted to try vlc built with v4l2-request support, but...
<megi> interesting
<fALSO> v4l2-request doesnt build
<fALSO> i also requires some special kernel
<megi> so generic vaapi driver doesn't just work, and programs include their own v4l2-request code?
<fALSO> well this ffmpeg version has
<fALSO> trying to find the URL
<fALSO> nah
<fALSO> it was on a giblab
<fALSO> wait
<megi> looks like the linked code is written also by jernej
merbanan has quit [Ping timeout: 268 seconds]
<fALSO> megi, ^
<KotCzarny> odkrylem jedna mega funkcje tej podstawki pod monitor
<KotCzarny> erm, sorry, wrong window
<megi> fALSO: thanks!
<megi> eh, that's built partly on top of patches in that Kwiboo tree
<megi> and none of this uses vaapi
<megi> fun :)
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
LargePrime has quit [Ping timeout: 265 seconds]
suprothunderbolt has joined #linux-sunxi
lurchi_ is now known as lurchi__
yann has joined #linux-sunxi
malestorm has quit [Quit: malestorm]
dddddd has joined #linux-sunxi
yann has quit [Ping timeout: 265 seconds]
lkcl has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
maccraft123 has joined #linux-sunxi
merbanan has joined #linux-sunxi
maccraft123 has quit [Client Quit]
<fALSO> megi, i never tried it on a allwinner
<fALSO> just on my rockpro64
<fALSO> it worked
<megi> it should work on allwinner too
<megi> I already have ffmpeg cross-compiling :) now I'm just figuring out how to write a simple app that will use libavcodec and get v4l buffer references from it for further processing (rotation via rotation engine)
<fALSO> megi, if you ever find a fork of the v4l2request that builds with non-hacked-kernels
<fALSO> i really wanted to try VLC
<fALSO> because ffmpeg plays stuff to quickly
<fALSO> because its like "processing"
<fALSO> not playing in realtime
<megi> hmm
<fALSO> also if you want the way i've used that
<fALSO> ffmpeg -hwaccel drm -hwaccel_device /dev/dri/card0 -i FILE.MKV -pix_fmt bgra -f fbdev /dev/fb0
<megi> that looks a bit weird, there's no drm hwaccel in --list-hwaccels
<megi> I'd expect something like -hwaccel h264_v4l2request
<fALSO> megi, with that fork i mentioned? did you use the same branch ?
<fALSO> https://gitlab.collabora.com/ezequiel/ffmpeg - branch stateless-mpeg2-vp8-h264-v4
<megi> ah, right, I'm trying the jernej's fork
<fALSO> AHHH
<fALSO> ;-)
<megi> though I'm still not sure how DRM device would accelerate video decoding
<fALSO> the rockpro generates different devices one for encodign and other for decoding i think
<megi> and that branch is all about adding support for v4l devices, not drm
<fALSO> yap, i told you - i dont know if that one works on allwinners
<fALSO> but on rockpro64 with the hantro patches
<fALSO> it correctly decodes h264 via HW
<fALSO> like ... vdpau
<megi> well, it still uses v4l for decoding :) the paths are just hardcoded in the code
<fALSO> i think its probably because of being impossible to compile v4l2-request
<megi> anyway, back to hacking :)
<fALSO> =) do it!
<fALSO> im gonna update my jenkins instance
reinforce has quit [Quit: Leaving.]
JohnDoe_71Rus has joined #linux-sunxi
zhovner has quit [Quit: bye]
yann has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
selfbg has quit [Remote host closed the connection]
zhovner has joined #linux-sunxi
bjne has joined #linux-sunxi
<jernej> megi: I have few minutes if you want some answers regarding HW video decoding
<jernej> if you want up to date vaapi library, check pull requests
<jernej> ph5 worked on improving it
<jernej> but I don't use it, so I don't know how good it works
<jernej> fALSO: pure ffmpeg is not meant for video playback, so it's normal that video is not the right speed with the line you provided
<fALSO> i know!
<fALSO> thats why i wanted to use vlc
<jernej> although mpv should work nicely with modified ffmpeg (maybe one simple patch is needed, I forgot)
<jernej> just be aware that ffmpeg contains few modifications which didn't make it in mainline yet, so LibreELEC Cedrus patches are also needed
<jernej> but allows to decode virtually all videos
<jernej> while in mainline several features are missing, like interlaced H264 support, HEVC scaling matrix, HEVC multi slice videos (I think) and few more HEVC stuff
<megi> jernej: thank you for the information
maccraft has quit [Ping timeout: 240 seconds]
reinforce has joined #linux-sunxi
OnkelUlla has quit [Remote host closed the connection]
florian has quit [Quit: Leaving]
tllim has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
vagrantc has joined #linux-sunxi
ganbold has quit [Remote host closed the connection]
ganbold has joined #linux-sunxi
<MoeIcenowy> fALSO: v4l2request seems to build when you have newest kernel api headers
<MoeIcenowy> and do some hacks on the tiled_yuv.S source (which is an ARMv7 only assembly)
<fALSO> well i tried with 5.5
<MoeIcenowy> buy I didn't get it work
<MoeIcenowy> but *
<fALSO> it doesnt have the *newest* kernel api headers
<fALSO> ;-)
<MoeIcenowy> ah 5.4 works
<megi> it builds on 5.5 for me, but errors out
<megi> during runtime
<megi> with vlc
ldevulder has quit [Remote host closed the connection]
ldevulder has joined #linux-sunxi
<megi> hopefully requests api stabilizes soon
maccraft has joined #linux-sunxi
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
<karlp> people have been saying that for a whiel now right? :)
<megi> I see no indications on the media mailing list of that happening
maccraft has quit [Read error: Connection reset by peer]
maccraft has joined #linux-sunxi
ldevulder has quit [Remote host closed the connection]
ldevulder has joined #linux-sunxi
<willmore> I feel this: <megi> hmm, maybe that's my feelings debuging this issue
yann has quit [Ping timeout: 255 seconds]
<martinayotte> megi: will you merge your sound_hdmi commits from your 5.5.y branch into 5.6.y branch soon or should I add patch into Armbian DEV ? (I've started the work of switching DEV to 5.6.y and discovered those discrepancies)
matthias_bgg has quit [Ping timeout: 260 seconds]
florian has joined #linux-sunxi
florian has quit [Ping timeout: 240 seconds]
RichardG867 has joined #linux-sunxi
florian has joined #linux-sunxi
tl_lim has joined #linux-sunxi
florian has quit [Ping timeout: 240 seconds]
yann has joined #linux-sunxi
tllim has quit [Ping timeout: 265 seconds]
tl_lim has quit [Ping timeout: 240 seconds]
<megi> which sound_hdmi commits?
<megi> probably not, I don't think they even work as is
<martinayotte> megi: in fact, it is a DT patch from Jernej that you merged into your 5.5.y branch on Jan 20th, but is not present in your 5.6.y branch.
<megi> I probably left it out because I never got to testing it, and also it's missing some pre-requisite patches I think
gsz has quit [Quit: Konversation terminated!]
<martinayotte> Ah ! Ok ! Then, I will prepare an Armbian patch, since another one in 5.5.y was depending on it. But, me neither I've not tested it ...
yann has quit [Ping timeout: 240 seconds]
florian has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
RichardG867 has quit [Ping timeout: 258 seconds]
ldevulder has quit [Remote host closed the connection]
ldevulder has joined #linux-sunxi
jstein has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
lerc has quit [Ping timeout: 265 seconds]
nborisov_ has quit [Ping timeout: 272 seconds]
nborisov_ has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
ldevulder has quit [Remote host closed the connection]
ldevulder has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
aloo_shu has joined #linux-sunxi
OnkelUlla has joined #linux-sunxi
NeuroScr has joined #linux-sunxi
jstein has quit [Quit: quit]
maccraft has quit [Ping timeout: 258 seconds]
yann has joined #linux-sunxi
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 240 seconds]
maccraft has joined #linux-sunxi
dev1990 has joined #linux-sunxi
ldevulder_ has quit [Remote host closed the connection]
ldevulder has joined #linux-sunxi
maccraft has quit [Quit: WeeChat 2.7]
kubast2 has joined #linux-sunxi
ldevulder has quit [Remote host closed the connection]
ldevulder has joined #linux-sunxi
luke-jr has quit [Ping timeout: 260 seconds]
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 260 seconds]
ldevulder__ has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 258 seconds]
lurchi__ is now known as lurchi_
ldevulder_ has joined #linux-sunxi
luke-jr has joined #linux-sunxi
yann has quit [Ping timeout: 268 seconds]
ldevulder__ has quit [Ping timeout: 258 seconds]
maccraft has joined #linux-sunxi
RichardG867_ has quit [Quit: Keyboard not found, press F1 to continue]
RichardG867 has joined #linux-sunxi
RichardG867 has joined #linux-sunxi
RichardG867 has quit [Changing host]
RichardG867 has quit [Client Quit]
ldevulder_ has quit [Remote host closed the connection]
ldevulder_ has joined #linux-sunxi
kubast2 has quit [Remote host closed the connection]
kubast2 has joined #linux-sunxi
kubast2 has quit [Remote host closed the connection]
kubast2 has joined #linux-sunxi
kubast2 has quit [Remote host closed the connection]
florian has quit [Ping timeout: 255 seconds]
lkcl has quit [Ping timeout: 265 seconds]
ldevulder__ has joined #linux-sunxi
lkcl has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 240 seconds]