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
vagrantc has joined #linux-rockchip
phinxy has quit [Quit: Leaving]
wzyy2 has joined #linux-rockchip
nighty-- has joined #linux-rockchip
ganbold has joined #linux-rockchip
ganbold has quit [Remote host closed the connection]
ganbold has joined #linux-rockchip
phinxy has joined #linux-rockchip
phinxy has quit [Read error: Connection reset by peer]
descend-irc_ has joined #linux-rockchip
<wzyy2> dump_stack() can print the call satck
cnxsoft has joined #linux-rockchip
http_GK1wmSU has joined #linux-rockchip
http_GK1wmSU has left #linux-rockchip [#linux-rockchip]
vagrantc has quit [Quit: leaving]
c|oneman has quit [Ping timeout: 260 seconds]
c|oneman has joined #linux-rockchip
JohnDoe_71Rus has joined #linux-rockchip
diego71 has quit [Ping timeout: 246 seconds]
lkcl has joined #linux-rockchip
cyteen has quit [Ping timeout: 260 seconds]
patrik has joined #linux-rockchip
Omegamoon has joined #linux-rockchip
wouterstreamit has joined #linux-rockchip
Omegamoon has quit [Quit: Leaving.]
Omegamoon has joined #linux-rockchip
wadim_ has joined #linux-rockchip
Omegamoon has quit [Quit: Leaving.]
Omegamoon has joined #linux-rockchip
sinxq has joined #linux-rockchip
<sinxq> hi,where is the complier for https://github.com/rockchip-linux/kernel?
<sinxq> CROSS_COMPILE?= $(srctree)/../prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-
<stdint> you could use any cross toolchains from internet as long as it supports the target ABI
http_GK1wmSU has joined #linux-rockchip
http_GK1wmSU has left #linux-rockchip [#linux-rockchip]
cyteen has joined #linux-rockchip
<sinxq> but it bring error
patrik has quit [Ping timeout: 268 seconds]
<sinxq> arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
BenG83 has quit [Quit: Leaving]
<phh> sinxq: well that compiler is the one from AOSP
<sinxq> i solved it
<sinxq> ths
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
matthias_bgg has joined #linux-rockchip
Myy has joined #linux-rockchip
<Myy> Meow
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
<Myy> This call here always return 0 : https://github.com/rockchip-linux/rockchip_forwardports/blob/master/vcodec/vcodec_iommu_drm.c#L303 And in the end, alloc_iova, after the loop, tries to allocate 0 pages of memory. Which obviously generate some issues
<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]
phinxy has joined #linux-rockchip
vagrantc has joined #linux-rockchip
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
vagrantc has quit [Quit: leaving]
phinxy has quit [Ping timeout: 240 seconds]
libv_ is now known as libv
vagrantc has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
fischerm has quit [Quit: ZNC 1.6.2 - http://znc.in]