mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
stikonas has quit [Read error: Connection reset by peer]
crabbedhaloablut has quit [Read error: Connection reset by peer]
stikonas has joined #linux-rockchip
kevery has quit [Ping timeout: 268 seconds]
kevery has joined #linux-rockchip
stikonas has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #linux-rockchip
stikonas has joined #linux-rockchip
stikonas has quit [Read error: Connection reset by peer]
stikonas has joined #linux-rockchip
stikonas has quit [Ping timeout: 276 seconds]
Daanct12 has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 245 seconds]
kevery1 is now known as kevery
mripard has quit [Ping timeout: 255 seconds]
camus has quit [Ping timeout: 268 seconds]
camus has joined #linux-rockchip
naoki has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 276 seconds]
kevery1 is now known as kevery
crabbedhaloablut has quit [Ping timeout: 264 seconds]
loki_val has joined #linux-rockchip
jaganteki has joined #linux-rockchip
<wens> on the other hand, trying to manage multiple decoder cores in the kernel would make the driver unnecessarily complex
raster has joined #linux-rockchip
mripard has joined #linux-rockchip
warpme has joined #linux-rockchip
alpernebbi has quit [Ping timeout: 260 seconds]
kevery has quit [Ping timeout: 256 seconds]
alpernebbi has joined #linux-rockchip
<jaganteki> is optee is mandatory for rockchip u-boot on 3588/68 cannot we control via any CONFIG_?
kevery has joined #linux-rockchip
Net147 has quit [Quit: Quit]
Net147 has joined #linux-rockchip
Net147 has quit [Changing host]
Net147 has joined #linux-rockchip
loki_val has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #linux-rockchip
jaganteki has quit [Ping timeout: 250 seconds]
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 260 seconds]
kevery1 is now known as kevery
jaganteki has joined #linux-rockchip
jaganteki has quit [Quit: Client closed]
jaganteki has joined #linux-rockchip
<linkmauve> wens, unnecessarily you think?
<linkmauve> I would expect that to be mostly just bookkeeping, scheduling multiple clients access to the same resource is already a task for the kernel, here it’d just be spread out to multiple blocks.
<wens> which is adding another layer on top of what the media subsystem core already does
<linkmauve> Hmm…
<wens> there is already an in-kernel driver that does this, the mediatek jpeg encoder driver, if you want some reference
<wens> like for how much work this would involve
kevery has quit [Ping timeout: 245 seconds]
kevery has joined #linux-rockchip
jaganteki has quit [Quit: Client closed]
<linkmauve> wens, seems like they just have to manage an additional workqueue.
jaganteki has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anarsoul has quit [Quit: ZNC 1.8.2 - https://znc.in]
anarsoul has joined #linux-rockchip
warpme has joined #linux-rockchip
naoki has quit [Quit: naoki]
dsimic has quit [Ping timeout: 264 seconds]
dsimic has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crabbedhaloablut has quit [Ping timeout: 268 seconds]
crabbedhaloablut has joined #linux-rockchip
warpme has joined #linux-rockchip
jaganteki has quit [Quit: Client closed]
jaganteki has joined #linux-rockchip
jaganteki has quit [Ping timeout: 250 seconds]
Daanct12 has quit [Quit: WeeChat 4.1.2]
Daanct12 has joined #linux-rockchip
crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #linux-rockchip
jaganteki has joined #linux-rockchip
psydroid has joined #linux-rockchip
Daanct12 has quit [Quit: WeeChat 4.1.2]
macromorgan_ has joined #linux-rockchip
<raster> jaganteki: optee is not needed. the standard uboot binary images have no optee available and everything boots fine.
<jaganteki> true but rockchip u-boot seems make it mandatory.
<jaganteki> don't know why
macromorgan has quit [Ping timeout: 240 seconds]
mripard has quit [Remote host closed the connection]
<raster> jaganteki: mandatory? umm literally i get:
<raster> WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
<raster> and it marches on...
<jaganteki> build make u-boot.itb
<raster> it cant init optee - but no downsides
<raster> ooooh TH@
<raster> THAT ... yeah -i hit that too
<raster> in one of my tries to build a newer u-boot. i went back to using the pre-build binaries and did it "right" (ie have the right uboot on emmc that the rom was loading up ...)
<raster> at least the debug version when it finally loaded the right one had serial out working finally so i could do something like select kernel from extlinux
<jaganteki> I have manually comment bl32 in script
<raster> i had other bigger problems ... like emmc i/o errors + corruption to solve
<raster> (which i have now solved ... not sure if the dt changes should go into mainline or not... it's a tad ugly)
jaganteki has quit [Quit: Client closed]
jaganteki has joined #linux-rockchip
mripard has joined #linux-rockchip
paulk-bis has quit [Ping timeout: 240 seconds]
crabbedhaloablut has quit [Ping timeout: 260 seconds]
crabbedhaloablut has joined #linux-rockchip
jaganteki has quit [Quit: Client closed]
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 256 seconds]
kevery1 is now known as kevery
raster has quit [Quit: Gettin' stinky!]
matthias_bgg has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 260 seconds]
kevery1 is now known as kevery
<linkmauve> Hmm, https://github.com/radxa/kernel fails to build on current gcc, is there a downstream kernel which supports most rk3588 features and that has been updated to compile with a current compiler?
<linkmauve> I could also try clang though.
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 252 seconds]
kevery1 is now known as kevery
warpme has joined #linux-rockchip
raster has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevery1 has joined #linux-rockchip
kevery has quit [Read error: Connection reset by peer]
kevery1 is now known as kevery
warpme has joined #linux-rockchip
matthias_bgg has quit [Ping timeout: 252 seconds]
alpernebbi has quit [Ping timeout: 276 seconds]
alpernebbi has joined #linux-rockchip
alpernebbi has joined #linux-rockchip
alpernebbi has quit [Changing host]
<linkmauve> Hmm, rk3588s.dtsi and rk3588.dtsi list interrupts which don’t correspond to the right numbers according to the TRM; how does anything work then?
<CounterPillow> they use a different numbering scheme, try subtracting or adding 32 from them (I don't remember which)
<linkmauve> I’m trying to enable tsadc, but it still tells me:
<linkmauve> [ 10.018106] rockchip-thermal fec00000.tsadc: error -ENODEV: failed to register sensor[0].
<linkmauve> [ 10.017463] rockchip-thermal fec00000.tsadc: failed to register sensor 0: -19
<linkmauve> Ah right, thanks!
<linkmauve> TRM + 32 → dts
<linkmauve> I’ve only enabled a single thermal zone so far, and a simple one without trips or cooling maps.
<linkmauve> The drivers/thermal/rockchip_thermal.c driver seems to already have support for the rk3588, which leads me to the guess that only the dts is missing.
<CounterPillow> it's possible that one of the cooling devices needs cpufreq to downclock
<linkmauve> 45d7b3867a5cabb97fc31f16122cda8540c3a30c was where it got added.
<linkmauve> I’m not caring about cooling devices for now, just about the adc telling me the current temps.
<linkmauve> So far what I did was to set status = "okay" for &tsadc in my board’s dts, and add a thermal-zones listing a single thermal referencing &tsadc.
stikonas has joined #linux-rockchip
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
<linkmauve> % cat /sys/class/thermal/thermal_zone0/temp
<linkmauve> 43461
<linkmauve> \o/
<CounterPillow> \o/
<linkmauve> Now to handle the other six zones.
<linkmauve> Wow, btop already picks it. :)
<linkmauve> And it goes higher when I use a core to do random things (literally cat /dev/urandom > /dev/null). :)
<linkmauve> And it goes down when I use a cooler (my cold fingers).
kevery1 has joined #linux-rockchip
kevery has quit [Read error: Connection reset by peer]
kevery1 is now known as kevery
<linkmauve> Hmm, all thermal zones are returning the exact same temp, so there is probably something I’m doing wrong.
<linkmauve> Ah no, they are often identical but not all the time!
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<linkmauve> The cpu* LED triggers don’t seem to work here.
<linkmauve> The other triggers are fine.
alpernebbi has quit [Ping timeout: 276 seconds]
alpernebbi has joined #linux-rockchip
alpernebbi has quit [Changing host]
alpernebbi has joined #linux-rockchip
<linkmauve> CounterPillow, everyone else with a rk3588, wanna test this dts change? https://linkmauve.fr/dev/linux/rk3588-thermal/
vagrantc has joined #linux-rockchip
warpme has joined #linux-rockchip
warpme has quit [Client Quit]
alpernebbi has quit [Ping timeout: 252 seconds]
alpernebbi has joined #linux-rockchip
alpernebbi has joined #linux-rockchip
alpernebbi has quit [Changing host]
kevery1 has joined #linux-rockchip
kevery has quit [Read error: Connection reset by peer]
kevery1 is now known as kevery
macromorgan_ is now known as macromorgan
<macromorgan> linkmauve: seems to be working for me on the Indiedroid Nova
<linkmauve> Cool!
<linkmauve> Do you also get the same temp value for almost all of the zones?
raster has quit [Quit: Gettin' stinky!]
kevery1 has joined #linux-rockchip
kevery has quit [Read error: Connection reset by peer]
kevery1 is now known as kevery
<linkmauve> How does userspace associate a CPU core with its thermal sensor? In the kernel we have the dts, but how is that relation exposed to userspace?
<macromorgan> looks like the same temp, yes
dustinm` has quit [Quit: Leaving]
dustinm` has joined #linux-rockchip
<linkmauve> Looks like doing rmmod hantro_vpu segfaults, and then quickly makes the whole system unusable.
<linkmauve> I can’t even login through the serial port.
<linkmauve> Had to keep the power button pressed to shut it down.