[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220627103348.2e9fc4f9@canb.auug.org.au>
Date: Mon, 27 Jun 2022 10:33:48 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>,
Rob Clark <robdclark@...omium.org>
Subject: linux-next: manual merge of the drm-msm-lumag tree with Linus' tree
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 {
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists