Re: ivhd0 IO_PAGE_FAULT EVT with external disk

From: Ka Ho Ng <khng300_at_gmail.com>
Date: Fri, 30 Jul 2021 17:51:02 UTC
On 2021/7/30 4:50 PM, Bjoern A. Zeeb wrote:
> On Fri, 30 Jul 2021, Bjoern A. Zeeb wrote:
> 
>> On Fri, 30 Jul 2021, Peter Grehan wrote:
>>
>>>> I grabbed an external USB drive from an Intel machine and put it to
>>>> an AMD host
>>>> using it to boot directly from it like:
>>>>          -s 3,ahci-hd,/dev/da0,sectorsize=512 \
>>> ...
>>>
>>>> On the AMD machine this doesn't work and I get a lot of:
>>>>
>>>> ivhd0: EVT INTR 45 Status:0x1a EVT Head:0xfb0 Tail:0x430]^M
>>>>    [CMD Total 0xaf] Tail:0xaf0, Head:0xaf0.^M
>>> ...
>>>> Is this in theory supposed to work?
>>>
>>> Yes.
>>
>> Good.
>>
>>
>>>> Does this in any way depend on the USB
>>>> port used or are we simply working on the device node?
>>>
>>> bhyve only uses the device node.
>>
>> Also good.
>>
>>
>>> Do you have passthru devices configured ? If so, are they under the
>>> same controller that the USB device is on ?
>>
>> I do.
>> And they did work fine without the raw disk (netbooting FreeBSD).
>> If I remove the passthru devices the Linux on the disk boots.
> 
> Actually, I as too early given it went through grub and was saying:
> Loading Linux 5.10.40 ...
> Loading initial ramdisk ...
> 
> Then bhyve died with:
>     vm_run error -1, errno 14
> 
> but no other information in dmesg or console or from bhyve.  I assume
> that is two issues now...
> 
> 
>> nexus0
>>  cryptosoft0
>>  aesni0
>>  smbios0
>>  ram0
>>  apic0
>>  vtvga0
>>  acpi0
>>    cpu0
>>      hwpstate0
>>      acpi_perf0
>>      cpufreq0
>>    cpu1
>>      acpi_perf1
>>    cpu2
>>      acpi_perf2
>>    cpu3
>>      acpi_perf3
>>    acpi_button0
>>    pcib0
>>      pci0
>>        hostb0
>>        amdiommu0
>>        hostb1
>>        pcib1
>>          pci1
>>            ppt0
>>        pcib2
>>          pci2
>>            igb0
>>        pcib3
>>          pci3
>>            ppt1
>>        pcib4
>>          pci4
>>            ppt2
>>        pcib5
>>          pci5
>>            ppt3
>>        xhci0
>>          usbus0
>>            uhub1
>>              umass0
>>        ahci0
>>          ahcich0
>>          ahcich1
>>        ehci0
>>          usbus1
>>            uhub0
>>              uhub2
>>        isab0
>>          isa0
>>            orm0
>>            superio0
>>              wbwd0
>>        sdhci_pci0
>>        hostb2
>>        hostb3
>>        hostb4
>>        hostb5
>>        hostb6
>>        hostb7
>>    acpi_tz0
>> ...
>>
>>
>>> (also what version of FreeBSD on the host)
>>
>> HEAD as of a few days or weeks ago.
>>
>>
> 

I am interested in the 'pciconf -lb' output (which is dumped to stdout) and
'/usr/local/bin/acpidump -b -n IVRS' output (which generates a ivrs.dat)
file.

Ka Ho