Re: [Freedreno] [PATCH Resend v11 12/15] drm/msm/disp/dpu: wait for extra vsync till timing engine status is disabled

2023-01-23 Thread Dmitry Baryshkov
On 19/01/2023 16:26, Vinod Polimera wrote: There can be a race between timing gen disable and vblank irq. The wait post timing gen disable may return early but intf disable sequence might not be completed. Ensure that, intf status is disabled before we retire the function. Signed-off-by: Vinod

Re: [Freedreno] [PATCH] drm/msm/dpu: sc7180: add missing WB2 clock control

2023-01-23 Thread Abhinav Kumar
On 1/16/2023 2:30 AM, Dmitry Baryshkov wrote: Add missing DPU_CLK_CTRL_WB2 to sc7180_mdp clocks array. Fixes: 51e4d60e6ba5 ("drm/msm/dpu: add writeback support for sc7180") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c |

Re: [Freedreno] [PATCH] drm/msm/dpu: sc7180: add missing WB2 clock control

2023-01-23 Thread Jessica Zhang
On 1/16/2023 2:30 AM, Dmitry Baryshkov wrote: Add missing DPU_CLK_CTRL_WB2 to sc7180_mdp clocks array. Fixes: 51e4d60e6ba5 ("drm/msm/dpu: add writeback support for sc7180") Signed-off-by: Dmitry Baryshkov Tested-by: Jessica Zhang # Trogdor (sc7180) ---

Re: [Freedreno] [PATCH v2 1/3] drm/msm/mdss: convert UBWC setup to use match data

2023-01-23 Thread Dmitry Baryshkov
On 24/01/2023 03:48, Abhinav Kumar wrote: On 1/19/2023 9:26 PM, Dmitry Baryshkov wrote: On Fri, 20 Jan 2023 at 00:54, Abhinav Kumar wrote: On 1/17/2023 5:04 PM, Dmitry Baryshkov wrote: To simplify adding new platforms and to make settings more obvious, rewrite the UBWC setup to use the

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

2023-01-23 Thread Dmitry Baryshkov
On 19/01/2023 16:26, Vinod Polimera wrote: From: Sankeerth Billakanti Updated frames get queued if self_refresh_aware is set when the sink is in psr. To support bridge enable and avoid queuing of update frames, reset the self_refresh_aware state after entering psr. I'm not convinced by this

Re: [Freedreno] [PATCH] drm/msm: use strscpy instead of strncpy

2023-01-23 Thread Abhinav Kumar
On 1/17/2023 6:01 PM, Dmitry Baryshkov wrote: Using strncpy can result in non-NULL-terminated destination string. Use strscpy instead. This fixes following warning: drivers/gpu/drm/msm/msm_fence.c: In function ‘msm_fence_context_alloc’: drivers/gpu/drm/msm/msm_fence.c:25:9: warning:

Re: [Freedreno] [PATCH Resend v11 14/15] drm/msm/disp/dpu: clear active interface in the datapath cleanup

2023-01-23 Thread Dmitry Baryshkov
On 19/01/2023 16:26, Vinod Polimera wrote: Clear interface active register from the datapath for a clean shutdown of the datapath. Signed-off-by: Vinod Polimera --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [Freedreno] [PATCH Resend v11 13/15] drm/msm/disp/dpu: reset the datapath after timing engine disable

2023-01-23 Thread Dmitry Baryshkov
On 19/01/2023 16:26, Vinod Polimera wrote: Reset the datapath after disabling the timing gen, such that it can start on a clean slate when the intf is enabled back. This was a recommended sequence from the DPU HW programming guide. Signed-off-by: Vinod Polimera ---

Re: [Freedreno] [PATCH] drm/msm/dpu: fix sm8450 CTL configuration

2023-01-23 Thread Abhinav Kumar
On 1/23/2023 12:08 AM, Dmitry Baryshkov wrote: Correct the CTL size on sm8450 platform. This fixes the incorrect merge of sm8350 support, which unfortunately also touched the SM8450 setup. Fixes: 0e91bcbb0016 ("drm/msm/dpu: Add SM8350 to hw catalog") Signed-off-by: Dmitry Baryshkov

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

