Re: [Freedreno] [PATCH v6 4/4] drm/msm: stop storing the array of CRTCs in struct msm_drm_private

2023-01-24 Thread Dmitry Baryshkov
On Wed, 25 Jan 2023 at 04:14, Abhinav Kumar wrote: > > > > On 6/17/2022 4:33 PM, Dmitry Baryshkov wrote: > > The array of CRTC in the struct msm_drm_private duplicates a list of > > CRTCs in the drm_device. Drop it and use the existing list for CRTC > > enumeration. > > > > Reported-by: kernel

Re: [Freedreno] [PATCH] drm/msm/dpu: disable features unsupported by QCM2290

2023-01-24 Thread Dmitry Baryshkov
Hi, On Wed, 25 Jan 2023 at 02:22, Abhinav Kumar wrote: > On 1/24/2023 12:22 AM, Dmitry Baryshkov wrote: > > On 24/01/2023 03:32, Abhinav Kumar wrote: > >> On 1/22/2023 11:11 PM, Dmitry Baryshkov wrote: > >>> QCM2290 doesn't seem to support reg-dma, smart-dma, UBWC, CDP, exclusion > >>>

Re: [Freedreno] [Intel-gfx] [PATCH v2 06/10] drm/fb-helper: Initialize fb-helper's preferred BPP in prepare function

2023-01-24 Thread kernel test robot
Hi Thomas, I love your patch! Yet something to improve: [auto build test ERROR on 7d3e7f64a42d66ba8da6e7b66a8d85457ef84570] url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Zimmermann/drm-client-Test-for-connectors-before-sending-hotplug-event/20230124-214220 base

Re: [Freedreno] [PATCH] PM / devfreq: Fix build issues with devfreq disabled

2023-01-24 Thread Rob Clark
On Tue, Jan 24, 2023 at 8:04 PM MyungJoo Ham wrote: > > >Sender : Rob Clark > >Date : 2023-01-24 00:37 (GMT+9) > >Title : [PATCH] PM / devfreq: Fix build issues with devfreq disabled > > > >From: Rob Clark > > > >The existing no-op shims for when PM_DEVFREQ (or an individual governor) > >only

Re: [Freedreno] [PATCH v6 4/4] drm/msm: stop storing the array of CRTCs in struct msm_drm_private

2023-01-24 Thread Abhinav Kumar
On 6/17/2022 4:33 PM, Dmitry Baryshkov wrote: The array of CRTC in the struct msm_drm_private duplicates a list of CRTCs in the drm_device. Drop it and use the existing list for CRTC enumeration. Reported-by: kernel test robot Signed-off-by: Dmitry Baryshkov ---

Re: [Freedreno] [PATCH v1 00/14] add display port DSC feature

2023-01-24 Thread Abhinav Kumar
Hi Dmitry / Marijn I have seen your review comments and agree there is much work to be done to get this in a better shape. We will post a better V2 to address the concerns. Would appreciate some patience till then. Thanks for your support in reviews as always Abhinav On 1/23/2023 10:24

Re: [Freedreno] [PATCH] drm/msm/dpu: disable features unsupported by QCM2290

2023-01-24 Thread Abhinav Kumar
On 1/24/2023 12:22 AM, Dmitry Baryshkov wrote: On 24/01/2023 03:32, Abhinav Kumar wrote: On 1/22/2023 11:11 PM, Dmitry Baryshkov wrote: QCM2290 doesn't seem to support reg-dma, smart-dma, UBWC, CDP, exclusion rectangles and CSC. Drop corresponding features being incorrectly enabled for

Re: [Freedreno] [PATCH v1 10/14] drm/msm/disp/dpu: add supports of DSC encoder v1.2 engine

2023-01-24 Thread Kuogee Hsieh
On 1/23/2023 12:11 PM, Marijn Suijten wrote: add support for* drm/msm/dpu* On 2023-01-23 10:24:30, Kuogee Hsieh wrote: DSC V1.2 encoder engine is newly added hardware module. This patch add support functions to configure and enable DSC V1.2 encoder engine. Signed-off-by: Kuogee Hsieh ---

