Re: [Freedreno] db820c: Input signal Out of range

2018-08-13 Thread Archit Taneja
On Monday 13 August 2018 06:11 PM, Ricardo Ribalda Delgado wrote: Hello again On Mon, Aug 13, 2018 at 2:16 PM Archit Taneja wrote: Are you seeing issues only for this mode in particular(1680x1050)? I'm wondering if the issue is specific to a frequency range. I have only tried

Re: [Freedreno] db820c: Input signal Out of range

2018-08-13 Thread Archit Taneja
Hi, On Monday 13 August 2018 02:24 PM, Ricardo Ribalda Delgado wrote: Hi Archit On Sun, Aug 12, 2018 at 9:47 AM Archit Taneja wrote: Hi, On Friday 10 August 2018 12:08 PM, Ricardo Ribalda Delgado wrote: Hello I have a screen that via edid expects the following modeline by default via

Re: [Freedreno] db820c: Input signal Out of range

2018-08-12 Thread Archit Taneja
Hi, On Friday 10 August 2018 12:08 PM, Ricardo Ribalda Delgado wrote: Hello I have a screen that via edid expects the following modeline by default via detailed mode: Modeline "1680x1050"x60.0 146.30 1680 1784 1960 2240 1050 1053 1059 1089 +hsync -vsync When the card is configured to that

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

2018-07-26 Thread Archit Taneja
Thanks, I'll give this a try. The patch looks good, anyway. Rob's queued it for msm-next. Archit Therefore, I asked the X11 people where to fix: https://www.spinics.net/lists/xorg/msg58969.html Best regards -Carsten 2018-07-24 19:33 GMT+02:00 Archit Taneja <mailto:arch...

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

2018-07-24 Thread 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 rotation is enabled. Cursor buffer can overlap down to its negative width/height. ROI has to be recalculated for negative x/y indicating us

Re: [Freedreno] [PATCH 11/21] drm/msm: higher values of pclk can exceed 32 bits when multiplied by a factor

2018-07-16 Thread Archit Taneja
On Monday 09 July 2018 11:01 PM, Sean Paul wrote: From: Abhinav Kumar Make the pclk_rate u64 to accommodate higher pixel clock rates. Changes in v4: - fixed commit message Signed-off-by: Abhinav Kumar Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/dsi/dsi_host.c | 9 ++--- 1 fi

Re: [Freedreno] [PATCH 09/21] drm/msm/mdp5: subclass msm_mdss for mdp5

2018-07-16 Thread Archit Taneja
mdss derivations to include any extensions. Add mdss helper interface (msm_mdss_funcs) to msm_mdss base for mdp5/dpu mdss specific implementation calls. This change subclasses msm_mdss for mdp5, dpu specific changes will be done separately. Reviewed-by: Archit Taneja Changes in v3

Re: [Freedreno] [PATCH 07/21] drm/msm/dsi: initialize postdiv_lock before use for 10nm pll

2018-07-16 Thread Archit Taneja
On Monday 09 July 2018 11:01 PM, Sean Paul wrote: From: Rajesh Yadav postdiv_lock spinlock was used before initialization for 10nm pll. It causes following spin_bug: "BUG: spinlock bad magic on CPU#0". Initialize spinlock before its usage. Reviewed-by: Archit Taneja

Re: [Freedreno] [PATCH 05/21] drm/msm/dsi: adjust dsi timing for dual dsi mode

2018-07-16 Thread Archit Taneja
On Monday 09 July 2018 11:01 PM, Sean Paul wrote: From: Chandan Uddaraju For dual dsi mode, the horizontal timing needs to be divided by half since both the dsi controllers will be driving this panel. Adjust the pixel clock and DSI timing accordingly. Reviewed-by: Archit Taneja Changes

Re: [Freedreno] [DPU PATCH] drm/msm/dsi: add only dsi nodes with a valid device to list

2018-06-19 Thread Archit Taneja
current implementation even inactive nodes get added resulting in creation of redundant connectors. Reviewed-by: Archit Taneja Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dsi/dsi.c | 6 +- drivers/gpu/drm/msm/dsi/dsi.h | 1 + drivers/gpu/drm/msm/dsi/dsi_host.c | 10

Re: [Freedreno] [DPU PATCH] drm/msm/dsi: set encoder mode for DRM bridge explicitly