2023-01-23 Thread Abhinav Kumar
On 1/22/2023 10:24 PM, Dmitry Baryshkov wrote: Use the values from the vendor DTs to set ubwc_swizzle in the catalog. Signed-off-by: Dmitry Baryshkov Matches all the vendor DTs, hence Reviewed-by: Abhinav Kumar --- Changes since v1: - Added data for sc7280 and sm8550 ---

Re: [Freedreno] [PATCH Resend v11 15/15] drm/msm/disp/dpu: update dpu_enc crtc state on crtc enable/disable during self refresh

2023-01-23 Thread Dmitry Baryshkov
On 19/01/2023 16:26, Vinod Polimera wrote: Populate the enocder software structure to reflect the updated crtc appropriately during crtc enable/disable for a new commit while taking care of the self refresh transitions when crtc disable is triggered from the drm self refresh library.

Re: [Freedreno] [PATCH v1 04/14] drm/msm/dp: correct configure Colorimetry Indicator Field at MISC0

2023-01-23 Thread kernel test robot
Hi Kuogee, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20230123] [also build test WARNING on linus/master v6.2-rc5] [cannot apply to drm-misc/drm-misc-next drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes

Re: [Freedreno] [PATCH] drm/msm/dpu: drop stale comment from struct dpu_mdp_cfg doc

2023-01-23 Thread Abhinav Kumar
On 1/21/2023 5:54 AM, Dmitry Baryshkov wrote: The field ubwc_static was removed from struct dpu_mdp_cfg some time ago. Drop the corresponding kerneldoc now. Fixes: 544d8b96150d ("drm/msm/dpu: update UBWC config for sm8150 and sm8250") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav

Re: [Freedreno] [PATCH Resend v11 11/15] drm/msm/disp/dpu: get timing engine status from intf status register

2023-01-23 Thread Dmitry Baryshkov
On 19/01/2023 16:26, Vinod Polimera wrote: Recommended way of reading the interface timing gen status is via status register. Timing gen status register will give a reliable status of the interface especially during ON/OFF transitions. This support was added from DPU version 5.0.0. 5.0.0 is

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

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20: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 Resend v11 00/15] Add PSR support for eDP

2023-01-23 Thread Dmitry Baryshkov
On 19/01/2023 16:26, Vinod Polimera wrote: Changes in v2: - Use dp bridge to set psr entry/exit instead of dpu_enocder. - Don't modify whitespaces. - Set self refresh aware from atomic_check. - Set self refresh aware only if psr is supported. - Provide a stub for

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

2023-01-23 Thread Abhinav Kumar
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 DT you are referring to for this? CSC is

Re: [Freedreno] [PATCH v2 1/3] drm/msm/mdss: convert UBWC setup to use match data

2023-01-23 Thread Abhinav Kumar
On 1/19/2023 9:26 PM, Dmitry Baryshkov wrote: On Fri, 20 Jan 2023 at 00:54, Abhinav Kumar wrote: On 1/17/2023 5:04 PM, Dmitry Baryshkov wrote: To simplify adding new platforms and to make settings more obvious, rewrite the UBWC setup to use the data structure to pass platform config

[Freedreno] [RFC PULL] drm/msm/dpu: rework DPU HW catalog

2023-01-23 Thread Dmitry Baryshkov
This is my current attempt to restructure DPU HW catalog. As it depends heavily on all small cleanup patches that I've sent lately, I decided to send it this way (while it's still an RFC). This way if one wants to give such restructure a try, he doesn't have to pick up individual fixup patches

Re: [Freedreno] [PATCH v2 1/3] drm/msm/gpu: Add devfreq tuning debugfs

2023-01-23 Thread Krzysztof Kozlowski
On 11/01/2023 00:14, Rob Clark wrote: > From: Rob Clark > > Make the handful of tuning knobs available visible via debugfs. > > v2: select DEVFREQ_GOV_SIMPLE_ONDEMAND because for some reason > struct devfreq_simple_ondemand_data depends on this > > Signed-off-by: Rob Clark > --- For some

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

2023-01-23 Thread Thomas Zimmermann
Move the fb-helper clean-up code into drm_fb_helper_unprepare(). No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_helper.c | 14 +- include/drm/drm_fb_helper.h | 4 2 files changed, 17 insertions(+), 1 deletion(-) diff --git

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

2023-01-23 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 00/10] drm/fb-helper: Various cleanups

2023-01-23 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 08/10] drm/fbdev-generic: Minimize client unregistering

