recent changed in vmm lead to panic: AMD, ivhd_setup_intr

Ka Ho Ng khng at FreeBSD.org
Wed Mar 31 21:28:07 UTC 2021


On 4/1/21 4:43 am, Ka Ho Ng wrote:
> On 4/1/21 4:41 am, Ka Ho Ng wrote:
>> On 4/1/21 4:36 am, Oleg Ginzburg wrote:
>>> pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
>>
>> That is the most related cause to the panic. Currently the code 
>> assumes evaluating a propagated ACPI ivrs table will come with 
>> attached amd iommu devices as well.
>>
>> Thanks,
>> Ka Ho
> 
> Forgot to mention, /usr/local/bin/acpidump comes from
> sysutils/acpica-tools.
> 
> Ka Ho
> _______________________________________________
> freebsd-virtualization at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to 
> "freebsd-virtualization-unsubscribe at freebsd.org"

Could you try the attached quick dirty fix and see if it works?

Ka Ho
-------------- next part --------------
diff --git a/sys/amd64/vmm/amd/ivrs_drv.c b/sys/amd64/vmm/amd/ivrs_drv.c
index 6291895c212f..d2e3d0b0acdb 100644
--- a/sys/amd64/vmm/amd/ivrs_drv.c
+++ b/sys/amd64/vmm/amd/ivrs_drv.c
@@ -122,7 +122,6 @@ ivrs_is_ivhd(UINT8 type)
 	switch(type) {
 	case IVRS_TYPE_HARDWARE_LEGACY:
 	case IVRS_TYPE_HARDWARE_EFR:
-	case IVRS_TYPE_HARDWARE_MIXED:
 		return (true);
 
 	default:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20210401/3a9ef70a/attachment.sig>


More information about the freebsd-virtualization mailing list