merged.

Bruce

In message: [linux-yocto] [kernel v5.10/standard/nxp-sdk-5.4/nxp-imx8][PATCH] 
drm/bridge: nwl-dsi: Remove the bogus possible_clones setup
on 01/06/2021 Xiaolei Wang wrote:

> reference commit 1834e1dfacca15d13f14875dd3095d3b2c719d28 from
> https://source.codeaurora.org/external/imx/linux-imx
> 
> It's not at all clear what cloning options this driver supports.
> So let's just clear possible_clones instead of setting it to some
> bogus value. Otherwise, the following calltrace will appear
> 
> WARNING: CPU: 0 PID: 93 at drivers/gpu/drm/drm_mode_config.c:594 
> drm_mode_config_validate+0x150/0x270
> Modules linked in:
> CPU: 0 PID: 93 Comm: kworker/0:4 Not tainted 5.10.37-yocto-standard #1
> Hardware name: Freescale i.MX8QM MEK (DT)
> Workqueue: events deferred_probe_work_func
> pstate: 00000005 (nzcv daif -PAN -UAO -TCO BTYPE=--)
> pc : drm_mode_config_validate+0x150/0x270
> lr : drm_mode_config_validate+0x150/0x270
> sp : ffff8000121fb9c0
> x29: ffff8000121fb9d0 x28: 0000000000000000
> x27: ffff000812fbf700 x26: 0000000000000003
> x25: 0000000000000001 x24: ffff00081387c2d8
> x23: ffff00081387c2d8 x22: ffff0008111cdc80
> x21: ffff800011207f60 x20: ffff800011207e88
> x19: ffff00081387c2d0 x18: 0000000000000020
> x17: 0000000000000000 x16: ffff800012880000
> x15: ffff0008111d1f78 x14: 3a5245444f434e45
> x13: 5b203a73656e6f6c x12: 736f70205d373431
> x11: 2d4953443a373431 x10: ffff8000118225a8
> x9 : ffff8000100aa0e0 x8 : ffff8000117ca5a8
> x7 : ffff8000118225a8 x6 : 0000000000000000
> x5 : 0000000000000000 x4 : 0000000000000000
> x3 : 00000000ffffffff x2 : 0000000000000001
> x1 : 1642d4bffcd6e700 x0 : 0000000000000000
> Call trace:
>  drm_mode_config_validate+0x150/0x270
>  drm_dev_register+0x188/0x220
>  imx_drm_bind+0x100/0x150
>  try_to_bring_up_master+0x16c/0x1d4
>  __component_add+0xac/0x174
>  component_add+0x20/0x30
>  nwl_dsi_probe+0x4b4/0x740
>  platform_drv_probe+0x60/0xb4
>  really_probe+0xf0/0x4b4
>  driver_probe_device+0x64/0xcc
>  __device_attach_driver+0xb4/0x110
>  bus_for_each_drv+0x84/0xd4
>  __device_attach+0xe4/0x18c
>  device_initial_probe+0x20/0x30
>  bus_probe_device+0xa4/0xb0
>  deferred_probe_work_func+0x94/0xcc
>  process_one_work+0x1f0/0x4a0
>  worker_thread+0x160/0x46c
>  kthread+0x150/0x160
>  ret_from_fork+0x10/0x3c
> ---[ end trace f0b0046787d55060 ]---
> 
> Signed-off-by: Xiaolei Wang <[email protected]>
> ---
>  drivers/gpu/drm/bridge/nwl-dsi/nwl-drv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/bridge/nwl-dsi/nwl-drv.c 
> b/drivers/gpu/drm/bridge/nwl-dsi/nwl-drv.c
> index e260f4826d8d..959e9d507949 100644
> --- a/drivers/gpu/drm/bridge/nwl-dsi/nwl-drv.c
> +++ b/drivers/gpu/drm/bridge/nwl-dsi/nwl-drv.c
> @@ -1133,7 +1133,7 @@ static int nwl_dsi_bind(struct device *dev,
>       DRM_DEV_DEBUG_DRIVER(dev, "id = %s\n", (dsi->instance)?"DSI1":"DSI0");
>  
>       dsi->encoder.possible_crtcs = crtc_mask;
> -     dsi->encoder.possible_clones = ~0;
> +     dsi->encoder.possible_clones = 0;
>  
>       drm_encoder_helper_add(&dsi->encoder,
>                              &nwl_dsi_encoder_helper_funcs);
> -- 
> 2.25.1
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9930): 
https://lists.yoctoproject.org/g/linux-yocto/message/9930
Mute This Topic: https://lists.yoctoproject.org/mt/83227721/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to