2018-06-19 Thread Archit Taneja
On Saturday 16 June 2018 11:26 AM, Abhinav Kumar wrote: Currently, DRM bridge for DPU relies on the default video mode setting to set the encoder mode. Add an explicit call to set the encoder mode for bridges. Reviewed-by: Archit Taneja Signed-off-by: Abhinav Kumar --- drivers/gpu

Re: [Freedreno] [DPU PATCH v2 1/2] drm/panel: Add Truly NT35597 panel

2018-04-19 Thread Archit Taneja
Hi, On Saturday 14 April 2018 12:55 PM, Abhinav Kumar wrote: From: Archit Taneja You can drop DPU from the subject. Also, you'd need to add Theirry Reading for panel related patches, and Rob Herring for an Ack on the DT bindings. I think you can change the author to yourself. You'

Re: [Freedreno] [DPU PATCH v3 2/2] drm/msm/dsi: Use one connector for dual DSI mode

2018-04-19 Thread Archit Taneja
V2: -Removed Change-Id from the commit text tags. -Remove extra parentheses Changes in V3: -None Reviewed-by: Archit Taneja Signed-off-by: Chandan Uddaraju --- drivers/gpu/drm/msm/dsi/dsi.c | 3 + drivers/gpu/drm/msm/dsi/dsi.h | 1 + drivers/gpu/drm

Re: [Freedreno] [DPU PATCH v3 1/2] drm/msm/dsi: adjust dsi timing for dual dsi mode

2018-04-19 Thread Archit Taneja
On Thursday 19 April 2018 01:15 AM, Chandan Uddaraju wrote: For dual dsi mode, the horizontal timing needs to be divided by half since both the dsi controllers will be driving this panel. Adjust the pixel clock and DSI timing accordingly. Reviewed-by: Archit Taneja Changes in V2

Re: [Freedreno] [DPU PATCH 1/2] drm/panel: Add Truly Dual DSI video mode panel

2018-04-08 Thread Archit Taneja
Hi Abhinav, Thanks for posting this driver. Some comments below. On Saturday 07 April 2018 12:36 PM, Abhinav Kumar wrote: From: Archit Taneja Add support for truly dual DSI video mode panel panel used in MSM reference platforms > Signed-off-by: Archit Taneja Signed-off-by: Abhinav Ku

Re: [Freedreno] [DPU PATCH 2/2] drm/msm/dsi: implement auto PHY timing calculator for 10nm PHY

2018-04-08 Thread Archit Taneja
On Saturday 07 April 2018 01:20 PM, Abhinav Kumar wrote: Currently the DSI PHY timings are hard-coded for a specific panel for the 10nm PHY. Replace this with the auto PHY timing calculator which can calculate the PHY timings for any panel. Reviewed-by: Archit Taneja Signed-off-by

Re: [Freedreno] [PATCH v2 4/6] drm/msm: Issue queued events when disabling crtc

