On Wed, Apr 14, 2021 at 11:20:56PM +0200, Patrick Wildt wrote:
> Am Wed, Apr 14, 2021 at 10:55:14PM +0200 schrieb Mark Kettenis:
> > > Date: Wed, 14 Apr 2021 22:25:16 +0200
> > > From: Patrick Wildt <patr...@blueri.se>
> > > 
> > > Am Wed, Apr 14, 2021 at 10:17:58PM +0200 schrieb Patrick Wildt:
> > > > Hi,
> > > > 
> > > > Parallels 16 for Mac supports the Apple M1 SoC now, and since it does
> > > > provide an EFI 'BIOS', our images boot out of the box (once converted
> > > > to 'hdd' or supplied as USB stick).
> > > > 
> > > > Unfortunately virtio doesn't attach, because Parallels seems to provide
> > > > a 'new' version 2.  The following diff adds support for version 2 and
> > > > I used it to install the VM over vio(4) network.  And I was able to
> > > > install packages over vio(4) network.  Disk is ahci(4), USB passthrough
> > > > is xhci(4), so that works nicely out of the box.
> > > > 
> > > > Not sure if we want this for 6.9 or not.  I think it wouldn't break the
> > > > current version 1, so I think it shouldn't hurt.
> > > > 
> > > > If you're wondering why I'm 'so late' with this: jcs@ asked me to have
> > > > a look at the official Parallels for M1 release, and I just did that.
> > > > So I couldn't be any faster than this anyway.
> > > > 
> > > > Opinions?
> > > > 
> > > > Patrick
> > > 
> > > Obviously I forgot to pay dmesg tax ;)
> > > 

Things change a little when you run 'machine acpi' in efiboot.


OpenBSD 6.9 (GENERIC.MP) #295: Wed Apr 14 22:06:35 CEST 2021
    patr...@lx2k.blueri.se:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 516284416 (492MB)
avail mem = 468021248 (446MB)
random: good seed from bootblocks
mainbus0 at root: ACPI
psci0 at mainbus0: PSCI 1.0
cpu0 at mainbus0 mpidr 0: Unknown, MIDR 0x410f0000
cpu0: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu0: 12288KB 128b/line 12-way L2 cache
cpu0: 
TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2
cpu1 at mainbus0 mpidr 1: Unknown, MIDR 0x410f0000
cpu1: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu1: 12288KB 128b/line 12-way L2 cache
cpu1: 
TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2
efi0 at mainbus0: UEFI 2.7
efi0: EDK II rev 0x10000
smbios0 at efi0: SMBIOS 3.0.0
smbios0: vendor Parallels Software International Inc. version "16.5.0 (50692)" 
date Mar 25 2021
smbios0: Parallels Parallels ARM Virtual Machine
apm0 at mainbus0
ampintc0 at mainbus0 nirq 128, ncpu 2 ipi: 0, 1: "interrupt-controller"
agtimer0 at mainbus0: 24000 kHz
acpi0 at mainbus0: ACPI 6.1
acpi0: sleep states
acpi0: tables DSDT FACP DBG2 GTDT APIC
acpi0: wakeup devices
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
acpibtn0 at acpi0: PWRB
acpige0 at acpi0 irq 48
"PRL4005" at acpi0 not configured
"PRL4000" at acpi0 not configured
"PRL4006" at acpi0 not configured
"PRL4009" at acpi0 not configured
"PNP0D20" at acpi0 not configured
ahci0 at acpi0 AHC0 addr 0x2140000/0x2000 irq 34: AHCI 1.1
ahci0: port 0: 1.5Gb/s
ahci0: port 1: 1.5Gb/s
ahci0: port 2: 1.5Gb/s
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, OpenBSD-0 SSD, F.F2> 
t10.ATA_OpenBSD-0_SSD_SM7VVT660WEM5DW1GGN0
sd0: 65536MB, 512 bytes/sector, 134217728 sectors, thin
sd1 at scsibus0 targ 1 lun 0: <ATA, miniroot69, F.PB> 
t10.ATA_miniroot69_NQGN5C6P8H5MSAW6W3PG
sd1: 33MB, 512 bytes/sector, 67584 sectors, thin
cd0 at scsibus0 targ 2 lun 0: <, Virtual DVD-ROM, R103> removable
"ACPI000E" at acpi0 not configured
xhci0 at acpi0 XHC0 addr 0x2160000/0x1000 irq 36, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
simplefb0 at mainbus0: 1024x768, 32bpp
wsdisplay0 at simplefb0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
uhidev0 at uhub0 port 1 configuration 1 interface 0 "Parallels Virtual Mouse" 
rev 3.00/1.00 addr 2
uhidev0: iclass 3/0, 1 report id
ums0 at uhidev0 reportid 1: 8 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub0 port 1 configuration 1 interface 1 "Parallels Virtual Mouse" 
rev 3.00/1.00 addr 2
uhidev1: iclass 3/0, 2 report ids
ums1 at uhidev1 reportid 2: 8 buttons, Z and W dir
wsmouse1 at ums1 mux 0
uhidev2 at uhub0 port 1 configuration 1 interface 2 "Parallels Virtual Mouse" 
rev 3.00/1.00 addr 2
uhidev2: iclass 3/0, 3 report ids
uhid0 at uhidev2 reportid 3: input=13, output=0, feature=0
uhidev3 at uhub0 port 2 configuration 1 interface 0 "Parallels Virtual 
Keyboard" rev 3.00/1.00 addr 3
uhidev3: iclass 3/1
ukbd0 at uhidev3: 8 variable keys, 5 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uvideo0 at uhub0 port 3 configuration 1 interface 0 "Parallels FaceTime HD 
Camera" rev 3.10/1.00 addr 4
video0 at uvideo0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (1420d2aa8edf7459.a) swap on sd0b dump on sd0b


