[PATCH libdrm v4] libdrm: headers: Sync with drm-next

2018-10-01 Thread Ayan Kumar Halder
the changes to vmwgfx_drm.h as it caused a build break ie 'make check' failed. Change-Id: I018a06f65bf4a6a68400ab252b9cd05d041299b3 Signed-off-by: Ayan Kumar halder Reviewed-by: Emil Velikov --- include/drm/amdgpu_drm.h | 47 - include/drm/drm.h| 16 ++ include/drm

[PATCH v2] libdrm: headers: Sync with drm-next

2018-09-21 Thread Ayan Kumar Halder
: - Added some DRM_VMW_* macros - Renamed some structures like 'drm_vmw_dmabuf_rep' to 'drm_vmw_bo_rep', etc - Added some new DRM_VMW_GB_SURFACE related structures and unions Changes in v2: - Mentioned 'libdrm' in the commit header. Signed-off-by: Ayan Kumar halder --- include/drm

[PATCH] headers: Sync with drm-next

2018-09-18 Thread Ayan Kumar Halder
: - Added some DRM_VMW_* macros - Renamed some structures like 'drm_vmw_dmabuf_rep' to 'drm_vmw_bo_rep', etc - Added some new DRM_VMW_GB_SURFACE related structures and unions Signed-off-by: Ayan Kumar halder --- Dropped changes to nouveau_drm.h as it causes compilation failure include/drm

[PATCH] libdrm: Add Arm Framebuffer Compression (AFBC) modifiers

2018-09-14 Thread Ayan Kumar Halder
in drm_fourcc.h ie the changes introduced by the following commits were removed by git add -i :- e065a8dd30af703b4794dc740c0825ee12b92efd 14d9deeb273c2bf4ec256589adabd8df65395d36 Change-Id: If050c17779ba16f8f47adcd825e3e2300676c247 Signed-off-by: Ayan Kumar halder --- include/drm/drm_fourcc.h | 83

[PATCH] drm: Use horizontal and vertical chroma subsampling factor while calculating offsets in the physical address of framebuffer

2018-08-17 Thread Ayan Kumar Halder
contain subsampled (ie reduced) data (by a factor of 2) and thus the while calculating the byte position coresponding to the x and y co-ordinates, one needs to be divide it with the sampling factor. Signed-off-by: Ayan Kumar halder --- drivers/gpu/drm/drm_fb_cma_helper.c | 11 +-- 1

[PATCH] drm/sun4i: Use (struct drm_format_info) fields to determine if a format is yuv and multi planar or not.

2018-07-23 Thread Ayan Kumar Halder
planes. This issue was identified during a review on a previous patch:- https://lists.freedesktop.org/archives/dri-devel/2018-July/183840.html Signed-off-by: Ayan Kumar halder --- drivers/gpu/drm/sun4i/sun4i_backend.c | 37 ++- 1 file changed, 6 insertions(+), 31 del

[PATCH 4/5] drm/omapdrm: Substitute format_is_yuv() with format->is_yuv

2018-07-17 Thread Ayan Kumar Halder
drm_format_info table has a field 'is_yuv' to denote if the format is yuv or not. The driver is expected to use this instead of having a function for the same purpose. Signed-off-by: Ayan Kumar halder --- drivers/gpu/drm/omapdrm/dss/dispc.c | 26 ++ 1 file changed, 10

[PATCH 5/5] drm/sun4i: Substitute sun4i_backend_format_is_yuv() with format->is_yuv

2018-07-17 Thread Ayan Kumar Halder
drm_format_info table has a field 'is_yuv' to denote if the format is yuv or not. The driver is expected to use this instead of having a function for the same purpose. Signed-off-by: Ayan Kumar halder --- drivers/gpu/drm/sun4i/sun4i_backend.c | 12 +++- 1 file changed, 3 insertions

[PATCH 2/5] drm/i915: Substitute intel_format_is_yuv() with format->is_yuv

2018-07-17 Thread Ayan Kumar Halder
drm_format_info table has a field 'is_yuv' to denote if the format is yuv or not. The driver is expected to use this instead of having a function for the same purpose. Signed-off-by: Ayan Kumar halder --- drivers/gpu/drm/i915/intel_display.c | 2 +- drivers/gpu/drm/i915/intel_drv.h | 2

