Re: [PATCH v2] drm/msm/display: negative x/y in cursor move

2018-07-26 Thread Carsten Behling
ics.net/lists/xorg/msg58969.html Best regards -Carsten 2018-07-24 19:33 GMT+02:00 Archit Taneja : > Hi, > > On Tuesday 17 July 2018 04:33 AM, Carsten Behling wrote: > >> modesetting X11 driver may provide negative x/y cordinates in >> mdp5_crtc_cursor_move call when ro

[PATCH] drm/msm/display: negative x/y in cursor move

2018-07-17 Thread Carsten Behling
must be set in MDP5_LM_CURSOR_XY_SRC_Y MDP5_LM_CURSOR_XY_SRC_X. Signed-off-by: Carsten Behling --- drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 51 ++- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c b/drivers/gpu

[PATCH v2] drm/msm/display: negative x/y in cursor move

2018-07-17 Thread Carsten Behling
must be set in MDP5_LM_CURSOR_XY_SRC_Y MDP5_LM_CURSOR_XY_SRC_X. Signed-off-by: Carsten Behling --- Changes in v2: - fixed format specifier in debug message drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 51 ++- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git

Re: drm/msm/mdp5: negative x/y in cursor move

2018-07-11 Thread Carsten Behling
, @@ -918,8 +943,8 @@ static int mdp5_crtc_cursor_move(struct if (unlikely(!crtc->state->enable)) return 0; - mdp5_crtc->cursor.x = x = max(x, 0); - mdp5_crtc->cursor.y = y = max(y, 0); + mdp5_crtc->cursor.x = x = max(x, border_x); + mdp5_crtc->cursor.y = y = max(y, border_y); get

drm/msm/mdp5: negative x/y in cursor move

2018-07-11 Thread Carsten Behling
Hi, modesetting X11 driver may provide negative x/y cordinates in mdp5_crtc_cursor_move(...) call when rotation is enabled. Because of static int mdp5_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) { ... mdp5_crtc->cursor.x = x = max(x, 0); mdp5_crtc->cursor.y = y = max(y, 0); ... } x/y

Re: Fwd: DRM MIPI DSI device and I2C device?

2018-04-05 Thread Carsten Behling
> 2018-04-05 13:39 GMT+02:00 Laurent Pinchart < laurent.pinch...@ideasonboard.com>: > Hi Andrzej, > > On Thursday, 5 April 2018 14:28:51 EEST Andrzej Hajda wrote: >> On 05.04.2018 12:28, Laurent Pinchart wrote: >>> On Wednesday, 4 April 2018 11:41:05 EES

Fwd: DRM MIPI DSI device and I2C device?

2018-04-05 Thread Carsten Behling
> Hi, > > I would like to write a DRM bridge driver that is an I2C device and a DRM MIPI DSI device. > > It looks like that both - 'i2c-core.c: of_i2c_register_devices' and 'drm_mipi_dsi.c: mipi_dsi_host_register' are registering their devices by iterating over devicetree child nodes with

DRM MIPI DSI device and I2C device?

2018-04-04 Thread Carsten Behling
Hi, I would like to write a DRM bridge driver that is an I2C device and a DRM MIPI DSI device. It looks like that both - 'i2c-core.c: of_i2c_register_devices' and 'drm_mipi_dsi.c: mipi_dsi_host_register' are registering their devices by iterating over devicetree child nodes with