linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the vfio tree with the drm tree
@ 2021-04-15  6:47 Stephen Rothwell
  2021-04-15 13:08 ` Jason Gunthorpe
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2021-04-15  6:47 UTC (permalink / raw)
  To: Alex Williamson, Dave Airlie, DRI
  Cc: Jani Nikula, Jason Gunthorpe, Jason Gunthorpe,
	Linux Kernel Mailing List, Linux Next Mailing List,
	Thomas Zimmermann

[-- Attachment #1: Type: text/plain, Size: 752 bytes --]

Hi all,

Today's linux-next merge of the vfio tree got a conflict in:

  drivers/gpu/drm/i915/gvt/gvt.c

between commit:

  9ff06c385300 ("drm/i915/gvt: Remove references to struct drm_device.pdev")

from the drm tree and commit:

  383987fd15ba ("vfio/gvt: Use mdev_get_type_group_id()")

from the vfio tree.

I fixed it up (I used the latter version) and can carry the fix as
necessary. This is now fixed as far as linux-next is concerned, but any
non trivial conflicts should be mentioned to your upstream maintainer
when your tree is submitted for merging.  You may also want to consider
cooperating with the maintainer of the conflicting tree to minimise any
particularly complex conflicts.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: manual merge of the vfio tree with the drm tree
  2021-04-15  6:47 linux-next: manual merge of the vfio tree with the drm tree Stephen Rothwell
@ 2021-04-15 13:08 ` Jason Gunthorpe
  2021-04-15 19:20   ` Alex Williamson
  0 siblings, 1 reply; 4+ messages in thread
From: Jason Gunthorpe @ 2021-04-15 13:08 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Alex Williamson, Dave Airlie, DRI, Jani Nikula,
	Linux Kernel Mailing List, Linux Next Mailing List,
	Thomas Zimmermann

On Thu, Apr 15, 2021 at 04:47:34PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> Today's linux-next merge of the vfio tree got a conflict in:
> 
>   drivers/gpu/drm/i915/gvt/gvt.c
> 
> between commit:
> 
>   9ff06c385300 ("drm/i915/gvt: Remove references to struct drm_device.pdev")
> 
> from the drm tree and commit:
> 
>   383987fd15ba ("vfio/gvt: Use mdev_get_type_group_id()")
> 
> from the vfio tree.
> 
> I fixed it up (I used the latter version) and can carry the fix as
> necessary.

Yes that is right, thank you

Jason

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: manual merge of the vfio tree with the drm tree
  2021-04-15 13:08 ` Jason Gunthorpe