Node 0x38
    name: ''
    model: 'ACPI'
    compatible: 'openbsd,acpi'
    interrupt-parent: 00000001
    #address-cells: 00000002
    #size-cells: 00000002

    Node 0xa0
        name: 'chosen'
        openbsd,dma-constraint: 00000000.00000000.ffffffff.ffffffff
        openbsd,uefi-mmap-desc-ver: 00000001
        openbsd,uefi-mmap-desc-size: 00000030
        openbsd,uefi-mmap-size: 00000480
        openbsd,uefi-mmap-start: 00000000.5bf00008
        openbsd,uefi-system-table: 00000000.5fa60018
        openbsd,bootduid: 1420d2aa.8edf7459
        openbsd,boothowto: 00010000
        bootargs: 'sd0a:/bsd'
        stdout-path: '/chosen/framebuffer'

        Node 0x17c
            name: 'framebuffer'
            compatible: 'simple-framebuffer'
            reg: 00000000.20000000.00000000.00300000
            width: 00000400
            height: 00000300
            stride: 00001000
            format: 'x8r8g8b8'
            status: 'okay'

    Node 0x22c
        name: 'aliases'
        serial0: '/serial@0'

    Node 0x254
        name: 'cpus'
        #address-cells: 00000002
        #size-cells: 00000000

        Node 0x280
            name: 'cpu'
            enable-method: 'psci'
            reg: 00000000.00000000
            compatible: 'arm,armv8'
            device_type: 'cpu'

        Node 0x2e0
            name: 'cpu'
            enable-method: 'psci'
            reg: 00000000.00000001
            compatible: 'arm,armv8'
            device_type: 'cpu'

    Node 0x344
        name: 'psci'
        compatible: 'arm,psci-1.0'
        method: 'smc'
        status: 'okay'

    Node 0x394
        name: 'timer'
        compatible: 'arm,armv8-timer'
        interrupts: 
00000001.0000000d.00000008.00000001.0000000e.00000008.00000001.0000000b.00000008.00000001.0000000a.00000008
        status: 'okay'

    Node 0x410
        name: 'interrupt-controller'
        compatible: 'arm,gic-400'
        #interrupt-cells: 00000003
        #address-cells: 00000002
        #size-cells: 00000002
        interrupt-controller: 
        ranges: 
        reg: 
00000000.02010000.00000000.00001000.00000000.02000000.00000000.00000100
        status: 'okay'
        phandle: 00000001

    Node 0x4e0
        name: 'serial'
        compatible: 'openbsd,uart'
        reg: 00000000.00000000.00000000.00000000
        status: 'disabled'

    Node 0x544
        name: 'acpi'
        compatible: 'openbsd,acpi-5.0'
        reg: 00000000.5c1b0000.00000000.00000024

Reply via email to