Re: Does anyone have experience with OpenBSD on SiFive Unmatched?

2021-08-30 Thread Joseph
> > In this moment on -current, how well does the SiFive Unmatched RISCV64
> > board work?
> >
> > E.g. multiple core support, PCIe.
>
> Works fine.
>
> > E.g. multiple core support, PCIe.
>
> Works, and works.


> The "serial cable" can in fact be just a USB-A to Micro-USB cable
> with the A end plugged into a USB port on a laptop or PC.
>
> The micro-SD card must be present to boot OpenBSD (so maybe make
> a backup copy of it?). IDK exactly what files it needs. Maybe
> somebody will figure out how the boot stuff can be flashed into
> flash mem on the motherboard without bricking their board.
>
> And bear in mind the Unmatched is meant to be a developr machine not > 
> powerhouse; it lopes along nicely at 1.2GHz with 4 cores. If the RISC-V
> people are right, there will be faster, bigger machines "real soon
> now", in case you need breath-holding practice.

Hi Mike and Ian,

Wow. Thank you for letting me know.


If the ISA even has it, two questions on the topic of virtualization:

Is the riscv64 architecture designed in such a way that riscv64
OpenBSD should work out of the box as guest under a virtualizer,
if-when one exists?

And off-topic here, does any VM host exist for riscv64? Without or
with passthrough of PCI/cad/etc.

I see this KVM fork but not sure exactly in what environment/
distribution/setup it works e.g. does it support Unmatched, not even
clear if virtualization is really in the riscv64 ISA spec:

https://github.com/kvm-riscv/howto/wiki/KVM-RISCV64-on-QEMU
https://lwn.net/Articles/856685/
https://lists.riscv.org/g/tech-privileged/topic/risc_v_h_extension_freeze/80346318?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,80346318
https://lwn.net/ml/linux-kernel/CAAhSdy0F7gisk=fzxn7jmqflvb3456wunwvxhkrnvnuwtrh...@mail.gmail.com/

Perhaps this q is too early for riscv64 and to be revisited later.

Best regards,
Joseph

(Related: https://news.ycombinator.com/item?id=27592187
38bit vmem upped to 48 https://www.sifive.com/cores/performance-p550
https://www.anandtech.com/show/16780/intel-to-create-riscv-development-platform-with-sifive-p550-cores-on-7nm-in-2022)



Re: Does anyone have experience with OpenBSD on SiFive Unmatched?

2021-08-29 Thread Mike Larkin
On Mon, Aug 30, 2021 at 03:25:42AM +, Joseph wrote:
> > > In this moment on -current, how well does the SiFive Unmatched RISCV64
> > > board work?
> > >
> > > E.g. multiple core support, PCIe.
> >
> > Works fine.
> >
> > > E.g. multiple core support, PCIe.
> >
> > Works, and works.
>
>
> > The "serial cable" can in fact be just a USB-A to Micro-USB cable
> > with the A end plugged into a USB port on a laptop or PC.
> >
> > The micro-SD card must be present to boot OpenBSD (so maybe make
> > a backup copy of it?). IDK exactly what files it needs. Maybe
> > somebody will figure out how the boot stuff can be flashed into
> > flash mem on the motherboard without bricking their board.
> >
> > And bear in mind the Unmatched is meant to be a developr machine not > 
> > powerhouse; it lopes along nicely at 1.2GHz with 4 cores. If the RISC-V
> > people are right, there will be faster, bigger machines "real soon
> > now", in case you need breath-holding practice.
>
> Hi Mike and Ian,
>
> Wow. Thank you for letting me know.
>
>
> If the ISA even has it, two questions on the topic of virtualization:
>
> Is the riscv64 architecture designed in such a way that riscv64
> OpenBSD should work out of the box as guest under a virtualizer,
> if-when one exists?
>

I know of no hardware capable of this.

> And off-topic here, does any VM host exist for riscv64? Without or
> with passthrough of PCI/cad/etc.
>

For OpenBSD, no.

> I see this KVM fork but not sure exactly in what environment/
> distribution/setup it works e.g. does it support Unmatched, not even
> clear if virtualization is really in the riscv64 ISA spec:
>
> https://github.com/kvm-riscv/howto/wiki/KVM-RISCV64-on-QEMU
> https://lwn.net/Articles/856685/
> https://lists.riscv.org/g/tech-privileged/topic/risc_v_h_extension_freeze/80346318?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,80346318
> https://lwn.net/ml/linux-kernel/CAAhSdy0F7gisk=fzxn7jmqflvb3456wunwvxhkrnvnuwtrh...@mail.gmail.com/
>
> Perhaps this q is too early for riscv64 and to be revisited later.
>

Yes

> Best regards,
> Joseph
>
> (Related: https://news.ycombinator.com/item?id=27592187
> 38bit vmem upped to 48 https://www.sifive.com/cores/performance-p550
> https://www.anandtech.com/show/16780/intel-to-create-riscv-development-platform-with-sifive-p550-cores-on-7nm-in-2022)



Re: Does anyone have experience with OpenBSD on SiFive Unmatched?

2021-08-29 Thread Mike Larkin
On Sun, Aug 29, 2021 at 05:28:45AM +, Joseph wrote:
> (In absence of an openbsd-riscv emailing list sending this to misc:)
>
> Hi all,
>
> In this moment on -current, how well does the SiFive Unmatched RISCV64
> board work?
>

Works fine.

> E.g. multiple core support, PCIe.
>

Works, and works.

> The current installation instructions are the oneliner at
> http://www.openbsd.org/riscv64.html .
>
> Should one boot with serial cable or would PCIe graphics activate
> early. With the Xenocara support, should X supposedly work out of the
> box e.g. AMDGPU or commodity PCIe or USB graphics adapter?
>

People have reported amdgpu on unmatched works.

Boot with serial cable and use the microsd card that came with the machine.
Install from USB stick to nvme.

The cad(4) onboard adapter should work fine as well.

-ml

> Best regards,
> Joseph
>
> Commits:
>
> Arch 23 April
> https://marc.info/?l=openbsd-cvs=161914575319702=2
>
> Xenocara 15 June
> https://undeadly.org/cgi?action=article;sid=20210619161607
>
> SMP 29 June
> https://marc.info/?l=openbsd-cvs=162500209229957=2
>



Does anyone have experience with OpenBSD on SiFive Unmatched?

2021-08-29 Thread Joseph
(In absence of an openbsd-riscv emailing list sending this to misc:)

Hi all,

In this moment on -current, how well does the SiFive Unmatched RISCV64
board work?

E.g. multiple core support, PCIe.

The current installation instructions are the oneliner at
http://www.openbsd.org/riscv64.html .

Should one boot with serial cable or would PCIe graphics activate
early. With the Xenocara support, should X supposedly work out of the
box e.g. AMDGPU or commodity PCIe or USB graphics adapter?

Best regards,
Joseph

Commits:

Arch 23 April
https://marc.info/?l=openbsd-cvs=161914575319702=2

Xenocara 15 June
https://undeadly.org/cgi?action=article;sid=20210619161607

SMP 29 June
https://marc.info/?l=openbsd-cvs=162500209229957=2