@ 2021-04-15 19:20   ` Alex Williamson
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Williamson @ 2021-04-15 19:20 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Stephen Rothwell, Dave Airlie, DRI, Jani Nikula,
	Linux Kernel Mailing List, Linux Next Mailing List,
	Thomas Zimmermann

On Thu, 15 Apr 2021 10:08:55 -0300
Jason Gunthorpe <jgg@ziepe.ca> wrote:

> On Thu, Apr 15, 2021 at 04:47:34PM +1000, Stephen Rothwell wrote:
> > Hi all,
> > 
> > Today's linux-next merge of the vfio tree got a conflict in:
> > 
> >   drivers/gpu/drm/i915/gvt/gvt.c
> > 
> > between commit:
> > 
> >   9ff06c385300 ("drm/i915/gvt: Remove references to struct drm_device.pdev")
> > 
> > from the drm tree and commit:
> > 
> >   383987fd15ba ("vfio/gvt: Use mdev_get_type_group_id()")
> > 
> > from the vfio tree.
> > 
> > I fixed it up (I used the latter version) and can carry the fix as
> > necessary.  
> 
> Yes that is right, thank you

Yep, thanks!

Alex


^ permalink raw reply	[flat|nested] 4+ messages in thread

* linux-next: manual merge of the vfio tree with the drm tree
@ 2021-08-27  6:55 Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2021-08-27  6:55 UTC (permalink / raw)
  To: Alex Williamson, Dave Airlie, DRI
  Cc: Christian König, Christoph Hellwig, Jason Gunthorpe,
	Linux Kernel Mailing List, Linux Next Mailing List, Max Gurtovoy,
	Yishai Hadas

[-- Attachment #1: Type: text/plain, Size: 2892 bytes --]

Hi all,

Today's linux-next merge of the vfio tree got a conflict in:

  drivers/vfio/pci/vfio_pci.c

between commits:

  b8779475869a ("vgaarb: provide a vga_client_unregister wrapper")
  f6b1772b2555 ("vgaarb: remove the unused irq_set_state argument to vga_client_register")
  bf44e8cecc03 ("vgaarb: don't pass a cookie to vga_client_register")

from the drm tree and commits:

  1cbd70fe3787 ("vfio/pci: Rename vfio_pci.c to vfio_pci_core.c")
  ff53edf6d6ab ("vfio/pci: Split the pci_driver code out of vfio_pci_core.c")

from the vfio tree.

I fixed it up (I reapplied the drm changes to vfio_pci_core.c - see below)
and can carry the fix as necessary. This is now fixed as far as linux-next
is concerned, but any non trivial conflicts should be mentioned to your
upstream maintainer when your tree is submitted for merging.  You may
also want to consider cooperating with the maintainer of the conflicting
tree to minimise any particularly complex conflicts.

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 27 Aug 2021 16:52:45 +1000
Subject: [PATCH] fixup for "vfio/pci: Rename vfio_pci.c to vfio_pci_core.c"

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/vfio/pci/vfio_pci_core.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/drivers/vfio/pci/vfio_pci_core.c b/drivers/vfio/pci/vfio_pci_core.c
index 675616e08897..68198e0f2a63 100644
--- a/drivers/vfio/pci/vfio_pci_core.c
+++ b/drivers/vfio/pci/vfio_pci_core.c
@@ -53,10 +53,9 @@ static inline bool vfio_vga_disabled(void)
  * has no way to get to it and routing can be disabled externally at the
  * bridge.
  */
-static unsigned int vfio_pci_set_vga_decode(void *opaque, bool single_vga)
+static unsigned int vfio_pci_set_decode(struct pci_dev *pdev, bool single_vga)
 {
-	struct vfio_pci_core_device *vdev = opaque;
-	struct pci_dev *tmp = NULL, *pdev = vdev->pdev;
+	struct pci_dev *tmp = NULL;
 	unsigned char max_busnr;
 	unsigned int decodes;
 
@@ -1756,10 +1755,10 @@ static int vfio_pci_vga_init(struct vfio_pci_core_device *vdev)
 	if (!vfio_pci_is_vga(pdev))
 		return 0;
 
-	ret = vga_client_register(pdev, vdev, NULL, vfio_pci_set_vga_decode);
+	ret = vga_client_register(pdev, vfio_pci_set_decode);
 	if (ret)
 		return ret;
-	vga_set_legacy_decoding(pdev, vfio_pci_set_vga_decode(vdev, false));
+	vga_set_legacy_decoding(pdev, vfio_pci_set_decode(pdev, false));
 	return 0;
 }
 
@@ -1769,7 +1768,7 @@ static void vfio_pci_vga_uninit(struct vfio_pci_core_device *vdev)
 
 	if (!vfio_pci_is_vga(pdev))
 		return;
-	vga_client_register(pdev, NULL, NULL, NULL);
+	vga_client_unregister(pdev);
 	vga_set_legacy_decoding(pdev, VGA_RSRC_NORMAL_IO | VGA_RSRC_NORMAL_MEM |
 					      VGA_RSRC_LEGACY_IO |
 					      VGA_RSRC_LEGACY_MEM);
-- 
2.32.0

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-27  6:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  6:47 linux-next: manual merge of the vfio tree with the drm tree Stephen Rothwell
2021-04-15 13:08 ` Jason Gunthorpe
2021-04-15 19:20   ` Alex Williamson
2021-08-27  6:55 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).