All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the drm-msm-lumag tree with Linus' tree
@ 2022-06-27  0:33 Stephen Rothwell
  0 siblings, 0 replies; only message in thread
From: Stephen Rothwell @ 2022-06-27  0:33 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Linux Kernel Mailing List, Linux Next Mailing List, Rob Clark

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

Hi all,

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

  drivers/gpu/drm/msm/msm_fence.c

between commit:

  3c7a52217a8c ("drm/msm: Drop update_fences()")

from Linus' tree and commit:

  bda2eac959ae ("drm/msm: Fix fence rollover issue")

from the drm-msm-lumag 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/msm/msm_fence.c
index 38e3323bc232,a35a6746c7cd..000000000000
--- a/drivers/gpu/drm/msm/msm_fence.c
+++ b/drivers/gpu/drm/msm/msm_fence.c
@@@ -46,14 -54,13 +54,15 @@@ bool msm_fence_completed(struct msm_fen
  		(int32_t)(*fctx->fenceptr - fence) >= 0;
  }
  
- /* called from irq handler and workqueue (in recover path) */
+ /* called from irq handler */
  void msm_update_fence(struct msm_fence_context *fctx, uint32_t fence)
  {
 -	spin_lock(&fctx->spinlock);
 +	unsigned long flags;
 +
 +	spin_lock_irqsave(&fctx->spinlock, flags);
- 	fctx->completed_fence = max(fence, fctx->completed_fence);
+ 	if (fence_after(fence, fctx->completed_fence))
+ 		fctx->completed_fence = fence;
 -	spin_unlock(&fctx->spinlock);
 +	spin_unlock_irqrestore(&fctx->spinlock, flags);
  }
  
  struct msm_fence {

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-27  0:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-27  0:33 linux-next: manual merge of the drm-msm-lumag tree with Linus' tree Stephen Rothwell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.