mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 11:44:01 +08:00
powerpc/powernv: Fix the log message when disabling VF
On powernv platform, IOV BAR would be shifted if necessary. While the log message is not correct when disabling VFs. This patch fixes this by print correct message based on the offset value. Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
7c26b9cf53
commit
74703cc4e0
@ -915,8 +915,9 @@ static int pnv_pci_vf_resource_shift(struct pci_dev *dev, int offset)
|
|||||||
res2 = *res;
|
res2 = *res;
|
||||||
res->start += size * offset;
|
res->start += size * offset;
|
||||||
|
|
||||||
dev_info(&dev->dev, "VF BAR%d: %pR shifted to %pR (enabling %d VFs shifted by %d)\n",
|
dev_info(&dev->dev, "VF BAR%d: %pR shifted to %pR (%sabling %d VFs shifted by %d)\n",
|
||||||
i, &res2, res, num_vfs, offset);
|
i, &res2, res, (offset > 0) ? "En" : "Dis",
|
||||||
|
num_vfs, offset);
|
||||||
pci_update_resource(dev, i + PCI_IOV_RESOURCES);
|
pci_update_resource(dev, i + PCI_IOV_RESOURCES);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user