linux-next: manual merge of the drm-msm-lumag tree with Linus', drm-msm trees
Hi all,
Today's linux-next merge of the drm-msm-lumag tree got a conflict in:
drivers/gpu/drm/msm/msm_drv.c
between commits:
d73b1d02de08 ("drm/msm: Hangcheck progress detection") 8636500300a0 ("drm/msm: Fix failure paths in msm_drm_init()")
from Linus', drm-msm trees and commit:
643b7d0869cc ("drm/msm: Add missing check and destroy for alloc_ordered_workqueue")
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.
Signature · 18 lines
Cheers,
Stephen Rothwell
diff --cc drivers/gpu/drm/msm/msm_drv.c
index 0509e90d05e3,b052327181b2..000000000000
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@@ -420,7 -418,11 +420,9 @@@ static int msm_drm_init(struct device *
priv->dev = ddev;
priv->wq = alloc_ordered_workqueue("msm", 0);
+ if (!priv->wq)
+ return -ENOMEM;
- priv->hangcheck_period = DRM_MSM_HANGCHECK_DEFAULT_PERIOD;
-
INIT_LIST_HEAD(&priv->objects);
mutex_init(&priv->obj_lock);Hi all,
Quoted 14 lines · On Thu, 19 Jan 2023 12:23:50 +1100 Stephen Rothwell <[email protected]>…
Today's linux-next merge of the drm-msm-lumag tree got a conflict in:
drivers/gpu/drm/msm/msm_drv.cbetween commits:
d73b1d02de08("drm/msm: Hangcheck progress detection")8636500300a0("drm/msm: Fix failure paths inmsm_drm_init()")from Linus', drm-msm trees and commit:
643b7d0869cc("drm/msm: Add missing check and destroy foralloc_ordered_workqueue")
Quoted 8 lines
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.
Actually, the fixup was this:
f39d6f85acf03a184bb086cae8fd24d2c6d787fe
drivers/gpu/drm/msm/msm_drv.c +0 -0
@@@ -420,7 -418,11 +420,9 @@@ static int msm_drm_init(struct device * priv->dev = ddev; priv->wq =alloc_ordered_workqueue ("msm" ,0 ); +if (!priv->wq) +return -ENOMEM ; - priv->hangcheck_period =DRM_MSM_HANGCHECK_DEFAULT_PERIOD ; -INIT_LIST_HEAD (&priv->objects);mutex_init (&priv->obj_lock); err_msm_uninit:msm_drm_uninit (dev); - err_drm_dev_put: +drm_dev_put (ddev);return ret; }
Signature · 2 lines
Cheers, Stephen Rothwell