2023-01-23 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 05/10] drm/fb-helper: Remove preferred_bpp parameter from fbdev internals

2023-01-23 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 07/10] drm/fbdev-generic: Minimize hotplug error handling

2023-01-23 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 06/10] drm/fb-helper: Initialize fb-helper's preferred BPP in prepare function

2023-01-23 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 ---

[Freedreno] [PATCH] drm/msm/dpu: fix sm8450 CTL configuration

2023-01-23 Thread Dmitry Baryshkov
Correct the CTL size on sm8450 platform. This fixes the incorrect merge of sm8350 support, which unfortunately also touched the SM8450 setup. Fixes: 0e91bcbb0016 ("drm/msm/dpu: Add SM8350 to hw catalog") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 10

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

2023-01-23 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 04/10] drm/fbdev-generic: Initialize fb-helper structure in generic setup

2023-01-23 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 01/10] drm/client: Test for connectors before sending hotplug event

2023-01-23 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 09/10] drm/fbdev-generic: Inline clean-up helpers into drm_fbdev_fb_destroy()

2023-01-23 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

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

2023-01-23 Thread Johan Hovold
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: > > On Fri, Jan 13, 2023 at 10:57:18AM +0200, Dmitry Baryshkov wrote: > > > On 13/01/2023 06:23, Dmitry Baryshkov wrote: > > > > On 13/01/2023 06:10, Bjorn Andersson

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

2023-01-23 Thread Bjorn Andersson
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: > > > On Fri, Jan 13, 2023 at 10:57:18AM +0200, Dmitry Baryshkov wrote: > > > > On 13/01/2023 06:23,

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

2023-01-23 Thread Rob Clark
From: Rob Clark The existing no-op shims for when PM_DEVFREQ (or an individual governor) only do half the job. The governor specific config/tuning structs need to be available to avoid compile errors in drivers using devfreq. Fixes: 6563f60f14cb ("drm/msm/gpu: Add devfreq tuning debugfs")

Re: [Freedreno] [PATCH v2 1/3] drm/msm/gpu: Add devfreq tuning debugfs

2023-01-23 Thread Rob Clark
On Mon, Jan 23, 2023 at 4:38 AM Krzysztof Kozlowski wrote: > > On 11/01/2023 00:14, Rob Clark wrote: > > From: Rob Clark > > > > Make the handful of tuning knobs available visible via debugfs. > > > > v2: select DEVFREQ_GOV_SIMPLE_ONDEMAND because for some reason > > struct

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

2023-01-23 Thread Marijn Suijten
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 > --- > drivers/gpu/drm/msm/Makefile

Re: [Freedreno] [PATCH v1 14/14] drm/msm/disp/dpu1: add sc7280 dsc block and sub block

2023-01-23 Thread Marijn Suijten
On 2023-01-23 10:24:34, Kuogee Hsieh wrote: > This patch add DSC block and sub block to support new DSC v1.2 hardware > encoder. Also sc7280 DSC related hardware information are added to allow > sc7280 DSC feature be enabled at sc7280 platform. You're not adding support (that happened in previous

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

2023-01-23 Thread 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 name fbi accordingly. > > Also replace the

Re: [Freedreno] [PATCH 2/6] dt-bindings: phy: qcom, hdmi-phy-other: mark it as clock provider

2023-01-23 Thread Rob Herring
On Thu, 19 Jan 2023 15:22:15 +0200, Dmitry Baryshkov wrote: > Eventually all HDMI PHYs are going to provide the HDMI PLL clock to the > MMCC. Add #clock-cells property required to provide the HDMI PLL clock to > other devices. > > Signed-off-by: Dmitry Baryshkov > --- >

Re: [Freedreno] [PATCH] dt-bindings: drop type for operating-points-v2

2023-01-23 Thread Rob Herring
On Thu, 19 Jan 2023 14:10:33 +0100, Krzysztof Kozlowski wrote: > The type for operating-points-v2 property is coming from dtschema > (/schemas/opp/opp.yaml), so individual bindings can just use simple > "true". > > Signed-off-by: Krzysztof Kozlowski > > --- > > This depends on my pull

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

2023-01-23 Thread Marijn Suijten
DisplayPort is a name, and I think you should spell it as such in both the cover letter title and individual patch descriptions (capital D and P, no space in between). On 2023-01-23 10:24:20, Kuogee Hsieh wrote: > This patch add DSC related supporting functions into to both dp controller > and