[PATCH 3/5] drm/rockchip: Substitute is_yuv_support() with format->is_yuv

2018-07-17 Thread Ayan Kumar Halder
drm_format_info table has a field 'is_yuv' to denote if the format is yuv or not. The driver is expected to use this instead of having a function for the same purpose. Signed-off-by: Ayan Kumar halder --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 24 +--- 1 file changed

[PATCH 1/5] drm/fourcc: Add is_yuv field to drm_format_info to denote if the format is yuv

2018-07-17 Thread Ayan Kumar Halder
A lot of drivers duplicate the function to check if a format is yuv or not. If we add a field (to denote whether the format is yuv or not) in the drm_format_info table, all the drivers can use this field and it will prevent duplication of similar logic. Signed-off-by: Ayan Kumar halder

[PATCH v2 4/4] drm/arm/malidp: Added support for AFBC modifiers for all layers except DE_SMART

2018-07-10 Thread Ayan Kumar Halder
On planes which support AFBC, expose an AFBC modifier for use with BGR888. Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Reviewed-by: Liviu Dudau Changes from v2: - Removed the gerrit change-id - Replaced DRM_ERROR() with DRM_DEBUG_KMS() in malidp_format_mod_supported

[PATCH v2 2/4] drm/arm/malidp: Implemented the size validation for AFBC framebuffers

2018-07-10 Thread Ayan Kumar Halder
the necessary constraints on the size, alignment, offsets and pitch. Changes from v2: - Replaced DRM_ERROR() with DRM_DEBUG_KMS() in malidp_verify_afbc_framebuffer_caps() and malidp_verify_afbc_framebuffer_size() Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Reviewed-by: Liviu Dudau

[PATCH v2 3/4] drm/arm/malidp: Set the AFBC register bits if the framebuffer has AFBC modifier

2018-07-10 Thread Ayan Kumar Halder
-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey --- drivers/gpu/drm/arm/malidp_hw.c | 27 +++- drivers/gpu/drm/arm/malidp_hw.h | 2 + drivers/gpu/drm/arm/malidp_planes.c | 83 + drivers/gpu/drm/arm/malidp_regs.h | 20 + 4 files

[PATCH v2 1/4] drm/arm/malidp: Add modifier definitions for describing Arm Framebuffer Compression (AFBC).

2018-07-10 Thread Ayan Kumar Halder
combinations are valid, and different devices or use-cases may support different combinations. Changes from v2:- - Added ack by Maarten Lankhorst Signed-off-by: Rosen Zhelev Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Reviewed-by: Liviu Dudau Reviewed-by: James (Qian) Wang Acked

[PATCH v2 0/4] Add support for Arm Framebuffer Compression(AFBC)

2018-07-10 Thread Ayan Kumar Halder
in order to help reviewers review the other patches (which are related to patch 1) - For patches 2 and 4, replaced DRM_ERROR() with DRM_DEBUG_KMS() - For patch 3, reworked malidp_de_set_plane_afbc() so as to consolidate all afbc specific register configuration in this. Ayan Kumar Halder (4): drm/arm

Re-sending the drm_fourcc.h (with the no -disclaimer added)

2018-07-06 Thread Ayan Kumar Halder
Hi, Apologies for spamming the list. I forgot to 'no-disclaimer' email alias in my previous patch. Regards, Ayan Kumar Halder ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH 1/4] drm/arm/malidp: Add modifier definitions for describing Arm Framebuffer Compression (AFBC).

2018-07-06 Thread Ayan Kumar Halder
combinations are valid, and different devices or use-cases may support different combinations. Signed-off-by: Rosen Zhelev Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Reviewed-by: Liviu Dudau Reviewed-by: James (Qian) Wang --- include/uapi/drm/drm_fourcc.h | 83

[PATCH 1/4] drm/arm/malidp: Add modifier definitions for describing Arm Framebuffer Compression (AFBC).

2018-07-05 Thread Ayan Kumar Halder
combinations are valid, and different devices or use-cases may support different combinations. Signed-off-by: Rosen Zhelev Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Reviewed-by: Liviu Dudau Reviewed-by: James (Qian) Wang --- include/uapi/drm/drm_fourcc.h | 83

[RFC PATCH v2] drm/arm/malidp: Added support for AFBC modifiers for all layers except DE_SMART

