[Freedreno] [PATCH] drm/msm/dpu: Add support for AR30 format

2023-03-18 Thread Leonard Lausen
Commit da7716a249b699978fb5 ("drm/msm/dpu: Add support for XR30 format") enabled support for the 10-bit XR30 color format but missed AR30 color format. This can trigger bugs in userspace. KDE KWin compositor for example always prefers 10-bit color formats, rendering a 1cm^2 black box around the cu

Re: [Freedreno] [Intel-gfx] [PATCH v10 09/15] drm/syncobj: Add deadline support for syncobj waits

2023-03-18 Thread Rob Clark
On Fri, Mar 17, 2023 at 12:08 PM Faith Ekstrand wrote: > > > On Wed, Mar 8, 2023 at 9:54 AM Rob Clark wrote: >> >> From: Rob Clark >> >> Add a new flag to let userspace provide a deadline as a hint for syncobj >> and timeline waits. This gives a hint to the driver signaling the >> backing fence

[Freedreno] [PATCH v6 8/9] dt-bindings: display/msm: dsi-controller-main: Add SM6115

2023-03-18 Thread Konrad Dybcio
Add a compatible for the DSI on SM6115. Acked-by: Rob Herring Reviewed-by: Marijn Suijten Signed-off-by: Konrad Dybcio --- .../devicetree/bindings/display/msm/dsi-controller-main.yaml | 2 ++ .../devicetree/bindings/display/msm/qcom,sm6115-mdss.yaml | 10 -- 2 files changed, 10

[Freedreno] [PATCH v6 7/9] drm/msm/dsi: Remove custom DSI config handling

2023-03-18 Thread Konrad Dybcio
Now that the only user is handled by common code, remove the option to specify custom handlers through match data. This is effectively a revert of commit: 5ae15e76271 ("drm/msm/dsi: Allow to specify dsi config as pdata") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: K

[Freedreno] [PATCH v6 6/9] drm/msm/dsi: Switch the QCM2290-specific compatible to index autodetection

2023-03-18 Thread Konrad Dybcio
Now that the logic can handle multiple sets of registers, move the QCM2290 to the common logic and mark it deprecated. This allows us to remove a couple of structs, saving some memory. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/ms

[Freedreno] [PATCH v6 9/9] arm64: dts: qcom: sm6115: Use the correct DSI compatible

2023-03-18 Thread Konrad Dybcio
Use the non-deprecated, SoC-specific DSI compatible. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/

[Freedreno] [PATCH v6 2/9] drm/msm/dsi: Get rid of msm_dsi_config::num_dsi

2023-03-18 Thread Konrad Dybcio
In preparation for supporting multiple sets of possible base registers, remove the num_dsi variable. We're comparing the io_start array contents with the reg value from the DTS, so it will either match one of the expected values or don't match against a zero (which we get from partial array initial

[Freedreno] [PATCH v6 4/9] drm/msm/dsi: dsi_cfg: Deduplicate identical structs

2023-03-18 Thread Konrad Dybcio
Some structs were defined multiple times for no apparent reason. Deduplicate them. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/dsi/dsi_cfg.c | 93 +-- 1 file changed, 30 insertions(+), 63 del

[Freedreno] [PATCH v6 3/9] drm/msm/dsi: Fix DSI index detection when version clash occurs

2023-03-18 Thread Konrad Dybcio
Currently, we allow for MAX_DSI entries in io_start to facilitate for MAX_DSI number of DSI hosts at different addresses. The configuration is matched against the DSI CTRL hardware revision read back from the component. We need a way to resolve situations where multiple SoCs with different register

[Freedreno] [PATCH v6 5/9] drm/msm/dsi: dsi_cfg: Merge SC7180 config into SDM845

2023-03-18 Thread Konrad Dybcio
The configs are identical, other than the number of *maximum* DSI hosts allowed. This isn't an issue, unless somebody deliberately tries to access the inexistent host by adding a dt node for it. Remove the SC7180 struct and point the hw revision match to the SDM845's one. On a note, this could hav

[Freedreno] [PATCH v6 1/9] dt-bindings: display/msm: dsi-controller-main: Fix deprecated QCM2290 compatible

2023-03-18 Thread Konrad Dybcio
The point of the previous cleanup was to disallow "qcom,mdss-dsi-ctrl" alone. This however didn't quite work out and the property became undocumented instead of deprecated. Fix that. Additionally, the "qcom," prefix was missed previously. Fix it. Fixes: 0c0f65c6dd44 ("dt-bindings: msm: dsi-contro

[Freedreno] [PATCH v6 0/9] Fix DSI host idx detection on HW revision clash

2023-03-18 Thread Konrad Dybcio
v5 -> v6: - Squash both fixes that concerned the deprecated QCM2290 compatible to avoid warnings v5: https://lore.kernel.org/r/20230307-topic-dsi_qcm-v5-0-9d4235b77...@linaro.org v4 -> v5: - Drop superfluous items: level in [8/10] - Remove the header define for the qcm2290 config in [6/10] ins

Re: [Freedreno] [PATCH] dt-bindings: display: Drop unneeded quotes

2023-03-18 Thread Laurent Pinchart
Hi Rob, Thank you for the patch. On Fri, Mar 17, 2023 at 06:36:24PM -0500, Rob Herring wrote: > Cleanup bindings dropping unneeded quotes. Once all these are fixed, > checking for this can be enabled in yamllint. > > Signed-off-by: Rob Herring Reviewed-by: Laurent Pinchart > --- > .../bindi