sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv
razzi has joined #riscv
Armand has quit [Ping timeout: 255 seconds]
pecastro has quit [Ping timeout: 255 seconds]
razzi has quit [Ping timeout: 255 seconds]
vagrantc has quit [Quit: leaving]
jacklsw has joined #riscv
JanC has quit [Remote host closed the connection]
JanC has joined #riscv
Armand has joined #riscv
dramforever has joined #riscv
jmdaemon has quit [Quit: ZNC 1.8.2 - https://znc.in]
jmdaemon has joined #riscv
Leopold_ has joined #riscv
Leopold has quit [Ping timeout: 255 seconds]
razzi has joined #riscv
Trifton has joined #riscv
Tenkawa has quit [Quit: Was I really ever here?]
handsome_feng has joined #riscv
razzi has quit [Ping timeout: 268 seconds]
drmpeg has joined #riscv
Leopold_ has quit [Ping timeout: 248 seconds]
Leopold has joined #riscv
solrize has quit [Ping timeout: 256 seconds]
solrize has joined #riscv
iooi has quit [Read error: Connection reset by peer]
iooi has joined #riscv
raym has quit [Quit: kernel update! Rebooting server...]
iooi has quit [Read error: Connection reset by peer]
iooi has joined #riscv
BootLayer has joined #riscv
Leopold has quit [Ping timeout: 255 seconds]
Leopold has joined #riscv
rneese has quit [Remote host closed the connection]
rneese has joined #riscv
vagrantc has joined #riscv
lost-tiff has joined #riscv
lost-tiff has quit [Max SendQ exceeded]
lost-tiff has joined #riscv
lost-tiff has quit [Max SendQ exceeded]
lost-tiff has joined #riscv
lost-tiff has quit [Max SendQ exceeded]
elastic_dog has quit [Read error: Connection reset by peer]
elastic_dog has joined #riscv
vagrantc has quit [Quit: leaving]
bauruine has joined #riscv
Leopold_ has joined #riscv
Leopold has quit [Ping timeout: 246 seconds]
junaid_ has joined #riscv
pecastro has joined #riscv
crossdev has joined #riscv
foton has quit [Quit: %Bye, bye, ...%]
foton has joined #riscv
bitterlollipop has joined #riscv
aerkiaga has joined #riscv
solrize has quit [Ping timeout: 248 seconds]
solrize has joined #riscv
solrize has quit [Changing host]
solrize has joined #riscv
Leopold has joined #riscv
Leopold_ has quit [Ping timeout: 255 seconds]
bitterlollipop has quit [Quit: bitterlollipop]
raym has joined #riscv
ldevulder has joined #riscv
bitterlollipop has joined #riscv
sympt6 has joined #riscv
sympt has quit [Ping timeout: 246 seconds]
sympt6 is now known as sympt
junaid__ has joined #riscv
dramforever has quit [Remote host closed the connection]
dramforever has joined #riscv
Stat_headcrabed has joined #riscv
Stat_headcrabed has quit [Client Quit]
bitterlollipop has quit [Quit: system sleep - ZZZzzz...]
junaid__ has joined #riscv
jmdaemon has quit [Ping timeout: 246 seconds]
<dramforever> i got my visionfive 2 board!
<dramforever> i forgot to consider the fact that i'd be away for the winter, so left the board at uni for two months until now
Stat_headcrabed has joined #riscv
Stat_headcrabed has quit [Client Quit]
crossdev has quit [Ping timeout: 252 seconds]
Stat_headcrabed has joined #riscv
Armand has quit [Ping timeout: 268 seconds]
Leopold has quit [Ping timeout: 246 seconds]
jacklsw has quit [Ping timeout: 255 seconds]
<conchuod> Oof, unlucky!
Leopold has joined #riscv
<dramforever> I'm currently booted into NickCao's NixOS image. It has the JH7110_VisionFive2_upstream kernel because, well I guess it looked newer, 6.1.2 as opposed to _devel's, but most of the drivers aren't there. Probably will get a _devel image later to check out the rest of the stuff
<dramforever> mostly want ethernet and pcie to work. i have a 16G optane thing ready to plug in, which i'd expect be significantly faster and more reliable than any sd card
crossdev has joined #riscv
<Esmil> dramforever: it would be great if you can try https://github.com/esmil/linux/commits/jh7110
<Esmil> it's various patches from -next branches, Hal's latest series + mmc and ethernet
<dramforever> oh cool
<dramforever> it's the latest upstreamed? -able? patches?
<Esmil> there are still comments on Hal's series and the mmc device tree patches and ethernet also need new revisions
<dramforever> will definitely check it out, thanks
<Esmil> also i've only tested ethernet on 1.2A, so if you have a 1.3B it would be cool if you could tell if the ethernet phy stuff is correct or not
<dramforever> nice, my board says 1.3B
<Esmil> cool, then ethernet might not work for you :))
<Esmil> also i think they changed the frequency of the pll0 in newer versions of spl/u-boot. so you might need to uprade to their latest release https://github.com/starfive-tech/VisionFive2/releases/
<Esmil> Heinrich writes how to do that here https://github.com/xypron/visionfive2-u-boot-build
<Esmil> (a better solution would of course be to add and test Xingye's PLL driver)
prabhakarlad has joined #riscv
<Stat_headcrabed> I dumped AXP15060 default reg from vf2
<Stat_headcrabed> seems datasheet not that reliable...
<Stat_headcrabed> StarFive # i2c md 0x36 00 50
<Stat_headcrabed> 0000: 10 00 00 54 00 00 00 00 00 00 00 00 00 00 00 00 ...T............
<Stat_headcrabed> 0020: 0b 0b 0b 02 0b 0b 0b 0b 0b 02 0b 0b 80 1a 00 00 ................
<Stat_headcrabed> 0030: 00 00 24 00 00 00 59 00 00 00 00 00 00 00 00 00 ..$...Y.........
<Stat_headcrabed> 0010: 3f ff 3f 12 a8 a8 bc 8a 1c 02 00 00 50 08 81 07 ?.?.........P...
<Stat_headcrabed> 0040: 03 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
<Stat_headcrabed> I'm trying to make a upstream-able driver for this pmic, but found this more difficult than it looks like
<Stat_headcrabed> Its gpio configure logic is different from any existing AXP PMICs
<Stat_headcrabed> Also some voltage control register's default value is not same with datasheet
junaid___ has joined #riscv
craigo has joined #riscv
aerkiaga has quit [Remote host closed the connection]
junaid___ has quit [Quit: leaving]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
junaid_ has quit [Ping timeout: 248 seconds]
junaid__ has quit [Ping timeout: 252 seconds]
wingsorc has quit [Ping timeout: 246 seconds]
prabhakarlad has quit [Quit: Client closed]
Andre_Z has joined #riscv
pedja has joined #riscv
042AANF3P has joined #riscv
junaid_ has joined #riscv
drewj has joined #riscv
handsome_feng has quit [Quit: Connection closed for inactivity]
<rneese> its a alot easier to update the firmware with the QSG Appendix 4
<rneese> dl the recovery bin and the fw and bl
craigo has quit [Quit: Leaving]
rneese has quit []
<conchuod> rneese: Are you saying that it is easier to use xmodem and second-boot/recovery bin than doing it in U-Boot?
rneese has joined #riscv
<rneese> any word on the fix for the gb net on the vf2 for 5.15.x
<rneese> currently it shows it there but its not functioning
042AANF3P has quit [Remote host closed the connection]
junaid_ has quit [Remote host closed the connection]
elastic_dog has quit [Remote host closed the connection]
Tenkawa has joined #riscv
elastic_dog has joined #riscv
bauruine has quit [Ping timeout: 264 seconds]
<xypron> conchuod: There is no need to use the recovery binary via Xmodem. Simply switch to booting from SD card and install SPL in a partition with partition type GUID 2E54B353-1271-4842-806F-E436D6AF6985 and main U-Boot on partition 2 (for the vendor U-Boot).
Andre_Z has quit [Ping timeout: 255 seconds]
<xypron> conchuod: If you want to use Xmodem you can use the code in this branch https://github.com/xypron/JH71xx-tools/tree/VisionFive2
<rneese> I forgot abotu that tool
<conchuod> xypron: I do not want to use xmodem ;) The U-Boot thing of yours that Emil linked seems faarrr handier so I am gonna use that in the future, so thatnks!
<conchuod> thanks*
junaid_ has joined #riscv
jedix has quit [Ping timeout: 246 seconds]
jedix has joined #riscv
Andre_Z has joined #riscv
bauruine has joined #riscv
bauruine has quit [Ping timeout: 255 seconds]
wbx has joined #riscv
peepsalot has quit [Ping timeout: 248 seconds]
<dramforever> Esmil: I'm having some trouble with your tree. I can't seem to get serial0 to load properly :(
<dramforever> [ 13.914346] platform 10000000.serial: deferred probe pending
<Esmil> dramforever: you probably need to say "y" to both the clock and reset drivers
<dramforever> I'm not sure what happened, currently rebuilding it with sbi console enabled to see if I can at least get a shell
<Esmil> ..which the serial driver is waiting for
<Esmil> CONFIG_CLK_STARFIVE_JH7110_SYS=y CONFIG_CLK_STARFIVE_JH7110_AON=y CONFIG_RESET_STARFIVE_JH7110=y
<dramforever> I think I have CONFIG_CLK_STARFIVE_JH7110_{SYS,AON}=y and ..._JH71X0=y
<dramforever> similarly for reset, i think it's part of defconfig?
<Esmil> CONFIG_PINCTRL_STARFIVE_JH7110_SYS=y CONFIG_PINCTRL_STARFIVE_JH7110_AON=y
<dramforever> i think that's in defconfig too
<dramforever> [ 16.492256] starfive-jh7110-sys-pinctrl 13040000.pinctrl: StarFive GPIO chip registered 64 GPIOs
<dramforever> [ 16.541789] printk: console [ttyS0] disabled
<dramforever> 16.566998] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 4, base_baud = 1500000) is a 16550A
<dramforever> i got this one time
<dramforever> It makes me think it's got something to do with pinctrl, but that's also in defconfig...?
<dramforever> Unless I'm just totally misunderstanding Linux Kconfig or how Nix is building it
jacklsw has joined #riscv
jacklsw has quit [Changing host]
jacklsw has joined #riscv
bauruine has joined #riscv
<Esmil> dramforever: also make sure your kernel log says "StarFive VisionFive 2 v1.3B", if it only says "StarFive VisionFive 2", then you're using the device tree from u-boot which probably doesn't work
<dramforever> [ 0.000000] Machine model: StarFive VisionFive 2 v1.3B
<dramforever> :(
rurtty has joined #riscv
<dramforever> going sbi console, i guess
<Esmil> dramforever: that's a very minimal defconfig i'm using: http://sprunge.us/dgApiC
bauruine has quit [Ping timeout: 252 seconds]
bauruine has joined #riscv
<rneese> where is the other uboot Esmil your talking about
drewj has quit [Quit: Client closed]
aerkiaga has joined #riscv
<dramforever> well now i'm just fighting the nixpkgs linux builder thing
<dramforever> but that's besides the point
drewj has joined #riscv
jacklsw has quit [Read error: Connection reset by peer]
Sofia is now known as meow
meow is now known as Sofia
enoq has joined #riscv
omac777_2022 has joined #riscv
EchelonX has joined #riscv
frkazoid333 has quit [Read error: Connection reset by peer]
frkazoid333 has joined #riscv
omac777_2022 has quit [Quit: Leaving]
prabhakarlad has joined #riscv
craigo has joined #riscv
* NishanthMenon is a bit confused.. drivers/cpuidle/cpuidle-riscv-sbi.c arch/riscv/include/asm/sbi.h seems to indicate sbi_suspend is at a hart level Vs https://github.com/riscv-non-isa/riscv-sbi-doc/releases/download/v1.0.0/riscv-sbi.pdf 9.4 indicates platform specific non-retentitve suspend ? is there no sbi for echo mem >/sys/power/state ?
<NishanthMenon> Also confused: if there is no expectation of hart frequency support to be performed by SBI in machine mode?
jacklsw has joined #riscv
Armand has joined #riscv
jacklsw has quit [Read error: Connection reset by peer]
<dramforever> NishanthMenon: My understanding is that it's intended for a low-power mode that ends up resetting the hart, which makes it go back to M-mode, and M-mode software needs to be able to start S-mode back up on that core
<dramforever> For slowing down harts S-mode software can probably just reconfigure the clock and voltage stuff, because they let S-mode software keep running
<NishanthMenon> dramforever: aah the ordered booting stuff in reverse around system suspend state and sbi firmware implementation to take care of last stage?
<dramforever> Basically, but the bigger problem is what happens when the hart starts back up
junaid__ has joined #riscv
<NishanthMenon> dramforever: yes - context save and restore of hart, clint/aia / iommu would be interesting pain points
junaid__ has quit [Client Quit]
<dramforever> I think it's pretty similar to ARM PSCI
<dramforever> smc to turn cpu on/off -> ecall to turn harts on/off
<dramforever> Unfortunately I don't really know a lot about ARM stuff
<NishanthMenon> dramforever: gotcha. thanks.. background i was comparing PSCI services ;) https://patchwork.kernel.org/project/linux-arm-kernel/patch/1434638494-514-4-git-send-email-sudeep.holla@arm.com/ (example)
<dramforever> oh wow
<dramforever> and here i'm staring at PSCI and be like 'that looks like HSM'
<NishanthMenon> yes it is. though HSM might have a better chance to learn from psci drawbacks ;)
<NishanthMenon> something additional would be an equivalent of scmi .. which is a gap
jedix has quit [Ping timeout: 255 seconds]
rsalveti has joined #riscv
junaid_ has quit [Read error: No route to host]
aerkiaga has quit [Remote host closed the connection]
prabhakarlad has quit [Ping timeout: 260 seconds]
junaid_ has joined #riscv
jedix has joined #riscv
jmdaemon has joined #riscv
brazuca has joined #riscv
peepsalot has joined #riscv
dramforever has quit [Remote host closed the connection]
EchelonX has quit [Quit: Leaving]
enoq has quit [Quit: enoq]
jedix has quit [Ping timeout: 252 seconds]
dramforever has joined #riscv
jedix has joined #riscv
<dramforever> Esmil: I got back from fighting with Nix and fed it a .config I generated. I can confirm that basic ethernet stuff works (I can curl my uni login portal page)
<dramforever> MMC too of course rootfs on the sd card
<dramforever> [ 14.730057] starfive-dwmac 16040000.ethernet end1: PHY [stmmac-1:01] driver [YT8531 Gigabit Ethernet] (irq=POLL)
<dramforever> oh wait, i only get one port
<dramforever> huh
<dramforever> [ 11.747922] starfive-dwmac 16030000.ethernet: Cannot get CSR clock
<dramforever> [ 11.747947] starfive-dwmac 16030000.ethernet: dt configuration failed
<dramforever> ^ the port that didn't work
tlwoerner has quit [Remote host closed the connection]
tlwoerner has joined #riscv
jedix is now known as help
help is now known as jedix
<jedix> sigh
vagrantc has joined #riscv
<dramforever> okay i messed it up, missed CONFIG_CLK_STARFIVE_JH7110_AON
<dramforever> dang
<dramforever> i probably need more sleep
<dramforever> anyway i consider this a success on v1.3B, thanks Esmil!
<Esmil> dramforever: nice! so the phy settings work for you?
<dramforever> i can definitely connect to tcp
<Esmil> (i just tried to copy what their u-boot does and hoped for the best on 1.3B)
<dramforever> tested: curl uni campus network authentication page works
jedix has quit [Ping timeout: 246 seconds]
<dramforever> but without digging up the other end of this cable i can *only* curl the auth page so, no speed test or anything for now
<dramforever> but i think being able to send/recv anything at all means it's all good?
jedix has joined #riscv
<Esmil> i think so yes
<Esmil> thanks
<dramforever> you're welcome :) gotta thank you too for spending the effort to upstream all these
<dramforever> and Hal
brazuca has quit [Quit: Client closed]
dramforever has quit [Ping timeout: 246 seconds]
Tenkawa has quit [Quit: Was I really ever here?]
Tenkawa has joined #riscv
awita has joined #riscv
prabhakarlad has joined #riscv
aerkiaga has joined #riscv
bauruine has quit [Remote host closed the connection]
frkazoid333 has quit [Read error: Connection reset by peer]
frkazoid333 has joined #riscv
junaid_ has quit [Ping timeout: 255 seconds]
prabhakarlad has quit [Quit: Client closed]
BootLayer has quit [Quit: Leaving]
drewj has quit [Quit: Client closed]
dionysos is now known as iznogoud
xaotong2 has quit [Remote host closed the connection]
xaotong2 has joined #riscv
grgy has quit [Remote host closed the connection]
grgy has joined #riscv
crossdev has quit [Remote host closed the connection]
crossdev has joined #riscv
crossdev has quit [Remote host closed the connection]
crossdev has joined #riscv
junaid_ has joined #riscv
crossdev has quit [Read error: Connection reset by peer]
crossdev has joined #riscv
junaid_ has quit [Client Quit]
junaid_ has joined #riscv
junaid_ has quit [Client Quit]
brazuca has joined #riscv
crossdev has quit [Remote host closed the connection]
crossdev has joined #riscv
crossdev has quit [Remote host closed the connection]
crossdev has joined #riscv
crossdev has quit [Remote host closed the connection]
junaid_ has joined #riscv
crossdev has joined #riscv
<Tenkawa> Esmil: are you or anyone doing any work on backporting the drm/gpu or ethernet fixes back to 5.15?
Andre_Z has quit [Ping timeout: 246 seconds]
<Esmil> Tenkawa: no i'm not really interested in their 5.15 vendor kernel
xaotong has joined #riscv
xaotong2 has quit [Ping timeout: 255 seconds]
<Tenkawa> Ok. I figured not... looks like I need to update a few people that those subsystems are going to have to wait...
<Tenkawa> I've had enough pain myself trying to merge vendor specific code that didn't want to work so I know how it goes.
xaotong has quit [Remote host closed the connection]
xaotong has joined #riscv
junaid_ has quit [Ping timeout: 246 seconds]
wingsorc has joined #riscv
awita has quit [Quit: Leaving]
crossdev has quit [Remote host closed the connection]
wingsorc has quit [Remote host closed the connection]
wingsorc has joined #riscv
elastic_dog has quit [Read error: Connection reset by peer]
elastic_dog has joined #riscv
peeps[zen] has joined #riscv
peepsalot has quit [Ping timeout: 252 seconds]