sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv | Matrix: #riscv:catircservices.org
hays has quit [Ping timeout: 245 seconds]
bet has quit [Remote host closed the connection]
bet has joined #riscv
grgy- has left #riscv [WeeChat 4.1.1]
simpl_e has quit [Ping timeout: 245 seconds]
shamoe has joined #riscv
_whitelogger has joined #riscv
Finde_ has joined #riscv
bjdooks_ has joined #riscv
pavel_odintsov_ has quit [Ping timeout: 268 seconds]
ardb has quit [Ping timeout: 268 seconds]
arnd has quit [Ping timeout: 268 seconds]
mithro has quit [Ping timeout: 268 seconds]
_whitelogger_ has quit [Ping timeout: 268 seconds]
nelnire has quit [Ping timeout: 268 seconds]
rah has quit [Ping timeout: 268 seconds]
Finde has quit [Ping timeout: 268 seconds]
benh has quit [Read error: Connection reset by peer]
matoro has quit [Read error: Connection reset by peer]
ZipCPU has quit [Ping timeout: 268 seconds]
Galihom_ has quit [Ping timeout: 268 seconds]
seds has quit [Ping timeout: 268 seconds]
kito-cheng has quit [Ping timeout: 268 seconds]
aurel32 has quit [Ping timeout: 268 seconds]
shoragan has quit [Ping timeout: 268 seconds]
sorear has quit [Ping timeout: 268 seconds]
DoubleJ has quit [Ping timeout: 268 seconds]
jrtc27 has quit [Ping timeout: 268 seconds]
bjdooks has quit [Ping timeout: 268 seconds]
ZipCPU_ is now known as ZipCPU
sorear_ is now known as sorear
DoubleJ9 is now known as DoubleJ
jrtc27_ is now known as jrtc27
kito-cheng_ is now known as kito-cheng
Galihom has joined #riscv
matoro_ has joined #riscv
seds_ is now known as seds
rah has joined #riscv
aurel32 has joined #riscv
vagrantc has quit [Quit: leaving]
duthils has quit [Ping timeout: 246 seconds]
duthils has joined #riscv
ardb has joined #riscv
mithro has joined #riscv
arnd has joined #riscv
bet has quit [Remote host closed the connection]
bet has joined #riscv
bet has quit [Remote host closed the connection]
bet has joined #riscv
esv has quit [Ping timeout: 245 seconds]
ntwk has quit [Ping timeout: 256 seconds]
ntwk has joined #riscv
bet has quit [Remote host closed the connection]
bet has joined #riscv
sakman has quit [Quit: Leaving]
EchelonX has quit [Quit: Leaving]
sakman has joined #riscv
jacklsw has joined #riscv
wingsorc__ has quit [Quit: Leaving]
davidlt has joined #riscv
crabbedhaloablut has joined #riscv
mlw has joined #riscv
bet has quit [Remote host closed the connection]
bet has joined #riscv
esv has joined #riscv
bet has quit [Remote host closed the connection]
bet has joined #riscv
davidlt has quit [Ping timeout: 260 seconds]
solol has joined #riscv
EchelonX has joined #riscv
bet has quit [Quit: Leaving]
raym has quit [Ping timeout: 264 seconds]
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
solol has quit [Quit: Client closed]
wgrant has quit [Quit: WeeChat 3.5]
wgrant has joined #riscv
davidlt has joined #riscv
mobius has quit [Ping timeout: 256 seconds]
arcade_droid has quit [Quit: Quit]
valerius has quit [Remote host closed the connection]
mobius has joined #riscv
merry_ has joined #riscv
arcade_droid has joined #riscv
jn has quit [Read error: Connection reset by peer]
_catircservices has quit [Ping timeout: 276 seconds]
Leopold has quit [Read error: Connection reset by peer]
theophilus has joined #riscv
rah has quit [Ping timeout: 276 seconds]
zeha has quit [Ping timeout: 276 seconds]
merry has quit [Ping timeout: 276 seconds]
merry_ is now known as merry
Leopold has joined #riscv
rah has joined #riscv
jn has joined #riscv
jn has quit [Changing host]
jn has joined #riscv
zeha has joined #riscv
_catircservices has joined #riscv
shoragan_ is now known as shoragan
shamoe has quit [Quit: Connection closed for inactivity]
jobol has joined #riscv
danilogondolfo has joined #riscv
ldevulder has joined #riscv
solol has joined #riscv
BootLayer has joined #riscv
Jackneill has joined #riscv
mlw has quit [Ping timeout: 256 seconds]
mlw has joined #riscv
solol has quit [Quit: Client closed]
dipankar has quit [Remote host closed the connection]
dipankar has joined #riscv
dipankar has quit [Changing host]
dipankar has joined #riscv
jacklsw has quit [Ping timeout: 268 seconds]
prabhakarlad has joined #riscv
prabhakar has joined #riscv
raym has joined #riscv
psydroid has quit [Read error: Connection reset by peer]
solol has joined #riscv
stylefish has joined #riscv
psydroid has joined #riscv
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
solol has quit [Quit: Client closed]
EchelonX has quit [Quit: Leaving]
psydroid has quit [Read error: Connection reset by peer]
raym has quit [Ping timeout: 268 seconds]
stylefish has quit [Quit: stylefish]
stylefish has joined #riscv
sakman has quit [Ping timeout: 268 seconds]
psydroid has joined #riscv
sakman has joined #riscv
stylefish has quit [Quit: stylefish]
stylefish has joined #riscv
solol has joined #riscv
theophilus is now known as valerius
raym has joined #riscv
dipankar has quit [Read error: Connection reset by peer]
edr has joined #riscv
solol has quit [Quit: Client closed]
ldevulder_ has joined #riscv
ldevulder has quit [Ping timeout: 256 seconds]
stolen has joined #riscv
psydroid has quit [Ping timeout: 264 seconds]
psydroid has joined #riscv
ldevulder_ is now known as ldevulder
shamoe has joined #riscv
sakman_ has joined #riscv
sakman has quit [Ping timeout: 268 seconds]
aredridel2 has joined #riscv
aredridel has quit [Ping timeout: 264 seconds]
aredridel2 is now known as aredridel
Stat_headcrabed has joined #riscv
Stat_headcrabed has quit [Client Quit]
ldevulder has quit [Ping timeout: 240 seconds]
jmdaemon has quit [Ping timeout: 256 seconds]
ldevulder has joined #riscv
hightower3 has quit [Ping timeout: 255 seconds]
sakman_ is now known as sakman
luna has joined #riscv
stylefish has quit [Ping timeout: 268 seconds]
stylefish has joined #riscv
<jrtc27> :eyes:
hightower2 has joined #riscv
luna has left #riscv [#riscv]
heat has joined #riscv
vagrantc has joined #riscv
<courmisch> say, isn't OpenSBI normally started by SPL, and starting U-boot proper?
sevan has quit [Ping timeout: 256 seconds]
stylefish has quit [Quit: stylefish]
stylefish has joined #riscv
sevan has joined #riscv
sevan has quit [Changing host]
sevan has joined #riscv
<drewfustini> smaeul: thank you
<drewfustini> courmisch: yes, U-Boot SPL or vendor bootloader in m-mode would start OpenSBI which which often then starts U-Boot proper in S-mode
<drewfustini> Esmil: i was reading your new "starfive: Add pool for coherent DMA memory on JH7100 boards" patch.
<drewfustini> Esmil: is the format of dma-ranges supposed to be the 2 cell bus address and the 2 cell cpu address?
<drewfustini> <0x00 0xfa000000 0x10 0x7a000000 0x00 0x01000000>
<courmisch> drewfustini: thanks for confirming
<courmisch> K230 has SPL load U-boot (presumably in M mode)
<courmisch> and then U-boot boots SBI which contains Linux
* courmisch cries
<drewfustini> Ah, that is fw_payload where the SBI build contains the Linux build
<courmisch> yes
<courmisch> very inconvenient if you want to recompile the kernel
<drewfustini> yeah
<drewfustini> fw_dynamic is more convenient in that case
<courmisch> is that U-boot loading both SBI and kernel separately and SBI "somehow" finding the kernel in memory?
<drewfustini> In case of fw_payload, U-boot spl wouldjust jump to OpenSBI and OpenSBI would know that the kernel is embedded in it's binary and know where to find it
<Esmil> drewfustini: yes, that sounds right
stylefish has quit [Quit: stylefish]
solol has joined #riscv
<courmisch> drewfustini: yes, I mean fw_dynamic
<solol> what's up
<courmisch> trying to get a sane boot flow on the K230, and seems it was not such a great idea
davidlt has quit [Ping timeout: 264 seconds]
<courmisch> well at least I can compile a working boot without installing a VM and compiling buildroot
<drewfustini> Esmil: thanks, so the DMA-capable peripheral then is using the 0xfa000000 range (cached) since those are is lower memory? I suppose cached doesn't matter for the peripheral since its DMA access doesn't go through a CPU cache? And then the kernel is using the 0x10_7a00_0000 uncached alias for those buffers so the CPU load/store bypasses the cache. Does that sound right?
<Esmil> that's exactly the idea, yes
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<unlord> courmisch: I've been offline a few days, what is the problem with the SDK boot flow?/
<courmisch> unlord: are *you* asking me what's wrong with the SDK?
<drewfustini> I have an unusually organized SoC where I need to do something similar and this is a great example. I had been wanting to hack the driver to progress the cached address in to the DMA-capable peripheral meanwhile the CPU would only be accessing the uncached address. I see now that dma-ranges is the solution for that
<drewfustini> the tricky bit is that all memory is above 512GB so its been making everything more difficult
stolen has quit [Quit: Connection closed for inactivity]
<Esmil> drewfustini: yeah, unfortunately this solution means the JH7100 needs the CONFIG_DMA_GLOBAL pool so all coherent dma memory is allocated from this range, but as you know from the TH1520 CONFIG_DMA_GLOBAL breaks other ways of allocating dma memory. so hopefully you won't need that
<drewfustini> thanks... this has been a useful example. I'm really only trying to get one DMA-capable peripheral to work on the system I'm working on so this might do the trick.
<smaeul> didn't you have a solution that used arch_set_dma_uncached() to avoid the global pool?
<Esmil> smaeul: no, unfortunately it was a bit of a hack that would break in certain configurations :/
<unlord> courmisch: lol, I was mostly asking what I missed out on
<courmisch> well I'm kinda stuck now because the boot starts SBI from U-boot instead of the normal other way around
<courmisch> which means U-boot runs in M mode, which means moving to S mode after SBI is Probably Not Going To Work
<courmisch> I suppose FW_JUMP is the best bet now
<courmisch> unlord: https://github.com/riscv-software-src/opensbi/blob/master/docs/firmware/fw.md if you care to know the difference
<unlord> I'm debating if I want to go down this rabbit hole any further
<smaeul> with fw_dynamic, SPL fills out a structure that tells OpenSBI where to find U-Boot
<courmisch> smaeul: as I understand it, U-boot proper won't do that though, only SPL
<smaeul> why is that a problem?
<courmisch> because the current flow is SPL -> Uboot -> SBI -> Linux
<smaeul> you can reconfigure U-Boot proper to run in S-mode, no?
<courmisch> and inverting Uboot/SBI sounds like a whole new can of worms
<smaeul> if you don't want SPL to load two images and use fw_dynamic, you can use fw_payload and embed U-Boot proper (built for S-mode) inside the OpenSBI image
<courmisch> I would be somewhat surprised if vendor Uboot that was meant to run in M mode nicely ran in S mode
cousteau has joined #riscv
<smaeul> one easy way to find out :)
<courmisch> define "easy"... I don't have a JTAG, and in fact I don't think the board even has the pins for it if I had a JTAG
<courmisch> so debugging is meh
<smaeul> try the U-Boot-inside-fw_payload from the current boot flow -- it won't hurt to run through U-Boot twice
<smaeul> if it doesn't crash with a illegal instruction or access fault exception, then it doesn't need M-mode
luna has joined #riscv
<courmisch> I'm not familiar with the privileged ISA... is there even something like a CurrentEL register on RISC-V ?
<courmisch> oh well. To be continued.
<courmisch> thanks
vagrantc has quit [Quit: leaving]
<palmer> courmisch: there's bits in {m,s}status, you'd probably need to synthesize exactly the same register (assuming that's arm)
<jrtc27> CurrentEL deliberately doesn't exist
<jrtc27> or something like that
<jrtc27> of course M vs S is pretty leaky
<jrtc27> I think the idea was more to avoid leaking H vs S back when that was the design rather than HS vs VS
<jrtc27> for the debugger there's a virtual mprv register
luna has left #riscv [#riscv]
jmdaemon has joined #riscv
luxcid has joined #riscv
luxcid has quit [Read error: Connection reset by peer]
danilogondolfo has quit [Quit: Leaving]
BootLayer has quit [Read error: Connection reset by peer]
solol has quit [Quit: Client closed]
prabhakarlad has quit [Quit: Client closed]
agent314 has joined #riscv
khem has quit [Quit: Connection closed for inactivity]
mlw has quit [Ping timeout: 260 seconds]
solol has joined #riscv
mlaga97 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
solol has quit [Quit: Client closed]
jobol has quit [Quit: Leaving]
cousteau has quit [Quit: ♫ I can't forget the day I shot that network down ♫]
crabbedhaloablut has quit []
Jackneill has quit [Ping timeout: 276 seconds]
EchelonX has joined #riscv
rsalveti has quit [Quit: Connection closed for inactivity]
khem has joined #riscv