2018-04-01 Thread Archit Taneja
On Thursday 29 March 2018 12:36 AM, Sean Paul wrote: Ensure that any queued events are issued when disabling the crtc. This avoids timeouts when we come back and wait for dependencies (like the previous frame's flip_done). Reviewed-by: Archit Taneja Changes in v2: - None Signed-o

Re: [Freedreno] [PATCH v2 3/6] drm/msm: Mark the crtc->state->event consumed

2018-04-01 Thread Archit Taneja
On Thursday 29 March 2018 12:36 AM, Sean Paul wrote: Don't leave the event != NULL once it's consumed, this is used a signal s/used a/used as a ? to the atomic helpers that the event will be handled by the driver. Reviewed-by: Archit Taneja Changes in v2: - None Cc: Jeykuma

Re: [Freedreno] [PATCH v2 2/6] drm/msm: Refactor complete_commit() to look more the helpers

2018-04-01 Thread Archit Taneja
On Thursday 29 March 2018 12:36 AM, Sean Paul wrote: Factor out the commit_tail() portions of complete_commit() into a separate function to facilitate moving to the atomic helpers in future patches. Reviewed-by: Archit Taneja Changes in v2: - None Cc: Jeykumar Sankaran Signed-off-by

Re: [Freedreno] [PATCH v2 1/6] drm/msm: Use drm_private_obj/state instead of subclassing

2018-04-01 Thread Archit Taneja
- None Cc: Jeykumar Sankaran Cc: Archit Taneja Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 77 ++- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h | 11 +-- drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c | 12 ++- drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe

Re: [Freedreno] [PATCH] drm/msm/dsi: use correct enum in dsi_get_cmd_fmt

2018-03-24 Thread Archit Taneja
Signed-off-by: Stefan Agner Reviewed-by: Archit Taneja Archit --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 0f7324a686ca..d729b2b4b66d 1006

Re: [Freedreno] [DPU PATCH v3] drm/msm: Use atomic private_obj instead of subclassing

2018-03-20 Thread Archit Taneja
Hi, On Tuesday 20 March 2018 01:28 AM, Sean Paul wrote: Instead of subclassing atomic state, store driver private data in private_obj/state. This allows us to remove the swap_state driver hook for mdp5 and get closer to using the atomic helpers entirely. Changes in v2: - Use state->state in d

Re: [Freedreno] [PATCH 4/5] drm/msm/dsi: implement 6G v2.0+ DSI command broadcast

2018-03-12 Thread Archit Taneja
On Monday 12 March 2018 06:53 PM, Sibi S wrote: From: Archit Taneja I'm a bit uncertain about using this patch in its current state. Some reasons below. Add command broadcast support for DSI 6G v2.0+ controller on SDM845 Signed-off-by: Sibi S --- drivers/gpu/drm/msm/dsi/

Re: [Freedreno] [PATCH 3/5] drm/msm/dsi: replace version checks with helper functions

2018-03-12 Thread Archit Taneja
On Monday 12 March 2018 06:53 PM, Sibi S wrote: Replace version checks with the helper functions bound to cfg_handler for DSI v2 and DSI 6G 1.x controllers With the ops set up for DSI6G 2.x too: Reviewed-by: Archit Taneja Thanks, Archit Signed-off-by: Sibi S --- drivers/gpu/drm/msm

Re: [Freedreno] [PATCH 2/5] drm/msm/dsi: add implementation for helper functions

2018-03-12 Thread Archit Taneja
On Monday 12 March 2018 06:53 PM, Sibi S wrote: Add dsi host helper function implementation for DSI v2 and DSI 6G 1.x controllers Signed-off-by: Sibi S --- drivers/gpu/drm/msm/dsi/dsi.h | 15 +++ drivers/gpu/drm/msm/dsi/dsi_cfg.c | 44 +-- drivers/gpu/drm/msm/dsi/dsi_host.c |

Re: [Freedreno] [[RFC]DPU PATCH] drm/msm/dsi: Use one connector for dual DSI mode

2018-03-07 Thread Archit Taneja
On Friday 02 March 2018 05:57 AM, chand...@codeaurora.org wrote: On 2018-03-01 07:53, Sean Paul wrote: On Wed, Feb 28, 2018 at 04:44:49PM -0800, Chandan Uddaraju wrote: Current DSI driver uses two connectors for dual DSI case even though we only have one panel. Fix this by implementing one co

Re: [Freedreno] [PATCH] mdp5: Return error values from mdp5_cfg_init

2017-12-04 Thread Archit Taneja
On 12/01/2017 02:34 AM, Will Newton wrote: The return value of this function is a pointer checked with IS_ERR, so we should be returning an error pointer rather than NULL when the init fails. Reviewed-by: Archit Taneja Signed-off-by: Will Newton --- drivers/gpu/drm/msm/mdp/mdp5

Re: [Freedreno] [PATCH 09/15] drm/msm/mdp5: Use drm_mode_get_hv_timing() to populate plane clip rectangle

2017-11-26 Thread Archit Taneja
ided and it matches the plane crtc coordinates the user also provided. Once everyone agrees on this we can move the clip handling into drm_atomic_helper_check_plane_state(). For this and the msm change in patch # 15/15: Reviewed-by: Archit Taneja Thanks, Archit Cc: Laurent Pinchart Cc: Ro

Re: [Freedreno] [PATCH] drm/msm/mdp5: restore cursor state when enabling crtc

2017-10-20 Thread Archit Taneja
crtc(crtc); struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); - uint32_t lm = mdp5_cstate->pipeline.mixer->lm; uint32_t flush_mask = mdp_ctl_flush_mask_cursor(0); uint32_t roi_w; uint32_t roi_h; I guess we could get rid of roi_w, r

