Wednesday, 2022-05-18

*** tpb <[email protected]> has joined #openrisc00:00
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)03:22
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc03:58
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)04:53
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc04:59
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Remote host closed the connection)05:50
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc05:51
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)06:16
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc06:20
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)07:01
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc07:10
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc08:40
*** littlebo1eep is now known as littlebebeep08:40
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)08:42
*** littlebebeep is now known as littlebobeep08:42
zx2c4shorne_: i use qemu's -no-reboot11:15
zx2c4so that it shuts off when the system reboots11:16
zx2c4this way I can have all the debugging options set to reboot on panic11:16
zx2c4very very helpful11:16
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc11:42
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)11:44
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)12:13
shorne_zx2c4: I see, let me look at how other arch's define "reboot' it doesnt seem to be part of semihosting12:15
shorne_on our litex soc's we have a csr register that we right to to reset the CPU12:15
shorne_riscv has a special, sifive_test hw module that implements exit/reboot for simulations (write to a memory mapped register)12:22
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc12:59
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)13:12
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc17:23
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Remote host closed the connection)17:42
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc17:53
zx2c4shorne_: any of those are fine18:03
zx2c4simulate real hardware, define virtual hardware, make up special nop instructions...18:04
zx2c4m68k just added a virtual device profile for 5.19 - https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git/commit/?h=for-next&id=05d51e42df06f0211c7029ab9aa46c492ee8504318:04
tpbTitle: kernel/git/geert/linux-m68k.git - Linux/m68k Kernel Development Tree (at git.kernel.org)18:04
zx2c4You can see in https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git/tree/arch/m68k/virt/config.c?h=for-next&id=05d51e42df06f0211c7029ab9aa46c492ee85043 how they do reset/poweroff18:04
tpbTitle: config.c « virt « m68k « arch - kernel/git/geert/linux-m68k.git - Linux/m68k Kernel Development Tree (at git.kernel.org)18:04
zx2c4static void virt_halt(void)18:04
zx2c4{18:04
zx2c4void __iomem *base = (void __iomem *)virt_bi_data.ctrl.mmio;18:04
zx2c4iowrite32be(CMD_HALT, base + VIRT_CTRL_REG_CMD);18:04
zx2c4local_irq_disable();18:04
zx2c4while (1)18:04
zx2c4;18:04
zx2c4}18:04
zx2c4static void virt_reset(void)18:04
zx2c4{18:04
zx2c4void __iomem *base = (void __iomem *)virt_bi_data.ctrl.mmio;18:04
zx2c4iowrite32be(CMD_RESET, base + VIRT_CTRL_REG_CMD);18:04
zx2c4local_irq_disable();18:04
zx2c4while (1)18:04
zx2c4;18:04
zx2c4}18:04
zx2c4here it's a basic MMIO device18:05
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)18:05
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc19:10
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc19:23
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)19:24
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)19:34
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc20:20
shorne_zx2c4: yeah, my concern is I have to spec real hardware then model it.  In the case of Laurant/Geerts patches its based on android goldfish.  So it seems they just cherry-picked that without it being based on "real" hardware.20:35
shorne_https://git.qemu.org/?p=qemu.git;a=commit;h=e1cecdca559d552bc5ab282696301858a97c3e8c20:35
tpbTitle: git.qemu.org Git - qemu.git/commit (at git.qemu.org)20:35
shorne_So, maybe it't ok to just make it up20:35
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)20:36
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc20:40
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)20:52
shorne_also, that was inline with what I had wanted to do all along and define a new 'virt' hardware target20:57
shorne_I can just work on that now, I'll skip the semihosting/nop stuff20:57
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc21:09
shorne_well, or implement on ly the exit/restart operations for semihosting.21:12
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)21:20
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc21:23
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)21:33
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc21:38
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc21:39
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)21:46
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)21:46
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc21:48
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)22:22
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc22:26
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)22:32
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc22:36
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)23:00
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc23:03
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)23:10
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc23:16
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)23:32
zx2c4shorne_: a whole 'virt' system could be a lot of work, but i guess it might allow you to incrementally work at adding a virtio bus which could be a fun whole separate projcet23:35
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc23:35
zx2c4so i don't know which rabbit holes are best t ojump down23:35
zx2c4the nop thing for shutdown and reset certainly feels like the simplest/shortest path for now23:36
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds)23:41
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc23:43

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