Re: [Freedreno] [PATCH v2] drm/msm/dp: add logs across DP driver for ease of debugging

2021-07-08 Thread kernel test robot
Hi maitreye, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master v5.13 next-20210709] [cannot apply to drm/drm-next] [If your

Re: [Freedreno] [PATCH] drm/msm/dp: Remove unused variable

2021-07-08 Thread abhinavk
On 2021-07-08 19:48, Souptick Joarder wrote: Kernel test roobot throws below warning -> drivers/gpu/drm/msm/dp/dp_display.c:1017:21: warning: variable 'drm' set but not used [-Wunused-but-set-variable] Removed unused variable drm. Reported-by: kernel test robot Signed-off-by: Souptick Joarder

[Freedreno] [PATCH] drm/msm/dp: Remove unused variable

2021-07-08 Thread Souptick Joarder
Kernel test roobot throws below warning -> drivers/gpu/drm/msm/dp/dp_display.c:1017:21: warning: variable 'drm' set but not used [-Wunused-but-set-variable] Removed unused variable drm. Reported-by: kernel test robot Signed-off-by: Souptick Joarder --- drivers/gpu/drm/msm/dp/dp_display.c | 2

Re: [Freedreno] [PATCH v2] drm/msm/dp: add logs across DP driver for ease of debugging

2021-07-08 Thread Stephen Boyd
Quoting maitreye (2021-07-08 12:13:44) > From: Maitreyee Rao > > Add trace points across the MSM DP driver to help debug > interop issues. > > Changes in v2: > - Got rid of redundant log messages. > - Added %#x instead of 0x%x wherever required. > - Got rid of __func__ calls in debug messages.

Re: [Freedreno] [PATCH 3/7] drm/msm/dp: reset aux controller after dp_aux_cmd_fifo_tx() failed.

2021-07-08 Thread khsieh
On 2021-07-08 00:34, Stephen Boyd wrote: Quoting Kuogee Hsieh (2021-07-06 10:20:16) Aux hardware calibration sequence requires resetting the aux controller in order for the new setting to take effect. However resetting the AUX controller will also clear HPD interrupt status which may accidental

Re: [Freedreno] [PATCH 1/7] drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run

2021-07-08 Thread khsieh
On 2021-07-08 00:03, Stephen Boyd wrote: Quoting Kuogee Hsieh (2021-07-06 10:20:14) DP cable should always connect to DPU during the entire PHY compliance testing run. Since DP PHY compliance test is executed at irq_hpd event context, dp_ctrl_off_link_stream() should be used instead of dp_ctrl_

Re: [Freedreno] [PATCH 4/7] drm/msm/dp: replug event is converted into an unplug followed by an plug events

2021-07-08 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-07-06 10:20:17) > Remove special handling of replug interrupt and instead treat replug event > as a sequential unplug followed by a plugin event. This is needed to meet > the requirements of DP Link Layer CTS test case 4.2.1.3. > > Signed-off-by: Kuogee Hsieh > --- This

[Freedreno] [PATCH v2] drm/msm/dp: add logs across DP driver for ease of debugging

2021-07-08 Thread maitreye
From: Maitreyee Rao Add trace points across the MSM DP driver to help debug interop issues. Changes in v2: - Got rid of redundant log messages. - Added %#x instead of 0x%x wherever required. - Got rid of __func__ calls in debug messages. - Added newline wherever missing. Signed-off-by: Mait

[Freedreno] [PATCH v3 16/20] drm/msm: always wait for the exclusive fence

2021-07-08 Thread Daniel Vetter
From: Christian König Drivers also need to to sync to the exclusive fence when a shared one is present. Signed-off-by: Christian König [danvet: Not that hard to compile-test on arm ...] Signed-off-by: Daniel Vetter Cc: Rob Clark Cc: Sean Paul Cc: linux-arm-...@vger.kernel.org Cc: freedreno@l

[Freedreno] [PATCH v3 15/20] drm/msm: Don't break exclusive fence ordering

2021-07-08 Thread Daniel Vetter
There's only one exclusive slot, and we must not break the ordering. Adding a new exclusive fence drops all previous fences from the dma_resv. To avoid violating the signalling order we err on the side of over-synchronizing by waiting for the existing fences, even if userspace asked us to ignore t

[Freedreno] [PATCH v1 7/7] drm/msm/kms: drop set_encoder_mode callback

2021-07-08 Thread Dmitry Baryshkov
set_encoder_mode callback is completely unused now. Drop it from msm_kms_func(). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_kms.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_kms.h b/drivers/gpu/drm/msm/msm_kms.h index 086a2d59b8c8..9484e8b62630

[Freedreno] [PATCH v1 5/7] drm/msm/dp: stop calling set_encoder_mode callback

2021-07-08 Thread Dmitry Baryshkov
None of the display drivers now implement set_encoder_mode callback. Stop calling it from the modeset init code. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 18 -- 1 file changed, 18 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/d

[Freedreno] [PATCH v1 6/7] drm/msm/dsi: stop calling set_encoder_mode callback

2021-07-08 Thread Dmitry Baryshkov
None of the display drivers now implement set_encoder_mode callback. Stop calling it from the modeset init code. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/dsi.c | 2 -- drivers/gpu/drm/msm/dsi/dsi.h | 1 - drivers/gpu/drm/msm/dsi/dsi_manager.c | 12 ---

[Freedreno] [PATCH v1 4/7] drm/msm/mdp5: move mdp5_encoder_set_intf_mode after msm_dsi_modeset_init

2021-07-08 Thread Dmitry Baryshkov
Move a call to mdp5_encoder_set_intf_mode() after msm_dsi_modeset_init(), removing set_encoder_mode callback. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/mdp5

