Skip to contentSkip to conversation

linux-next: manual merge of the drm tree with the mm-stable tree

DISCUSSION Stephen Rothwell 1 participant 2 messages Oct 24, 2023 – Nov 1, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

drivers/gpu/drm/msm/msm_drv.c

between commit:

cd61a76c210a ("drm/msm: dynamically allocate the drm-msm_gem shrinker")

from the mm-stable tree and commit:

506efcba3129 ("drm/msm: carve out KMS code from msm_drv.c")

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.

Signature · 34 lines
Cheers,
Stephen Rothwell

diff --cc drivers/gpu/drm/msm/msm_drv.c
index 7f20249d6071,443bbc3ed750..000000000000
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@@ -457,23 -265,12 +265,14 @@@ static int msm_drm_init(struct device *
  	if (ret)
  		goto err_deinit_vram;
  
- 	/* the fw fb could be anywhere in memory */
- 	ret = drm_aperture_remove_framebuffers(drv);
- 	if (ret)
- 		goto err_msm_uninit;
- 
 -	msm_gem_shrinker_init(ddev);
 +	ret = msm_gem_shrinker_init(ddev);
 +	if (ret)
 +		goto err_msm_uninit;
  
  	if (priv->kms_init) {
- 		ret = priv->kms_init(ddev);
- 		if (ret) {
- 			DRM_DEV_ERROR(dev, "failed to load kms\n");
- 			priv->kms = NULL;
+ 		ret = msm_drm_kms_init(dev, drv);
+ 		if (ret)
  			goto err_msm_uninit;
- 		}
- 		kms = priv->kms;
  	} else {
  		/* valid only for the dummy headless case, where of_node=NULL */
  		WARN_ON(dev->of_node);
#1 lore raw

Hi all,

Quoted 47 lines · On Tue, 24 Oct 2023 11:52:06 +1100 Stephen Rothwell <[email protected]>…

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

drivers/gpu/drm/msm/msm_drv.c

between commit:

cd61a76c210a ("drm/msm: dynamically allocate the drm-msm_gem shrinker")

from the mm-stable tree and commit:

506efcba3129 ("drm/msm: carve out KMS code from msm_drv.c")

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.

Signature · 2 lines
Cheers,
Stephen Rothwell
drivers/gpu/drm/msm/msm_drv.c +0 -7
diff --cc drivers/gpu/drm/msm/msm_drv.c
index 7f20249d6071,443bbc3ed750..000000000000
@@@ -457,23 -265,12 +265,14 @@@ static int msm_drm_init(struct device *
  	if (ret)
  		goto err_deinit_vram;
 
- 	/* the fw fb could be anywhere in memory */
- 	ret = drm_aperture_remove_framebuffers(drv);
- 	if (ret)
- 		goto err_msm_uninit;
- 
 -	msm_gem_shrinker_init(ddev);
 +	ret = msm_gem_shrinker_init(ddev);
 +	if (ret)
 +		goto err_msm_uninit;
 
  	if (priv->kms_init) {
- 		ret = priv->kms_init(ddev);
- 		if (ret) {

drivers/gpu/drm/msm/msm_drv.c

Quoted 10 lines
drivers/gpu/drm/msm/msm_drv.c +2 -4
- 			DRM_DEV_ERROR(dev, "failed to load kms\n");
- 			priv->kms = NULL;
+ 		ret = msm_drm_kms_init(dev, drv);
+ 		if (ret)
  			goto err_msm_uninit;
- 		}
- 		kms = priv->kms;
  	} else {
  		/* valid only for the dummy headless case, where of_node=NULL */
  		WARN_ON(dev->of_node);

This is now a conflict between the mm-stable tree and Linus' tree.

Signature · 2 lines
Cheers,
Stephen Rothwell