[Nouveau] [PATCH v5 3/3] drm/amd/display: Switch to using atomic_helper for flip.

2017-02-02 Thread Andrey Grodzovsky
v2: Modify for movig pflip flags to crtc_state v4: Fix identation. v5: Rename field to pageflip_flags. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 1 - .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c| 113 + 2 files

[Nouveau] [PATCH v5 0/3] Allow ASYNC flip with atomic helpers.

2017-02-02 Thread Andrey Grodzovsky
ren's comment, reset flp flags before using again. Harry's comment, fix identation in amd/display. v5: Rename the flag, fix typo in header. Andrey Grodzovsky (3): drm/atomic: Save flip flags in drm_crtc_state drm/nouveau/kms/nv50: Switch to using atomic helper for flip. drm/amd/dis

[Nouveau] [PATCH v5 2/3] drm/nouveau/kms/nv50: Switch to using atomic helper for flip.

2017-02-02 Thread Andrey Grodzovsky
v2: Update code after flip_flags moved from plane_state to crtc_state v5: Rename to pageflip_flags. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/nouveau/nv50_display.c | 84 -- 1 file changed, 10 insertions(+), 74 deletions(-) diff --git a/drivers/gpu

[Nouveau] [PATCH v5 1/3] drm/atomic: Save flip flags in drm_crtc_state

2017-02-02 Thread Andrey Grodzovsky
v4: Reset the flag before using again. v5: Fix type in header. Rename the field to pageflip_flags. Remove unrelated hunk. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/drm_atomic_helper.c | 20 ++-- include/drm/drm_crtc.h | 9 - 2 files changed, 14

[Nouveau] [PATCH v4 1/3] drm/atomic: Save flip flags in drm_crtct_state

2017-02-01 Thread Andrey Grodzovsky
v4: Reset the flag before using again. Change-Id: I0219c3ec3ecceb82143ee176d30cb50d9aa76bf0 Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/drm_atomic_helper.c | 20 ++-- include/drm/drm_crtc.h | 9 - include/drm/drm_plane.h | 1 + 3 files

[Nouveau] [PATCH v4 2/3] drm/nouveau/kms/nv50: Switch to using atomic helper for flip.

2017-02-01 Thread Andrey Grodzovsky
v2: Update code after flip_flags moved from plane_state to crtc_state Change-Id: I5a3189c03e389af2ff6c13d870a7d28282b7b0ee Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/nouveau/nv50_display.c | 84 -- 1 file changed, 10 insertions(+), 74 deletions(-) diff

[Nouveau] [PATCH v4 3/3] drm/amd/display: Switch to using atomic_helper for flip.

2017-02-01 Thread Andrey Grodzovsky
v2: Modify for movig pflip flags to crtc_state v4: Fix identation. Change-Id: I25dae6d8c29de5d022a42aa99a18a32674b56cda Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 1 - .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c| 113

[Nouveau] [PATCH v4 0/3] Allow ASYNC flip with atomic helpers.

2017-02-01 Thread Andrey Grodzovsky
ren's comment, reset flp flags before using again. Harry's comment, fix identation in amd/display. Andrey Grodzovsky (3): drm/atomic: Save flip flags in drm_crtct_state drm/nouveau/kms/nv50: Switch to using atomic helper for flip. drm/amd/display: Switch to using atomic_helper for

[Nouveau] [v3 PATCH 3/3] drm/amd/display: Switch to using atomic_helper for flip.

2017-01-28 Thread Andrey Grodzovsky
Swicth to use atomic helper. Start using actual user's given target_vblank value for flip instead of current value. v3: Update for movig pflip flags to crtc_state Change-Id: I25dae6d8c29de5d022a42aa99a18a32674b56cda Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_m

[Nouveau] [v3 PATCH 1/3] drm/atomic: Save flip flags in drm_crtct_state

2017-01-28 Thread Andrey Grodzovsky
Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/drm_atomic_helper.c | 19 +-- include/drm/drm_crtc.h | 8 +++- include/drm/drm_plane.h | 1 + 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b

[Nouveau] [v3 PATCH 0/3] Allow ASYNC flip with atomic helpers.