2018-07-05 Thread Ayan Kumar Halder
On planes which support AFBC, expose an AFBC modifier for use with BGR888. Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Reviewed-by: Liviu Dudau Changes from v2: - Removed the gerrit change-id - Replaced DRM_ERROR() with DRM_DEBUG_KMS() in malidp_format_mod_supported

[RFC PATCH 4/4] drm/arm/malidp: Added support for AFBC modifiers for all layers except DE_SMART

2018-06-15 Thread Ayan Kumar Halder
On planes which support AFBC, expose an AFBC modifier for use with BGR888. Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Change-Id: I4739ff55c0f6d5715b268cb3947ed133a9ee7c2e --- drivers/gpu/drm/arm/malidp_drv.c| 1 + drivers/gpu/drm/arm/malidp_planes.c | 46

[RFC PATCH 3/4] drm/arm/malidp: Set the AFBC register bits if the framebuffer has AFBC modifier

2018-06-15 Thread Ayan Kumar Halder
, depending on the modifiers. Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey --- drivers/gpu/drm/arm/malidp_hw.c | 27 - drivers/gpu/drm/arm/malidp_hw.h | 2 + drivers/gpu/drm/arm/malidp_planes.c | 81 + drivers/gpu/drm/arm

[RFC PATCH 2/4] drm/arm/malidp: Implemented the size validation for AFBC framebuffers

2018-06-15 Thread Ayan Kumar Halder
the necessary constraints on the size, alignment, offsets and pitch. Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Reviewed-by: Liviu Dudau --- drivers/gpu/drm/arm/malidp_drv.c | 128 ++- drivers/gpu/drm/arm/malidp_hw.h | 5 ++ 2 files changed

[RFC PATCH 0/4] Add support for Arm Framebuffer Compression(AFBC)

2018-06-15 Thread Ayan Kumar Halder
| AFBC_FORMAT_MOD_SPARSE | AFBC_FORMAT_MOD_YTR. In future, we intend to add support for more combination of AFBC modifiers. Currently, we are trying to enable a basic support of AFBC in malidp. Ayan Kumar Halder (4): drm/arm/malidp: Add modifier definitions for describing Arm Framebuffer Compression

[RFC PATCH 1/4] drm/arm/malidp: Add modifier definitions for describing Arm Framebuffer Compression (AFBC).

2018-06-15 Thread Ayan Kumar Halder
combinations are valid, and different devices or use-cases may support different combinations. Signed-off-by: Rosen Zhelev Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Reviewed-by: Liviu Dudau Reviewed-by: James (Qian) Wang --- include/uapi/drm/drm_fourcc.h | 83

[PATCH] drm/arm/malidp:- Rectify the width and height passed to rotmem_required()

2018-06-15 Thread Ayan Kumar Halder
The width and height needs to be swapped Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey Reviewed-by: Alexandru Gheorghe --- drivers/gpu/drm/arm/malidp_planes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers

[PATCH] drm/arm/malidp: Validate rotations for compressed/uncompressed framebuffers for each layer

2018-06-15 Thread Ayan Kumar Halder
/uncompressed buffers for VIDEO layers and compressed buffers only for GRAPHICS layer. SMART layer behaves similar to that of Malidp-550. Signed-off-by: Ayan Kumar halder Reviewed-by: Brian Starkey --- drivers/gpu/drm/arm/malidp_crtc.c | 31 ++-- drivers/gpu/drm/arm

[PATCH] drm: check_pixel_format() should return true if no modifiers are passed for a supported pixel format

2018-05-25 Thread Ayan Kumar Halder
If a plane supports a pixel format and the framebuffer does not pass any modifiers, then drm_plane_check_pixel_format() should always return true for the given format regardless of whether the plane supports any modifiers or not. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- d

[PATCH v3 5/5] drm/arm/malidp: Added the late system pm functions

2018-05-15 Thread Ayan Kumar Halder
was in runtime suspend mode before system suspend was called, pm_runtime_work() will put the device back in runtime suspended mode( after the complete system has been resumed). Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v3:- - Rebased on top of earlier v3 patches, C

[PATCH v3 4/5] drm/arm/malidp: Set the output_depth register in modeset

