[Freedreno] [PATCH 4/4] drm/msm/dp: Add sc8180x DP controllers

2021-07-24 Thread Bjorn Andersson
The sc8180x has 2 DP and 1 eDP controllers, add support for these to the DP driver. Link: https://lore.kernel.org/linux-arm-msm/20210511042043.592802-5-bjorn.anders...@linaro.org/ Signed-off-by: Bjorn Andersson --- drivers/gpu/drm/msm/dp/dp_display.c | 12 1 file changed, 12 insert

[Freedreno] [PATCH 4/5] dt-bindings: msm/dp: Add SC8180x compatibles

2021-07-24 Thread Bjorn Andersson
The Qualcomm SC8180x has 2 DP controllers and 1 eDP controller, add compatibles for these to the msm/dp binding. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/display/msm/dp-controller.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindi

[Freedreno] [PATCH 2/5] drm/msm/dp: Modify prototype of encoder based API

2021-07-24 Thread Bjorn Andersson
Functions in the DisplayPort code that relates to individual instances (encoders) are passed both the struct msm_dp and the struct drm_encoder. But in a situation where multiple DP instances would exist this means that the caller need to resolve which struct msm_dp relates to the struct drm_encoder

[Freedreno] [PATCH 3/5] drm/msm/dp: Support up to 3 DP controllers

2021-07-24 Thread Bjorn Andersson
Based on the removal of the g_dp_display and the movement of the priv->dp lookup into the DP code it's now possible to have multiple DP instances. In line with the other controllers in the MSM driver, introduce a per-compatible list of base addresses which is used to resolve the "instance id" for

[Freedreno] [PATCH 5/5] drm/msm/dp: Add sc8180x DP controllers

2021-07-24 Thread Bjorn Andersson
The sc8180x has 2 DP and 1 eDP controllers, add support for these to the DP driver. Link: https://lore.kernel.org/linux-arm-msm/20210511042043.592802-5-bjorn.anders...@linaro.org/ Signed-off-by: Bjorn Andersson --- drivers/gpu/drm/msm/dp/dp_display.c | 12 1 file changed, 12 insert

[Freedreno] [PATCH 1/5] drm/msm/dp: Remove global g_dp_display variable

2021-07-24 Thread Bjorn Andersson
As the Qualcomm DisplayPort driver only supports a single instance of the driver the commonly used struct dp_display is kept in a global variable. As we introduce additional instances this obviously doesn't work. Replace this with a combination of existing references to adjacent objects and drvdat

[Freedreno] [PATCH 0/5] drm/msm/dp: Support multiple DP instances and add sc8180x

2021-07-24 Thread Bjorn Andersson
The current implementation supports a single DP instance and the DPU code will only match it against INTF_DP instance 0. These patches extends this to allow multiple DP instances and support for matching against DP instances beyond 0. This is based on v4 of Dmitry's work on multiple DSI interfaces

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

2021-07-24 Thread Bjorn Andersson
On Sat 17 Jul 07:40 CDT 2021, Dmitry Baryshkov wrote: > set_encoder_mode callback is completely unused now. Drop it from > msm_kms_func(). > > Signed-off-by: Dmitry Baryshkov > Reviewed-by: Abhinav Kumar Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/gpu/drm/msm/msm_kms.h | 3

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

2021-07-24 Thread Bjorn Andersson
On Sat 17 Jul 07:40 CDT 2021, Dmitry Baryshkov wrote: > None of the display drivers now implement set_encoder_mode callback. > Stop calling it from the modeset init code. > > Signed-off-by: Dmitry Baryshkov > Reviewed-by: Abhinav Kumar Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > dr

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

2021-07-24 Thread Bjorn Andersson
On Sat 17 Jul 07:40 CDT 2021, Dmitry Baryshkov wrote: > None of the display drivers now implement set_encoder_mode callback. > Stop calling it from the modeset init code. > > Signed-off-by: Dmitry Baryshkov > Reviewed-by: Abhinav Kumar Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > dr

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

2021-07-24 Thread Bjorn Andersson
On Sat 17 Jul 07:40 CDT 2021, Dmitry Baryshkov wrote: > Move a call to mdp5_encoder_set_intf_mode() after > msm_dsi_modeset_init(), removing set_encoder_mode callback. > > Signed-off-by: Dmitry Baryshkov > Reviewed-by: Abhinav Kumar Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drive

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

2021-07-24 Thread Bjorn Andersson
On Sat 17 Jul 07:40 CDT 2021, Dmitry Baryshkov wrote: > 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 t

Re: [Freedreno] [PATCH v4 2/7] drm/msm/dsi: add three helper functions

2021-07-24 Thread Bjorn Andersson
On Sat 17 Jul 07:40 CDT 2021, Dmitry Baryshkov wrote: > Add three helper functions to be used by display drivers for setting up > encoders. > > Signed-off-by: Dmitry Baryshkov > Reviewed-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/dsi/dsi.c | 7 +++ > drivers/gpu/drm/msm/dsi/dsi

[Freedreno] [PATCH] drm: msm: Add 680 gpu to the adreno gpu list

2021-07-24 Thread Bjorn Andersson
This patch adds a Adreno 680 entry to the gpulist. Signed-off-by: Bjorn Andersson --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 5 +++-- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 12 +++- drivers/gpu/drm/msm/adreno/a6xx_hfi.c | 2 +- drivers/gpu/drm/msm/adreno/adreno_device.

Re: [Freedreno] [PATCH 2/2] drm/msm/a6xx: Add support for Adreno 7c Gen 3 gpu

2021-07-24 Thread Rob Clark
() On Fri, Jul 23, 2021 at 3:38 AM Akhil P Oommen wrote: > > This patch adds support for the gpu found in the Snapdragon 7c Gen 3 > compute platform. This gpu is similar to the exisiting a660 gpu with > minor delta in the programing sequence. As the Adreno GPUs are moving > away from a numeric ch

[Freedreno] [PATCH v2] arm64: dts: qcom: sc7280: Add gpu support

2021-07-24 Thread Akhil P Oommen
Add the necessary dt nodes for gpu support in sc7280. Signed-off-by: Akhil P Oommen --- This patch has dependency on the GPUCC bindings patch here: https://patchwork.kernel.org/project/linux-arm-msm/patch/1619519590-3019-4-git-send-email-t...@codeaurora.org/ Changes in v2: - formatting update an