Skip to content

Commit

Permalink
x86/PCI: VMD: Set bus resource start to 0
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
  • Loading branch information
Keith Busch authored and bjorn-helgaas committed Mar 10, 2016
1 parent 83cc54a commit d068c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/pci/vmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit d068c35

Please sign in to comment.