Re: [Freedreno] [PATCH v1 12/14] drm/msm/disp/dpu1: revise timing engine programming to work for DSC

2023-01-24 Thread Marijn Suijten
On 2023-01-24 09:55:24, Kuogee Hsieh wrote: > This timing engine code is derived from our downstream code directly and > it has been used at many mobile devices by many vendors for many years > already. > > On the other words, it had been tested very thorough and works on >

Re: [Freedreno] [PATCH 3/3] drm/msm/dpu: add missing ubwc_swizzle setting to catalog

2023-01-24 Thread Abhinav Kumar
On 12/7/2022 6:28 AM, Dmitry Baryshkov wrote: Use the values from the vendor DTs to set ubwc_swizzle in the catalog. Signed-off-by: Dmitry Baryshkov I have already acked https://patchwork.freedesktop.org/patch/519662/ So this can be dropped from this series. ---

Re: [Freedreno] [PATCH 2/3] drm/msm/dpu: correct the UBWC version on sm6115

2023-01-24 Thread Abhinav Kumar
On 12/7/2022 6:28 AM, Dmitry Baryshkov wrote: According to downstream (bengal-sde.dtsi), the sm6115 uses UBWC 1.0. Change the catalog entry accordingly. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- 1 file

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: handle UBWC 1.0 in dpu_hw_sspp_setup_format

2023-01-24 Thread Abhinav Kumar
On 12/7/2022 6:28 AM, Dmitry Baryshkov wrote: Extend dpu_hw_sspp_setup_format() to also handle the UBWC 1.0 case. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-)

Re: [Freedreno] [PATCH v1 12/14] drm/msm/disp/dpu1: revise timing engine programming to work for DSC

2023-01-24 Thread Dmitry Baryshkov
On 24/01/2023 19:55, Kuogee Hsieh wrote: On 1/24/2023 1:11 AM, Dmitry Baryshkov wrote: On 23/01/2023 20:24, Kuogee Hsieh wrote: Current implementation timing engine programming does not consider compression factors. This patch add consideration of DSC factors while programming timing engine.

Re: [Freedreno] [PATCH] drm/msm/dsi: properly handle the case of empty OPP table in dsi_mgr_bridge_mode_valid

2023-01-24 Thread Abhinav Kumar
On 1/24/2023 12:36 PM, Dmitry Baryshkov wrote: It was left unnoticed during the review that even if there is no OPP table in device tree, one will be created by a call to the function devm_pm_opp_set_clkname(). This leads to dsi_mgr_bridge_mode_valid() rejecting all modes if DT contains no

[Freedreno] [PATCH] drm/msm/dsi: properly handle the case of empty OPP table in dsi_mgr_bridge_mode_valid

2023-01-24 Thread Dmitry Baryshkov
It was left unnoticed during the review that even if there is no OPP table in device tree, one will be created by a call to the function devm_pm_opp_set_clkname(). This leads to dsi_mgr_bridge_mode_valid() rejecting all modes if DT contains no OPP table for the DSI host. Rework

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

2023-01-24 Thread Dmitry Baryshkov
On 12/01/2023 02:16, Abhinav Kumar wrote: Currently there is no protection against a user trying to set an unsupported mode on DSI. Implement a check based on the opp table whether the byte clock for the mode can be supported by validating whether an opp table entry exists. For devices which

Re: [Freedreno] [PATCH v1 12/14] drm/msm/disp/dpu1: revise timing engine programming to work for DSC

2023-01-24 Thread Kuogee Hsieh
On 1/24/2023 1:11 AM, Dmitry Baryshkov wrote: On 23/01/2023 20:24, Kuogee Hsieh wrote: Current implementation timing engine programming does not consider compression factors. This patch add consideration of DSC factors while programming timing engine. Signed-off-by: Kuogee Hsieh ---  

Re: [Freedreno] [PATCH Resend v11 05/15] drm/msm/dp: disable self_refresh_aware after entering psr

2023-01-24 Thread Dmitry Baryshkov
On Tue, 24 Jan 2023 at 17:10, Vinod Polimera wrote: > > -Original Message- > > From: Dmitry Baryshkov > > Sent: Tuesday, January 24, 2023 5:52 AM > > To: Vinod Polimera (QUIC) ; dri- > > de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; > > freedreno@lists.freedesktop.org;

