Re: linux-next: build failure after merge of the drm-misc tree
On Tue, Apr 2, 2019 at 3:57 PM Daniel Vetter wrote: > > On Tue, Apr 02, 2019 at 01:55:03PM +0800, Qiang Yu wrote: > > Thanks, patch is: > > Reviewed-by: Qiang Yu > > Good time to get started with committing patches? In general it's kinda > confusing if the maintainer r-bs a patch, but doesn't say whether/when/how > it gets merged. Big chance the patch will get lost in limbo and fall > through cracks. Thanks for the remind, this patch should only be applied to drm-misc-next branch when 5.1-rcx branch gets merged to drm-misc-next for the new xa_alloc API. So I expect the guy who do the 5.1-rcx merge should apply this patch. Who will do the merge? Regards, Qiang > > > > > Regards, > > Qiang > > > > On Tue, Apr 2, 2019 at 7:50 AM Stephen Rothwell > > wrote: > > > > > > Hi all, > > > > > > After merging the drm-misc tree, today's linux-next build (x86_64 > > > allmodconfig) failed like this: > > > > > > In file included from include/linux/kernel.h:7, > > > from include/asm-generic/bug.h:18, > > > from arch/x86/include/asm/bug.h:83, > > > from include/linux/bug.h:5, > > > from include/linux/mmdebug.h:5, > > > from include/linux/gfp.h:5, > > > from include/linux/slab.h:15, > > > from drivers/gpu/drm/lima/lima_ctx.c:4: > > > drivers/gpu/drm/lima/lima_ctx.c: In function 'lima_ctx_create': > > > include/linux/limits.h:13:18: warning: passing argument 3 of 'xa_alloc' > > > makes pointer from integer without a cast [-Wint-conversion] > > > #define UINT_MAX (~0U) > > > ^ > > > drivers/gpu/drm/lima/lima_ctx.c:26:36: note: in expansion of macro > > > 'UINT_MAX' > > > err = xa_alloc(>handles, id, UINT_MAX, ctx, GFP_KERNEL); > > > ^~~~ > > > In file included from include/linux/radix-tree.h:31, > > > from include/linux/idr.h:15, > > > from include/drm/drm_device.h:7, > > > from drivers/gpu/drm/lima/lima_device.h:7, > > > from drivers/gpu/drm/lima/lima_ctx.c:6: > > > include/linux/xarray.h:817:9: note: expected 'void *' but argument is of > > > type 'unsigned int' > > >void *entry, struct xa_limit limit, gfp_t gfp) > > >~~^ > > > drivers/gpu/drm/lima/lima_ctx.c:26:46: error: incompatible type for > > > argument 4 of 'xa_alloc' > > > err = xa_alloc(>handles, id, UINT_MAX, ctx, GFP_KERNEL); > > > ^~~ > > > In file included from include/linux/radix-tree.h:31, > > > from include/linux/idr.h:15, > > > from include/drm/drm_device.h:7, > > > from drivers/gpu/drm/lima/lima_device.h:7, > > > from drivers/gpu/drm/lima/lima_ctx.c:6: > > > include/linux/xarray.h:817:32: note: expected 'struct xa_limit' but > > > argument is of type 'struct lima_ctx *' > > >void *entry, struct xa_limit limit, gfp_t gfp) > > > ^ > > > > > > Caused by commit > > > > > > a1d2a6339961 ("drm/lima: driver for ARM Mali4xx GPUs") > > > > > > interacting with commit > > > > > > a3e4d3f97ec8 ("XArray: Redesign xa_alloc API") > > > > > > from Linus' tree (v5.1-rc1). > > > > > > I have applied the following patch for today. It could be applied as > > > part of a merge of v5.1-rc1 into drm-misc. > > > > > > From: Stephen Rothwell > > > Date: Tue, 2 Apr 2019 10:45:32 +1100 > > > Subject: [PATCH] drm/lima: update for xa_alloc API change > > > > > > Signed-off-by: Stephen Rothwell > > > --- > > > drivers/gpu/drm/lima/lima_ctx.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/gpu/drm/lima/lima_ctx.c > > > b/drivers/gpu/drm/lima/lima_ctx.c > > > index c8d12f7c6894..bafa00d74cc5 100644 > > > --- a/drivers/gpu/drm/lima/lima_ctx.c > > > +++ b/drivers/gpu/drm/lima/lima_ctx.c > > > @@ -23,7 +23,7 @@ int lima_ctx_create(struct lima_device *dev, struct > > > lima_ctx_mgr *mgr, u32 *id) > > > goto err_out0; > > > } > > > > > > - err = xa_alloc(>handles, id, UINT_MAX, ctx, GFP_KERNEL); > > > + err = xa_alloc(>handles, id, ctx, XA_LIMIT(*id, UINT_MAX), > > > GFP_KERNEL); > > > if (err < 0) > > > goto err_out0; > > > > > > -- > > > 2.20.1 > > > > > > -- > > > Cheers, > > > Stephen Rothwell > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
On Tue, Apr 02, 2019 at 01:55:03PM +0800, Qiang Yu wrote: > Thanks, patch is: > Reviewed-by: Qiang Yu Good time to get started with committing patches? In general it's kinda confusing if the maintainer r-bs a patch, but doesn't say whether/when/how it gets merged. Big chance the patch will get lost in limbo and fall through cracks. -Daniel > > Regards, > Qiang > > On Tue, Apr 2, 2019 at 7:50 AM Stephen Rothwell wrote: > > > > Hi all, > > > > After merging the drm-misc tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > In file included from include/linux/kernel.h:7, > > from include/asm-generic/bug.h:18, > > from arch/x86/include/asm/bug.h:83, > > from include/linux/bug.h:5, > > from include/linux/mmdebug.h:5, > > from include/linux/gfp.h:5, > > from include/linux/slab.h:15, > > from drivers/gpu/drm/lima/lima_ctx.c:4: > > drivers/gpu/drm/lima/lima_ctx.c: In function 'lima_ctx_create': > > include/linux/limits.h:13:18: warning: passing argument 3 of 'xa_alloc' > > makes pointer from integer without a cast [-Wint-conversion] > > #define UINT_MAX (~0U) > > ^ > > drivers/gpu/drm/lima/lima_ctx.c:26:36: note: in expansion of macro > > 'UINT_MAX' > > err = xa_alloc(>handles, id, UINT_MAX, ctx, GFP_KERNEL); > > ^~~~ > > In file included from include/linux/radix-tree.h:31, > > from include/linux/idr.h:15, > > from include/drm/drm_device.h:7, > > from drivers/gpu/drm/lima/lima_device.h:7, > > from drivers/gpu/drm/lima/lima_ctx.c:6: > > include/linux/xarray.h:817:9: note: expected 'void *' but argument is of > > type 'unsigned int' > >void *entry, struct xa_limit limit, gfp_t gfp) > >~~^ > > drivers/gpu/drm/lima/lima_ctx.c:26:46: error: incompatible type for > > argument 4 of 'xa_alloc' > > err = xa_alloc(>handles, id, UINT_MAX, ctx, GFP_KERNEL); > > ^~~ > > In file included from include/linux/radix-tree.h:31, > > from include/linux/idr.h:15, > > from include/drm/drm_device.h:7, > > from drivers/gpu/drm/lima/lima_device.h:7, > > from drivers/gpu/drm/lima/lima_ctx.c:6: > > include/linux/xarray.h:817:32: note: expected 'struct xa_limit' but > > argument is of type 'struct lima_ctx *' > >void *entry, struct xa_limit limit, gfp_t gfp) > > ^ > > > > Caused by commit > > > > a1d2a6339961 ("drm/lima: driver for ARM Mali4xx GPUs") > > > > interacting with commit > > > > a3e4d3f97ec8 ("XArray: Redesign xa_alloc API") > > > > from Linus' tree (v5.1-rc1). > > > > I have applied the following patch for today. It could be applied as > > part of a merge of v5.1-rc1 into drm-misc. > > > > From: Stephen Rothwell > > Date: Tue, 2 Apr 2019 10:45:32 +1100 > > Subject: [PATCH] drm/lima: update for xa_alloc API change > > > > Signed-off-by: Stephen Rothwell > > --- > > drivers/gpu/drm/lima/lima_ctx.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/lima/lima_ctx.c > > b/drivers/gpu/drm/lima/lima_ctx.c > > index c8d12f7c6894..bafa00d74cc5 100644 > > --- a/drivers/gpu/drm/lima/lima_ctx.c > > +++ b/drivers/gpu/drm/lima/lima_ctx.c > > @@ -23,7 +23,7 @@ int lima_ctx_create(struct lima_device *dev, struct > > lima_ctx_mgr *mgr, u32 *id) > > goto err_out0; > > } > > > > - err = xa_alloc(>handles, id, UINT_MAX, ctx, GFP_KERNEL); > > + err = xa_alloc(>handles, id, ctx, XA_LIMIT(*id, UINT_MAX), > > GFP_KERNEL); > > if (err < 0) > > goto err_out0; > > > > -- > > 2.20.1 > > > > -- > > Cheers, > > Stephen Rothwell -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Thanks, patch is: Reviewed-by: Qiang Yu Regards, Qiang On Tue, Apr 2, 2019 at 7:50 AM Stephen Rothwell wrote: > > Hi all, > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from include/linux/kernel.h:7, > from include/asm-generic/bug.h:18, > from arch/x86/include/asm/bug.h:83, > from include/linux/bug.h:5, > from include/linux/mmdebug.h:5, > from include/linux/gfp.h:5, > from include/linux/slab.h:15, > from drivers/gpu/drm/lima/lima_ctx.c:4: > drivers/gpu/drm/lima/lima_ctx.c: In function 'lima_ctx_create': > include/linux/limits.h:13:18: warning: passing argument 3 of 'xa_alloc' makes > pointer from integer without a cast [-Wint-conversion] > #define UINT_MAX (~0U) > ^ > drivers/gpu/drm/lima/lima_ctx.c:26:36: note: in expansion of macro 'UINT_MAX' > err = xa_alloc(>handles, id, UINT_MAX, ctx, GFP_KERNEL); > ^~~~ > In file included from include/linux/radix-tree.h:31, > from include/linux/idr.h:15, > from include/drm/drm_device.h:7, > from drivers/gpu/drm/lima/lima_device.h:7, > from drivers/gpu/drm/lima/lima_ctx.c:6: > include/linux/xarray.h:817:9: note: expected 'void *' but argument is of type > 'unsigned int' >void *entry, struct xa_limit limit, gfp_t gfp) >~~^ > drivers/gpu/drm/lima/lima_ctx.c:26:46: error: incompatible type for argument > 4 of 'xa_alloc' > err = xa_alloc(>handles, id, UINT_MAX, ctx, GFP_KERNEL); > ^~~ > In file included from include/linux/radix-tree.h:31, > from include/linux/idr.h:15, > from include/drm/drm_device.h:7, > from drivers/gpu/drm/lima/lima_device.h:7, > from drivers/gpu/drm/lima/lima_ctx.c:6: > include/linux/xarray.h:817:32: note: expected 'struct xa_limit' but argument > is of type 'struct lima_ctx *' >void *entry, struct xa_limit limit, gfp_t gfp) > ^ > > Caused by commit > > a1d2a6339961 ("drm/lima: driver for ARM Mali4xx GPUs") > > interacting with commit > > a3e4d3f97ec8 ("XArray: Redesign xa_alloc API") > > from Linus' tree (v5.1-rc1). > > I have applied the following patch for today. It could be applied as > part of a merge of v5.1-rc1 into drm-misc. > > From: Stephen Rothwell > Date: Tue, 2 Apr 2019 10:45:32 +1100 > Subject: [PATCH] drm/lima: update for xa_alloc API change > > Signed-off-by: Stephen Rothwell > --- > drivers/gpu/drm/lima/lima_ctx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/lima/lima_ctx.c b/drivers/gpu/drm/lima/lima_ctx.c > index c8d12f7c6894..bafa00d74cc5 100644 > --- a/drivers/gpu/drm/lima/lima_ctx.c > +++ b/drivers/gpu/drm/lima/lima_ctx.c > @@ -23,7 +23,7 @@ int lima_ctx_create(struct lima_device *dev, struct > lima_ctx_mgr *mgr, u32 *id) > goto err_out0; > } > > - err = xa_alloc(>handles, id, UINT_MAX, ctx, GFP_KERNEL); > + err = xa_alloc(>handles, id, ctx, XA_LIMIT(*id, UINT_MAX), > GFP_KERNEL); > if (err < 0) > goto err_out0; > > -- > 2.20.1 > > -- > Cheers, > Stephen Rothwell ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi Daniel/Stephen Thanks for the report and the hints how to move forward to fix it. > Sam, can you pls take a look at what komeda needs? you need to > manually merge together drm-misc-next and drm-next first I think. Merged the two tree and fixed build. Undid the merge and checked that the build was still OK. Patch sent to dri-devel: https://lists.freedesktop.org/archives/dri-devel/2019-February/206662.html > Dave, Maxime, Liviu: Heads up, drm-misc-next + drm-next will colide. There was a trivial conflict when I merged, but in i915 so I just fixed it up and kept focus on komeda. So in other words, yes there is a conflict. Sam ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
On Fri, Feb 8, 2019 at 2:38 AM Stephen Rothwell wrote: > > Hi all, > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from drivers/gpu/drm/arm/display/komeda/komeda_drv.c:13: > drivers/gpu/drm/arm/display/komeda/komeda_kms.h:87:20: error: field 'base' > has incomplete type > struct drm_device base; > ^~~~ > drivers/gpu/drm/arm/display/komeda/komeda_dev.c: In function > 'komeda_parse_pipe_dt': > drivers/gpu/drm/arm/display/komeda/komeda_dev.c:27:3: error: implicit > declaration of function 'DRM_ERROR'; did you mean 'DRM_IOR'? > [-Werror=implicit-function-declaration] >DRM_ERROR("get aclk for pipeline %d failed!\n", pipe_id); >^ >DRM_IOR > drivers/gpu/drm/arm/display/komeda/komeda_dev.c: In function > 'komeda_dev_create': > drivers/gpu/drm/arm/display/komeda/komeda_dev.c:127:2: error: implicit > declaration of function 'DRM_INFO'; did you mean 'DRM_IO'? > [-Werror=implicit-function-declaration] > DRM_INFO("Found ARM Mali-D%x version r%dp%d\n", > ^~~~ > DRM_IO > drivers/gpu/drm/arm/display/komeda/komeda_dev.c: In function > 'komeda_dev_destroy': > drivers/gpu/drm/arm/display/komeda/komeda_dev.c:170:3: error: implicit > declaration of function 'devm_iounmap'; did you mean 'pci_iounmap'? > [-Werror=implicit-function-declaration] >devm_iounmap(dev, mdev->reg_base); >^~~~ >pci_iounmap > > and lots more ... > > Probably caused by commit > > e3b01f0d576a ("drm: remove drmP.h from drm_modeset_helper.h") > > I have used the drm-misc tree from next-20190207 for today. Yup. Sam, can you pls take a look at what komeda needs? you need to manually merge together drm-misc-next and drm-next first I think. Dave, Maxime, Liviu: Heads up, drm-misc-next + drm-next will colide. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi Daniel, On Tue, 8 Jan 2019 09:37:22 +0100 Daniel Vetter wrote: > > > https://cgit.freedesktop.org/drm-tip/tree/fixups/drm-misc-next.patch?h=rerere-cache > > is the fixup you want. Should get baked into drm-next any moment, since > the first drm-misc-next pull is already out. I added that resolution for today, thanks. -- Cheers, Stephen Rothwell pgpCP0S8ITHGl.pgp Description: OpenPGP digital signature ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
On 1/8/19 3:37 AM, Daniel Vetter wrote: > On Tue, Jan 08, 2019 at 11:12:41AM +1100, Stephen Rothwell wrote: >> Hi all, >> >> After merging the drm-misc tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function >> 'amdgpu_dm_mode_config_init': >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1695:30: error: >> passing argument 1 of 'drm_atomic_private_obj_init' from incompatible >> pointer type [-Werror=incompatible-pointer-types] >>drm_atomic_private_obj_init(>dm.atomic_obj, >>^~~~ >> In file included from include/drm/drm_dp_mst_helper.h:27, >> from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46, >> from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57, >> from >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34: >> include/drm/drm_atomic.h:437:53: note: expected 'struct drm_device *' but >> argument is of type 'struct drm_private_obj *' >> void drm_atomic_private_obj_init(struct drm_device *dev, >>~~~^~~ >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1696:9: error: >> passing argument 2 of 'drm_atomic_private_obj_init' from incompatible >> pointer type [-Werror=incompatible-pointer-types] >> >base, >> ^~~~ >> In file included from include/drm/drm_dp_mst_helper.h:27, >> from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46, >> from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57, >> from >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34: >> include/drm/drm_atomic.h:438:30: note: expected 'struct drm_private_obj *' >> but argument is of type 'struct drm_private_state *' >>struct drm_private_obj *obj, >>^~~ >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1697:9: error: >> passing argument 3 of 'drm_atomic_private_obj_init' from incompatible >> pointer type [-Werror=incompatible-pointer-types] >> _atomic_state_funcs); >> ^~ >> In file included from include/drm/drm_dp_mst_helper.h:27, >> from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46, >> from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57, >> from >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34: >> include/drm/drm_atomic.h:439:32: note: expected 'struct drm_private_state *' >> but argument is of type 'struct drm_private_state_funcs *' >>struct drm_private_state *state, >>~~^ >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1695:2: error: >> too few arguments to function 'drm_atomic_private_obj_init' >>drm_atomic_private_obj_init(>dm.atomic_obj, >>^~~ >> In file included from include/drm/drm_dp_mst_helper.h:27, >> from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46, >> from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57, >> from >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34: >> include/drm/drm_atomic.h:437:6: note: declared here >> void drm_atomic_private_obj_init(struct drm_device *dev, >>^~~ >> >> Caused by commit >> >>b962a12050a3 ("drm/atomic: integrate modeset lock with private objects") >> >> interacting with commit >> >>eb3dc8978596 ("drm/amd/display: Use private obj helpers for >> dm_atomic_state") >> >> from Linus' tree (merged during the merge window). >> >> Its not obvious how to fix this up, so I have used the drm-misc tree >> from next-20190107 for today. > > https://cgit.freedesktop.org/drm-tip/tree/fixups/drm-misc-next.patch?h=rerere-cache > > is the fixup you want. Should get baked into drm-next any moment, since > the first drm-misc-next pull is already out. > -Daniel > Reviewed-by: Nicholas Kazlauskas Thanks, that lines up with the other driver fixes that patch added. I missed that series when I was developing the private state object patch for amdgpu. I'll still need to remove our extra lock since the objects now have their own, but that can come later in another non-fixup patch. Nicholas Kazlauskas ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
On Tue, Jan 08, 2019 at 11:12:41AM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function > 'amdgpu_dm_mode_config_init': > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1695:30: error: > passing argument 1 of 'drm_atomic_private_obj_init' from incompatible pointer > type [-Werror=incompatible-pointer-types] > drm_atomic_private_obj_init(>dm.atomic_obj, > ^~~~ > In file included from include/drm/drm_dp_mst_helper.h:27, > from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46, > from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57, > from > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34: > include/drm/drm_atomic.h:437:53: note: expected 'struct drm_device *' but > argument is of type 'struct drm_private_obj *' > void drm_atomic_private_obj_init(struct drm_device *dev, > ~~~^~~ > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1696:9: error: > passing argument 2 of 'drm_atomic_private_obj_init' from incompatible pointer > type [-Werror=incompatible-pointer-types] > >base, > ^~~~ > In file included from include/drm/drm_dp_mst_helper.h:27, > from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46, > from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57, > from > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34: > include/drm/drm_atomic.h:438:30: note: expected 'struct drm_private_obj *' > but argument is of type 'struct drm_private_state *' > struct drm_private_obj *obj, > ^~~ > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1697:9: error: > passing argument 3 of 'drm_atomic_private_obj_init' from incompatible pointer > type [-Werror=incompatible-pointer-types] > _atomic_state_funcs); > ^~ > In file included from include/drm/drm_dp_mst_helper.h:27, > from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46, > from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57, > from > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34: > include/drm/drm_atomic.h:439:32: note: expected 'struct drm_private_state *' > but argument is of type 'struct drm_private_state_funcs *' > struct drm_private_state *state, > ~~^ > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1695:2: error: > too few arguments to function 'drm_atomic_private_obj_init' > drm_atomic_private_obj_init(>dm.atomic_obj, > ^~~ > In file included from include/drm/drm_dp_mst_helper.h:27, > from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46, > from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57, > from > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34: > include/drm/drm_atomic.h:437:6: note: declared here > void drm_atomic_private_obj_init(struct drm_device *dev, > ^~~ > > Caused by commit > > b962a12050a3 ("drm/atomic: integrate modeset lock with private objects") > > interacting with commit > > eb3dc8978596 ("drm/amd/display: Use private obj helpers for > dm_atomic_state") > > from Linus' tree (merged during the merge window). > > Its not obvious how to fix this up, so I have used the drm-misc tree > from next-20190107 for today. https://cgit.freedesktop.org/drm-tip/tree/fixups/drm-misc-next.patch?h=rerere-cache is the fixup you want. Should get baked into drm-next any moment, since the first drm-misc-next pull is already out. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi Stephen, yeah, that is a known problem. I missed the change during rebase of the revert. Please see patch "2312f9842854 drm/v3d: fix broken build" which is already in drm-misc-next and fixes the issue. Christian. Am 06.12.18 um 03:32 schrieb Stephen Rothwell: > Hi all, > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/v3d/v3d_gem.c: In function 'v3d_submit_tfu_ioctl': > drivers/gpu/drm/v3d/v3d_gem.c:719:3: error: too many arguments to function > 'drm_syncobj_replace_fence' > drm_syncobj_replace_fence(sync_out, 0, sched_done_fence); > ^ > In file included from drivers/gpu/drm/v3d/v3d_gem.c:5: > include/drm/drm_syncobj.h:134:6: note: declared here > void drm_syncobj_replace_fence(struct drm_syncobj *syncobj, >^ > > Caused by commit > >0b258ed1a219 ("drm: revert "expand replace_fence to support timeline point > v2"") > > interacting with commit > >1584f16ca96e ("drm/v3d: Add support for submitting jobs to the TFU") > > I have used the drm-misc tree from next-20181205 for today. > ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
On Mon, Jul 24, 2017 at 10:24:41AM +0200, Daniel Vetter wrote: > On Mon, Jul 24, 2017 at 2:03 AM, Stephen Rothwell> wrote: > > Hi Daniel, > > > > On Fri, 21 Jul 2017 09:24:49 +0200 Daniel Vetter > > wrote: > >> > >> How are we going to handle this now? The refactor is deeply burried in > >> drm-misc, I guess you could cherry-pick the relevant patches over. But > >> that'll probably lead to more conflicts because git will get confused. > > > > I'll just keep applying the merge resolution patch and will remind Dave > > and Greg about it during the week before the merge window opens so that > > they can let Linus know that the fix up is needed. > > Well, Greg squeezed the vbox driver into -rc2, so now we already get > to resolve this in a backmerge. And hopefully the bikeshed patches in > -staging won't interfere too badly with whatever refactoring we'll do > in drm-next. > > Greg, fyi this is the last time I'll ack a drm driver for staging. > This just doesn't work. We're spending more time here working the > -staging vs. drm-next conflicts than the actual vbox driver review has > taken me. And probly less than the cleanup for merging directly to > drm-next will end up taking. Hey, I was amazed that you all acked it, and it's why I required that you do so before I took it :) Good luck with the merges! greg k-h ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
On Mon, Jul 24, 2017 at 2:03 AM, Stephen Rothwellwrote: > Hi Daniel, > > On Fri, 21 Jul 2017 09:24:49 +0200 Daniel Vetter > wrote: >> >> How are we going to handle this now? The refactor is deeply burried in >> drm-misc, I guess you could cherry-pick the relevant patches over. But >> that'll probably lead to more conflicts because git will get confused. > > I'll just keep applying the merge resolution patch and will remind Dave > and Greg about it during the week before the merge window opens so that > they can let Linus know that the fix up is needed. Well, Greg squeezed the vbox driver into -rc2, so now we already get to resolve this in a backmerge. And hopefully the bikeshed patches in -staging won't interfere too badly with whatever refactoring we'll do in drm-next. Greg, fyi this is the last time I'll ack a drm driver for staging. This just doesn't work. We're spending more time here working the -staging vs. drm-next conflicts than the actual vbox driver review has taken me. And probly less than the cleanup for merging directly to drm-next will end up taking. Thanks, Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi Daniel, On Fri, 21 Jul 2017 09:24:49 +0200 Daniel Vetterwrote: > > How are we going to handle this now? The refactor is deeply burried in > drm-misc, I guess you could cherry-pick the relevant patches over. But > that'll probably lead to more conflicts because git will get confused. I'll just keep applying the merge resolution patch and will remind Dave and Greg about it during the week before the merge window opens so that they can let Linus know that the fix up is needed. -- Cheers, Stephen Rothwell ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi, On 21-07-17 09:24, Daniel Vetter wrote: Hi Greg, How are we going to handle this now? The refactor is deeply burried in drm-misc, I guess you could cherry-pick the relevant patches over. But that'll probably lead to more conflicts because git will get confused. Or you could just delete the set_busid hook in -staging, which renders the driver unbisectable since it'll only work when merged together with the drm trees. Removing the set_busid hook in staging (but only for -next, not for -linus) is fine with me. Regards, Hans ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi Greg, How are we going to handle this now? The refactor is deeply burried in drm-misc, I guess you could cherry-pick the relevant patches over. But that'll probably lead to more conflicts because git will get confused. Or you could just delete the set_busid hook in -staging, which renders the driver unbisectable since it'll only work when merged together with the drm trees. This is pretty much why I don't like -staging, it makes cross subsystem refactorings (which is already hard, getting 20+ driver folks to agree on stuff sometimes) unecessarily harder. Cheers, Daniel On Fri, Jul 21, 2017 at 2:08 AM, Stephen Rothwellwrote: > Hi Dave, > > The following is now applicable to the drm and staging.current trees ... > > On Wed, 19 Jul 2017 11:46:57 +1000 Stephen Rothwell > wrote: >> >> After merging the drm-misc tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> drivers/staging/vboxvideo/vbox_drv.c:235:2: error: unknown field 'set_busid' >> specified in initializer >> .set_busid = drm_pci_set_busid, >> ^ >> drivers/staging/vboxvideo/vbox_drv.c:235:15: error: 'drm_pci_set_busid' >> undeclared here (not in a function) >> .set_busid = drm_pci_set_busid, >>^ >> drivers/staging/vboxvideo/vbox_drv.c: In function 'vbox_init': >> drivers/staging/vboxvideo/vbox_drv.c:273:9: error: implicit declaration of >> function 'drm_pci_init' [-Werror=implicit-function-declaration] >> return drm_pci_init(, _pci_driver); >> ^ >> drivers/staging/vboxvideo/vbox_drv.c: In function 'vbox_exit': >> drivers/staging/vboxvideo/vbox_drv.c:278:2: error: implicit declaration of >> function 'drm_pci_exit' [-Werror=implicit-function-declaration] >> drm_pci_exit(, _pci_driver); >> ^ >> >> Caused by commits >> >> 5c484cee7ef9 ("drm: Remove drm_driver->set_busid hook") >> 10631d724def ("drm/pci: Deprecate drm_pci_init/exit completely") >> >> interacting with commit >> >> dd55d44f4084 ("staging: vboxvideo: Add vboxvideo to drivers/staging") >> >> from the staging.current tree. >> >> I have applied the following merge fix patch - please check that it >> is correct. >> >> From: Stephen Rothwell >> Date: Wed, 19 Jul 2017 11:41:01 +1000 >> Subject: [PATCH] drm: fixes for staging due to API changes in the drm core >> >> Signed-off-by: Stephen Rothwell >> --- >> drivers/staging/vboxvideo/vbox_drv.c | 5 ++--- >> 1 file changed, 2 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/staging/vboxvideo/vbox_drv.c >> b/drivers/staging/vboxvideo/vbox_drv.c >> index 92ae1560a16d..6d0600c37c0c 100644 >> --- a/drivers/staging/vboxvideo/vbox_drv.c >> +++ b/drivers/staging/vboxvideo/vbox_drv.c >> @@ -232,7 +232,6 @@ static struct drm_driver driver = { >> .lastclose = vbox_driver_lastclose, >> .master_set = vbox_master_set, >> .master_drop = vbox_master_drop, >> - .set_busid = drm_pci_set_busid, >> >> .fops = _fops, >> .irq_handler = vbox_irq_handler, >> @@ -270,12 +269,12 @@ static int __init vbox_init(void) >> if (vbox_modeset == 0) >> return -EINVAL; >> >> - return drm_pci_init(, _pci_driver); >> + return pci_register_driver(_pci_driver); >> } >> >> static void __exit vbox_exit(void) >> { >> - drm_pci_exit(, _pci_driver); >> + pci_unregister_driver(_pci_driver); >> } >> >> module_init(vbox_init); >> -- >> 2.13.2 > > -- > Cheers, > Stephen Rothwell -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi Dave, The following is now applicable to the drm and staging.current trees ... On Wed, 19 Jul 2017 11:46:57 +1000 Stephen Rothwellwrote: > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/staging/vboxvideo/vbox_drv.c:235:2: error: unknown field 'set_busid' > specified in initializer > .set_busid = drm_pci_set_busid, > ^ > drivers/staging/vboxvideo/vbox_drv.c:235:15: error: 'drm_pci_set_busid' > undeclared here (not in a function) > .set_busid = drm_pci_set_busid, >^ > drivers/staging/vboxvideo/vbox_drv.c: In function 'vbox_init': > drivers/staging/vboxvideo/vbox_drv.c:273:9: error: implicit declaration of > function 'drm_pci_init' [-Werror=implicit-function-declaration] > return drm_pci_init(, _pci_driver); > ^ > drivers/staging/vboxvideo/vbox_drv.c: In function 'vbox_exit': > drivers/staging/vboxvideo/vbox_drv.c:278:2: error: implicit declaration of > function 'drm_pci_exit' [-Werror=implicit-function-declaration] > drm_pci_exit(, _pci_driver); > ^ > > Caused by commits > > 5c484cee7ef9 ("drm: Remove drm_driver->set_busid hook") > 10631d724def ("drm/pci: Deprecate drm_pci_init/exit completely") > > interacting with commit > > dd55d44f4084 ("staging: vboxvideo: Add vboxvideo to drivers/staging") > > from the staging.current tree. > > I have applied the following merge fix patch - please check that it > is correct. > > From: Stephen Rothwell > Date: Wed, 19 Jul 2017 11:41:01 +1000 > Subject: [PATCH] drm: fixes for staging due to API changes in the drm core > > Signed-off-by: Stephen Rothwell > --- > drivers/staging/vboxvideo/vbox_drv.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/vboxvideo/vbox_drv.c > b/drivers/staging/vboxvideo/vbox_drv.c > index 92ae1560a16d..6d0600c37c0c 100644 > --- a/drivers/staging/vboxvideo/vbox_drv.c > +++ b/drivers/staging/vboxvideo/vbox_drv.c > @@ -232,7 +232,6 @@ static struct drm_driver driver = { > .lastclose = vbox_driver_lastclose, > .master_set = vbox_master_set, > .master_drop = vbox_master_drop, > - .set_busid = drm_pci_set_busid, > > .fops = _fops, > .irq_handler = vbox_irq_handler, > @@ -270,12 +269,12 @@ static int __init vbox_init(void) > if (vbox_modeset == 0) > return -EINVAL; > > - return drm_pci_init(, _pci_driver); > + return pci_register_driver(_pci_driver); > } > > static void __exit vbox_exit(void) > { > - drm_pci_exit(, _pci_driver); > + pci_unregister_driver(_pci_driver); > } > > module_init(vbox_init); > -- > 2.13.2 -- Cheers, Stephen Rothwell ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi all, On Fri, 21 Apr 2017 12:10:14 +1000 Stephen Rothwellwrote: > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/tee/tee_shm.c:87:2: error: unknown field 'kmap_atomic' specified in > initializer > .kmap_atomic = tee_shm_op_kmap_atomic, > ^ > drivers/tee/tee_shm.c:87:17: error: initialization from incompatible pointer > type [-Werror=incompatible-pointer-types] > .kmap_atomic = tee_shm_op_kmap_atomic, > ^ > drivers/tee/tee_shm.c:87:17: note: (near initialization for > 'tee_shm_dma_buf_ops.begin_cpu_access') > drivers/tee/tee_shm.c:88:2: error: unknown field 'kmap' specified in > initializer > .kmap = tee_shm_op_kmap, > ^ > drivers/tee/tee_shm.c:88:10: error: initialization from incompatible pointer > type [-Werror=incompatible-pointer-types] > .kmap = tee_shm_op_kmap, > ^ > drivers/tee/tee_shm.c:88:10: note: (near initialization for > 'tee_shm_dma_buf_ops.end_cpu_access') > > Caused by commit > > f9b67f0014cb ("dma-buf: Rename dma-ops to prevent conflict with > kunmap_atomic macro") > > interacting with commit > > 967c9cca2cc5 ("tee: generic TEE subsystem") > > from the arm-soc tree. > > I applied the following merge fix patch for today: > > From: Stephen Rothwell > Date: Fri, 21 Apr 2017 12:06:32 +1000 > Subject: [PATCH] tee: merge fix for dma-ops field name changes > > Signed-off-by: Stephen Rothwell > --- > drivers/tee/tee_shm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c > index 0be1e3e93bee..4e14c9c9cb1c 100644 > --- a/drivers/tee/tee_shm.c > +++ b/drivers/tee/tee_shm.c > @@ -84,8 +84,8 @@ static struct dma_buf_ops tee_shm_dma_buf_ops = { > .map_dma_buf = tee_shm_op_map_dma_buf, > .unmap_dma_buf = tee_shm_op_unmap_dma_buf, > .release = tee_shm_op_release, > - .kmap_atomic = tee_shm_op_kmap_atomic, > - .kmap = tee_shm_op_kmap, > + .map_atomic = tee_shm_op_kmap_atomic, > + .map = tee_shm_op_kmap, > .mmap = tee_shm_op_mmap, > }; > > -- > 2.11.0 This fixup is now needed when merging the arm-soc tree with Linus' tree. -- Cheers, Stephen Rothwell ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
On Tue, May 2, 2017 at 10:55 AM, Arnd Bergmannwrote: > On Tue, May 2, 2017 at 10:41 AM, Stephen Rothwell > wrote: >> Hi Daniel, >> >> On Tue, 2 May 2017 10:25:18 +0200 Daniel Vetter wrote: >>> >>> Since this is an all-new driver it might be best to stagger the pull >>> requests and merge the new tee subsystem (or whatever it is) after drm? >>> >>> Not sure what to best do here ... >> >> This will merge via Dave, so Dave just needs to let Linus know that a >> fix up is needed when this merges with the arm-soc stuff in Linus' tree. > > The TEE subsystem is currently on a separate branch by itself in arm-soc, > so we could easily delay that until DRM is in, and point out the resolution > here. Dave is somewhere without mail, but I chatted with him quickly and he agrees this seems simplest. drm-next main pull should go out somewhere tomorrow he said. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
On Tue, May 2, 2017 at 10:41 AM, Stephen Rothwellwrote: > Hi Daniel, > > On Tue, 2 May 2017 10:25:18 +0200 Daniel Vetter wrote: >> >> Since this is an all-new driver it might be best to stagger the pull >> requests and merge the new tee subsystem (or whatever it is) after drm? >> >> Not sure what to best do here ... > > This will merge via Dave, so Dave just needs to let Linus know that a > fix up is needed when this merges with the arm-soc stuff in Linus' tree. The TEE subsystem is currently on a separate branch by itself in arm-soc, so we could easily delay that until DRM is in, and point out the resolution here. Arnd ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi Daniel, On Tue, 2 May 2017 10:25:18 +0200 Daniel Vetterwrote: > > Since this is an all-new driver it might be best to stagger the pull > requests and merge the new tee subsystem (or whatever it is) after drm? > > Not sure what to best do here ... This will merge via Dave, so Dave just needs to let Linus know that a fix up is needed when this merges with the arm-soc stuff in Linus' tree. -- Cheers, Stephen Rothwell ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
On Mon, Apr 24, 2017 at 11:25:12AM +1000, Stephen Rothwell wrote: > Hi all, > > On Fri, 21 Apr 2017 12:10:14 +1000 Stephen Rothwell> wrote: > > > > After merging the drm-misc tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > drivers/tee/tee_shm.c:87:2: error: unknown field 'kmap_atomic' specified in > > initializer > > .kmap_atomic = tee_shm_op_kmap_atomic, > > ^ > > drivers/tee/tee_shm.c:87:17: error: initialization from incompatible > > pointer type [-Werror=incompatible-pointer-types] > > .kmap_atomic = tee_shm_op_kmap_atomic, > > ^ > > drivers/tee/tee_shm.c:87:17: note: (near initialization for > > 'tee_shm_dma_buf_ops.begin_cpu_access') > > drivers/tee/tee_shm.c:88:2: error: unknown field 'kmap' specified in > > initializer > > .kmap = tee_shm_op_kmap, > > ^ > > drivers/tee/tee_shm.c:88:10: error: initialization from incompatible > > pointer type [-Werror=incompatible-pointer-types] > > .kmap = tee_shm_op_kmap, > > ^ > > drivers/tee/tee_shm.c:88:10: note: (near initialization for > > 'tee_shm_dma_buf_ops.end_cpu_access') > > > > Caused by commit > > > > f9b67f0014cb ("dma-buf: Rename dma-ops to prevent conflict with > > kunmap_atomic macro") > > > > interacting with commit > > > > 967c9cca2cc5 ("tee: generic TEE subsystem") > > > > from the arm-soc tree. > > > > I applied the following merge fix patch for today: > > > > From: Stephen Rothwell > > Date: Fri, 21 Apr 2017 12:06:32 +1000 > > Subject: [PATCH] tee: merge fix for dma-ops field name changes > > > > Signed-off-by: Stephen Rothwell > > --- > > drivers/tee/tee_shm.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c > > index 0be1e3e93bee..4e14c9c9cb1c 100644 > > --- a/drivers/tee/tee_shm.c > > +++ b/drivers/tee/tee_shm.c > > @@ -84,8 +84,8 @@ static struct dma_buf_ops tee_shm_dma_buf_ops = { > > .map_dma_buf = tee_shm_op_map_dma_buf, > > .unmap_dma_buf = tee_shm_op_unmap_dma_buf, > > .release = tee_shm_op_release, > > - .kmap_atomic = tee_shm_op_kmap_atomic, > > - .kmap = tee_shm_op_kmap, > > + .map_atomic = tee_shm_op_kmap_atomic, > > + .map = tee_shm_op_kmap, > > .mmap = tee_shm_op_mmap, > > }; Since this is an all-new driver it might be best to stagger the pull requests and merge the new tee subsystem (or whatever it is) after drm? Not sure what to best do here ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Hi all, On Fri, 21 Apr 2017 12:10:14 +1000 Stephen Rothwellwrote: > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/tee/tee_shm.c:87:2: error: unknown field 'kmap_atomic' specified in > initializer > .kmap_atomic = tee_shm_op_kmap_atomic, > ^ > drivers/tee/tee_shm.c:87:17: error: initialization from incompatible pointer > type [-Werror=incompatible-pointer-types] > .kmap_atomic = tee_shm_op_kmap_atomic, > ^ > drivers/tee/tee_shm.c:87:17: note: (near initialization for > 'tee_shm_dma_buf_ops.begin_cpu_access') > drivers/tee/tee_shm.c:88:2: error: unknown field 'kmap' specified in > initializer > .kmap = tee_shm_op_kmap, > ^ > drivers/tee/tee_shm.c:88:10: error: initialization from incompatible pointer > type [-Werror=incompatible-pointer-types] > .kmap = tee_shm_op_kmap, > ^ > drivers/tee/tee_shm.c:88:10: note: (near initialization for > 'tee_shm_dma_buf_ops.end_cpu_access') > > Caused by commit > > f9b67f0014cb ("dma-buf: Rename dma-ops to prevent conflict with > kunmap_atomic macro") > > interacting with commit > > 967c9cca2cc5 ("tee: generic TEE subsystem") > > from the arm-soc tree. > > I applied the following merge fix patch for today: > > From: Stephen Rothwell > Date: Fri, 21 Apr 2017 12:06:32 +1000 > Subject: [PATCH] tee: merge fix for dma-ops field name changes > > Signed-off-by: Stephen Rothwell > --- > drivers/tee/tee_shm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c > index 0be1e3e93bee..4e14c9c9cb1c 100644 > --- a/drivers/tee/tee_shm.c > +++ b/drivers/tee/tee_shm.c > @@ -84,8 +84,8 @@ static struct dma_buf_ops tee_shm_dma_buf_ops = { > .map_dma_buf = tee_shm_op_map_dma_buf, > .unmap_dma_buf = tee_shm_op_unmap_dma_buf, > .release = tee_shm_op_release, > - .kmap_atomic = tee_shm_op_kmap_atomic, > - .kmap = tee_shm_op_kmap, > + .map_atomic = tee_shm_op_kmap_atomic, > + .map = tee_shm_op_kmap, > .mmap = tee_shm_op_mmap, > }; > > -- > 2.11.0 This merge fix is now needed when I merge the drm tree (as Dave merged the drm-misc tree). -- Cheers, Stephen Rothwell ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Thanks Stephen. Looks good to me. Logan On 20/04/17 08:10 PM, Stephen Rothwell wrote: > Hi all, > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/tee/tee_shm.c:87:2: error: unknown field 'kmap_atomic' specified in > initializer > .kmap_atomic = tee_shm_op_kmap_atomic, > ^ > drivers/tee/tee_shm.c:87:17: error: initialization from incompatible pointer > type [-Werror=incompatible-pointer-types] > .kmap_atomic = tee_shm_op_kmap_atomic, > ^ > drivers/tee/tee_shm.c:87:17: note: (near initialization for > 'tee_shm_dma_buf_ops.begin_cpu_access') > drivers/tee/tee_shm.c:88:2: error: unknown field 'kmap' specified in > initializer > .kmap = tee_shm_op_kmap, > ^ > drivers/tee/tee_shm.c:88:10: error: initialization from incompatible pointer > type [-Werror=incompatible-pointer-types] > .kmap = tee_shm_op_kmap, > ^ > drivers/tee/tee_shm.c:88:10: note: (near initialization for > 'tee_shm_dma_buf_ops.end_cpu_access') > > Caused by commit > > f9b67f0014cb ("dma-buf: Rename dma-ops to prevent conflict with > kunmap_atomic macro") > > interacting with commit > > 967c9cca2cc5 ("tee: generic TEE subsystem") > > from the arm-soc tree. > > I applied the following merge fix patch for today: > > From: Stephen Rothwell> Date: Fri, 21 Apr 2017 12:06:32 +1000 > Subject: [PATCH] tee: merge fix for dma-ops field name changes > > Signed-off-by: Stephen Rothwell > --- > drivers/tee/tee_shm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c > index 0be1e3e93bee..4e14c9c9cb1c 100644 > --- a/drivers/tee/tee_shm.c > +++ b/drivers/tee/tee_shm.c > @@ -84,8 +84,8 @@ static struct dma_buf_ops tee_shm_dma_buf_ops = { > .map_dma_buf = tee_shm_op_map_dma_buf, > .unmap_dma_buf = tee_shm_op_unmap_dma_buf, > .release = tee_shm_op_release, > - .kmap_atomic = tee_shm_op_kmap_atomic, > - .kmap = tee_shm_op_kmap, > + .map_atomic = tee_shm_op_kmap_atomic, > + .map = tee_shm_op_kmap, > .mmap = tee_shm_op_mmap, > }; > > ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: linux-next: build failure after merge of the drm-misc tree
Thanks for this. This and "drm/vmwgfx: merge fixup for set_config API change": Reviewed-by: Sinclair YehOn Mon, Apr 03, 2017 at 01:31:29PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c: In function 'vmw_sou_crtc_page_flip': > drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:327:8: error: too few arguments to > function 'drm_atomic_helper_page_flip' > ret = drm_atomic_helper_page_flip(crtc, new_fb, NULL, flags); > ^ > In file included from drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:31:0: > include/drm/drm_atomic_helper.h:126:5: note: declared here > int drm_atomic_helper_page_flip(struct drm_crtc *crtc, > ^ > drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c: In function 'vmw_stdu_crtc_page_flip': > drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:508:8: error: too few arguments to > function 'drm_atomic_helper_page_flip' > ret = drm_atomic_helper_page_flip(crtc, new_fb, NULL, flags); > ^ > In file included from drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:32:0: > include/drm/drm_atomic_helper.h:126:5: note: declared here > int drm_atomic_helper_page_flip(struct drm_crtc *crtc, > ^ > > Caused by commit > > 41292b1fa13a ("drm: Add acquire ctx parameter to ->page_flip(_target)") > > interacting with commits > > 904bb5e5817f ("drm/vmwgfx: Switch over to internal atomic API for STDU") > b0119cb9229d ("drm/vmwgfx: Switch over to internal atomic API for SOU and > LDU") > > from the drm tree. > > I added this merge fix patch for today: > > From: Stephen Rothwell > Date: Mon, 3 Apr 2017 13:25:55 +1000 > Subject: [PATCH] drm/vmwgfx: merge fixup for page_flip API change > > Signed-off-by: Stephen Rothwell > --- > drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 2 +- > drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c > b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c > index 02b8f2541dca..8d7dc9def7c2 100644 > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c > @@ -324,7 +324,7 @@ static int vmw_sou_crtc_page_flip(struct drm_crtc *crtc, > return -EINVAL; > > flags &= ~DRM_MODE_PAGE_FLIP_ASYNC; > - ret = drm_atomic_helper_page_flip(crtc, new_fb, NULL, flags); > + ret = drm_atomic_helper_page_flip(crtc, new_fb, NULL, flags, ctx); > if (ret) { > DRM_ERROR("Page flip error %d.\n", ret); > return ret; > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c > b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c > index e59bbcd8b226..bad31bdf09b6 100644 > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c > @@ -505,7 +505,7 @@ static int vmw_stdu_crtc_page_flip(struct drm_crtc *crtc, >* don't hand it to the helper. >*/ > flags &= ~DRM_MODE_PAGE_FLIP_ASYNC; > - ret = drm_atomic_helper_page_flip(crtc, new_fb, NULL, flags); > + ret = drm_atomic_helper_page_flip(crtc, new_fb, NULL, flags, ctx); > if (ret) { > DRM_ERROR("Page flip error %d.\n", ret); > return ret; > -- > 2.11.0 > > -- > Cheers, > Stephen Rothwell ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel