* [PATCH] powerpc/powernv: Fix the log message when disabling VF
@ 2015-07-20 10:14 Wei Yang
2015-08-20 8:38 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yang @ 2015-07-20 10:14 UTC (permalink / raw)
To: mpe; +Cc: linuxppc-dev, Wei Yang
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>
---
arch/powerpc/platforms/powernv/pci-ioda.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
index d1530cb..80b8099 100644
--- a/arch/powerpc/platforms/powernv/pci-ioda.c
+++ b/arch/powerpc/platforms/powernv/pci-ioda.c
@@ -946,8 +946,9 @@ static int pnv_pci_vf_resource_shift(struct pci_dev *dev, int offset)
res2 = *res;
res->start += size * offset;
- dev_info(&dev->dev, "VF BAR%d: %pR shifted to %pR (enabling %d VFs shifted by %d)\n",
- i, &res2, res, num_vfs, offset);
+ dev_info(&dev->dev, "VF BAR%d: %pR shifted to %pR (%sabling %d VFs shifted by %d)\n",
+ i, &res2, res, (offset > 0) ? "En" : "Dis",
+ num_vfs, offset);
pci_update_resource(dev, i + PCI_IOV_RESOURCES);
}
return 0;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: powerpc/powernv: Fix the log message when disabling VF
2015-07-20 10:14 [PATCH] powerpc/powernv: Fix the log message when disabling VF Wei Yang
@ 2015-08-20 8:38 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2015-08-20 8:38 UTC (permalink / raw)
To: Wei Yang; +Cc: Wei Yang, linuxppc-dev
On Mon, 2015-20-07 at 10:14:58 UTC, Wei Yang wrote:
> 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>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/74703cc4e08372b8aedf
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-20 8:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-20 10:14 [PATCH] powerpc/powernv: Fix the log message when disabling VF Wei Yang
2015-08-20 8:38 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).