Date: Wed, 30 Dec 2020 08:43:17 -0800 From: Neel Chauhan <neel@neelc.org> To: freebsd-hackers@freebsd.org Subject: Debugging a WIP PCI/ACPI patch: Bad tailq NEXT(0xffffffff81cde660->tqh_last) != NULL Message-ID: <44528336fa9168966d121bf771e1e229@neelc.org>
next in thread | raw e-mail | index | archive | help
Hi all, I'm writing a patch to support the VMD subsystem in Intel TigerLake systems such as the HP Spectre x360 13t-aw200. VMD is needed for NVMe here. The patch is as follows --- a/sys/dev/vmd/vmd.c +++ b/sys/dev/vmd/vmd.c @@ -66,13 +66,20 @@ struct vmd_type { #define INTEL_VENDOR_ID 0x8086 #define INTEL_DEVICE_ID_VMD 0x201d #define INTEL_DEVICE_ID_VMD2 0x28c0 +#define INTEL_DEVICE_ID_VMD3 0x9a0b static struct vmd_type vmd_devs[] = { { INTEL_VENDOR_ID, INTEL_DEVICE_ID_VMD, "Intel Volume Management Device" }, { INTEL_VENDOR_ID, INTEL_DEVICE_ID_VMD2, "Intel Volume Management Device" }, + { INTEL_VENDOR_ID, INTEL_DEVICE_ID_VMD3, "Intel Volume Management Device" }, { 0, 0, NULL } However, when I use the patch, I get a kernel panic related to PCI: https://imgur.com/a/XUQksOi (sorry for the image) It gives me the Bad tailq NEXT(0xffffffff81cde660->tqh_last) != NULL error. Could you please help me figure out why it's panicking? -Neel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44528336fa9168966d121bf771e1e229>