linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2021-04-08 Thread Stephen Rothwell
Hi all,

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

  drivers/gpu/drm/vc4/vc4_plane.c

between commit:

  35d65ab3fdba ("drm/vc4: plane: Remove redundant assignment")

from the drm-misc-fixes tree and commit:

  5ddb0bd4ddc3 ("drm/atomic: Pass the full state to planes async atomic check 
and update")

from the drm tree.

I fixed it up (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.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/gpu/drm/vc4/vc4_plane.c
index 1e9c84cf614a,c76e73a452e0..
--- a/drivers/gpu/drm/vc4/vc4_plane.c
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
@@@ -1133,31 -1135,34 +1135,33 @@@ void vc4_plane_async_set_fb(struct drm_
  }
  
  static void vc4_plane_atomic_async_update(struct drm_plane *plane,
- struct drm_plane_state *state)
+ struct drm_atomic_state *state)
  {
+   struct drm_plane_state *new_plane_state = 
drm_atomic_get_new_plane_state(state,
+   
 plane);
struct vc4_plane_state *vc4_state, *new_vc4_state;
  
-   swap(plane->state->fb, state->fb);
-   plane->state->crtc_x = state->crtc_x;
-   plane->state->crtc_y = state->crtc_y;
-   plane->state->crtc_w = state->crtc_w;
-   plane->state->crtc_h = state->crtc_h;
-   plane->state->src_x = state->src_x;
-   plane->state->src_y = state->src_y;
-   plane->state->src_w = state->src_w;
-   plane->state->src_h = state->src_h;
-   plane->state->alpha = state->alpha;
-   plane->state->pixel_blend_mode = state->pixel_blend_mode;
-   plane->state->rotation = state->rotation;
-   plane->state->zpos = state->zpos;
-   plane->state->normalized_zpos = state->normalized_zpos;
-   plane->state->color_encoding = state->color_encoding;
-   plane->state->color_range = state->color_range;
-   plane->state->src = state->src;
-   plane->state->dst = state->dst;
-   plane->state->visible = state->visible;
- 
-   new_vc4_state = to_vc4_plane_state(state);
+   swap(plane->state->fb, new_plane_state->fb);
+   plane->state->crtc_x = new_plane_state->crtc_x;
+   plane->state->crtc_y = new_plane_state->crtc_y;
+   plane->state->crtc_w = new_plane_state->crtc_w;
+   plane->state->crtc_h = new_plane_state->crtc_h;
+   plane->state->src_x = new_plane_state->src_x;
+   plane->state->src_y = new_plane_state->src_y;
+   plane->state->src_w = new_plane_state->src_w;
+   plane->state->src_h = new_plane_state->src_h;
 -  plane->state->src_h = new_plane_state->src_h;
+   plane->state->alpha = new_plane_state->alpha;
+   plane->state->pixel_blend_mode = new_plane_state->pixel_blend_mode;
+   plane->state->rotation = new_plane_state->rotation;
+   plane->state->zpos = new_plane_state->zpos;
+   plane->state->normalized_zpos = new_plane_state->normalized_zpos;
+   plane->state->color_encoding = new_plane_state->color_encoding;
+   plane->state->color_range = new_plane_state->color_range;
+   plane->state->src = new_plane_state->src;
+   plane->state->dst = new_plane_state->dst;
+   plane->state->visible = new_plane_state->visible;
+ 
+   new_vc4_state = to_vc4_plane_state(new_plane_state);
vc4_state = to_vc4_plane_state(plane->state);
  
vc4_state->crtc_x = new_vc4_state->crtc_x;


pgp1aJk8_u3_E.pgp
Description: OpenPGP digital signature


Re: linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2021-03-17 Thread Tomi Valkeinen

On 18/03/2021 03:02, Stephen Rothwell wrote:

Hi all,

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

   drivers/gpu/drm/omapdrm/dss/dsi.c

between commit:

   690911544275 ("drm/omap: dsi: fix unsigned expression compared with zero")

from the drm-misc-fixes tree and commit:

   bbd13d6a7b2e ("drm/omap: dsi: fix unreachable code in dsi_vc_send_short()")

from the drm tree.

I fixed it up (these do basically the same thing, so I used the former
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.
Yes, I messed that up. I accidentally merged a fix to drm-misc-fixes, 
but almost similar fix was already in drm-misc-next. Sorry about that.


 Tomi


linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2021-03-17 Thread Stephen Rothwell
Hi all,

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

  drivers/gpu/drm/omapdrm/dss/dsi.c

between commit:

  690911544275 ("drm/omap: dsi: fix unsigned expression compared with zero")

from the drm-misc-fixes tree and commit:

  bbd13d6a7b2e ("drm/omap: dsi: fix unreachable code in dsi_vc_send_short()")

from the drm tree.

I fixed it up (these do basically the same thing, so I used the former
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


pgpt7YoIICGzt.pgp
Description: OpenPGP digital signature


linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2020-07-27 Thread Stephen Rothwell
Hi all,

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

  drivers/gpu/drm/drm_gem.c

between commit:

  8490d6a7e0a0 ("drm: hold gem reference until object is no longer accessed")

from the drm-misc-fixes tree and commit:

  be6ee102341b ("drm: remove _unlocked suffix in drm_gem_object_put_unlocked")

from the drm tree.

I fixed it up (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.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/gpu/drm/drm_gem.c
index ee2058ad482c,a57f5379fc08..
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@@ -901,9 -913,7 +909,9 @@@ drm_gem_open_ioctl(struct drm_device *d
args->handle = handle;
args->size = obj->size;
  
 -  return 0;
 +err:
-   drm_gem_object_put_unlocked(obj);
++  drm_gem_object_put(obj);
 +  return ret;
  }
  
  /**


pgpsisvqV7JZD.pgp
Description: OpenPGP digital signature


linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2020-04-30 Thread Stephen Rothwell
Hi all,

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

  include/linux/dma-buf.h

between commit:

  6f49c2515e22 ("dma-buf: fix documentation build warnings")

from the drm-misc-fixes tree and commit:

  09606b5446c2 ("dma-buf: add peer2peer flag")

from the drm tree.

I fixed it up (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.

-- 
Cheers,
Stephen Rothwell

diff --cc include/linux/dma-buf.h
index 57bcef6f988a,82e0a4a64601..
--- a/include/linux/dma-buf.h
+++ b/include/linux/dma-buf.h
@@@ -333,8 -334,16 +333,16 @@@ struct dma_buf 
   * Attachment operations implemented by the importer.
   */
  struct dma_buf_attach_ops {
+   /**
+* @allow_peer2peer:
+*
+* If this is set to true the importer must be able to handle peer
+* resources without struct pages.
+*/
+   bool allow_peer2peer;
+ 
/**
 -   * @move_notify
 +   * @move_notify: [optional] notification that the DMA-buf is moving
 *
 * If this callback is provided the framework can avoid pinning the
 * backing store while mappings exists.


pgpWjGoepBcYY.pgp
Description: OpenPGP digital signature


linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2019-08-25 Thread Stephen Rothwell
Hi all,

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

  drivers/gpu/drm/arm/display/komeda/komeda_dev.c

between commit:

  51a44a28eefd ("drm/komeda: Add missing of_node_get() call")

from the drm-misc-fixes tree and commit:

  8965ad8433ea ("drm/komeda: Enable dual-link support")

from the drm tree.

I fixed it up (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.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/gpu/drm/arm/display/komeda/komeda_dev.c
index 9d4d5075cc64,1ff7f4b2c620..
--- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c
@@@ -127,7 -128,8 +129,8 @@@ static int komeda_parse_pipe_dt(struct 
pipe->of_output_port =
of_graph_get_port_by_id(np, KOMEDA_OF_PORT_OUTPUT);
  
+   pipe->dual_link = pipe->of_output_links[0] && pipe->of_output_links[1];
 -  pipe->of_node = np;
 +  pipe->of_node = of_node_get(np);
  
return 0;
  }


pgpKhw9cVcFOI.pgp
Description: OpenPGP digital signature


linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2018-03-07 Thread Stephen Rothwell
Hi all,

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

  drivers/gpu/drm/sun4i/sun4i_tcon.c

between commit:

  e742a17cd360 ("drm/sun4i: tcon: Reduce the scope of the LVDS error a bit")

from the drm-misc-fixes tree and commit:

  34d698f6e349 ("drm/sun4i: Add has_channel_0 TCON quirk")

from the drm tree.

I fixed it up (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.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/gpu/drm/sun4i/sun4i_tcon.c
index 2de586b7c98b,0d6c5ed44795..
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
@@@ -1143,11 -1155,15 +1164,16 @@@ static const struct sun4i_tcon_quirks s
  };
  
  static const struct sun4i_tcon_quirks sun8i_a83t_lcd_quirks = {
+   .has_channel_0  = true,
 +  .supports_lvds  = true,
  };
  
+ static const struct sun4i_tcon_quirks sun8i_a83t_tv_quirks = {
+   .has_channel_1  = true,
+ };
+ 
  static const struct sun4i_tcon_quirks sun8i_v3s_quirks = {
-   /* nothing is supported */
+   .has_channel_0  = true,
  };
  
  /* sun4i_drv uses this list to check if a device node is a TCON */


pgpFdFMQE_OGv.pgp
Description: OpenPGP digital signature


linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2017-12-13 Thread Stephen Rothwell
Hi all,

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

  drivers/gpu/drm/drm_edid.c

between commit:

  4b4df570b41d ("drm: Update edid-derived drm_display_info fields at edid 
property set [v2]")

from the drm-misc-fixes tree and commit:

  c945b8c14bb7 ("drm/edid: build ELD in drm_add_edid_modes()")

from the drm tree.

I fixed it up (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.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/gpu/drm/drm_edid.c
index cb487148359a,524eace3d460..
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@@ -4653,6 -4645,10 +4671,8 @@@ int drm_add_edid_modes(struct drm_conne
return 0;
}
  
 -  quirks = edid_get_quirks(edid);
 -
+   drm_edid_to_eld(connector, edid);
+ 
/*
 * CEA-861-F adds ycbcr capability map block, for HDMI 2.0 sinks.
 * To avoid multiple parsing of same block, lets parse that map


linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2017-01-16 Thread Stephen Rothwell
Hi Dave,

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

  include/drm/drm_atomic.h

between commit:

  7e9081c5aac7 ("drm/fence: fix memory overwrite when setting out_fence fd")

from the drm-misc-fixes tree and commit:

  bdc571464c49 ("drm/atomic: Clean up wait_for_vblanks, v2.")

from the drm tree.

I fixed it up (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.

-- 
Cheers,
Stephen Rothwell

diff --cc include/drm/drm_atomic.h
index 56814e8ae7ea,f96220ed4004..
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@@ -144,7 -144,8 +144,8 @@@ struct __drm_crtcs_state 
struct drm_crtc *ptr;
struct drm_crtc_state *state;
struct drm_crtc_commit *commit;
 -  s64 __user *out_fence_ptr;
 +  s32 __user *out_fence_ptr;
+   unsigned last_vblank_count;
  };
  
  struct __drm_connnectors_state {