[Freedreno] [PATCH v1 01/14] drm/msm/dp: add dpcd read of both dsc and fec capability

2023-01-23 Thread Kuogee Hsieh
FEC is pre-requirement of DSC. Therefore FEC has to be enabled before DSC enabled. This patch add functions to read sink's DSC and FEC related DPCD and decode them and set enable flags accordingly. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_panel.c | 91

[Freedreno] [PATCH v1 02/14] drm/msm/dp: add dsc factor into calculation of supported bpp

2023-01-23 Thread Kuogee Hsieh
When FEC enabled, it introduces 2.5% overhead into link capacity. This factor have to be considered into calculation supported bpp. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_panel.c | 45 +-- 1 file changed, 38 insertions(+), 7 deletions(-)

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

2023-01-23 Thread Kuogee Hsieh
This patch add DSC related supporting functions into to both dp controller and dpu enccoder Kuogee Hsieh (14): drm/msm/dp: add dpcd read of both dsc and fec capability drm/msm/dp: add dsc factor into calculation of supported bpp drm/msm/dp: add configure mainlink_levels base on lane number

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

2023-01-23 Thread Kuogee Hsieh
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 | 2 +

[Freedreno] [PATCH v1 14/14] drm/msm/disp/dpu1: add sc7280 dsc block and sub block

2023-01-23 Thread Kuogee Hsieh
This patch add DSC block and sub block to support new DSC v1.2 hardware encoder. Also sc7280 DSC related hardware information are added to allow sc7280 DSC feature be enabled at sc7280 platform. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 50

[Freedreno] [PATCH v1 08/14] drm/msm/dp: add dsc supporting functions to DP controller

2023-01-23 Thread Kuogee Hsieh
This patch provides DSC required functions at DP controller to complete DSC feature. those functions include enable fec, configure dsc, configure dto, transmit pps and finally flush hardware registers. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_catalog.c | 139 -

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

2023-01-23 Thread Kuogee Hsieh
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 + drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 2 +-

[Freedreno] [PATCH v1 11/14] drm/msm/disp/dpu1: add supports of new flush mechanism

2023-01-23 Thread Kuogee Hsieh
A new flushing mechanism is introduced to decouple peripheral metadata flushing from timing engine related flush. This patch add peripheral flushing functions. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 24 ++--

[Freedreno] [PATCH v1 05/14] drm/msm/dp: upgrade tu calculation base on newest algorithm

2023-01-23 Thread Kuogee Hsieh
At display port, the pixel data is packed into TU (transfer units) which is used to carry main video stream data during its horizontal active period. TUs are mapping into the main-Link to facilitate the support of various lane counts regardless of the pixel bit depth and colorimetry format.

[Freedreno] [PATCH v1 07/14] drm/msm/dp: add dsc helper functions

2023-01-23 Thread Kuogee Hsieh
Add DSC related supporting functions to calculate DSC related parameters. In addition, DSC hardware encoder customized configuration parameters are also included. Algorithms used to perform calculation are derived from system engineer spreadsheet. Signed-off-by: Kuogee Hsieh ---

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

2023-01-23 Thread Kuogee Hsieh
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 ++ drivers/gpu/drm/msm/msm_drv.h | 89

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

2023-01-23 Thread Kuogee Hsieh
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 dpu encoder instead of struct drm_dsc_config.

[Freedreno] [PATCH v1 13/14] drm/msm/disp/dpu1: add dsc supporting functions to dpu encoder

2023-01-23 Thread Kuogee Hsieh
Since display Port is an external peripheral, runtime compression detection is added to handle plug in and unplugged events. Currently only DSC compression supported. Once DSC compression detected, topology is static added and used to allocate system resources to accommodate DSC requirement. DSC

[Freedreno] [PATCH v1 04/14] drm/msm/dp: correct configure Colorimetry Indicator Field at MISC0

2023-01-23 Thread Kuogee Hsieh
MSA MISC0 bit 1 to 7 contains Colorimetry Indicator Field. At current implementation, Colorimetry Indicator Field of MISC0 is not configured correctly. This patch add support of RGB formats Colorimetry. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 5 +++--

[Freedreno] [PATCH v1 03/14] drm/msm/dp: add configure mainlink_levels base on lane number