[Freedreno] [PATCH v1 2/7] drm/msm/dsi: add two helper functions

2021-07-08 Thread Dmitry Baryshkov
Add two helper functions to be used by display drivers for setting up encoders. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/dsi.c | 7 +++ drivers/gpu/drm/msm/dsi/dsi_manager.c | 14 ++ drivers/gpu/drm/msm/msm_drv.h | 12 ++-- 3 files chan

[Freedreno] [PATCH v1 3/7] drm/msm/dpu: support setting up two independent DSI connectors

2021-07-08 Thread Dmitry Baryshkov
Move setting up encoders from set_encoder_mode to _dpu_kms_initialize_dsi() / _dpu_kms_initialize_displayport(). This allows us to support not only "single DSI" and "bonded DSI" but also "two independent DSI" configurations. In future this would also help adding support for multiple DP connectors.

[Freedreno] [PATCH v1 1/7] drm/msm/dsi: rename dual DSI to bonded DSI

2021-07-08 Thread Dmitry Baryshkov
We are preparing to support two independent DSI hosts in the DSI/DPU code. To remove possible confusion (as both configurations can be referenced as dual DSI) let's rename old "dual DSI" (two DSI hosts driving single device, with clocks being locked) to "bonded DSI". Signed-off-by: Dmitry Baryshko

[Freedreno] [PATCH v1 0/7] drm/msm/dpu: add support for idependent DSI config

2021-07-08 Thread Dmitry Baryshkov
This patchseries adds support for independent DSI config to DPU1 display subdriver. Also drop one of msm_kms_funcs callbacks, made unnecessary now. Tested on RB5 (dpu, dsi). Previous iteration was tested by Alexey Minnekhanov. Changes since v1: - renamed dual DSI to bonded DSI as suggsted by Abh

Re: [Freedreno] [PATCH] drm/msm: Implement mmap as GEM object function

2021-07-08 Thread Thomas Zimmermann
Am 08.07.21 um 14:04 schrieb Thomas Zimmermann: ping for review Nevermind, there's a newer version of this patch at https://lore.kernel.org/dri-devel/20210706084753.8194-1-tzimmerm...@suse.de/ Best regards Thomas Am 24.06.21 um 11:03 schrieb Thomas Zimmermann: Moving the driver-specific

Re: [Freedreno] [PATCH] drm/msm: Implement mmap as GEM object function

2021-07-08 Thread Thomas Zimmermann
ping for review Am 24.06.21 um 11:03 schrieb Thomas Zimmermann: Moving the driver-specific mmap code into a GEM object function allows for using DRM helpers for various mmap callbacks. The respective msm functions are being removed. The file_operations structure fops is now being created by the

Re: [Freedreno] [PATCH] drm/msm/mdp5: fix 64-bit division in bandwidth calculation

2021-07-08 Thread Dmitry Baryshkov
On 22/06/2021 11:03, Dmitry Baryshkov wrote: Fix undefined symbols errors arising from 64-bit division on 32-bit arm targets. Add 64-bit version of mult_frac and use it for calculating bandwidth. ERROR: modpost: "__aeabi_ldivmod" [drivers/gpu/drm/msm/msm.ko] undefined! ERROR: modpost: "__aeabi_u

Re: [Freedreno] [PATCH] drm/msm/dpu: Add newlines to printks

2021-07-08 Thread Dmitry Baryshkov
On Thu, 8 Jul 2021 at 09:56, Stephen Boyd wrote: > > Add some missing newlines to the various DRM printks in this file. > Noticed while looking at logs. While we're here unbreak quoted > strings so grepping them is easier. > > Signed-off-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov > --- >

Re: [Freedreno] [PATCH 3/7] drm/msm/dp: reset aux controller after dp_aux_cmd_fifo_tx() failed.

2021-07-08 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-07-06 10:20:16) > Aux hardware calibration sequence requires resetting the aux controller > in order for the new setting to take effect. However resetting the AUX > controller will also clear HPD interrupt status which may accidentally > cause pending unplug interrupt to

Re: [Freedreno] [PATCH 2/7] drm/msm/dp: reduce link rate if failed at link training 1

2021-07-08 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-07-06 10:20:15) > Reduce link rate and re start link training if link training 1 > failed due to loss of clock recovery done to fix Link Layer > CTS case 4.3.1.7. Also only update voltage and pre-emphasis > swing level after link training started to fix Link Layer CTS >

Re: [Freedreno] [PATCH 7/7] drm/msm/dp: retrain link when loss of symbol lock detected

2021-07-08 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-07-06 10:20:20) > Main link symbol locked is achieved at end of link training 2. Some > dongle main link symbol may become unlocked again if host did not end > link training soon enough after completion of link training 2. Host > have to re train main link if loss of symb

Re: [Freedreno] [PATCH 5/7] drm/msm/dp: return correct edid checksum after corrupted edid checksum read

2021-07-08 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-07-06 10:20:18) > Response with correct edid checksum saved at connector after corrupted edid > checksum read. This fixes Link Layer CTS cases 4.2.2.3, 4.2.2.6. > > Signed-off-by: Kuogee Hsieh > --- > drivers/gpu/drm/msm/dp/dp_panel.c | 9 +++-- > 1 file changed, 7

Re: [Freedreno] [PATCH 1/7] drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run

2021-07-08 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-07-06 10:20:14) > DP cable should always connect to DPU during the entire PHY compliance > testing run. Since DP PHY compliance test is executed at irq_hpd event > context, dp_ctrl_off_link_stream() should be used instead of dp_ctrl_off(). > dp_ctrl_off() is used for unpl