Re: [PATCH] drm/msm/dpu: add missing break statement for update_pending_flush_wb()

2022-05-02 Thread Abhinav Kumar
On 5/2/2022 1:45 PM, Stephen Boyd wrote: Quoting Abhinav Kumar (2022-05-01 22:39:41) Add missing break statement for dpu_hw_ctl_update_pending_flush_wb(). Otherwise this leads to below build warning. drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:273:2: warning: unannotated fall-through between

Re: [PATCH] drm/msm/dsi: fix address for second DSI PHY on SDM660

2022-05-03 Thread Abhinav Kumar
0xc996400 is the correct PHY address of DSI1. 0xc996000 which was previously used here is the controller start address of DSI1. Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_

Re: [PATCH 04/25] drm/msm/dpu: move SSPP debugfs creation to dpu_kms.c

2022-05-03 Thread Abhinav Kumar
On 2/9/2022 9:24 AM, Dmitry Baryshkov wrote: As SSPP blocks are now visible through dpu_kms->rm.sspp_blocks, move SSPP debugfs creation from dpu_plane to dpu_kms. Change is fine by itself, but is it really needed? Wouldnt it be better to keep dpu_debugfs_sspp_init in dpu_plane.c?

Re: [PATCH 08/25] drm/msm/dpu: get rid of cached flush_mask

2022-05-03 Thread Abhinav Kumar
update_pending_flush_*** ops which we have so this is fine. This change can go in independent of this series. no need to wait. Apart from a minor comments nit below, Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 25 ++- drivers/gpu/drm/msm

Re: [PATCH 05/25] drm/msm/dpu: move pipe_hw to dpu_plane_state