Re: [Freedreno] [PATCH v1 10/14] drm/msm/disp/dpu: add supports of DSC encoder v1.2 engine

2023-01-24 Thread Neil Armstrong
On 23/01/2023 19:24, Kuogee Hsieh wrote: DSC V1.2 encoder engine is newly added hardware module. This patch add support functions to configure and enable DSC V1.2 encoder engine. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/Makefile | 1 +

Re: [Freedreno] [PATCH v1 06/14] drm/msm/dp: add display compression related struct

2023-01-24 Thread Neil Armstrong
On 23/01/2023 19:24, Kuogee Hsieh wrote: Add display compression related struct to support variant compression mechanism. However, DSC is the only one supported at this moment. VDC may be added later. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_panel.h | 42 ++

Re: [Freedreno] [PATCH Resend v11 05/15] drm/msm/dp: disable self_refresh_aware after entering psr

2023-01-24 Thread Vinod Polimera
> -Original Message- > From: Dmitry Baryshkov > Sent: Tuesday, January 24, 2023 5:52 AM > To: Vinod Polimera (QUIC) ; dri- > de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; > freedreno@lists.freedesktop.org; devicet...@vger.kernel.org > Cc: Sankeerth Billakanti (QUIC) ;

Re: [Freedreno] [PATCH v1 09/14] drm/msm/dsi: export struct msm_compression_info to dpu encoder

2023-01-24 Thread Neil Armstrong
On 23/01/2023 19:24, Kuogee Hsieh wrote: struct msm_compression_info is used to support several different compression mechanisms. It also contains customized info required to configure DSC encoder engine. This patch also make changes DSI module to have DSI exports struct msm_compreion_info to

Re: [Freedreno] [Intel-gfx] [PATCH 3/3] drm/connector: move ELD and video/audio latencies to display info

2023-01-24 Thread Jani Nikula
b-lkp/linux/commits/Jani-Nikula/drm-connector-move-HDR-sink-metadata-to-display-info/20230124-174322 > base: git://anongit.freedesktop.org/drm/drm-tip drm-tip > patch link: > https://lore.kernel.org/r/20230124094154.2282778-3-jani.nikula%40intel.com > patch subject: [Intel-gfx]

Re: [Freedreno] [1/2] drm/msm/dpu: fix clocks settings for msm8998 SSPP blocks

2023-01-24 Thread Marijn Suijten
On 2023-01-24 14:29:38, Dmitry Baryshkov wrote: > On 24/01/2023 14:06, Marijn Suijten wrote: > > On 2023-01-24 13:20:57, Dmitry Baryshkov wrote: > >> On Tue, 24 Jan 2023 at 13:12, Marijn Suijten > >> wrote: > >>> > >>> On 2023-01-24 12:19:27, Dmitry Baryshkov wrote: > On 24/01/2023 11:59,

Re: [Freedreno] [PATCH v3 1/2] drm/probe_helper: extract two helper functions

2023-01-24 Thread Jani Nikula
On Tue, 24 Jan 2023, Dmitry Baryshkov wrote: > Extract drm_kms_helper_enable_hpd() and drm_kms_helper_disable_hpd(), > two helpers that enable and disable HPD handling on all device's > connectors. Thanks for separating this, it makes the other patch easier to read. Reviewed-by: Jani Nikula

[Freedreno] [PATCH v2 10/10] drm/fbdev-generic: Rename struct fb_info 'fbi' to 'info'

2023-01-24 Thread Thomas Zimmermann
The generic fbdev emulation names variables of type struct fb_info both 'fbi' and 'info'. The latter seems to be more common in fbdev code, so name fbi accordingly. Also replace the duplicate variable in drm_fbdev_fb_destroy(). Signed-off-by: Thomas Zimmermann ---

[Freedreno] [PATCH v2 07/10] drm/fbdev-generic: Minimize hotplug error handling