Re: [Freedreno] [PATCH] drm/msm/mdp5: don't use autosuspend

2017-10-20 Thread Archit Taneja
On 10/20/2017 05:47 PM, Rob Clark wrote: It's only likely to paper over bugs. Unlike the gpu, where we want to keep things alive a bit longer in expectation of the next frame's submit, when the display is shut down we can power off immediately. Acked-by: Archit Taneja Signed-o

Re: [Freedreno] [PATCH 2/3] drm/msm/mdp5: mark runtime_pm functions as __maybe_unused

2017-08-04 Thread Archit Taneja
On 08/03/2017 05:20 PM, Arnd Bergmann wrote: When CONFIG_PM is disabled, we get harmless warnings about unused functions: drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c:1025:12: error: 'mdp5_runtime_resume' defined but not used [-Werror=unused-function] static int mdp5_runtime_resume(struct device

Re: [Freedreno] [PATCH 14/16] drm/msm: Convert to use new iterator macros, v2.

2017-07-19 Thread Archit Taneja
ive instead of crtc_state->enable when waiting for completion. Tested-by: Archit Taneja Signed-off-by: Maarten Lankhorst Cc: Rob Clark Cc: Archit Taneja Cc: Vincent Abriou Cc: Maarten Lankhorst Cc: Russell King Cc: Rob Herring Cc: Markus Elfring Cc: Sushmita Susheelendra Cc: lin

Re: [Freedreno] [PATCH 07/12] drm/msm: Handle drm_atomic_helper_swap_state failure

2017-07-19 Thread Archit Taneja
= false, in which case it should never return an error. Handle failure with BUG_ON for this reason. Applied #2/12 and tried this out. Tested-by: Archit Taneja Signed-off-by: Maarten Lankhorst Cc: Rob Clark Cc: linux-arm-...@vger.kernel.org Cc: freedreno@lists.freedesktop.org Link: http

Re: [Freedreno] [PATCH 0/6] drm: msm: A5XX zap shader

2017-04-19 Thread Archit Taneja
: Tested-by: Archit Taneja Thanks, Archit Jordan Crouse (6): drm/msm: Add a quick and dirty PIL loader drm/msm: gpu: Use the zap shader on 5XX if we can drm/msm: Improve the zap shader drm/msm: Create a child device for the zap shader drm/msm: Move zap shader firmware name to the device

Re: [Freedreno] [PATCH 05/11] drm/msm: get an iova from the address space instead of an id

2017-02-08 Thread Archit Taneja
k; + } This check isn't needed. As of now, we don't create a fbdev device if we don't have kms initialized. Otherwise, Reviewed-by: Archit Taneja -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [Freedreno] [PATCH 1/5] drm/msm/mdp5: introduce mdp5_hw_pipe

2016-11-07 Thread Archit Taneja
On 11/7/2016 8:18 PM, Rob Clark wrote: On Mon, Nov 7, 2016 at 5:38 AM, Archit Taneja wrote: On 11/05/2016 09:55 PM, Rob Clark wrote: Split out the hardware pipe specifics from mdp5_plane. To start, the hw pipes are statically assigned to planes, but next step is to assign the hw pipes

Re: [Freedreno] [PATCH 1/5] drm/msm/mdp5: introduce mdp5_hw_pipe

2016-11-07 Thread Archit Taneja
etc, and calculate CRTCs based on that, and not number of layermixers. Maybe add a couple for writeback too. This way, we get the right number of CRTCs, and we don't rely on #LMs, since we can have 2 per crtc in the future. Reviewed-by: Archit Taneja -- Qualcomm Innovation Center, Inc.

Re: [Freedreno] [PATCH 4/5] drm/msm/mdp5: dynamically assign hw pipes to planes

2016-11-07 Thread Archit Taneja
Hi, Minor comments below. LGTM otherwise. On 11/05/2016 09:56 PM, Rob Clark wrote: (re)assign the hw pipes to planes based on required caps, and to handle situations where we could not modify an in-use plane (ie. SMP block reallocation). This means all planes advertise the superset of formats

Re: [Freedreno] [PATCH 3/5] drm/msm/mdp5: add skeletal mdp5_state