2022-05-03 Thread Abhinav Kumar
On 2/9/2022 9:25 AM, Dmitry Baryshkov wrote: In preparation to adding fully virtualized planes, move struct dpu_hw_pipe instance from struct dpu_plane to struct dpu_plane_state, as it will become a part of state (allocated during atomic check) rather than part of a plane (allocated during

Re: [PATCH 04/25] drm/msm/dpu: move SSPP debugfs creation to dpu_kms.c

2022-05-03 Thread Abhinav Kumar
On 5/3/2022 3:11 PM, Dmitry Baryshkov wrote: On 04/05/2022 00:34, Abhinav Kumar wrote: On 2/9/2022 9:24 AM, Dmitry Baryshkov wrote: As SSPP blocks are now visible through dpu_kms->rm.sspp_blocks, move SSPP debugfs creation from dpu_plane to dpu_kms. Change is fine by its

Re: [PATCH 06/25] drm/msm/dpu: inline dpu_plane_get_ctl_flush

2022-05-03 Thread Abhinav Kumar
On 2/9/2022 9:25 AM, Dmitry Baryshkov wrote: There is no need to keep a separate function for calling into the ctl if we already know all the details. Inline this function in the dpu_crtc.c Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1

Re: [PATCH 07/25] drm/msm/dpu: drop dpu_plane_pipe function

2022-05-03 Thread Abhinav Kumar
On 2/9/2022 9:25 AM, Dmitry Baryshkov wrote: There no more need for the dpu_plane_pipe() function, crtc code can access pstate->pipe_hw.idx directly. Signed-off-by: Dmitry Baryshkov Perhaps this can be squashed with the previous change. Otherwise, Reviewed-by: Abhinav Ku

Re: [PATCH] drm/msm: Fix fb plane offset calculation

2022-05-10 Thread Abhinav Kumar
On 5/10/2022 9:52 AM, Rob Clark wrote: From: Rob Clark The offset got dropped by accident. Fixes: d413e6f97134 ("drm/msm: Drop msm_gem_iova()") Signed-off-by: Rob Clark Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/msm_fb.c | 2 +- 1 file changed, 1 insertion(+),

Re: [RFC PATCH] drm/edid: drm_add_modes_noedid() should set lowest resolution as preferred

2022-05-10 Thread Abhinav Kumar
Hi Doug On 5/10/2022 1:53 PM, Doug Anderson wrote: Hi, On Fri, May 6, 2022 at 9:33 AM Abhinav Kumar wrote: Hi Jani On 5/6/2022 4:16 AM, Jani Nikula wrote: On Thu, 05 May 2022, Doug Anderson wrote: Ville, On Tue, Apr 26, 2022 at 1:21 PM Douglas Anderson wrote: If we're unable to read

Re: [RFC PATCH] drm/edid: drm_add_modes_noedid() should set lowest resolution as preferred

2022-05-10 Thread Abhinav Kumar
Hi Doug On 5/10/2022 2:41 PM, Doug Anderson wrote: Hi, On Tue, May 10, 2022 at 2:33 PM Abhinav Kumar wrote: Hi Doug On 5/10/2022 1:53 PM, Doug Anderson wrote: Hi, On Fri, May 6, 2022 at 9:33 AM Abhinav Kumar wrote: Hi Jani On 5/6/2022 4:16 AM, Jani Nikula wrote: On Thu, 05 May 2022

[PATCH] drm/msm/dpu: add writeback support for sc7180

2022-05-10 Thread Abhinav Kumar
and also allow using writeback functionality for other use-cases as necessary. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1

Re: [PATCH v2] drm/probe-helper: Default to 640x480 if no EDID

2022-05-10 Thread Abhinav Kumar
and it'll likely pick the highest resolution one by default. That's probably not ideal because the modes were purely guesses on the part of the Linux kernel. Let's instead set 640x480 as the "preferred" mode when we have no EDID. Signed-off-by: Douglas Anderson Reviewed-by: Abhinav Kumar

Re: [PATCH 13/25] drm/msm/dpu: pass dpu_format to _dpu_hw_sspp_setup_scaler3()

2022-05-09 Thread Abhinav Kumar
On 2/9/2022 9:25 AM, Dmitry Baryshkov wrote: There is no need to pass full dpu_hw_pipe_cfg instance to _dpu_hw_sspp_setup_scaler3, pass just struct dpu_format pointer. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 9 -

Re: [PATCH] drm/msm: Fix shutdown

2022-05-04 Thread Abhinav Kumar
On 5/4/2022 4:30 PM, Dmitry Baryshkov wrote: On Thu, 5 May 2022 at 02:29, Abhinav Kumar wrote: On 5/4/2022 3:49 PM, Douglas Anderson wrote: When rebooting on my sc7280-herobrine based device, I got a crash. Upon debugging, I found that I was in msm_drv_shutdown() and my "

Re: [PATCH] drm/msm: Fix shutdown

2022-05-04 Thread Abhinav Kumar
On 5/4/2022 3:49 PM, Douglas Anderson wrote: When rebooting on my sc7280-herobrine based device, I got a crash. Upon debugging, I found that I was in msm_drv_shutdown() and my "pdev" was the one associated with mdss_probe(). From source, I found that mdss_probe() has the line:

Re: [PATCH 2/2] drm/probe-helper: For DP, add 640x480 if all other modes are bad

2022-05-05 Thread Abhinav Kumar
sing some historical context on why this is not already done. But apart from that, LGTM. Hence, Reviewed-by: Abhinav Kumar [1] https://lore.kernel.org/r/20220426132121.RFC.1.I31ec454f8d4ffce51a7708a8092f8a6f9c929092@changeid -Doug

[PATCH] drm/msm/dpu: add DRM_MODE_ROTATE_180 back to supported rotations

2022-05-11 Thread Abhinav Kumar
it was previously passing. Restore DRM_MODE_ROTATE_180 bit to the supported rotations list. Fixes: dabfdd89eaa92 ("add inline rotation support for sc7280") Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

Re: [Freedreno] [PATCH v2] drm/msm/dp: delete DP_RECOVERED_CLOCK_OUT_EN to fix tps4

2022-08-01 Thread Abhinav Kumar
be wrongly set at tps4. Changes in v2: -- fix Fixes tag Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") Signed-off-by: Kuogee Hsieh This is a good catch ! Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH] disp/dpu1: fix repeated words in comments

2022-08-24 Thread Abhinav Kumar
Please fix the subject line . It should be drm/msm/dpu: fix repeated words in comments Also, you can add Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") On 8/23/2022 4:51 AM, Jilin Yuan wrote: Delete the redundant word 'is'. Signed-off-by: Jilin Yuan ---

Re: [PATCH] drm/msm/dp: add atomic_check to bridge ops

2022-08-25 Thread Abhinav Kumar
On 8/24/2022 1:25 AM, Dmitry Baryshkov wrote: On Wed, 24 Aug 2022 at 01:59, Abhinav Kumar wrote: On 8/23/2022 3:41 PM, Dmitry Baryshkov wrote: On Wed, 24 Aug 2022 at 01:07, Abhinav Kumar wrote: On 8/22/2022 11:33 AM, Dmitry Baryshkov wrote: On 22/08/2022 20:32, Abhinav Kumar wrote

Re: [PATCH v1 1/4] drm/msm/mdp5: stop overriding drvdata

2022-08-25 Thread Abhinav Kumar
On 8/24/2022 1:29 AM, Dmitry Baryshkov wrote: On Wed, 24 Aug 2022 at 04:25, Abhinav Kumar wrote: On 6/20/2022 2:30 PM, Dmitry Baryshkov wrote: The rest of the code expects that master's device drvdata is the struct msm_drm_private instance. Do not override the mdp5's drvdata. Fixes

Re: [PATCH] drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa()

2022-08-25 Thread Abhinav Kumar
: 937f941ca06f "drm/msm/dp: Use qmp phy for DP PLL and PHY" Signed-off-by: Kuogee Hsieh Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_catalog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_catalog.c b/drivers/gpu/drm/msm/dp/dp_catal

Re: [PATCH 1/3] drm/msm/hdmi: use devres helper for runtime PM management

2022-08-23 Thread Abhinav Kumar
On 6/16/2022 12:59 AM, Dmitry Baryshkov wrote: Use devm_pm_runtime_enable() to enable runtime PM. This way its effect will be reverted on device unbind/destruction. Fixes: 6ed9ed484d04 ("drm/msm/hdmi: Set up runtime PM for HDMI") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abh

Re: [PATCH 2/3] drm/msm/hdmi: drop constant resource names from platform config

2022-08-23 Thread Abhinav Kumar
On 6/16/2022 12:59 AM, Dmitry Baryshkov wrote: All MSM HDMI devices use "core_physical" and "qfprom_physical" names for register areas. Drop them from the platform config. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm

Re: [PATCH v2] drm/msm/dp: Silence inconsistent indent warning

2022-08-23 Thread Abhinav Kumar
t;drm/msm/dp: skip checking LINK_STATUS_UPDATED bit") Reported-by: kernel test robot Signed-off-by: Stephen Boyd Reviewed-by: Abhinav Kumar --- Changes from v1 (https://lore.kernel.org/r/20220823024356.783318-1-swb...@chromium.org) * Roll in extra whitespace fix drivers/gpu/

Re: [PATCH] drm/msm/dsi: drop the hpd worker

2022-08-23 Thread Abhinav Kumar
directly. Signed-off-by: Dmitry Baryshkov With DRM_CONNECTOR_POLL_HPD removed as part of the PANEL_BRIDGE change, this change makes sense and LGTM, hence Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dsi/dsi_host.c | 14 -- 1 file changed, 14 deletions(-) diff --git

Re: [PATCH] drm/msm/dp: Silence inconsistent indent warning

2022-08-23 Thread Abhinav Kumar
Hi Stephen On 8/22/2022 7:43 PM, Stephen Boyd wrote: Build robots complain smatch warnings: drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting Fix it. Cc: Kuogee Hsieh Fixes: ea530388e64b ("drm/msm/dp: skip checking

Re: [PATCH] drm/msm/dp: add atomic_check to bridge ops

2022-08-23 Thread Abhinav Kumar
Sorry missed one response, On 8/23/2022 3:07 PM, Abhinav Kumar wrote: On 8/22/2022 11:33 AM, Dmitry Baryshkov wrote: On 22/08/2022 20:32, Abhinav Kumar wrote: On 8/22/2022 9:49 AM, Dmitry Baryshkov wrote: On 22/08/2022 19:38, Abhinav Kumar wrote: Hi Dmitry On 8/22/2022 9:18 AM, Dmitry

Re: [PATCH] drm/msm/dpu: drop unused variable from dpu_kms_mdp_snapshot()

2022-08-23 Thread Abhinav Kumar
merge base_off with blk_off in struct dpu_hw_blk_reg_map") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.

Re: [PATCH] drm/msm/dp: add atomic_check to bridge ops

2022-08-23 Thread Abhinav Kumar
On 8/22/2022 11:33 AM, Dmitry Baryshkov wrote: On 22/08/2022 20:32, Abhinav Kumar wrote: On 8/22/2022 9:49 AM, Dmitry Baryshkov wrote: On 22/08/2022 19:38, Abhinav Kumar wrote: Hi Dmitry On 8/22/2022 9:18 AM, Dmitry Baryshkov wrote: On 17/08/2022 21:01, Kuogee Hsieh wrote: DRM

Re: [PATCH 3/3] drm/msm/hdmi: move resource allocation to probe function

2022-08-23 Thread Abhinav Kumar
On 6/16/2022 12:59 AM, Dmitry Baryshkov wrote: Rather than having all resource allocation happen in the _bind function (resulting in possible EPROBE_DEFER returns and component bind/unbind cycles) allocate and check all resources in _probe function. While we are at it, use platform_get_irq()

Re: [PATCH] drm/msm/dp: add atomic_check to bridge ops

2022-08-23 Thread Abhinav Kumar
On 8/23/2022 3:41 PM, Dmitry Baryshkov wrote: On Wed, 24 Aug 2022 at 01:07, Abhinav Kumar wrote: On 8/22/2022 11:33 AM, Dmitry Baryshkov wrote: On 22/08/2022 20:32, Abhinav Kumar wrote: On 8/22/2022 9:49 AM, Dmitry Baryshkov wrote: On 22/08/2022 19:38, Abhinav Kumar wrote: Hi Dmitry

Re: [PATCH v3 2/3] drm/msm/hdmi: make hdmi_phy_8996 OF clk provider

2022-08-23 Thread Abhinav Kumar
clk_parent_data rather parent_names to setup a link to the XO clock. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c | 25 +--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi

Re: [PATCH v1 1/4] drm/msm/mdp5: stop overriding drvdata

2022-08-23 Thread Abhinav Kumar
On 6/20/2022 2:30 PM, Dmitry Baryshkov wrote: The rest of the code expects that master's device drvdata is the struct msm_drm_private instance. Do not override the mdp5's drvdata. Fixes: 6874f48bb8b0 ("drm/msm: make mdp5/dpu devices master components") Signed-off-by: Dmitry Baryshkov Is

Re: [PATCH] drm/msm/dp: add atomic_check to bridge ops

2022-08-26 Thread Abhinav Kumar
On 8/26/2022 1:19 AM, Dmitry Baryshkov wrote: On 24/08/2022 22:16, Abhinav Kumar wrote: On 8/24/2022 1:25 AM, Dmitry Baryshkov wrote: On Wed, 24 Aug 2022 at 01:59, Abhinav Kumar wrote: On 8/23/2022 3:41 PM, Dmitry Baryshkov wrote: On Wed, 24 Aug 2022 at 01:07, Abhinav Kumar wrote

Re: [RFC] drm/bridge: adv7533: remove dynamic lane switching from adv7533 bridge

2022-08-29 Thread Abhinav Kumar
Hi Laurent On 8/26/2022 4:55 AM, Laurent Pinchart wrote: Hello, On Fri, Aug 26, 2022 at 01:17:43PM +0300, Dmitry Baryshkov wrote: On 22/08/2022 19:31, Dmitry Baryshkov wrote: On 09/08/2022 22:40, Laurent Pinchart wrote: On Mon, Aug 08, 2022 at 05:35:30PM -0700, Abhinav Kumar wrote: adv7533

[PATCH] drm/bridge: adv7533: remove dynamic lane switching from adv7533 bridge

2022-08-29 Thread Abhinav Kumar
ce RFC: - Fix commit text and add TODO comment Fixes: 62b2f026cd8e ("drm/bridge: adv7533: Change number of DSI lanes dynamically") Closes: https://gitlab.freedesktop.org/drm/msm/-/issues/16 Suggested-by: Dmitry Baryshkov Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/bridge/a

[RFC PATCH 2/3] drm/msm: filter out modes for DSI bridge having unsupported clock

2022-08-29 Thread Abhinav Kumar
be accommodated into msm_dsi_modeset_init() by passing an extra parameter but this will also affect non-dpu targets. Till we add the same logic for non-dpu chipsets, lets have this as a separate call. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 11 +++-- drivers

[RFC PATCH 0/3] Limit pluggable display modes

2022-08-29 Thread Abhinav Kumar
/documents/prod_brief_qcom_sd7c.pdf [2]: https://www.qualcomm.com/content/dam/qcomm-martech/dm-assets/documents/prod_brief_qcom_sd7c_gen2.pdf [3]: https://www.qualcomm.com/content/dam/qcomm-martech/dm-assets/documents/prod_brief_qcom_sd8cx_gen2.pdf Abhinav Kumar (3): drm/msm/dpu: add max

[RFC PATCH 3/3] drm/msm: filter out modes for DP/eDP bridge having unsupported clock

2022-08-29 Thread Abhinav Kumar
Filter out DP/eDP modes having an unsupported pixel clock by replacing the current hard-coded limit with the per chipset advertised value. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 7 --- drivers/gpu/drm/msm/dp/dp_display.c | 16

[RFC PATCH 1/3] drm/msm/dpu: add max external pixel clock for all targets

2022-08-29 Thread Abhinav Kumar
Add maximum external pixel clock for all targets based on the advertised limits for each of them. The pixel clock has been calculated from the timings mentioned in the CEA specification for CEA modes and according to the VESA CVT standard for the others. Signed-off-by: Abhinav Kumar

Re: [PATCH v3] drm/msm/dp: check hpd_state before push idle pattern at dp_bridge_disable()

2022-08-18 Thread Abhinav Kumar
Hi Stephen On 8/15/2022 10:08 AM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-08-11 08:20:01) On 8/10/2022 6:00 PM, Abhinav Kumar wrote: Even then, you do have a valid point. DRM framework should not have caused the disable path to happen without an enable. I went through the stack

Re: [PATCH] drm/msm/dp: add atomic_check to bridge ops

2022-08-22 Thread Abhinav Kumar
Hi Dmitry On 8/22/2022 9:18 AM, Dmitry Baryshkov wrote: On 17/08/2022 21:01, Kuogee Hsieh wrote: DRM commit_tails() will disable downstream crtc/encoder/bridge if both disable crtc is required and crtc->active is set before pushing a new frame downstream. There is a rare case that user space

Re: [PATCH v1 2/4] drm/msm/dpu: move resource allocation to the _probe function

2022-09-01 Thread Abhinav Kumar
specific reason to replace this? Signed-off-by: Dmitry Baryshkov With those two addressed, Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 62 + 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1

Re: [PATCH v1 4/4] drm/msm/mdp5: move resource allocation to the _probe function

2022-09-01 Thread Abhinav Kumar
art from that, this one LGTM, Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 97 +++- 1 file changed, 45 insertions(+), 52 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c b/drivers/gpu/drm/

Re: [PATCH v1 3/4] drm/msm/mdp4: move resource allocation to the _probe function

2022-09-01 Thread Abhinav Kumar
On 6/20/2022 2:30 PM, Dmitry Baryshkov wrote: To let the probe function bail early if any of the resources is unavailable, move resource allocattion from kms_init directly to the probe callback. While we are at it, replace irq_of_parse_and_map() with platform_get_irq(). Signed-off-by: Dmitry

Re: [PATCH v2 3/5] drm/msm/hdmi: move resource allocation to probe function

2022-09-07 Thread Abhinav Kumar
On 8/26/2022 2:39 AM, Dmitry Baryshkov wrote: Rather than having all resource allocation happen in the _bind function (resulting in possible EPROBE_DEFER returns and component bind/unbind cycles) allocate and check all resources in _probe function. While we are at it, use platform_get_irq()

Re: [PATCH v2 5/5] drm/msm/hdmi: move msm_hdmi_get_phy() to msm_hdmi_dev_probe()

2022-09-07 Thread Abhinav Kumar
and then failing the bind() with -EPROBE_DEFER. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/hdmi/hdmi.c | 40 ++--- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm

Re: [PATCH] drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training

2022-09-07 Thread Abhinav Kumar
On 9/7/2022 10:21 AM, Kuogee Hsieh wrote: DOWNSPREAD_CTRL (0x107) shall be cleared to 0 upon power-on reset or an upstream device disconnect. This patch will enforce this rule by always cleared DOWNPREAD_CTRL register to 0 before start link training. At rare case that DP MSA timing parameters

Re: [Freedreno] [PATCH v2 3/5] drm/msm/hdmi: move resource allocation to probe function

2022-09-07 Thread Abhinav Kumar
On 9/7/2022 11:54 AM, Abhinav Kumar wrote: On 8/26/2022 2:39 AM, Dmitry Baryshkov wrote: Rather than having all resource allocation happen in the _bind function (resulting in possible EPROBE_DEFER returns and component bind/unbind cycles) allocate and check all resources in _probe function

Re: [Freedreno] [PATCH v2 3/5] drm/msm/hdmi: move resource allocation to probe function

2022-09-07 Thread Abhinav Kumar
On 9/7/2022 12:09 PM, Abhinav Kumar wrote: On 9/7/2022 11:54 AM, Abhinav Kumar wrote: On 8/26/2022 2:39 AM, Dmitry Baryshkov wrote: Rather than having all resource allocation happen in the _bind function (resulting in possible EPROBE_DEFER returns and component bind/unbind cycles

Re: [PATCH v2 4/5] drm/msm/hdmi: don't take extra reference on PHY device

2022-09-07 Thread Abhinav Kumar
On 8/26/2022 2:39 AM, Dmitry Baryshkov wrote: The of_find_device_by_node() already increments the device's usage count, so there is no need to increment it again using get_device(). Drop this extra get_device(). Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu

Re: [PATCH v6 1/4] drm/msm: clean event_thread->worker in case of an error

2022-09-07 Thread Abhinav Kumar
msm: use kthread_create_worker instead of kthread_run") Signed-off-by: Dmitry Baryshkov the change itself LGTM, Reviewed-by: Abhinav Kumar One minor nit below --- drivers/gpu/drm/msm/msm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/dr

Re: [Freedreno] [PATCH v2.5] drm/msm/dsi: switch to DRM_PANEL_BRIDGE

2022-08-27 Thread Abhinav Kumar
On 8/22/2022 10:53 AM, Dmitry Baryshkov wrote: On 15/07/2022 00:54, Abhinav Kumar wrote: On 7/12/2022 6:22 AM, Dmitry Baryshkov wrote: Currently the DSI driver has two separate paths: one if the next device in a chain is a bridge and another one if the panel is connected directly

Re: [PATCH] drm/msm/dsi: Remove use of device_node in dsi_host_parse_dt()

2022-08-30 Thread Abhinav Kumar
Chancellor Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dsi/dsi_host.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 57a4c0fa614b..7fbf391c024f 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_ho

Re: [PATCH v1 1/4] drm/msm/mdp5: stop overriding drvdata

2022-08-31 Thread Abhinav Kumar
On 8/26/2022 7:23 AM, Dmitry Baryshkov wrote: On 24/08/2022 20:20, Abhinav Kumar wrote: On 8/24/2022 1:29 AM, Dmitry Baryshkov wrote: On Wed, 24 Aug 2022 at 04:25, Abhinav Kumar wrote: On 6/20/2022 2:30 PM, Dmitry Baryshkov wrote: The rest of the code expects that master's device

Re: [PATCH] drm/msm/dpu: drop unused memory allocation

2022-08-22 Thread Abhinav Kumar
Reported-by: Dan Carpenter Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catal

Re: [Freedreno] [PATCH] drm/msm/dsi: Set panel orientation when directly connected

2022-08-18 Thread Abhinav Kumar
Hi Doug On 8/17/2022 1:48 PM, Doug Anderson wrote: Hi, On Wed, Jul 20, 2022 at 3:42 PM Doug Anderson wrote: Hi, On Wed, Jul 20, 2022 at 1:46 PM Rob Clark wrote: On Fri, Jul 8, 2022 at 8:25 AM Doug Anderson wrote: Hi, On Wed, Jul 6, 2022 at 12:14 PM Stephen Boyd wrote: Set the

Re: [PATCH] drm/msm/dp: add atomic_check to bridge ops

2022-08-22 Thread Abhinav Kumar
On 8/22/2022 9:49 AM, Dmitry Baryshkov wrote: On 22/08/2022 19:38, Abhinav Kumar wrote: Hi Dmitry On 8/22/2022 9:18 AM, Dmitry Baryshkov wrote: On 17/08/2022 21:01, Kuogee Hsieh wrote: DRM commit_tails() will disable downstream crtc/encoder/bridge if both disable crtc is required and crtc

Re: [PATCH v2 09/10] drm/msm/dp: drop modeset sanity checks

2022-09-28 Thread Abhinav Kumar
On 9/28/2022 5:24 AM, Johan Hovold wrote: On Tue, Sep 27, 2022 at 11:42:53AM -0700, Abhinav Kumar wrote: On 9/27/2022 12:14 AM, Johan Hovold wrote: On Mon, Sep 26, 2022 at 11:17:20AM -0700, Abhinav Kumar wrote: On 9/13/2022 1:53 AM, Johan Hovold wrote: Drop the overly defensive modeset

Re: [PATCH v2 09/10] drm/msm/dp: drop modeset sanity checks

2022-09-27 Thread Abhinav Kumar
On 9/27/2022 12:14 AM, Johan Hovold wrote: On Mon, Sep 26, 2022 at 11:17:20AM -0700, Abhinav Kumar wrote: On 9/13/2022 1:53 AM, Johan Hovold wrote: Drop the overly defensive modeset sanity checks of function parameters which have already been checked or used by the callers. Reviewed

Re: [Freedreno] [PATCH v2 10/10] drm/msm/dsi: drop modeset sanity checks

2022-09-27 Thread Abhinav Kumar
On 9/27/2022 12:16 AM, Johan Hovold wrote: On Mon, Sep 26, 2022 at 11:21:38AM -0700, Abhinav Kumar wrote: On 9/13/2022 1:53 AM, Johan Hovold wrote: Drop the overly defensive modeset sanity checks of function parameters which have already been checked or used by the callers. Reviewed

Re: [Freedreno] [PATCH v3 06/10] drm/msm/dsi: Migrate to drm_dsc_compute_rc_parameters()

2022-10-17 Thread Abhinav Kumar
On 10/17/2022 6:37 AM, Caleb Connolly wrote: On 17/10/2022 09:59, Marijn Suijten wrote: On 2022-10-13 09:02:44, Abhinav Kumar wrote: On 10/13/2022 2:36 AM, Marijn Suijten wrote: On 2022-10-12 16:03:06, Abhinav Kumar wrote: [..] But I would like to hold back this change till Vinod

Re: [PATCH] drm/edid: Dump the EDID when drm_edid_get_panel_id() has an error

2022-10-25 Thread Abhinav Kumar
Hi Doug On 10/24/2022 1:28 PM, Doug Anderson wrote: Hi, On Fri, Oct 21, 2022 at 2:18 PM Abhinav Kumar wrote: Hi Doug On 10/21/2022 1:07 PM, Douglas Anderson wrote: If we fail to get a valid panel ID in drm_edid_get_panel_id() we'd like to see the EDID that was read so we have a chance

Re: [PATCH v4 00/10] drm/msm: Fix math issues in MSM DSC implementation

2022-10-28 Thread Abhinav Kumar
On 10/28/2022 1:09 PM, Marijn Suijten wrote: Hi Abhinav, On 2022-10-28 11:33:21, Abhinav Kumar wrote: Hi Marijn On 10/26/2022 11:28 AM, Marijn Suijten wrote: Various removals of complex yet unnecessary math, fixing all uses of drm_dsc_config::bits_per_pixel to deal with the fact

Re: [PATCH v4 00/10] drm/msm: Fix math issues in MSM DSC implementation

2022-10-28 Thread Abhinav Kumar
Hi Marijn On 10/26/2022 11:28 AM, Marijn Suijten wrote: Various removals of complex yet unnecessary math, fixing all uses of drm_dsc_config::bits_per_pixel to deal with the fact that this field includes four fractional bits, and finally making sure that range_bpg_offset contains values 6-bits

Re: [PATCH 1/2] drm/msm/dsi: add a helper method to compute the dsi byte clk

2022-10-27 Thread Abhinav Kumar
On 10/27/2022 10:35 AM, Dmitry Baryshkov wrote: On 22/09/2022 03:49, Abhinav Kumar wrote: Re-arrange the dsi_calc_pclk method to two helpers, one to compute the DSI byte clk and the other to compute the pclk. This makes the separation of the two clean and also allows clients to compute

Re: [Freedreno] [PATCH v3] drm/msm/mdp5: stop overriding drvdata

2022-10-27 Thread Abhinav Kumar
On 10/24/2022 8:26 AM, Dmitry Baryshkov wrote: The rest of the code expects that master's device drvdata is the struct msm_drm_private instance. Do not override the mdp5's drvdata. Fixes: 6874f48bb8b0 ("drm/msm: make mdp5/dpu devices master components") Signed-off-by: Dmitry Baryshkov ---

Re: [Freedreno] [PATCH v3] drm/msm/mdp5: stop overriding drvdata

2022-10-27 Thread Abhinav Kumar
On 10/27/2022 12:56 PM, Dmitry Baryshkov wrote: On 27/10/2022 21:30, Abhinav Kumar wrote: On 10/24/2022 8:26 AM, Dmitry Baryshkov wrote: The rest of the code expects that master's device drvdata is the struct msm_drm_private instance. Do not override the mdp5's drvdata. Fixes

Re: [PATCH v2 00/10] drm/msm: probe deferral fixes

2022-10-21 Thread Abhinav Kumar
Hi Johan On 10/20/2022 11:27 PM, Johan Hovold wrote: On Tue, Sep 20, 2022 at 11:06:30AM +0200, Johan Hovold wrote: On Tue, Sep 13, 2022 at 10:53:10AM +0200, Johan Hovold wrote: The MSM DRM driver is currently broken in multiple ways with respect to probe deferral. Not only does the driver

Re: [PATCH] drm/edid: Dump the EDID when drm_edid_get_panel_id() has an error

2022-10-21 Thread Abhinav Kumar
Hi Doug On 10/21/2022 1:07 PM, Douglas Anderson wrote: If we fail to get a valid panel ID in drm_edid_get_panel_id() we'd like to see the EDID that was read so we have a chance of understanding what's wrong. There's already a function for that, so let's call it in the error case. NOTE:

Re: [PATCH v2] drm/msm/mdp5: stop overriding drvdata

2022-10-21 Thread Abhinav Kumar
nents") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- Abhinav, Rob, please pick this for -fixes. This is an updated version of [1]. Fixed the read_mdp_hw_revision() function. PM runtime isn't available at the moment, as priv->kms is not set. Can you split them into two

Re: [PATCH v4] drm/msm/dp: add atomic_check to bridge ops

2022-09-20 Thread Abhinav Kumar
l access to it should be forbidden. +* After that this piece of code can be removed." +*/ You have left an extra " here. Please drop that. Otherwise, this LGTM Reviewed-by: Abhinav Kumar + if (bridge->ops & DRM_BRIDGE_OP_HPD) + return (dp->

Re: [Freedreno] [PATCH] drm/msm: Fix return type of mdp4_lvds_connector_mode_valid

2022-09-13 Thread Abhinav Kumar
/ClangBuiltLinux/linux/issues/1703 Cc: l...@lists.linux.dev Signed-off-by: Nathan Huckleberry From what I can see this one has been this way since lvds support was added. Hence this should have Fixes: 3e87599b68e7 ("drm/msm/mdp4: add LVDS panel support") Reviewed-by: Abh

Re: [PATCH v2] drm/msm/dp: add atomic_check to bridge ops

2022-09-12 Thread Abhinav Kumar
On 9/9/2022 10:16 AM, Kuogee Hsieh wrote: DRM commit_tails() will disable downstream crtc/encoder/bridge if both disable crtc is required and crtc->active is set before pushing a new frame downstream. There is a rare case that user space display manager issue an extra screen update

Re: [PATCH 0/7] drm/msm: probe deferral fixes

2022-09-12 Thread Abhinav Kumar
Adding kuogee to this series Hi Johan Thanks for posting this. We will take a look at this, re-validate and give our reviews/tested-bys. Thanks Abhinav On 9/12/2022 8:40 AM, Johan Hovold wrote: The MSM DRM is currently broken in multiple ways with respect to probe deferral. Not only does

Re: [PATCH] drm/msm/mdp5: fix kernel panic during shutdown

2022-09-12 Thread Abhinav Kumar
Hi Fabien Thanks for the patch. I believe this issue should get resolved with https://patchwork.freedesktop.org/patch/490326/ as this avoids the override. I have acked that change and will pick it up for the next fixes. Thanks Abhinav On 9/9/2022 8:28 AM, Fabien Parent wrote: The kernel

Re: [RFC PATCH 2/3] drm/msm: filter out modes for DSI bridge having unsupported clock

2022-09-08 Thread Abhinav Kumar
Hi Dmitry On 9/8/2022 7:46 AM, Dmitry Baryshkov wrote: On 30/08/2022 06:33, Abhinav Kumar wrote: DSI interface used with a bridge chip connected to an external display is subject to the same pixel clock limits as one which is natively pluggable like DisplayPort. Hence filter out DSI modes

Re: [RFC PATCH 2/3] drm/msm: filter out modes for DSI bridge having unsupported clock

2022-09-08 Thread Abhinav Kumar
Hi Stephen On 9/7/2022 6:06 PM, Stephen Boyd wrote: Quoting Abhinav Kumar (2022-08-29 20:33:08) diff --git a/drivers/gpu/drm/msm/dsi/dsi.c b/drivers/gpu/drm/msm/dsi/dsi.c index 39bbabb5daf6..3a06a157d1b1 100644 --- a/drivers/gpu/drm/msm/dsi/dsi.c +++ b/drivers/gpu/drm/msm/dsi/dsi.c @@ -265,6

Re: [RFC PATCH 3/3] drm/msm: filter out modes for DP/eDP bridge having unsupported clock

2022-09-08 Thread Abhinav Kumar
On 9/7/2022 6:12 PM, Stephen Boyd wrote: Quoting Abhinav Kumar (2022-08-29 20:33:09) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index bfd0aeff3f0d..8b91d8adf921 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp

Re: [PATCH v2 09/10] drm/msm/dp: drop modeset sanity checks

2022-09-26 Thread Abhinav Kumar
On 9/13/2022 1:53 AM, Johan Hovold wrote: Drop the overly defensive modeset sanity checks of function parameters which have already been checked or used by the callers. Reviewed-by: Dmitry Baryshkov Signed-off-by: Johan Hovold The change LGTM, hence Reviewed-by: Abhinav Kumar I think

Re: [Freedreno] [PATCH v2 10/10] drm/msm/dsi: drop modeset sanity checks

2022-09-26 Thread Abhinav Kumar
On 9/13/2022 1:53 AM, Johan Hovold wrote: Drop the overly defensive modeset sanity checks of function parameters which have already been checked or used by the callers. Reviewed-by: Dmitry Baryshkov Signed-off-by: Johan Hovold The change LGTM, hence Reviewed-by: Abhinav Kumar I think

Re: [PATCH] drm/msm/dpu: use DEFINE_SHOW_ATTRIBUTE to simplify dpu_regset32

2022-09-26 Thread Abhinav Kumar
On 9/22/2022 7:21 AM, Liu Shixin wrote: Use DEFINE_SHOW_ATTRIBUTE helper macro to simplify the code. No functional change. Signed-off-by: Liu Shixin Looks reasonable to me Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 18 +++--- 1 file changed

[PATCH 2/2] drm/msm/dsi: implement opp table based check for dsi_mgr_bridge_mode_valid()

2022-09-21 Thread Abhinav Kumar
this check otherwise it will break bootup on those devices. Closes: https://gitlab.freedesktop.org/drm/msm/-/issues/15 Reported-by: Rob Clark Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers

[PATCH 1/2] drm/msm/dsi: add a helper method to compute the dsi byte clk

2022-09-21 Thread Abhinav Kumar
Re-arrange the dsi_calc_pclk method to two helpers, one to compute the DSI byte clk and the other to compute the pclk. This makes the separation of the two clean and also allows clients to compute and use the dsi byte clk separately. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dsi

Re: [Freedreno] [PATCH 1/5] drm/msm/dsi: Remove useless math in DSC calculation

2022-10-04 Thread Abhinav Kumar
On 10/1/2022 12:08 PM, Marijn Suijten wrote: Multiplying a value by 2 and adding 1 to it always results in a value that is uneven, and that 1 gets truncated immediately when performing integer division by 2 again. There is no "rounding" possible here. Fixes: b9080324d6ca ("drm/msm/dsi: add

Re: [PATCH 2/5] drm/msm/dsi: Remove repeated calculation of slice_per_intf

2022-10-04 Thread Abhinav Kumar
On 10/1/2022 12:08 PM, Marijn Suijten wrote: slice_per_intf is already computed for intf_width, which holds the same value as hdisplay. Fixes: 08802f515c3c ("drm/msm/dsi: Add support for DSC configuration") Signed-off-by: Marijn Suijten LGTM, Reviewed-by: Abhinav Kumar ---

Re: [PATCH v5 1/3] drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training

2022-09-29 Thread Abhinav Kumar
On 9/12/2022 12:25 PM, Dmitry Baryshkov wrote: On 12/09/2022 22:21, Kuogee Hsieh wrote: On 9/12/2022 11:39 AM, Dmitry Baryshkov wrote: On 12/09/2022 19:23, Kuogee Hsieh wrote: DOWNSPREAD_CTRL (0x107) shall be cleared to 0 upon power-on reset or an upstream device disconnect. This patch

Re: [PATCH -next] drm/msm: Remove unused variables 'top'

2022-10-04 Thread Abhinav Kumar
On 10/9/2022 7:40 PM, Chen Zhongjin wrote: 'commit 1e5df24b996c ("drm/msm/dpu: drop length from struct dpu_hw_blk_reg_map")' 'commit 9403f9a42c88 ("drm/msm/dpu: merge base_off with blk_off in struct dpu_hw_blk_reg_map")' These commits had merged hw.blk_off and hw.blk_off to mdp. So we don't

Re: [PATCH 4/5] drm/msm/dpu1: Account for DSC's bits_per_pixel having 4 fractional bits

2022-10-04 Thread Abhinav Kumar
. That being said, this patch LGTM Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c index f2ddcfb

Re: [PATCH 5/5] drm/dsc: Prevent negative BPG offsets from shadowing adjacent bitfields

2022-10-04 Thread Abhinav Kumar
On 10/1/2022 12:08 PM, Marijn Suijten wrote: msm's dsi_host specifies negative BPG offsets which fill the full 8 bits of a char thanks to two's complement: this however results in those bits bleeding into the next parameter when the field is only expected to contain 6-bit wide values. As a

Re: [PATCH 5/5] drm/dsc: Prevent negative BPG offsets from shadowing adjacent bitfields

2022-10-04 Thread Abhinav Kumar
On 10/4/2022 2:57 PM, Marijn Suijten wrote: On 2022-10-04 13:22:25, Abhinav Kumar wrote: On 10/1/2022 12:08 PM, Marijn Suijten wrote: msm's dsi_host specifies negative BPG offsets which fill the full 8 bits of a char thanks to two's complement: this however results in those bits bleeding

Re: [PATCH v3 05/10] drm/msm/dsi: Appropriately set dsc->mux_word_size based on bpc

2022-10-12 Thread Abhinav Kumar
to be correct across multiple bpc's). Yes, this seems to hard-code it to 8bpc/10bpc. So your code-change is fine. Reviewed-by: Abhinav Kumar Fixes: b9080324d6ca ("drm/msm/dsi: add support for dsc data") Signed-off-by: Marijn Suijten --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- 1 fi

Re: [Freedreno] [PATCH v3 06/10] drm/msm/dsi: Migrate to drm_dsc_compute_rc_parameters()

2022-10-12 Thread Abhinav Kumar
On 10/9/2022 11:50 AM, Marijn Suijten wrote: As per the FIXME this code is entirely duplicate with what is already provided inside drm_dsc_compute_rc_parameters(), and it is yet unknown why this comment was put in place instead of resolved from the get-go. Not only does it save on

Re: [PATCH v3 07/10] drm/msm/dsi: Disallow 8 BPC DSC configuration for alternative BPC values

2022-10-12 Thread Abhinav Kumar
On 10/9/2022 11:51 AM, Marijn Suijten wrote: According to the `/* bpc 8 */` comment below only values for a bits_per_component of 8 are currently hardcoded in place. This is further confirmed by downstream sources [1] containing different constants for other BPC values (and different

Re: [PATCH v3 08/10] drm/msm/dsi: Account for DSC's bits_per_pixel having 4 fractional bits

2022-10-12 Thread Abhinav Kumar
bitshift to get at this integer value. Fixes: b9080324d6ca ("drm/msm/dsi: add support for dsc data") Signed-off-by: Marijn Suijten Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dsi/dsi_host.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/d

Re: [PATCH v3 10/10] drm/msm/dsi: Prevent signed BPG offsets from bleeding into adjacent bits

2022-10-12 Thread Abhinav Kumar
: b9080324d6ca ("drm/msm/dsi: add support for dsc data") Signed-off-by: Marijn Suijten Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dsi/dsi_host.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/

Re: [Freedreno] [PATCH v3 06/10] drm/msm/dsi: Migrate to drm_dsc_compute_rc_parameters()

2022-10-13 Thread Abhinav Kumar
On 10/13/2022 2:36 AM, Marijn Suijten wrote: On 2022-10-12 16:03:06, Abhinav Kumar wrote: On 10/9/2022 11:50 AM, Marijn Suijten wrote: As per the FIXME this code is entirely duplicate with what is already provided inside drm_dsc_compute_rc_parameters(), and it is yet unknown why

Re: [PATCH v2 1/7] drm/msm/dsi: Remove useless math in DSC calculations

2022-10-05 Thread Abhinav Kumar
16 is used to store a multiplication of bits_per_pixel by 16 which is only ever read to immediately be divided by 16 again, and is elided in much the same way. Fixes: b9080324d6ca ("drm/msm/dsi: add support for dsc data") Signed-off-by: Marijn Suijten Reviewed-by: Abhinav Kumar --- dri

<    4   5   6   7   8   9   10   11   12   13   >