[Freedreno] [PATCH v3 0/6] ARM: qcom: working Nexus 5 display support

2019-05-31 Thread Brian Masney
This patch series adds working display support to the LG Nexus 5 (hammerhead) phone. Changes since v2: - Dropped two drm/msm bug fix patches that have been merged separately. - New patch: 'add support for per-CRTC max_vblank_count on mdp5'. Special thanks to Jeffrey Hugo for helping to track dow

[Freedreno] [PATCH v3 6/6] ARM: dts: qcom: msm8974-hammerhead: add support for display

2019-05-31 Thread Brian Masney
Add initial support for the display found on the LG Nexus 5 (hammerhead) phone. This is based on work from Jonathan Marek. Signed-off-by: Brian Masney --- .../qcom-msm8974-lge-nexus5-hammerhead.dts| 58 +++ 1 file changed, 58 insertions(+) diff --git a/arch/arm/boot/dts/qcom

[Freedreno] [PATCH v3 4/6] ARM: dts: qcom: msm8974-hammerhead: add support for backlight

2019-05-31 Thread Brian Masney
Add necessary device tree nodes for the main LCD backlight. Signed-off-by: Brian Masney Reviewed-by: Linus Walleij --- .../qcom-msm8974-lge-nexus5-hammerhead.dts| 34 +++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts

[Freedreno] [PATCH v3 5/6] ARM: dts: msm8974: add display support

2019-05-31 Thread Brian Masney
Add the MDP5, DSI and DSI PHY blocks for the display found on the msm8974 SoCs. This is based on work from msm8916.dtsi and Jonathan Marek. Signed-off-by: Brian Masney Reviewed-by: Linus Walleij --- arch/arm/boot/dts/qcom-msm8974.dtsi | 132 1 file changed, 132 inse

[Freedreno] [PATCH v3 1/6] drm/msm: add dirty framebuffer helper

2019-05-31 Thread Brian Masney
Use drm_atomic_helper_dirtyfb() as the dirty callback in the msm_framebuffer_funcs struct. Call drm_plane_enable_fb_damage_clips() when the planes are initialized in mdp4, mdp5, and dpu1. Signed-off-by: Brian Masney --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 3 +++ drivers/gpu/drm/msm/disp

[Freedreno] [PATCH v3 2/6] drm/msm: add support for per-CRTC max_vblank_count on mdp5

2019-05-31 Thread Brian Masney
The mdp5 drm/kms driver currently does not work on command-mode DSI panels due to 'vblank wait timed out' errors. This causes a latency of seconds, or tens of seconds in some cases, before content is shown on the panel. This hardware does not have the something that we can use as a frame counter av

[Freedreno] [PATCH v3 3/6] ARM: qcom_defconfig: add display-related options

2019-05-31 Thread Brian Masney
Add the CMA (Contiguous Memory Allocator) for the MSM DRM/KMS driver, the simple panel, and the TI LM3630A driver in order to support the display on the LG Nexus 5 (hammerhead) phone. Signed-off-by: Brian Masney Reviewed-by: Linus Walleij --- arch/arm/configs/qcom_defconfig | 5 + 1 file ch

Re: [Freedreno] [PATCH v3 3/5] drm/msm: fix fb references in async update

2019-05-31 Thread Rob Clark
On Fri, May 31, 2019 at 10:54 AM Helen Koike wrote: > > Hello, > > On 3/13/19 9:20 PM, Helen Koike wrote: > > Async update callbacks are expected to set the old_fb in the new_state > > so prepare/cleanup framebuffers are balanced. > > > > Cc: # v4.14+ > > Fixes: 224a4c970987 ("drm/msm: update cur

Re: [Freedreno] [PATCH v3 3/5] drm/msm: fix fb references in async update

2019-05-31 Thread Helen Koike
Hello, On 3/13/19 9:20 PM, Helen Koike wrote: > Async update callbacks are expected to set the old_fb in the new_state > so prepare/cleanup framebuffers are balanced. > > Cc: # v4.14+ > Fixes: 224a4c970987 ("drm/msm: update cursors asynchronously through atomic") > Suggested-by: Boris Brezillon

[Freedreno] [PATCH] drm/msm/adreno: Ensure that the zap shader region is big enough

2019-05-31 Thread Jordan Crouse
Before loading the zap shader we should ensure that the reserved memory region is big enough to hold the loaded file. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/ad

Re: [Freedreno] [PATCH] drm/msm/adreno: Ensure that the zap shader region is big enough

2019-05-31 Thread Bjorn Andersson
On Fri 31 May 15:09 PDT 2019, Jordan Crouse wrote: > Before loading the zap shader we should ensure that the reserved memory > region is big enough to hold the loaded file. > > Signed-off-by: Jordan Crouse Reviewed-by: Bjorn Andersson > --- > > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 8 ++