2023-01-23 Thread Kuogee Hsieh
Mainlink_levels determined when two actions to take place by hardware, a new BS sequence due to start of video and a static HW MVID is sent to panel. This patch add function to configure mainlink level properly base on lane number. 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-23 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 v1 11/14] drm/msm/disp/dpu1: add supports of new flush mechanism

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20:24, Kuogee Hsieh wrote: A new flushing mechanism is introduced to decouple peripheral metadata flushing from timing engine related flush. This patch add peripheral flushing functions. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 24

Re: [Freedreno] [PATCH v1 07/14] drm/msm/dp: add dsc helper functions

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20:24, Kuogee Hsieh wrote: Add DSC related supporting functions to calculate DSC related parameters. In addition, DSC hardware encoder customized configuration parameters are also included. Algorithms used to perform calculation are derived from system engineer spreadsheet.

Re: [Freedreno] [PATCH v1 03/14] drm/msm/dp: add configure mainlink_levels base on lane number

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20:24, Kuogee Hsieh wrote: Mainlink_levels determined when two actions to take place by hardware, a new BS sequence due to start of video and a static HW MVID is sent to panel. This patch add function to configure mainlink level properly base on lane number. Signed-off-by: Kuogee

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

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20: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 v1 09/14] drm/msm/dsi: export struct msm_compression_info to dpu encoder

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20: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] [PATCH v1 07/14] drm/msm/dp: add dsc helper functions

2023-01-23 Thread Marijn Suijten
This has nothing to do with /dp, make it /dpu On 2023-01-23 10:24:27, Kuogee Hsieh wrote: > Add DSC related supporting functions to calculate DSC related parameters. > In addition, DSC hardware encoder customized configuration parameters are > also included. Algorithms used to perform

Re: [Freedreno] [PATCH v1 01/14] drm/msm/dp: add dpcd read of both dsc and fec capability

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20:24, Kuogee Hsieh wrote: FEC is pre-requirement of DSC. Therefore FEC has to be enabled before DSC enabled. This patch add functions to read sink's DSC and FEC related DPCD and decode them and set enable flags accordingly. Please split this to FEC and DSC patches.

Re: [Freedreno] [PATCH v1 08/14] drm/msm/dp: add dsc supporting functions to DP controller

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20:24, Kuogee Hsieh wrote: This patch provides DSC required functions at DP controller to complete DSC feature. those functions include enable fec, configure dsc, configure dto, transmit pps and finally flush hardware registers. Too many items for a single patch in my opinion.

Re: [Freedreno] [PATCH v1 04/14] drm/msm/dp: correct configure Colorimetry Indicator Field at MISC0

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20:24, Kuogee Hsieh wrote: MSA MISC0 bit 1 to 7 contains Colorimetry Indicator Field. At current implementation, Colorimetry Indicator Field of MISC0 is not configured correctly. This patch add support of RGB formats Colorimetry. Any Fixes tag? Not to mention that fixes should

Re: [Freedreno] [PATCH v1 02/14] drm/msm/dp: add dsc factor into calculation of supported bpp

2023-01-23 Thread kernel test robot
Hi Kuogee, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20230123] [also build test WARNING on linus/master v6.2-rc5] [cannot apply to drm-misc/drm-misc-next drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes

Re: [Freedreno] [PATCH v1 05/14] drm/msm/dp: upgrade tu calculation base on newest algorithm

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20:24, Kuogee Hsieh wrote: At display port, the pixel data is packed into TU (transfer units) which is used to carry main video stream data during its horizontal active period. TUs are mapping into the main-Link to facilitate the support of various lane counts regardless of the

Re: [Freedreno] [PATCH v1 05/14] drm/msm/dp: upgrade tu calculation base on newest algorithm

2023-01-23 Thread kernel test robot
Hi Kuogee, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20230123] [also build test WARNING on linus/master v6.2-rc5] [cannot apply to drm-misc/drm-misc-next drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes

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

2023-01-23 Thread Dmitry Baryshkov
On 23/01/2023 20:24, Kuogee Hsieh wrote: This patch add DSC related supporting functions into to both dp controller and dpu enccoder Kuogee Hsieh (14): drm/msm/dp: add dpcd read of both dsc and fec capability drm/msm/dp: add dsc factor into calculation of supported bpp drm/msm/dp: add