2023-01-24 Thread Thomas Zimmermann
Call drm_fb_helper_init() in the generic-fbdev hotplug helper to revert the effects of drm_fb_helper_init(). No full cleanup is required. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fbdev_generic.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git

[Freedreno] [PATCH v2 08/10] drm/fbdev-generic: Minimize client unregistering

2023-01-24 Thread Thomas Zimmermann
For uninitialized framebuffers, only release the DRM client and free the fbdev memory. Do not attempt to clean up the framebuffer. DRM fbdev clients have a two-step initialization: first create the DRM client; then create the framebuffer device on the first successful hotplug event. In cases

[Freedreno] [PATCH v2 02/10] drm/client: Add hotplug_failed flag

2023-01-24 Thread Thomas Zimmermann
Signal failed hotplugging with a flag in struct drm_client_dev. If set, the client helpers will not further try to set up the fbdev display. This used to be signalled with a combination of cleared pointers in struct drm_fb_helper, which prevents us from initializing these pointers early after

[Freedreno] [PATCH v2 05/10] drm/fb-helper: Remove preferred_bpp parameter from fbdev internals

2023-01-24 Thread Thomas Zimmermann
Store the console's preferred BPP value in struct drm_fb_helper and remove the respective function parameters from the internal fbdev code. The BPP value is only required as a fallback and will now always be available in the fb-helper instance. No functional changes. Signed-off-by: Thomas

[Freedreno] [PATCH v2 03/10] drm/fb-helper: Introduce drm_fb_helper_unprepare()

2023-01-24 Thread Thomas Zimmermann
Move the fb-helper clean-up code into drm_fb_helper_unprepare(). No functional changes. v2: * declare as static inline (kernel test robot) Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_helper.c | 14 +- include/drm/drm_fb_helper.h | 5 + 2 files

[Freedreno] [PATCH v2 09/10] drm/fbdev-generic: Inline clean-up helpers into drm_fbdev_fb_destroy()

2023-01-24 Thread Thomas Zimmermann
The fbdev framebuffer cleanup in drm_fbdev_fb_destroy() calls drm_fbdev_release() and drm_fbdev_cleanup(). Inline both into the caller. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fbdev_generic.c | 17 ++--- 1 file changed, 2 insertions(+), 15

[Freedreno] [PATCH v2 04/10] drm/fbdev-generic: Initialize fb-helper structure in generic setup

2023-01-24 Thread Thomas Zimmermann
Initialize the fb-helper structure immediately after its allocation in drm_fbdev_generic_setup(). That will make it easier to fill it with driver-specific values, such as the preferred BPP. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fbdev_generic.c | 13 + 1 file

[Freedreno] [PATCH v2 01/10] drm/client: Test for connectors before sending hotplug event

2023-01-24 Thread Thomas Zimmermann
Test for connectors in the client code and remove a similar test from the generic fbdev emulation. Do nothing if the test fails. Not having connectors indicates a driver bug. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_client.c| 5 + drivers/gpu/drm/drm_fbdev_generic.c

[Freedreno] [PATCH v2 00/10] drm/fb-helper: Various cleanups

2023-01-24 Thread Thomas Zimmermann
Add various cleanups and changes to DRM's fbdev helpers and the generic fbdev emulation. There's no clear theme here, just lots of small things that need to be updated. In the end, the code will better reflect which parts are in the DRM client, which is fbdev emulation, and which are shared

[Freedreno] [PATCH v2 06/10] drm/fb-helper: Initialize fb-helper's preferred BPP in prepare function

2023-01-24 Thread Thomas Zimmermann
Initialize the fb-helper's preferred_bpp field early from within drm_fb_helper_prepare(); instead of the later client hot-plugging callback. This simplifies the generic fbdev setup function. No real changes, but all drivers' fbdev code has to be adapted. Signed-off-by: Thomas Zimmermann ---

Re: [Freedreno] [Intel-gfx] [PATCH 3/3] drm/connector: move ELD and video/audio latencies to display info

2023-01-24 Thread kernel test robot
Hi Jani, I love your patch! Yet something to improve: [auto build test ERROR on drm-tip/drm-tip] url: https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-connector-move-HDR-sink-metadata-to-display-info/20230124-174322 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip

