* linux-next: manual merge of the vfio tree with the pci tree
@ 2014-10-01 3:14 Stephen Rothwell
2014-10-01 17:06 ` Alex Williamson
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2014-10-01 3:14 UTC (permalink / raw)
To: Alex Williamson, Bjorn Helgaas
Cc: linux-next, linux-kernel, Gavin Shan, Yijing Wang
[-- Attachment #1: Type: text/plain, Size: 2045 bytes --]
Hi Alex,
Today's linux-next merge of the vfio tree got a conflict in
drivers/pci/msi.c between commits a160fe94cb53 ("PCI/MSI: Remove unused
get_cached_msi_msg()") and 18ef822c59f6 ("PCI/MSI: Rename
__get_cached_msi_msg() to get_cached_msi_msg()") from the pci tree and
commit 3b307ffe3faa ("PCI: Export MSI message relevant functions") from
the vfio tree.
I fixed it up (see below) and can carry the fix as necessary (no action
is required). And then I added this merge fix patch (I should probably
also have added an include of linux/irq.h):
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 1 Oct 2014 13:09:58 +1000
Subject: [PATCH] vfio: update for get_cached_msi_msg API change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/vfio/pci/vfio_pci_intrs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vfio/pci/vfio_pci_intrs.c b/drivers/vfio/pci/vfio_pci_intrs.c
index 553212f037c3..a068bb0d69e5 100644
--- a/drivers/vfio/pci/vfio_pci_intrs.c
+++ b/drivers/vfio/pci/vfio_pci_intrs.c
@@ -559,7 +559,7 @@ static int vfio_msi_set_vector_signal(struct vfio_pci_device *vdev,
if (msix) {
struct msi_msg msg;
- get_cached_msi_msg(irq, &msg);
+ get_cached_msi_msg(irq_get_msi_desc(irq), &msg);
write_msi_msg(irq, &msg);
}
--
2.1.1
Someone needs to remember to send this fix to Linus when these 2 trees
are merged into his tree ...
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
diff --cc drivers/pci/msi.c
index d077749df25b,e468d65eb238..000000000000
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@@ -288,6 -305,14 +288,7 @@@ void get_cached_msi_msg(struct msi_des
*msg = entry->msg;
}
-
-void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg)
-{
- struct msi_desc *entry = irq_get_msi_desc(irq);
-
- __get_cached_msi_msg(entry, msg);
-}
+ EXPORT_SYMBOL_GPL(get_cached_msi_msg);
void __write_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
{
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: linux-next: manual merge of the vfio tree with the pci tree
2014-10-01 3:14 linux-next: manual merge of the vfio tree with the pci tree Stephen Rothwell
@ 2014-10-01 17:06 ` Alex Williamson
2014-10-01 22:52 ` Stephen Rothwell
0 siblings, 1 reply; 3+ messages in thread
From: Alex Williamson @ 2014-10-01 17:06 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Bjorn Helgaas, linux-next, linux-kernel, Gavin Shan, Yijing Wang
On Wed, 2014-10-01 at 13:14 +1000, Stephen Rothwell wrote:
> Hi Alex,
>
> Today's linux-next merge of the vfio tree got a conflict in
> drivers/pci/msi.c between commits a160fe94cb53 ("PCI/MSI: Remove unused
> get_cached_msi_msg()") and 18ef822c59f6 ("PCI/MSI: Rename
> __get_cached_msi_msg() to get_cached_msi_msg()") from the pci tree and
> commit 3b307ffe3faa ("PCI: Export MSI message relevant functions") from
> the vfio tree.
>
> I fixed it up (see below) and can carry the fix as necessary (no action
> is required). And then I added this merge fix patch (I should probably
> also have added an include of linux/irq.h):
Hi Stephen,
Thanks for the heads-up and manual merge. I've reviewed the changes to
the MSI API that got us into this conflict and I disagree with them.
I've posted a series to revert a selection of changes currently coming
in through pci/next that should make for a clean merge should Bjorn come
to the same conclusion. If you need to re-apply the fix in the
meantime, please do include <linux/irq.h> since it generated a build
failure on arm without it. Thanks!
Alex
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Wed, 1 Oct 2014 13:09:58 +1000
> Subject: [PATCH] vfio: update for get_cached_msi_msg API change
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> drivers/vfio/pci/vfio_pci_intrs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/vfio/pci/vfio_pci_intrs.c b/drivers/vfio/pci/vfio_pci_intrs.c
> index 553212f037c3..a068bb0d69e5 100644
> --- a/drivers/vfio/pci/vfio_pci_intrs.c
> +++ b/drivers/vfio/pci/vfio_pci_intrs.c
> @@ -559,7 +559,7 @@ static int vfio_msi_set_vector_signal(struct vfio_pci_device *vdev,
> if (msix) {
> struct msi_msg msg;
>
> - get_cached_msi_msg(irq, &msg);
> + get_cached_msi_msg(irq_get_msi_desc(irq), &msg);
> write_msi_msg(irq, &msg);
> }
>
> --
> 2.1.1
>
>
> Someone needs to remember to send this fix to Linus when these 2 trees
> are merged into his tree ...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: manual merge of the vfio tree with the pci tree
2014-10-01 17:06 ` Alex Williamson
@ 2014-10-01 22:52 ` Stephen Rothwell
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2014-10-01 22:52 UTC (permalink / raw)
To: Alex Williamson
Cc: Bjorn Helgaas, linux-next, linux-kernel, Gavin Shan, Yijing Wang
[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]
Hi Alex,
On Wed, 01 Oct 2014 11:06:14 -0600 Alex Williamson <alex.williamson@redhat.com> wrote:
>
> On Wed, 2014-10-01 at 13:14 +1000, Stephen Rothwell wrote:
> >
> > Today's linux-next merge of the vfio tree got a conflict in
> > drivers/pci/msi.c between commits a160fe94cb53 ("PCI/MSI: Remove unused
> > get_cached_msi_msg()") and 18ef822c59f6 ("PCI/MSI: Rename
> > __get_cached_msi_msg() to get_cached_msi_msg()") from the pci tree and
> > commit 3b307ffe3faa ("PCI: Export MSI message relevant functions") from
> > the vfio tree.
> >
> > I fixed it up (see below) and can carry the fix as necessary (no action
> > is required). And then I added this merge fix patch (I should probably
> > also have added an include of linux/irq.h):
>
> Thanks for the heads-up and manual merge. I've reviewed the changes to
> the MSI API that got us into this conflict and I disagree with them.
> I've posted a series to revert a selection of changes currently coming
> in through pci/next that should make for a clean merge should Bjorn come
> to the same conclusion. If you need to re-apply the fix in the
> meantime, please do include <linux/irq.h> since it generated a build
> failure on arm without it. Thanks!
Seems Bjorn has removed the conflicting commits from the pci tree.
Thanks.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-01 22:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-01 3:14 linux-next: manual merge of the vfio tree with the pci tree Stephen Rothwell
2014-10-01 17:06 ` Alex Williamson
2014-10-01 22:52 ` Stephen Rothwell
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).