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
lu_zero has quit [Server closed connection]
lu_zero has joined #riscv
jakzale has quit [Server closed connection]
jakzale has joined #riscv
Noisytoot has quit [Ping timeout: 265 seconds]
_catircservices1 has quit [Server closed connection]
_catircservices1 has joined #riscv
sumoon has quit [Server closed connection]
sumoon has joined #riscv
Noisytoot has joined #riscv
bugwhisperer has joined #riscv
bugwhisperer has quit [Changing host]
bugwhisperer has joined #riscv
bugwhisperer has quit [Client Quit]
Noisytoot has quit [Ping timeout: 246 seconds]
Noisytoot has joined #riscv
unnick has quit [Ping timeout: 256 seconds]
unnick has joined #riscv
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #riscv
Noisytoot has quit [Excess Flood]
Noisytoot has joined #riscv
vagrantc has joined #riscv
armand__ has quit [Ping timeout: 240 seconds]
armand__ has joined #riscv
hmw has quit [Server closed connection]
hmw has joined #riscv
iooi has quit [Read error: Connection reset by peer]
iooi has joined #riscv
vagrantc has quit [Ping timeout: 246 seconds]
BootLayer has joined #riscv
carefish has quit [Server closed connection]
carefish has joined #riscv
heat has quit [Ping timeout: 258 seconds]
test924 has quit [Remote host closed the connection]
test924 has joined #riscv
pdziepak has quit [Server closed connection]
pdziepak has joined #riscv
edef has quit [Server closed connection]
edef has joined #riscv
sevan has quit [Ping timeout: 245 seconds]
naoki has quit [Quit: naoki]
Noisytoot has quit [Ping timeout: 258 seconds]
BootLayer has quit [Quit: Leaving]
Noisytoot has joined #riscv
test925 has joined #riscv
test924 has quit [Ping timeout: 246 seconds]
dramforever[m] has quit [Server closed connection]
dramforever[m] has joined #riscv
zv has quit [Server closed connection]
zv has joined #riscv
coldfeet has joined #riscv
fuwei has joined #riscv
ch has quit [Server closed connection]
ch has joined #riscv
coldfeet has quit [Remote host closed the connection]
seasharp has quit [Ping timeout: 240 seconds]
jobol has joined #riscv
knolle has quit [Server closed connection]
knolle has joined #riscv
seasharp has joined #riscv
mlw has joined #riscv
davidlt has joined #riscv
vagrantc has joined #riscv
marcj has quit [Server closed connection]
marcj has joined #riscv
davidlt has quit [Quit: Leaving]
rahn has joined #riscv
mahk has quit [Server closed connection]
mahk has joined #riscv
pecastro has joined #riscv
rahn has quit [Client Quit]
rahn has joined #riscv
theruran has quit [Quit: Connection closed for inactivity]
vagrantc has quit [Ping timeout: 265 seconds]
sgerhold has quit [Quit: Ping timeout (120 seconds)]
sgerhold has joined #riscv
<mlw> cd /5
mmind00 has quit [Server closed connection]
mmind00 has joined #riscv
mlw has quit [Quit: leaving]
ldevulder has joined #riscv
cleger has joined #riscv
ldevulder has quit [Quit: Leaving]
cleger has quit [Remote host closed the connection]
cleger has joined #riscv
ldevulder has joined #riscv
danilogondolfo has joined #riscv
drmpeg has quit [Server closed connection]
drmpeg has joined #riscv
mahk has quit [Changing host]
mahk has joined #riscv
naoki has joined #riscv
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
bjdooks has quit [Server closed connection]
bjdooks has joined #riscv
Noisytoot has joined #riscv
cronos has quit [Server closed connection]
Bluefoxicy has quit [Server closed connection]
cronos has joined #riscv
Bluefoxicy has joined #riscv
wingsorc has quit [Quit: Leaving]
jmcgnh has quit [Server closed connection]
jmcgnh has joined #riscv
prabhakalad has joined #riscv
prabhakalad has quit [Ping timeout: 258 seconds]
prabhakalad has joined #riscv
Jackneill_ has joined #riscv
pabs3 has quit [Ping timeout: 264 seconds]
Jackneill has quit [Ping timeout: 264 seconds]
Kedleston_ has joined #riscv
Kedleston has quit [Ping timeout: 246 seconds]
Kedleston_ is now known as Kedleston
rahn has quit [Ping timeout: 246 seconds]
Andre_Z has joined #riscv
rahn has joined #riscv
psydroid has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
rahn has quit [Ping timeout: 265 seconds]
rahn has joined #riscv
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
Tenkawa has joined #riscv
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #riscv
hightower2 has joined #riscv
pabs3 has joined #riscv
jfsimon1981 has quit [Max SendQ exceeded]
jfsimon1981 has joined #riscv
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #riscv
Starfoxxes has joined #riscv
Starfoxxes has quit [Read error: Connection reset by peer]
Starfoxxes has joined #riscv
naoki has quit [Quit: naoki]
Andre_Z has quit [Quit: Leaving.]
xypron has joined #riscv
billchenchina- has joined #riscv
Andre_Z has joined #riscv
bgamari_ has quit [Server closed connection]
bgamari has joined #riscv
Maylay has quit [Ping timeout: 245 seconds]
heat has joined #riscv
Maylay has joined #riscv
Maylay has quit [Ping timeout: 260 seconds]
Maylay has joined #riscv
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
Maylay has quit [Ping timeout: 265 seconds]
Maylay has joined #riscv
Noisytoot has quit [Ping timeout: 245 seconds]
Stat_headcrabed has joined #riscv
Noisytoot has joined #riscv
zjason has quit [Server closed connection]
zjason has joined #riscv
Maylay has quit [Ping timeout: 245 seconds]
Maylay has joined #riscv
aredridel7 has joined #riscv
fuwei has quit [Remote host closed the connection]
fuwei has joined #riscv
mahk has quit [Ping timeout: 245 seconds]
aredridel has quit [Ping timeout: 245 seconds]
aredridel7 is now known as aredridel
mahk has joined #riscv
mahk has quit [Changing host]
mahk has joined #riscv
Maylay has quit [Ping timeout: 256 seconds]
ln5 has joined #riscv
Maylay has joined #riscv
rahn has quit [Ping timeout: 245 seconds]
billchenchina- has quit [Ping timeout: 268 seconds]
psydroid has joined #riscv
coldfeet has joined #riscv
xypron has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
xypron has joined #riscv
xypron has quit [Changing host]
xypron has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
billchenchina- has joined #riscv
BootLayer has joined #riscv
sauce has quit [Server closed connection]
sauce has joined #riscv
rahn has joined #riscv
wgrant has quit [Server closed connection]
wgrant has joined #riscv
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #riscv
BootLayer_ has joined #riscv
BootLayer has quit [Ping timeout: 258 seconds]
BootLayer__ has joined #riscv
BootLayer_ has quit [Ping timeout: 252 seconds]
BootLayer__ has quit [Ping timeout: 256 seconds]
BootLayer has joined #riscv
BootLayer_ has joined #riscv
danilogondolfo has quit [Quit: Leaving]
BootLayer has quit [Ping timeout: 245 seconds]
BootLayer has joined #riscv
BootLayer_ has quit [Ping timeout: 252 seconds]
BootLayer_ has joined #riscv
BootLayer__ has joined #riscv
BootLayer has quit [Ping timeout: 264 seconds]
BootLayer has joined #riscv
BootLayer_ has quit [Ping timeout: 258 seconds]
BootLayer__ has quit [Ping timeout: 258 seconds]
Stat_headcrabed has joined #riscv
ConorDooley is now known as conchuod
<conchuod> palmer: those EXT_KEY() blocks in hwprobe_isa_ext0() could really do with some sorting, if you're finished merging stuff for 6.11..
<conchuod> Should prob be sorted alphabetically so it's easy to find what's there and what's not.
<palmer> I'd been trying to keep them sorted by value number
<conchuod> I'm not sure that that really make sense in hwprobe_isa_ext0(), it does for the defines in the header.
<palmer> OK, I don't have much of an opinion. Do you want to just send a patch to reorder them and see if people like it?
<palmer> I can never remember the alphabet order, so it doesn't make a difference to me ;)
<conchuod> kek
<ja_02> lol
<conchuod> maybe tomorrow when the current state makes it to linux next
<palmer> ya, no rush
<conchuod> All I'm gonna do is run :sort on it anyway, so no knowledge of the alphabet required palmer ;)
<palmer> magic!
peeps[zen] has quit [Server closed connection]
peeps[zen] has joined #riscv
billchenchina- has quit [Ping timeout: 246 seconds]
nmeum has quit [Server closed connection]
nmeum has joined #riscv
theruran has joined #riscv
<clever> i'm trying to dump a bootrom via /dev/mem under linux, and i think the PMP and opensbi are blocking it, but the domains opensbi listed, imply it should have full access, how would i debug further?
Stat_headcrabed has quit [Quit: Stat_headcrabed]
FL4SHK has quit [Server closed connection]
FL4SHK has joined #riscv
<heat> soo.... i was reading up on the precise riscv semantics when modifying non-leaf PTEs... it's suggested in page 104 of the latest priv spec "If software modifies a non-leaf PTE, it should execute SFENCE.VMA with rs1=x0" [...]. But it's explicitly stated sfence.vma with rs1=<addr> also invalidates the page walker cache, so what gives?
ldevulder has quit [Quit: Leaving]
<heat> i suppose that the desired semantics aren't to globally shootdown the TLB (with sfence.vma rs1=x0) on every non-leaf PTE write?
<sorear> that sounds like a possible editing error but I'm not up to diggiing into the history right now
<sorear> the last time I looked you did in fact need a very heavy-handed sfence after any change to non-leaf PTEs
<heat> oh lord... really?
<heat> maybe i'm not fully understanding what a "address-translation cache" (in riscv terms) entails... is it just the TLB, or does it encompass the page walker cache?
<jrtc27> uh
<jrtc27> reread the bullet point
<jrtc27> it does not use the term page walker
<jrtc27> and explicitly states that it's only for leaf entries
<jrtc27> (the effects of the sfence.vma)
<sorear> it's not like the situation ever comes up under linux ... non-leaf PTEs are written once when the corresponding page table is allocated and never touched again, so you don't need to flush except when an ASID is deallocated
<heat> i'm aware it does not use the term page walker, nor does it use TLB
<heat> (and to me its incredibly confusing)
<jrtc27> "The fence also invalidates all address-translation cache entries that contain leaf page table entries corresponding to the virtual address in rs1"
<jrtc27> that seems clear to me?
<heat> sorear, afaik linux munmap does free page tables, at least on x86, et al
<sorear> it made more sense in the first version when it was carefully phrased to not mention any specific kind of cache structure, only in terms of ordering of implicit accesses
<jrtc27> and then people realise spatial locality is a thing and so you want to cache the intermediate non-leaf page table entries :)
<heat> that sentence does not make sense to me, and the more i read it the less i understand it
<sorear> there's no architectural guarantee of how quickly another core will walk page tables so you can't free a page table without an RCU-type process, regardless of the caching behavior
<heat> why do address-translation cache entries contain leaf PTEs?? does this magic adress-translation cache encompass page translations only, does it encompass any possible walker cache, how does that work?
<jrtc27> it encompasses whatever you want
<jrtc27> as a designer
<jrtc27> so long as anything that came from knowledge about the leaf PTE gets flushed
<jrtc27> based on rs1
<heat> ok so upper PTE "cache information" is not guaranteed to be flushed?
<jrtc27> correct
<heat> thanks
<heat> does anyone know where this is handled in linux's case? particularly when adding page tables?
<JohnHenry> do you mean PTE-flushing in general or the specific case of non-leaf PTEs?
<JohnHenry> one reason address-translation caches might contain leaf PTEs is perhaps a design that caches them by-level and an upper level superpage i.e. (2M or 1G) is there
<heat> specific case of non-leaf PTEs
<heat> as far as i can see, it does not seem to be handled, but i might be looking at the wrong stuff
fuel has left #riscv [Leaving]
vagrantc has joined #riscv
BootLayer has quit [Quit: Leaving]
Starfoxxes has quit [Read error: Connection reset by peer]
vgtw has quit [Quit: ZNC - https://znc.in]
zjason` has joined #riscv
pabs3 has quit [Read error: Connection reset by peer]
pabs3 has joined #riscv
zjason has quit [Ping timeout: 252 seconds]
coldfeet has quit [Remote host closed the connection]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Noisytoot has joined #riscv
Noisytoot has quit [Ping timeout: 258 seconds]
Noisytoot has joined #riscv
naoki has joined #riscv
Noisytoot has quit [Excess Flood]
Noisytoot has joined #riscv
Andre_Z has quit [Ping timeout: 268 seconds]
<JohnHenry> I suppose the thing to do is look for cases where non-leaf PMD/PGD/P4Es get altered? sorear just said there aren't any, so that might be it... I suppose if one ends up walking through old PMDs and end up faulting anyway it's kind of a wash
<JohnHenry> seems slightly inefficient but not terrible
jobol has quit [Quit: Leaving]
zBeeble24 is now known as zBeelbe
zBeelbe is now known as zBeeble
drmpeg has quit [Ping timeout: 256 seconds]
drmpeg has joined #riscv
<JohnHenry> heat: if you find a case, point it out to me?
<FL4SHK> sorear: "openly developed dual issue" that's neat
<FL4SHK> I'd like to develop an open source CPU that does OoOX at some point but that's coming after my current big project... which has my own instruction set, so I imagine it's off topic for this channel
FL4SHK is now known as FL4SHK
<FL4SHK> I've done a bunch of the necessary software porting work for my ISA though
<FL4SHK> I have a GNU Binutils port and a GCC backend
<FL4SHK> actually, the RISC-V Binutils backend was rather helpful for writing mine
<FL4SHK> haven't ported an OS yet but for my current project of just running baremetal code, the Binutils port is nearly complete
<FL4SHK> ...it still needs a gdb port
test925 has quit [Quit: Leaving]
Maylay has quit [Ping timeout: 246 seconds]
Maylay has joined #riscv
hl has quit [Ping timeout: 256 seconds]
hl has joined #riscv
pecastro has quit [Ping timeout: 264 seconds]
DesRoin has quit [Ping timeout: 246 seconds]
DesRoin has joined #riscv