Re: [Freedreno] [1/2] drm/msm/dpu: fix clocks settings for msm8998 SSPP blocks

2023-01-24 Thread Dmitry Baryshkov
On 24/01/2023 14:06, Marijn Suijten wrote: On 2023-01-24 13:20:57, Dmitry Baryshkov wrote: On Tue, 24 Jan 2023 at 13:12, Marijn Suijten wrote: On 2023-01-24 12:19:27, Dmitry Baryshkov wrote: On 24/01/2023 11:59, Marijn Suijten wrote: On 2023-01-15 14:41:42, Dmitry Baryshkov wrote: DMA2

Re: [Freedreno] [Intel-gfx] [PATCH 3/3] drm/connector: move ELD and video/audio latencies to display info

2023-01-24 Thread kernel test robot
Hi Jani, I love your patch! Yet something to improve: [auto build test ERROR on drm-tip/drm-tip] url: https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-connector-move-HDR-sink-metadata-to-display-info/20230124-174322 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip

Re: [Freedreno] [1/2] drm/msm/dpu: fix clocks settings for msm8998 SSPP blocks

2023-01-24 Thread Marijn Suijten
On 2023-01-24 13:20:57, Dmitry Baryshkov wrote: > On Tue, 24 Jan 2023 at 13:12, Marijn Suijten > wrote: > > > > On 2023-01-24 12:19:27, Dmitry Baryshkov wrote: > > > On 24/01/2023 11:59, Marijn Suijten wrote: > > > > On 2023-01-15 14:41:42, Dmitry Baryshkov wrote: > > > >> DMA2 and DMA3 planes on

Re: [Freedreno] [PATCH 10/10] drm/fbdev-generic: Rename struct fb_info 'fbi' to 'info'

2023-01-24 Thread Thomas Zimmermann
Hi Am 23.01.23 um 21:50 schrieb Sam Ravnborg: Hi Thomas, a quick drive-by comment. On Mon, Jan 23, 2023 at 11:05:59AM +0100, Thomas Zimmermann wrote: The generic fbdev emulation names variables of type struct fb_info both 'fbi' and 'info'. The latter seems to be more common in fbdev code, so

Re: [Freedreno] [1/2] drm/msm/dpu: fix clocks settings for msm8998 SSPP blocks

2023-01-24 Thread Dmitry Baryshkov
On Tue, 24 Jan 2023 at 13:12, Marijn Suijten wrote: > > On 2023-01-24 12:19:27, Dmitry Baryshkov wrote: > > On 24/01/2023 11:59, Marijn Suijten wrote: > > > On 2023-01-15 14:41:42, Dmitry Baryshkov wrote: > > >> DMA2 and DMA3 planes on msm8998 should use corresponding DMA2 and DMA3 > > >> clocks

Re: [Freedreno] [PATCH v5 1/4] dt-bindings: display/msm: convert MDP5 schema to YAML format

2023-01-24 Thread Marijn Suijten
On 2023-01-12 15:50:15, Rob Herring wrote: > On Wed, Jan 11, 2023 at 11:35:53PM +0100, Marijn Suijten wrote: > > On 2023-01-12 00:31:33, Dmitry Baryshkov wrote: > > > On 12/01/2023 00:29, Marijn Suijten wrote: > > > > On 2023-01-10 06:40:27, Dmitry Baryshkov wrote: > > > >> On 09/01/2023 09:49,

Re: [Freedreno] [1/2] drm/msm/dpu: fix clocks settings for msm8998 SSPP blocks