2018-05-15 Thread Ayan Kumar Halder
One needs to store the value of the OUTPUT_DEPTH that one has parsed from device tree, so that it can be restored on system resume. This value is set in the modeset function as this gets reset when the system suspends. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes

[PATCH v3 2/5] drm/arm/malidp: Split malidp interrupt initialization functions.

2018-05-15 Thread Ayan Kumar Halder
()/malidp_se_irq_hw_init()) which will be later invoked from runtime_pm_resume function when it needs to re-enable the interrupts. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v3:- - Squashed https://patchwork.kernel.org/patch/10357203/ and https://patchwork.kernel.org

[PATCH v3 1/5] drm/arm/malidp: Modified the prototype of malidp irq de-initializers

2018-05-15 Thread Ayan Kumar Halder
to be removed so as to enable it to call from functions which receives 'struct malidp_hw_device' as argument. Furthermore, there is no way to retrieve 'struct drm_device' from 'struct malidp_hw_device'. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v3:- - Squashed

[PATCH v3 3/5] drm/arm/malidp: Enable/disable interrupts in runtime pm

2018-05-15 Thread Ayan Kumar Halder
Display and scaling engine interrupts need to be disabled when the runtime pm invokes malidp_runtime_pm_suspend(). Conversely, they need to be enabled in malidp_runtime_pm_resume(). This patch depends on: https://lkml.org/lkml/2017/5/15/695 Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.

[PATCH v3 0/5] Enhance support for system and runtime power management on malidp.

2018-05-15 Thread Ayan Kumar Halder
emoved the change ids and modified some commit messages --- Ayan Kumar Halder (5): drm/arm/malidp: Modified the prototype of malidp irq de-initializers drm/arm/malidp: Split malidp interrupt initialization functions. drm/arm/malidp: Enable/disable interrupts in runtime pm drm/arm/malid

[PATCH v3 5/5] drm/arm/malidp: Added the late system pm functions

2018-04-24 Thread Ayan Kumar Halder
was in runtime suspend mode before system suspend was called, pm_runtime_work() will put the device back in runtime suspended mode( after the complete system has been resumed). Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v3:- - Rebased on top of earlier v3 patches, C

[PATCH v3 4/5] drm/arm/malidp: Set the output_depth register in modeset

2018-04-24 Thread Ayan Kumar Halder
One needs to store the value of the OUTPUT_DEPTH that one has parsed from device tree, so that it can be restored on system resume. This value is set in the modeset function as this gets reset when the system suspends. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes

[PATCH v3 2/5] drm/arm/malidp: Split malidp interrupt initialization functions.

2018-04-24 Thread Ayan Kumar Halder
()/malidp_se_irq_hw_init()) which will be later invoked from runtime_pm_resume function when it needs to re-enable the interrupts. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v3:- - Squashed https://patchwork.kernel.org/patch/10357203/ and https://patchwork.kernel.org

[PATCH v3 1/5] drm/arm/malidp: Modified the prototype of malidp irq de-initializers

2018-04-24 Thread Ayan Kumar Halder
to be removed so as to enable it to call from functions which receives 'struct malidp_hw_device' as argument. Furthermore, there is no way to retrieve 'struct drm_device' from 'struct malidp_hw_device'. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v3:- - Squashed

[PATCH v3 3/5] drm/arm/malidp: Enable/disable interrupts in runtime pm

2018-04-24 Thread Ayan Kumar Halder
Display and scaling engine interrupts need to be disabled when the runtime pm invokes malidp_runtime_pm_suspend(). Conversely, they need to be enabled in malidp_runtime_pm_resume(). This patch depends on: https://lkml.org/lkml/2017/5/15/695 Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.

[PATCH v3 0/5] Enhance support for system and runtime power management on malidp.

2018-04-24 Thread Ayan Kumar Halder
emoved the change ids and modified some commit messages --- Ayan Kumar Halder (5): drm/arm/malidp: Modified the prototype of malidp irq de-initializers drm/arm/malidp: Split malidp interrupt initialization functions. drm/arm/malidp: Enable/disable interrupts in runtime pm drm/arm/malid

[PATCH v2 8/8] drm/arm/malidp: Added the late system pm functions

2018-04-23 Thread Ayan Kumar Halder
was in runtime suspend mode before system suspend was called, pm_runtime_work() will put the device back in runtime suspended mode( after the complete system has been resumed). Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v2:- - Removed the change id and modified the

