ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | IRC log http://irclog.whitequark.org/linux-rockchip | Community GH https://github.com/linux-rockchip | Rockchip GH https://github.com/rockchip-linux | ML https://groups.google.com/group/linux-rockchip
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
vstehle has quit [Ping timeout: 272 seconds]
tlwoerner has quit [Quit: Leaving]
tlwoerner has joined #linux-rockchip
lurchi_ is now known as lurchi__
kloczek_ has joined #linux-rockchip
kloczek has quit [Ping timeout: 244 seconds]
kloczek_ is now known as kloczek
athidhep has quit [Ping timeout: 268 seconds]
cnxsoft has joined #linux-rockchip
vagrantc has joined #linux-rockchip
sb35 has joined #linux-rockchip
sb35 has quit [Client Quit]
anarsoul|2 has quit [Remote host closed the connection]
anarsoul has quit [Ping timeout: 272 seconds]
<Myy> Ok, I'm starting to figure it out. Mainline kernels do not enable the IOMMU_DMA API on RK3288 boards
<Myy> Forcing the IOMMU_DMA API generates panics on boot ! Yay !
JohnDoe_71Rus has joined #linux-rockchip
<Myy> It seems that the VOP MMU breaks. So unplugging the HDMI cable allows the system to boot. However, I still have the same issue with the VPU driver. It runs but no output.
vagrantc has quit [Quit: leaving]
lurchi__ has quit [Ping timeout: 240 seconds]
athidhep has joined #linux-rockchip
vstehle has joined #linux-rockchip
<Myy> Well, I got my dose of blind guess work with the VPU, using mainline kernels. So I'm starting to ask on the Rockchip and IOMMU LKML. I'll see if I get some tips : http://lists.infradead.org/pipermail/linux-rockchip/2018-August/021438.html
<hanetzer> Myy: thank you for your work, btw :)
<Myy> You're welcome :3
<hanetzer> Myy: I'll be frank, I don't use it myself (gentooist), but I realize it to be greatly needed until stuff hits mainline and we liberate the vpu/mali :)
<Myy> Well, it's one of the main roadblocks from using mainline kernels for many people who wants to use it as standard PC, which includes playing videos on Youtube and Netflix.
<Myy> I had a Gentoo on a MiQi system but it died after a while. I still use Gentoo on my main PC though.
<hanetzer> aye. I have two asus c201 chromebooks (4gb ram models), I've been doing dev work on u-boot for them :)
<Myy> Ah, I'll have to delve into U-Boot one day, in order to deal with the dreaded ASUS Tinkerboard reboot issue.
<Myy> I still can't believe that made a system that forgets to setup the MMC correctly on reboot and hangs.
<hanetzer> Myy: ouch.
<Myy> The first... fix... provided by Asus was "awesome". A reimplementation on mainline kernels gives this : https://github.com/Miouyouyou/RockMyy/blob/master/patches/kernel/v4.15/0005-ASUS-Tinkerboard-Stupid-reboot.patch
cnxsoft1 has joined #linux-rockchip
<Myy> When you start to modify the kernel "reboot.c" to fix issues with your board, you know there's something going very wrong. I tried to fix this another way : https://github.com/Miouyouyou/RockMyy/blob/master/patches/kernel/v4.18/0005-drivers-mmc-dw-mci-rockchip-Handle-ASUS-Tinkerboard.patch
ShapeShifter499 has joined #linux-rockchip
<Myy> But it only works with standard reboot. Panic reboot does not work. It goes back on U-Boot then fails to setup the MMC voltage and gets stuck.
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft1 is now known as cnxsoft
<hanetzer> Myy: nifty. currently I'm waiting for upstream u-boot to support gt 0xffff_ffff bytes of ram on 32-bit rockchip targets. I have a kludgy fix for that which I stole from coreboot which clamps it to 0xff00_0000 for the rk3288 :P
<Myy> Didn't they enable LPAE on some RK3288 boards ? I remember that the whole Rockchip 32 bits DTS{,I} files were changed to use 64 bits addressing for that reason.
<hanetzer> no idea offhand. did some testing and back and forth on the ml
<Myy> I see.
<Myy> ezequielg, If you got anything written to the output buffer, let me know. And if you don't, my guess is that there might be something missing in the DTSI definition.
<Myy> Beside the power domain not being defined in the VPU MMU ( -_-)
<Myy> The old IOMMU initialization code seems to be a red herring, IMHO
<ayaka> Myy, I have replied your mail
<Myy> Yes, I saw that
xerpi has joined #linux-rockchip
<ayaka> ayaka, do you know my new vpu driver
<Myy> But like I said, porting the MPP device driver will just piles up more issues, since a few other things are missing (IOMMU_DMA) or are done differently in recent kernels (iommu_domain_alloc ...).
<ayaka> you may refer the iommu and dma code from it
<Myy> And I can't test it since I'm basically relying on Armbian for 4.4 kernels and they cannot compile them anymore, it seems.
<Myy> So I looked at the code, and it's way cleaner than the vcodec_service.c code
<Myy> But there are a few things here and there that I have to see with Jacob Chen and other Rockchip developers working on mainline kernels, before being able to port it.
<ayaka> basically you are suffering the iommu problem
<ayaka> Jacob doesn't work for rockchip anymore
<Myy> Well, not per-Se. I found a way to enable the IOMMU_DMA option on mainline kernels. While it breaks the video output, the kernel can still be booted. I then loaded my driver and... same issue.
<Myy> The IRQ is triggered, the registers are slightly changed but nothing else.
<Myy> The IOMMU fault handler is not called.
<Myy> The output buffer is unchanged
<ayaka> well, there is a patch in kernel 4.4 to disable the auto iommu loading for vop
<Myy> That would be the issue ?
<Myy> For VOP, anyway ?
<Myy> I'm starting to wonder if that's really an IOMMU issue.
<Myy> I think it's more a bad setup of the encoded frame, or the quantization table
<Myy> Still, I'll first try to disable an old patch that I still kept around
<Myy> Then I'll give the DMA Debug API a try
<Myy> Maybe I'll get some useful error messages.
anarsoul has joined #linux-rockchip
wzyy22222 has joined #linux-rockchip
kaspter has joined #linux-rockchip
<Myy> I tried to disable this old patch : https://github.com/Miouyouyou/RockMyy/blob/master/patches/kernel/v4.18/0003-clk-rockchip-rk3288-prefer-vdpu-for-vcodec-clock-sou.patch And what I got was "rockchip-pm-domain ... failed to get ack on domain 'pd_video', val=0x8020c followed by the VPU MMU being not initialized and getting stuck (Error during raw reset. MMU_DTE_ADDR is not functioning). Hmm
<Myy> I'll look for clues about this issue after a good sleep.
<Myy> See you everyone.
Myy has quit [Quit: Leaving]
ayaka has quit [Ping timeout: 272 seconds]
ayaka has joined #linux-rockchip
athidhep has quit [Ping timeout: 272 seconds]
athidhep has joined #linux-rockchip
xerpi has quit [Remote host closed the connection]
LargePrime has quit [Ping timeout: 240 seconds]
ganbold has quit [Quit: Leaving]
LargePrime has joined #linux-rockchip
JohnDoe_71Rus has quit [Read error: No route to host]
JohnDoe_71Rus has joined #linux-rockchip
vicencb has joined #linux-rockchip
athidhep has quit [Ping timeout: 272 seconds]
athidhep has joined #linux-rockchip
jock has joined #linux-rockchip
<jock> hi all
jailbox has quit [Ping timeout: 265 seconds]
cnxsoft has quit [Ping timeout: 244 seconds]
cnxsoft has joined #linux-rockchip
jailbox has joined #linux-rockchip
LargePrime has quit [Ping timeout: 240 seconds]
LargePrime has joined #linux-rockchip
ganbold has joined #linux-rockchip
LargePrime has quit [Remote host closed the connection]
LargePrime has joined #linux-rockchip
jock has quit [Quit: Leaving]
cnxsoft has quit [Quit: cnxsoft]
aalm has quit [Ping timeout: 256 seconds]
aalm has joined #linux-rockchip
leah2 has quit [Ping timeout: 240 seconds]
leah2 has joined #linux-rockchip
JohnDoe_71Rus has quit [Ping timeout: 265 seconds]
LargePrime has quit [Ping timeout: 268 seconds]
LargePrime has joined #linux-rockchip
return0e has joined #linux-rockchip
return0xe has joined #linux-rockchip
jock has joined #linux-rockchip
return0e has quit [Read error: Connection reset by peer]
jock has quit [Quit: Leaving]
athidhep has quit [Ping timeout: 272 seconds]
athidhep has joined #linux-rockchip
Myy has joined #linux-rockchip
<Myy> Miaou
ferlzc has joined #linux-rockchip
<ferlzc> Does anyone can help me with some tips getting u-boot splash screen working with RK3288. I can't seem to get u-boot video support.
<Myy> I don't if there's a U-Boot channel, but you might have more answers there.
s_frit_ has joined #linux-rockchip
s_frit has quit [Ping timeout: 272 seconds]
<Myy> ezequielg, Do you have some uesable raw H264 samples ?
<Myy> ayaka, Is there a player that knows how to use your MPP Service driver ?
asciilifeform has joined #linux-rockchip
<hanetzer> there is a #u-boot driver :P
<hanetzer> erm, s/driver/channel/
vicencb has quit [Quit: Leaving.]
<ferlzc> i will check there, thanks
ferlzc has quit [Quit: Leaving]
perr has joined #linux-rockchip