2017-01-28 Thread Andrey Grodzovsky
helper as we did to support ASYNC flips. v2: Resend drm/atomic: Save flip flags in drm_plane_state since the original patch was incomplete. Squash 2 AMD changes into one to not break compilation. v3: Following Daniel's comments, save flip flags in crtc_state instead of plane_state. A

[Nouveau] [v3 PATCH 2/3] drm/nouveau/kms/nv50: Switch to using atomic flip helper.

2017-01-28 Thread Andrey Grodzovsky
v3: Update code after flip_flags moved from plane_state to crtc_state Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/nouveau/nv50_display.c | 84 -- 1 file changed, 10 insertions(+), 74 deletions(-) P.S This patch hasn't been tested since i don&#

[Nouveau] [PATCH v3 2/3] drm/amd/display: Switch to using atomic_helper for flip.

2017-01-18 Thread Andrey Grodzovsky
v3: Remove white space change. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 1 - .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c| 89 ++ 2 files changed, 5 insertions(+), 85 deletions(-) diff --git a/drivers/gpu/drm/amd

[Nouveau] [PATCH 3/4] drm/amd/display: Switch to using atomic_helper for flip.

2017-01-17 Thread Andrey Grodzovsky
Change-Id: Iad3e0b9b3546e4e4dc79be9233daf4fe4dba83e0 Signed-off-by: Andrey Grodzovsky --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c| 92 ++ 1 file changed, 6 insertions(+), 86 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c b

[Nouveau] [PATCH v2 2/3] drm/amd/display: Switch to using atomic_helper for flip.

2017-01-17 Thread Andrey Grodzovsky
Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 1 - .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c| 92 ++ 2 files changed, 6 insertions(+), 87 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu

[Nouveau] [PATCH v2 3/3] drm/nouveau/kms/nv50: Switch to using atomic helper for flip.

2017-01-17 Thread Andrey Grodzovsky
Change-Id: I5a3189c03e389af2ff6c13d870a7d28282b7b0ee Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/nouveau/nv50_display.c | 77 +++--- 1 file changed, 5 insertions(+), 72 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm

[Nouveau] [PATCH 4/4] drm/nouveau/kms/nv50: Switch to using atomic helper for flip.

2017-01-17 Thread Andrey Grodzovsky
Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/nouveau/nv50_display.c | 77 +++--- 1 file changed, 5 insertions(+), 72 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 2c2c645..419e00c 100644 --- a

[Nouveau] [PATCH v2 0/3] Allow ASYNC flip with atomic helpers.

2017-01-17 Thread Andrey Grodzovsky
helper as we did to support ASYNC flips. v2: Resend drm/atomic: Save flip flags in drm_plane_state since the original patch was incomplete. Squash 2 AMD changes into one to not break compilation. Andrey Grodzovsky (3): drm/atomic: Save flip flags in drm_plane_state drm/amd/display: Switch to

[Nouveau] [PATCH v2 1/3] drm/atomic: Save flip flags in drm_plane_state

2017-01-17 Thread Andrey Grodzovsky
. Change-Id: I0219c3ec3ecceb82143ee176d30cb50d9aa76bf0 Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/drm_atomic_helper.c | 18 +- include/drm/drm_plane.h | 8 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm

[Nouveau] [PATCH 0/4] Allow ASYNC flip with atomic helpers.

2017-01-17 Thread Andrey Grodzovsky
duplicate the helper as we did to support ASYNC flips. Andrey Grodzovsky (4): drm/atomic: Save flip flags in drm_plane_state drm/amdgpu: Remove flip_flag from amdgpu_crtc drm/amd/display: Switch to using atomic_helper for flip. drm/nouveau/kms/nv50: Switch to using atomic helper for flip

[Nouveau] [PATCH 1/4] drm/atomic: Save flip flags in drm_plane_state

2017-01-17 Thread Andrey Grodzovsky
Allows using atomic flip helpers for drivers using ASYNC flip. Remove ASYNC_FLIP restriction in helpers and caches the page flip flags in drm_plane_state to be used in the low level drivers. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/drm_atomic_helper.c | 10 +++--- include/drm

[Nouveau] [PATCH 2/4] drm/amdgpu: Remove flip_flag from amdgpu_crtc

2017-01-17 Thread Andrey Grodzovsky
Follwing introduction of pflip_flags in drm_plane_state this is not needed anymore. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu