x86/PCI: VMD: Set bus resource start to 0
authorKeith Busch <keith.busch@intel.com>
Wed, 2 Mar 2016 22:31:04 +0000 (15:31 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Mar 2016 20:53:42 +0000 (14:53 -0600)
The bus always starts at 0.  Due to alignment and down-casting, this
happened to work before, but looked alarmingly incorrect in kernel logs.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/vmd.c

index 29aebbcb510bd39850b4e1c40c9661c751af916c..a08183e604d1d5f170f09fdf2a3ff642c76f8d2b 100644 (file)
@@ -527,7 +527,7 @@ static int vmd_enable_domain(struct vmd_dev *vmd)
        res = &vmd->dev->resource[VMD_CFGBAR];
        vmd->resources[0] = (struct resource) {
                .name  = "VMD CFGBAR",
-               .start = res->start,
+               .start = 0,
                .end   = (resource_size(res) >> 20) - 1,
                .flags = IORESOURCE_BUS | IORESOURCE_PCI_FIXED,
        };