[PATCH v2 6/8] drm/arm/malidp: Enable/disable the scaling engine interrupts with memory writeback

2018-04-23 Thread Ayan Kumar Halder
Scaling engine interrupts need to be enabled/disabled as and when memwrite is enabled and disabled. The reason being scaling engine interrupts are used only by the memory writeout layer. This patch depends on: https://lkml.org/lkml/2017/5/15/695 Signed-off-by: Ayan Kumar Halder <ayan.

[PATCH v2 4/8] drm/arm/malidp: Split malidp_se_irq_init

2018-04-23 Thread Ayan Kumar Halder
Extract the hardware initialisation part from malidp_se_irq_init() into the malidp_se_irq_hw_init() which will be later invoked from malidpxxx_enable_memwrite() when it needs to re-enable the interrupts. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v2:- - R

[PATCH v2 2/8] drm/arm/malidp: Modified the prototype of malidp_se_irq_fini

2018-04-23 Thread Ayan Kumar Halder
, there is no way to retrieve 'struct drm_device' from 'struct malidp_hw_device' Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v2:- - Removed the change id --- drivers/gpu/drm/arm/malidp_drv.c | 4 ++-- drivers/gpu/drm/arm/malidp_hw.c | 5 + drivers/gpu/d

[PATCH v2 5/8] drm/arm/malidp: Enable/disable interrupts in runtime pm

2018-04-23 Thread Ayan Kumar Halder
Display engine and core interrupts need to be disabled when the system invokes malidp_runtime_pm_suspend. Consequently, they need to be enabled in malidp_runtime_pm_resume. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v2:- - Removed the change id --- drivers/gpu/d

[PATCH v2 3/8] drm/arm/malidp: Split malidp_de_irq_init

2018-04-23 Thread Ayan Kumar Halder
Extract the hardware initialisation part from malidp_de_irq_init() into the malidp_de_irq_hw_init() which will be later invoked from runtime_pm_resume function when it needs to re-enable the interrupts. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v2:- - R

[PATCH v2 7/8] drm/arm/malidp: Set the output_depth register in modeset

2018-04-23 Thread Ayan Kumar Halder
One needs to store the value of the OUTPUT_DEPTH that one has parsed from device tree, so that it can be restored on system resume. This value is set in the modeset function as this gets reset when the system suspends. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes

[PATCH v2 1/8] drm/arm/malidp: Modified the prototype of malidp_de_irq_fini

2018-04-23 Thread Ayan Kumar Halder
. Furthermore, there is no way to retrieve 'struct drm_device' from 'struct malidp_hw_device'. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v2:- - Removed the change id --- drivers/gpu/drm/arm/malidp_drv.c | 9 ++--- drivers/gpu/drm/arm/malidp_hw.c | 5 + drivers/gpu/d

[PATCH v2 0/8] drm/arm/malidp: Enhance support for system and runtime power management on malidp.

2018-04-23 Thread Ayan Kumar Halder
This patch series enhances and fixes certain issues relevant to system and runtime power management on malidp. --- Changes in v2: - Removed the change ids and modified some commit messages --- Ayan Kumar Halder (8): drm/arm/malidp: Modified the prototype of malidp_de_irq_fini drm/arm/malidp

[PATCH v2] drm/arm/malidp: Ensure that the crtcs are shutdown before removing any encoder/connector

2018-04-13 Thread Ayan Kumar Halder
ind is called for the corresponding drivers or by drm_mode_config_cleanup(). Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Changes in v2: - Reset the connectors' mask and the reference counts in drm_device before unbinding any of its components (ie connectors and encoders). --- dr

[PATCH] tda998x: Check ref count before invoking drm_connector_cleanup in unbind

2018-04-12 Thread Ayan Kumar Halder
kes the destroy callback for each encoder. Thus tda998x_encoder_destroy() gets invoked. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- drivers/gpu/drm/i2c/tda998x_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998

[PATCH] drm/arm/malidp: Preserve LAYER_FORMAT contents when setting format

2018-04-10 Thread Ayan Kumar Halder
Dudau <liviu.du...@arm.com> Signed-off-by: Ayan Kumar halder <ayan.hal...@arm.com> --- drivers/gpu/drm/arm/malidp_planes.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c index 7a448

