Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2021 02:57:35 +0800
From:      Ka Ho Ng <khng300@gmail.com>
To:        toasty@dragondata.com
Cc:        virtualization@freebsd.org
Subject:   Re: bhyve PCIe passthrough on AMD Epyc
Message-ID:  <3fb42042-7f76-5369-cac0-1ad975fa48d7@gmail.com>
In-Reply-To: <CA56517D-F0F6-4548-8C95-2774E7A0711D@dragondata.com>
References:  <201902280534.x1S5YMQS054621@pdx.rh.CN85.dnsmgr.net> <98792A76-1723-458D-A7B4-BB3F74D9F26C@dragondata.com> <CALnRwMT=VNYL8A8=rs3Spbiw7jvKyKxwZAv%2BrwTPmmO8gXaSFw@mail.gmail.com> <CA56517D-F0F6-4548-8C95-2774E7A0711D@dragondata.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/1/19 2:30 am, toasty at dragondata.com (Kevin Day) wrote:
>> On Feb 28, 2019, at 12:28 PM, Anish <akgupt3 at gmail.com> wrote:
>>
>> Hi Kevin,
>>> I'm just pointing out that it's an AMD Epyc because I know the AMD IOMMU/AMD-Vi code was added somewhat more recently than Intel's and is maybe less tested.
>> I tested on Ryzen-I, not sure if anyone tried it on newer Ryzen/Epyc systems.
>>
>>> CPU0: local APIC error 0x40
>> This is concerning, as per AMD docs, bit6 is for illegal vector which indicate CPU is getting invalid interrupts.
>>
>> Can you share hw.vmm sysctl output?
>>
>> -Anish
> 
> Sure:
> 
> hw.vmm.amdvi.domain_id: 4
> hw.vmm.amdvi.disable_io_fault: 0
> hw.vmm.amdvi.ptp_level: 4
> hw.vmm.amdvi.host_ptp: 1
> hw.vmm.amdvi.enable: 1

Could you try https://reviews.freebsd.org/D28945 and
https://reviews.freebsd.org/D28984 ?

Ka Ho




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3fb42042-7f76-5369-cac0-1ad975fa48d7>