Saturday, 2022-06-18

*** tpb <[email protected]> has joined #openrisc00:00
shornezx2c4: ok, alsmost done adding the multi-way tlb support to the kernel (qemu is done, but cant test until I get both sides working)01:09
shornekernel tlb flush logic updated to use multiple ways01:10
shornenow need to do the tlb miss handlers, which is all in aseembly, so it will take a bit of careful time01:10
shornehope this helps with the lockups01:11
shornethis is the qemu patch: https://github.com/stffrdhrn/qemu/commits/or1k-virt-201:15
shornetlb looksups now has a loop to check all set ways, I don't think it will impact performance too much01:16
zx2c4Woah!08:58
zx2c4I didnt realize that'd require kernel changes too, wow08:58
zx2c4Will this see its way into an FPGA eventually08:58
shorneits already in the fpga10:27
shorneits just the kernel is not using it10:27
shornezx2c4: the kernel hard codes the way select to 0 alreays, so it limits the tlb size to 128 entries even though we have support for 512 in hardware10:28
shorneqemu also was limited to 1 way, probably because the kernel doesn't support more10:29
zx2c4Oh cool10:50
shorneok, its working but performance doesn't seem so great13:01
shornehttps://github.com/stffrdhrn/linux/commits/or1k-virt13:05
shornezx2c4: maybe you can try it out, ill see if I can tune the performance more13:05
shornecurrently TLB way selection strategy is just using more address bits, I can change to use an LRU method in the kernel, it might help, but it will be a bit tricky to access the LRU info from the assembly code13:07
shorneah.. still getting rcu stalls, boot time is a bit faster13:14
shornesometimes, need a lot more debugging13:15

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!