[PATCH 6/8] drm/arm/malidp: Enable/disable the scaling engine interrupts with memory writeback

2018-03-26 Thread Ayan Kumar Halder
Change-Id: Ic78aa5cd7b53998a1947067c4a15c19de239583b Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- drivers/gpu/drm/arm/malidp_hw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/arm/malidp_hw.c b/drivers/gpu/drm/arm/malidp_hw.c index f5633bc..90d76e4 100644 -

[PATCH 8/8] drm/arm/malidp: Added the late system pm functions

2018-03-26 Thread Ayan Kumar Halder
which enables the clocks and the interrupts (previously disabled) and sets the runtime status as active. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> Change-Id: I5f8c3d28f076314a1c9da2a46760a9c37039ccda --- drivers/gpu/drm/arm/malidp_drv.c | 17 + 1 file chang

[PATCH 5/8] drm/arm/malidp: Enable/disable interrupts in runtime pm

2018-03-26 Thread Ayan Kumar Halder
Display engine and core interrupts need to be disabled when the system invokes malidp_runtime_pm_suspend. Consequently, they need to be enabled in malidp_runtime_pm_resume. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> Change-Id: Ib8e5e8319fdd768f8a97d9b5960fcfa8ba90eba3 --- drive

[PATCH 3/8] drm/arm/malidp: Split malidp_de_irq_init

2018-03-26 Thread Ayan Kumar Halder
Extract the hardware initialisation part from malidp_de_irq_init() into the malidp_de_irq_hw_init() which will be later invoked from runtime_pm_resume function when it needs to re-enable the interrupts. Change-Id: If8bdb0e246653cb7d7b7d6d63919c45b01350c10 Signed-off-by: Ayan Kumar Halder

[PATCH 4/8] drm/arm/malidp: Split malidp_se_irq_init

2018-03-26 Thread Ayan Kumar Halder
Extract the hardware initialisation part from malidp_se_irq_init() into the malidp_se_irq_hw_init() which will be later invoked from malidpxxx_enable_memwrite() when it needs to re-enable the interrupts. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> Cha

[PATCH 7/8] drm/arm/malidp: Set the output_depth register in modeset

2018-03-26 Thread Ayan Kumar Halder
One needs to store the value of the OUTPUT_DEPTH that one has parsed from device tree, so that it can be restored on system resume. This value is set in the modeset function as this gets reset when the system suspends. Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> Cha

[PATCH 0/8] drm/arm/malidp: Enhance support for system and runtime power management on malidp.

2018-03-26 Thread Ayan Kumar Halder
This patch series enhances and fixes certain issues relevant to system and runtime power management on malidp. Ayan Kumar Halder (8): drm/arm/malidp: Modified the prototype of malidp_de_irq_fini drm/arm/malidp: Modified the prototype of malidp_se_irq_fini drm/arm/malidp: Split

[PATCH 2/8] drm/arm/malidp: Modified the prototype of malidp_se_irq_fini

2018-03-26 Thread Ayan Kumar Halder
, there is no way to retrieve 'struct drm_device' from 'struct malidp_hw_device' Change-Id: Iab7ac99917f0faf739aee97b00e1758ad1ae787b Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- drivers/gpu/drm/arm/malidp_drv.c | 4 ++-- drivers/gpu/drm/arm/malidp_hw.c | 5 + drivers/g

[PATCH 1/8] drm/arm/malidp: Modified the prototype of malidp_de_irq_fini

2018-03-26 Thread Ayan Kumar Halder
. Furthermore, there is no way to retrieve 'struct drm_device' from 'struct malidp_hw_device'. Change-Id: I39c38cc4c0c9dd951777fbcb13e2ee3168ea0141 Signed-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- drivers/gpu/drm/arm/malidp_drv.c | 9 ++--- drivers/gpu/drm/arm/malidp_hw.c | 5 + drive

[PATCH v2] drm/arm/malidp: Disable pixel alpha blending for colors that do not have alpha

2018-01-23 Thread Ayan Kumar Halder
ned-off-by: Ayan Kumar Halder <ayan.hal...@arm.com> --- Change in v2: - Use struct drm_format_info->has_alpha (boolean) to determine if a color format has alpha channel drivers/gpu/drm/arm/malidp_planes.c | 27 ++- 1 file changed, 22 insertions(+), 5 deletions(-) dif