nighty-- has quit [Quit: Disappears in a puff of smoke]
<wzyy2>
ARCH=arm....
BenG83 has joined #linux-rockchip
<rperier>
did you notice that CPUs bringup is broken when loading a new kernel via kexec ? (since 4.4.x)
<rperier>
CPU hotplugging is working, CPUs are correctly shutdown. But onece reboot you get "CPU<N>: Failed to come online" , that's with RK3066 and RK3188
<LongChair>
Myy: morning. Reading back the logs, i saw you were using my ffmpeg / mpv. You might wanna make sure that you use the rockchip-new ones, as they are the most up to date :)
<Myy>
Yeah, I used those ones. They compiled fine and got it to run. Now I'm trying to debug the VPU driver :)
JohnDoe_71Rus has joined #linux-rockchip
<LongChair>
Myy : there are a bunch of issues in the VPU driver on 3328 indeed
<LongChair>
specially for 4K playback ... we have some stuttering on a lot of videos
<Myy>
Well, I'm trying to run the VPU driver on 4.13-rcX kernels and it basically crashes when trying to initialize its memory
<Myy>
So I'm trying to understand how iova calls work and how they should be used (and if I can avoid them too)
<LongChair>
we run 4.4. it doesn't really crash anymore, aside parsing HDR streams that seems to error
BenG83 has quit [Ping timeout: 255 seconds]
<LongChair>
but the performance on 4K playback and bitrate around 40+ Mbits /s seems to stutter a lot
<Myy>
I wonder if it's possible to do perf analysis on drivers
<Myy>
That might help understand where's the bottleneck, driver wise
<LongChair>
i have no idea
<LongChair>
i suppose it's possible, but not sure the tools for that are avialable
<Myy>
I saw the gperf option in the kernel configuration, but yeah, I don't know which tools are required and how to use them actually.
<Myy>
Meanwhile, I'm fighting with this :3 https://github.com/Miouyouyou/rockchip-vcodec/issues/3 So, wzyy2 , is IOMMU_IOVA required or not ? I tried with and without but the errors are roughly similar. It seems that the driver try to initialize 0 bytes of memory at some point, so it receives an error and bring down the whole call chain :3
<Myy>
Or maybe I should ping stdint for that matter
<stdint>
Myy, you would found those code are coming from iommu driver directly
<Myy>
Ah !
<Myy>
So, I should take a look at the Rockchip IOMMU code and adapt as necessary ?
<stdint>
so I said don't touch them and don't ask
<Myy>
Ok
<stdint>
that time we meet problem, and Jun and I can't find a good way to solve it
<Myy>
Alright, alright
<stdint>
I have told the most simple way is remove all those code
<Myy>
... I can go with that :3
<stdint>
importing fd and flush iommu every times
<stdint>
having a look at the allocator ion
<Myy>
Alright, I'll try to setup something like that
<stdint>
Myy, first of all making sure iommu is attaching into vpu driver
<stdint>
usually base driver will do that properly
<Myy>
Okay
<stdint>
then inform the iommu the old table is dropped when you touch the translate table
<Myy>
Some invalidate_tlb thingy ?
<stdint>
after that, translate every fd and set the virtual address back to register of the vpu
<stdint>
yep
<stdint>
it is just a little slow, but will make everything fine
<Myy>
Alright.
nighty-__ has quit [Remote host closed the connection]
<Myy>
Didn't think about taking a look at the ION code, but it is much simpler too. Anyway, let's begin !
afaerber has joined #linux-rockchip
<wzyy2>
# #! It's better if someone can rewrite it to use generic API.
<wzyy2>
- -they use too many raw API in this driver..
<wzyy2>
just for some chip's hardware bug
cnxsoft has quit [Ping timeout: 260 seconds]
<Myy>
Any advice for how to use the generic API
<Myy>
I'm all ears.
<wzyy2>
don't know much about this driver..
cnxsoft has joined #linux-rockchip
wzyy2 has quit [Ping timeout: 246 seconds]
wzyy2 has joined #linux-rockchip
http_GK1wmSU has joined #linux-rockchip
sinxq has quit [Ping timeout: 260 seconds]
http_GK1wmSU has left #linux-rockchip [#linux-rockchip]
wzyy2 has quit [Ping timeout: 260 seconds]
wzyy2 has joined #linux-rockchip
BenG83 has joined #linux-rockchip
descend-irc_ has quit [Quit: Connection closed for inactivity]
vagrantc has joined #linux-rockchip
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-rockchip
wzyy2 has quit [Ping timeout: 246 seconds]
wzyy2 has joined #linux-rockchip
<rperier>
mhhhh... I have perhaps understood what's going on , on RK3188 with ethernet (when loading from uboot)
<rperier>
clk_summary in debugfs shows a macref of " sclk_macref 2 2 50000000 0 0" when booting from NAND (the working kernel with the RK proprietary bootloader)
<rperier>
we have a clk of ~49.5Mhz with the other
<rperier>
which might explain why LEDs are blicking very fast and randomly and why autonego is not working
wzyy2 has quit [Ping timeout: 240 seconds]
wzyy2 has joined #linux-rockchip
<rperier>
this bug is just horrible :=D
wzyy2 has quit [Ping timeout: 240 seconds]
wzyy2 has joined #linux-rockchip
wzyy2 has quit [Ping timeout: 240 seconds]
wzyy2 has joined #linux-rockchip
BenG83 has quit [Ping timeout: 258 seconds]
cnxsoft has quit [Remote host closed the connection]
cnxsoft has joined #linux-rockchip
cnxsoft has quit [Remote host closed the connection]
cnxsoft has joined #linux-rockchip
<Myy>
So, did you get back the last 5Mhz ? :)
cnxsoft has quit [Quit: cnxsoft]
wadim_ has quit [Quit: Leaving.]
cini has joined #linux-rockchip
LongChair has quit [Quit: LongChair]
LongChair1 is now known as LongChair
LongWork has joined #linux-rockchip
cini has quit [Ping timeout: 260 seconds]
wzyy2 has quit [Ping timeout: 260 seconds]
wzyy2 has joined #linux-rockchip
wzyy2 has quit [Ping timeout: 240 seconds]
wzyy2 has joined #linux-rockchip
wouterstreamit has quit [Ping timeout: 260 seconds]
wzyy2 has quit [Ping timeout: 260 seconds]
wzyy2 has joined #linux-rockchip
wzyy2 has quit [Ping timeout: 260 seconds]
Myy has quit [Quit: Leaving]
matthias_bgg has quit [Quit: Leaving]
ganbold has quit [Ping timeout: 248 seconds]
wens has quit [Quit: leaving]
wens has joined #linux-rockchip
wens has quit [Client Quit]
wens has joined #linux-rockchip
wens has quit [Client Quit]
wens has joined #linux-rockchip
wzyy2 has joined #linux-rockchip
phinxy has joined #linux-rockchip
BenG83 has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
wzyy2 has quit [Ping timeout: 260 seconds]
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-rockchip
libv_ has joined #linux-rockchip
libv has quit [Ping timeout: 260 seconds]
Omegamoon has left #linux-rockchip [#linux-rockchip]
ted_ has joined #linux-rockchip
ted_ has quit [Read error: Connection reset by peer]
phinxy has quit [Read error: Connection reset by peer]