2016-11-07 Thread Archit Taneja
nit(&mdp5_kms->state_lock); + mdp5_kms->state = kzalloc(sizeof(*mdp5_kms->state), GFP_KERNEL); + if (!mdp5_kms->state) { + ret = -ENOMEM; + goto fail; + } + This would probably be better in mdp5_kms_init() since it's in

Re: [Freedreno] [PATCH 04/16] drm: msm: Flush the cache immediately after allocating pages

2016-11-07 Thread Archit Taneja
On 11/06/2016 07:45 PM, Rob Clark wrote: On Fri, Nov 4, 2016 at 6:44 PM, Jordan Crouse wrote: For reasons that are not entirely understood using dma_map_sg() for nocache/write combine buffers doesn't always successfully flush the cache after the memory is zeroed somewhere deep in the bowels o

Re: [Freedreno] [PATCH] drm/msm/mdp5: handle non-fullscreen base plane case

2016-10-15 Thread Archit Taneja
On 10/15/2016 6:38 PM, Rob Clark wrote: On Sat, Oct 15, 2016 at 8:57 AM, Archit Taneja wrote: On 10/15/2016 5:02 PM, Rob Clark wrote: On Sat, Oct 15, 2016 at 5:39 AM, Archit Taneja wrote: On 10/13/2016 10:18 PM, Rob Clark wrote: If the bottom-most layer is not fullscreen, we need

Re: [Freedreno] [PATCH] drm/msm/mdp5: handle non-fullscreen base plane case

2016-10-15 Thread Archit Taneja
On 10/15/2016 5:02 PM, Rob Clark wrote: On Sat, Oct 15, 2016 at 5:39 AM, Archit Taneja wrote: On 10/13/2016 10:18 PM, Rob Clark wrote: If the bottom-most layer is not fullscreen, we need to use the BASE mixer stage for solid fill (ie. MDP5_CTL_BLEND_OP_FLAG_BORDER_OUT). The blend_setup

Re: [Freedreno] [PATCH] drm/msm/mdp5: handle non-fullscreen base plane case

2016-10-15 Thread Archit Taneja
On 10/13/2016 10:18 PM, Rob Clark wrote: If the bottom-most layer is not fullscreen, we need to use the BASE mixer stage for solid fill (ie. MDP5_CTL_BLEND_OP_FLAG_BORDER_OUT). The blend_setup() code pretty much handled this already, we just had to figure this out in _atomic_check() and assign

Re: [Freedreno] [PATCH] drm/msm/mdp5: handle non-fullscreen base plane case

2016-10-14 Thread Archit Taneja
assign the stages appropriately. The patch looks good. I couldn't test the problematic scenario since I don't have an easy way to reproduce it, but it doesn't break regular usage (where base layer is full screen). Reviewed-by: Archit Taneja Signed-off-by: Rob Clark --- TODO

Re: [Freedreno] [PATCH] drm: msm: mdp4: mark symbols static where possible

2016-09-12 Thread Archit Taneja
o previous prototype for 'mdp4_plane_set_property' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Reviewed-by: Arch

Re: [Freedreno] [PATCH -next] drm/msm/dsi: Fix return value check in msm_dsi_host_set_display_mode()

2016-06-19 Thread Archit Taneja
Hi, On 06/18/2016 10:56 PM, weiyj...@163.com wrote: From: Wei Yongjun In case of error, the function drm_mode_duplicate() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Thanks for the fix. Reviewed-by: Archit Taneja

Re: [Freedreno] [PATCH 6/7] drm/msm: Remove redundant calls to drm_connector_register_all()

2016-06-17 Thread Archit Taneja
() and not suffer from any backwards compatibility issues with drivers not following the more rigorous init ordering. Tested-by: Archit Taneja Signed-off-by: Chris Wilson Cc: Daniel Vetter Cc: Rob Clark Cc: David Airlie Cc: dri-de...@lists.freedesktop.org Cc: linux-arm-...@vger.kernel.org Cc

Re: [Freedreno] [PATCH v2 08/20] drm: msm: Rely on the default ->best_encoder() behavior where appropriate

2016-06-08 Thread Archit Taneja
us. Works fine with msm. Tested-by: Archit Taneja Thanks, Archit Signed-off-by: Boris Brezillon --- drivers/gpu/drm/msm/edp/edp_connector.c| 10 -- drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 8 drivers/gpu/drm/msm/mdp/mdp4/mdp4_lvds_connector.c |