PCIe Root Port/Bus Not Detected in VMD
Neel Chauhan
neel at neelc.org
Thu Dec 31 05:45:45 UTC 2020
For reference, I am attaching the `pciconf -lv` and `acpidump -dt`
dumps.
-Neel
On 2020-12-30 21:41, Neel Chauhan wrote:
> Hi freebsd-hackers@,
>
> My apologies for so many emails from me.
>
> I have the following patch:
>
> diff --git a/sys/dev/vmd/vmd.c b/sys/dev/vmd/vmd.c
> index 2cc6f45bed9..7cc0a8a91a7 100644
> --- a/sys/dev/vmd/vmd.c
> +++ b/sys/dev/vmd/vmd.c
> @@ -66,10 +66,12 @@ 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 }
> };
>
> @@ -425,6 +427,7 @@ vmd_attach(device_t dev)
> return (0);
>
> fail:
> + rman_fini(&sc->vmd_bus.rman);
> vmd_free(sc);
> return (ENXIO);
> }
>
> This patch helps me detect the VMD controller, but I am unable to
> attach to it.
>
> Therefore, I am not able to attach any PCIe buses that will be used by
> a NVMe SSD.
>
> If this patch worked, I would see these devices (as I do in Linux):
>
> 10000:e0:1d.0 PCI bridge [0604]: Intel Corporation Tiger Lake-LP PCI
> Express Root Port #9 [8086:a0b0] (rev 20) SI
> 10000:e0:1d.2 PCI bridge [0604]: Intel Corporation Device [8086:a0b2]
> (rev 20)
> 10000:e1:00.0 Non-Volatile memory controller [0108]: Intel Corporation
> Device [8086:0975] (rev 03)
> 10000:e2:00.0 Non-Volatile memory controller [0108]: Intel Corporation
> Device [8086:0975]
>
> And therefore a `nvd*` device.
>
> Could a developer please help me with this?
>
> -Neel
>
> ===
>
> https://www.neelc.org/
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to
> "freebsd-hackers-unsubscribe at freebsd.org"
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: acpidump.txt
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20201230/afd3aaee/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pcidump.txt
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20201230/afd3aaee/attachment-0001.txt>
More information about the freebsd-hackers
mailing list