ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion
stikonas has quit [Remote host closed the connection]
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 260 seconds]
kevery1 is now known as kevery
System_Error has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 260 seconds]
kevery1 is now known as kevery
kevery has quit [Ping timeout: 250 seconds]
<rembo10> I think I'm facing this same issue: https://patchwork.kernel.org/project/linux-rockchip/patch/20190901212413.t561j%25alex14fr@gmail.com/ ... Is it a quirk with the psci? I'm dual booting an ereader with Android and Linux, and I think psci is the only way I can bring up the secondary cpus
matthias_bgg has quit [Ping timeout: 260 seconds]
System_Error has quit [Remote host closed the connection]
matthias_bgg has joined #linux-rockchip
System_Error has joined #linux-rockchip
chewitt_ has joined #linux-rockchip
chewitt has quit [Ping timeout: 268 seconds]
lopsided98_ has quit [Quit: No Ping reply in 180 seconds.]
lopsided98 has joined #linux-rockchip
robmur01 has quit [Ping timeout: 265 seconds]
robmur01 has joined #linux-rockchip
camus has joined #linux-rockchip
chewitt_ is now known as chewitt
chewitt_ has joined #linux-rockchip
chewitt has quit [Ping timeout: 260 seconds]
vagrantc has joined #linux-rockchip
lurchi_ has joined #linux-rockchip
lurchi__ has quit [Ping timeout: 250 seconds]
System_Error has quit [Ping timeout: 276 seconds]
chewitt_ has quit [Read error: Connection reset by peer]
chewitt has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
macc24 has joined #linux-rockchip
warpme__ has joined #linux-rockchip
chewitt has quit [Read error: Connection reset by peer]
chewitt_ has joined #linux-rockchip
stikonas has joined #linux-rockchip
archetyp has joined #linux-rockchip
<rembo10> I wonder if someone might be able to help me debug my dts. I'm having trouble with the usb otg and suspend... I think it has something to do with PMIC, but it's the only way I can bring up the secondary cpus
<rembo10> I mean PSCI
<rembo10> So many acronymns!
<phh> you mean usb otg and suspend simultaneously, or is that two independant issues? usb otg should be independant from psci (except during suspend ok)
<rembo10> Two independent issues
<rembo10> And also like, on some boots the wifi works fine, on others the interface doesn't show up
<rembo10> So I'm guessing it's something to do with the pinctrl? But I'm not really sure
<rembo10> I'm still learning about this stuff
<phh> pretty hard to say
<phh> first, when you say usb otg, do you mean that neither peripheral nor host mode works, or that only one works?
<rembo10> I saw some messages about failing to come out of L1 sleep state in 200us (for the usb), so I thought it was again something to do with power management
<rembo10> I have it set to peripheral mode in my dts
<phh> ok, did you setup configfs/functionfs/gadgets ?
<rembo10> On the board I have... It's a type c connector, so I don't know if that might have some effect? Might need some changes?
<rembo10> I set up gadgets
<rembo10> I'm trying to use g_ether
<rembo10> It has worked every once in a while
<rembo10> Other times I can ping the device but not ssh
<phh> I don't know much about type c, but I'm under the impression it requires specific setup yes
<rembo10> Other times the device freezes up
<phh> ah, so it's not totally not working
<rembo10> Yeah exactly, which makes it almost more frustrating!
<rembo10> And in the uboot.dtb that I managed to extract, there's nothing really fancy going on with the usb
<phh> so, it doesn't sound like a pinctrl issue. I don't know what's the L1 sleep state error you're speaking about, so yeah sounds like it could be related to psci. I could tell you to disable suspend modes temporarily, but it doesn't sound good for an ereader
<rembo10> I wonder if it's possible to bring up the secondary cpus without psci?
<rembo10> Or is it sort of required by the firmware?
<rembo10> It's a simlar issue I think, for example I couldn't use timer 6-7 either
<phh> to bring up secondary CPUs, you need to use whatever bootloader's giving you. Looking at the change you're giving, rk3288 was historically NOT using psci (psci is a rather new thing, kinda mandated on armv8, but that's an armv7 platform), and was letting the OS control the CPUs itself, but newer rk3288 bootloaders implement PSCI and so you must go through PSCI to enable secondary cores
<rembo10> Interesting
<rembo10> That sort of fits in with what I was researching
<rembo10> I think I mentioned before, I'm dual booting with the original android system, so I don't really want to mess with the uboot to render that unusable
<rembo10> Since I'm not that confident I get the display working aha
<rembo10> I'm just not sure what to do
stikonas has quit [Remote host closed the connection]
ArchibaldTuttle has quit [Read error: Connection reset by peer]
stikonas has joined #linux-rockchip
robmur01 has quit [Quit: Leaving]
robmur01 has joined #linux-rockchip
ArchibaldTuttle has joined #linux-rockchip
tomeu4 has joined #linux-rockchip
indy_ has joined #linux-rockchip
indy has quit [Ping timeout: 260 seconds]
rektide has quit [Ping timeout: 260 seconds]
Esmil has quit [Ping timeout: 260 seconds]
tomeu has quit [Ping timeout: 260 seconds]
tomeu4 is now known as tomeu
rektide_ has joined #linux-rockchip
indy_ is now known as indy
<phh> rembo10: fwiw, there are ways to keep the internal storage intact and boot from sdcard, but i don't think it's worth it in your case
<phh> (or even from usb)
<phh> rembo10: you have psci working for secondary-cpu-bringup?
<phh> rembo10: you can try looking at maybe a rk3328 device-tree that will be using PSCI both for secondary-cpu-bringup and suspend
<phh> rembo10: wait, i just realized you didn't say what's your soc
<rembo10> It's an rk3288w
<rembo10> I can bring up the secondary cpus with psci
<rembo10> I'll take a look at those device trees
<rembo10> The only rockchip one I found in mainline was the rk322x.dtsi
<rembo10> Oh that's interesting, they have opp-suspend in the operating points
<rembo10> The device I'm using doesn't have an sd card... I was thinking to solder one on but.. Well I think it would be the same issue right? Same bootloader...
<rembo10> Oh wait sorry I was looking in the arm directory not arm64... so dumb
<rembo10> I think that might be it... I need to have an idle-states node
<rembo10> It's weird that it's not in the dtb I extracted from the original system image
camus has quit [Ping timeout: 256 seconds]
<rembo10> Hm, no dice... Maybe I'm testing it wrong? I have the gpio power key set as a wakeup source, I've also tried by setting the rtc0 wakealarm
<phh> well it could also be related to pmic
<rembo10> Wait a minute
<rembo10> I just realized I have CONFIG_TEE=n
<rembo10> I'm assuming I need that?
<phh> you need for it to match your bootloader's configuration
<phh> if your bootloader has tee then you need tee on
<rembo10> So I pulled the config from the android system
<rembo10> They have # CONFIG_TEE is not set
<rembo10> CONFIG_TEE_SUPPORT=y
<rembo10> Which seems contradictory aha
<rembo10> And I don't see CONFIG_TEE_SUPPORT in 5.15
camus has joined #linux-rockchip
<rembo10> But on the android side I see some messaages like [ 101.415284] Suspending console(s) (use no_console_suspend to debug)
<rembo10> INF TEE-CORE:rockchip_cpu_suspend:
Esmil has joined #linux-rockchip
<rembo10> There's also something called the ARM_PSCI_CHECKER
<rembo10> Run the PSCI checker during startup. This checks that hotplug and suspend operations work correctly when using PSCI.
<rembo10> So maybe it's all related!
<rembo10> Thank you so much for all your help btw, you've been enormously helpful
camus has quit [Quit: camus]
<rembo10> Ah man it froze my whole computer when I plugged the usb in aha
lopsided98 has quit [Quit: No Ping reply in 210 seconds.]
lopsided98 has joined #linux-rockchip
camus has joined #linux-rockchip
vagrantc has joined #linux-rockchip
lurchi_ is now known as lurchi__
chewitt_ is now known as chewitt
<Esmil> mmind00: Oh you have a starlight board too? (i just read the riscv list)
<mmind00> Esmil: yep ... and since last week a D1-Nezha too :-)
<Esmil> mmind00: Cool. If you're interested I can have Michael invite you to the StarFive slack channel where I can hazzle them for all the documentation they still haven't released
<Esmil> all the clock and reset info is basically from some internal excel sheets they sent me :/
<mmind00> Esmil: probably the only documentation for that at all ;-)
<Esmil> yeah
<mmind00> Esmil: so far I've always gotten around having anything todo with slack, so not sure if that is helpful ... I've made the board netboot and am more or less just following your branch for fiddling around with the board ;-)
<Esmil> mmind00: yes, me too, but both $work, the beagle foundation and riscv are using slack now :(
<Esmil> anyway the invitation is open. let me know if you want to have a look some day
<mmind00> hehe ok :-)
vagrantc has quit [Quit: leaving]
repk_ has quit [Quit: WeeChat 3.3]
repk has joined #linux-rockchip
bitstuff has joined #linux-rockchip
bitstuff has quit [Remote host closed the connection]
bitstuff has joined #linux-rockchip
bitstuff has quit [Remote host closed the connection]
bitstuff has joined #linux-rockchip
bitstuff has quit [Remote host closed the connection]
bitstuff has joined #linux-rockchip
bitstuff has quit [Remote host closed the connection]
bitstuff has joined #linux-rockchip
camus has quit [Quit: camus]
bitbang has joined #linux-rockchip
vagrantc has joined #linux-rockchip
vagrantc has quit [Client Quit]
vagrantc has joined #linux-rockchip
macc24 has quit [Ping timeout: 268 seconds]
vagrantc has quit [Quit: leaving]