2023-01-24 Thread Marijn Suijten
On 2023-01-24 12:19:27, Dmitry Baryshkov wrote: > On 24/01/2023 11:59, Marijn Suijten wrote: > > On 2023-01-15 14:41:42, Dmitry Baryshkov wrote: > >> DMA2 and DMA3 planes on msm8998 should use corresponding DMA2 and DMA3 > >> clocks rather than CURSOR0/1 clocks (which are used for the CURSOR > >>

Re: [Freedreno] [PATCH v3 1/2] drm/probe_helper: extract two helper functions

2023-01-24 Thread Neil Armstrong
On 24/01/2023 11:45, Dmitry Baryshkov wrote: Extract drm_kms_helper_enable_hpd() and drm_kms_helper_disable_hpd(), two helpers that enable and disable HPD handling on all device's connectors. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_probe_helper.c | 68

Re: [Freedreno] [PATCH v2] drm/probe_helper: sort out poll_running vs poll_enabled

2023-01-24 Thread Dmitry Baryshkov
On 24/01/2023 10:55, Jani Nikula wrote: On Wed, 18 Jan 2023, Dmitry Baryshkov wrote: There are two flags attemting to guard connector polling: poll_enabled and poll_running. While poll_enabled semantics is clearly defined and fully adhered (mark that drm_kms_helper_poll_init() was called and

[Freedreno] [PATCH v3 2/2] drm/probe_helper: sort out poll_running vs poll_enabled

2023-01-24 Thread Dmitry Baryshkov
There are two flags attemting to guard connector polling: poll_enabled and poll_running. While poll_enabled semantics is clearly defined and fully adhered (mark that drm_kms_helper_poll_init() was called and not finalized by the _fini() call), the poll_running flag doesn't have such clearliness.

[Freedreno] [PATCH v3 1/2] drm/probe_helper: extract two helper functions

2023-01-24 Thread Dmitry Baryshkov
Extract drm_kms_helper_enable_hpd() and drm_kms_helper_disable_hpd(), two helpers that enable and disable HPD handling on all device's connectors. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_probe_helper.c | 68 ++ 1 file changed, 41 insertions(+), 27

Re: [Freedreno] [RFC PATCH v3 0/3] Support for Solid Fill Planes

2023-01-24 Thread Simon Ser
On Wednesday, January 11th, 2023 at 23:29, Daniel Vetter wrote: > On Fri, Jan 06, 2023 at 04:33:04PM -0800, Abhinav Kumar wrote: > > Hi Daniel > > > > Thanks for looking into this series. > > > > On 1/6/2023 1:49 PM, Dmitry Baryshkov wrote: > > > On Fri, 6 Jan 2023 at 20:41, Daniel Vetter

Re: [Freedreno] [PATCH v2] drm/probe_helper: sort out poll_running vs poll_enabled

2023-01-24 Thread Dmitry Baryshkov
On 20/01/2023 18:39, Laurent Pinchart wrote: Hi Dmitry, Thank you for the patch. On Wed, Jan 18, 2023 at 01:39:05AM +0200, Dmitry Baryshkov wrote: There are two flags attemting to guard connector polling: poll_enabled and poll_running. While poll_enabled semantics is clearly defined and fully

Re: [Freedreno] [2/2] drm/msm/dpu: don't use DPU_CLK_CTRL_CURSORn for DMA SSPP clocks

2023-01-24 Thread Dmitry Baryshkov
On 24/01/2023 12:13, Marijn Suijten wrote: On 2023-01-15 14:41:43, Dmitry Baryshkov wrote: DPU driver has been using the DPU_CLK_CTRL_CURSOR prefix for the DMA SSPP blocks used for the cursor planes. This has lead to the confusion at least for the MSM8998 platform. In preparation to supporting

Re: [Freedreno] [1/2] drm/msm/dpu: fix clocks settings for msm8998 SSPP blocks

2023-01-24 Thread Dmitry Baryshkov
On 24/01/2023 11:59, Marijn Suijten wrote: On 2023-01-15 14:41:42, Dmitry Baryshkov wrote: DMA2 and DMA3 planes on msm8998 should use corresponding DMA2 and DMA3 clocks rather than CURSOR0/1 clocks (which are used for the CURSOR planes). Correct corresponding SSPP declarations. Fixes:

Re: [Freedreno] [2/2] drm/msm/dpu: don't use DPU_CLK_CTRL_CURSORn for DMA SSPP clocks

2023-01-24 Thread Marijn Suijten
On 2023-01-15 14:41:43, Dmitry Baryshkov wrote: > DPU driver has been using the DPU_CLK_CTRL_CURSOR prefix for the DMA > SSPP blocks used for the cursor planes. This has lead to the confusion > at least for the MSM8998 platform. In preparation to supporting the > cursor SSPP blocks, use proper

Re: [Freedreno] [1/2] drm/msm/dpu: fix clocks settings for msm8998 SSPP blocks

2023-01-24 Thread Marijn Suijten
On 2023-01-15 14:41:42, Dmitry Baryshkov wrote: > DMA2 and DMA3 planes on msm8998 should use corresponding DMA2 and DMA3 > clocks rather than CURSOR0/1 clocks (which are used for the CURSOR > planes). Correct corresponding SSPP declarations. > > Fixes: 94391a14fc27 ("drm/msm/dpu1: Add MSM8998 to

[Freedreno] [PATCH 3/3] drm/connector: move ELD and video/audio latencies to display info

2023-01-24 Thread Jani Nikula
Information parsed from the display EDID should be stored in display info. We can stop clearing ELD separately. Cc: Alex Deucher Cc: Christian König Cc: Pan, Xinhui Cc: amd-...@lists.freedesktop.org Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss Cc: Laurent Pinchart Cc: Jonas Karlman

Re: [Freedreno] [PATCH v1 12/14] drm/msm/disp/dpu1: revise timing engine programming to work for DSC

2023-01-24 Thread Dmitry Baryshkov
On 23/01/2023 20:24, Kuogee Hsieh wrote: Current implementation timing engine programming does not consider compression factors. This patch add consideration of DSC factors while programming timing engine. Signed-off-by: Kuogee Hsieh --- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c |

Re: [Freedreno] [PATCH v2] drm/probe_helper: sort out poll_running vs poll_enabled

2023-01-24 Thread Jani Nikula
On Wed, 18 Jan 2023, Dmitry Baryshkov wrote: > There are two flags attemting to guard connector polling: > poll_enabled and poll_running. While poll_enabled semantics is clearly > defined and fully adhered (mark that drm_kms_helper_poll_init() was > called and not finalized by the _fini() call),

Re: [Freedreno] [PATCH] drm/msm/mdp5: Add check for kzalloc

2023-01-24 Thread Dmitry Baryshkov
On 06/12/2022 09:48, Jiasheng Jiang wrote: As kzalloc may fail and return NULL pointer, it should be better to check the return value in order to avoid the NULL pointer dereference. Fixes: 1cff7440a86e ("drm/msm: Convert to using __drm_atomic_helper_crtc_reset() for reset.") Signed-off-by:

Re: [Freedreno] [PATCH] drm/msm: Initialize mode_config earlier

2023-01-24 Thread Johan Hovold
On Tue, Jan 24, 2023 at 09:09:02AM +0100, Johan Hovold wrote: > On Mon, Jan 23, 2023 at 09:17:49AM -0800, Bjorn Andersson wrote: > > On Mon, Jan 23, 2023 at 05:01:45PM +0100, Johan Hovold wrote: > > > On Tue, Jan 17, 2023 at 09:04:39AM +0100, Johan Hovold wrote: > > > > On Mon, Jan 16, 2023 at

Re: [Freedreno] [PATCH] drm/msm/dpu: disable features unsupported by QCM2290

2023-01-24 Thread Dmitry Baryshkov
On 24/01/2023 03:32, Abhinav Kumar wrote: On 1/22/2023 11:11 PM, Dmitry Baryshkov wrote: QCM2290 doesn't seem to support reg-dma, smart-dma, UBWC, CDP, exclusion rectangles and CSC. Drop corresponding features being incorrectly enabled for qcm2290. Can you please point me to which vendor

Re: [Freedreno] [PATCH] drm/msm: Initialize mode_config earlier

2023-01-24 Thread Johan Hovold
On Mon, Jan 23, 2023 at 09:17:49AM -0800, Bjorn Andersson wrote: > On Mon, Jan 23, 2023 at 05:01:45PM +0100, Johan Hovold wrote: > > On Tue, Jan 17, 2023 at 09:04:39AM +0100, Johan Hovold wrote: > > > On Mon, Jan 16, 2023 at 08:51:22PM -0600, Bjorn Andersson wrote: > > > > Perhaps we have