[PATCH] drm/exynos: use DIV_ROUND_CLOSEST to find the closest div

2016-02-11 Thread Chanho Park
From: Chanho Park This patch uses DIV_ROUND_CLOSEST instead of DIV_ROUND_UP The DIV_ROUND_CLOSEST can be used to find the closest integer value when we divide some integers. Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Signed-off-by: Chanho Park ---

[PATCH] drm/exynos: support exynos5422 mipi-dsi

2016-02-11 Thread Chanho Park
Hi Emil, On Wed, Feb 10, 2016 at 9:34 PM, Emil Velikov wrote: > Hi Chanho Park > > On 30 January 2016 at 14:11, Chanho Park wrote: >> --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c >> +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c > >> static struct of_device_id exynos_dsi_of_match[] = { > > If

[PATCHv2] drm/exynos: add mic_bypass option for exynos542x fimd

2016-02-11 Thread Chanho Park
From: Chanho Park This patch adds a mic_bypass option to bypass the mic from display out path. The mic(Mobile image compressor) compresses RGB data from fimd and send the compressed data to the mipi dsi. The bypass option can be founded from system register and the bit

[PATCH 27/29] drm/amd/dal: Correctly interpret rotation as bit set

2016-02-11 Thread Oded Gabbay
On Thu, Feb 11, 2016 at 7:20 PM, Harry Wentland wrote: > Signed-off-by: Harry Wentland > Reviewed-by: Mykola Lysenko > --- > drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git

[PATCH] drm/exynos: add mic_bypass option for exynos542x fimd

2016-02-11 Thread Chanho Park
Hi Inki, On Thu, Feb 11, 2016 at 7:37 PM, Inki Dae wrote: > Hi Chanho, > > 2016년 01월 30일 22:58에 Chanho Park 이(가) 쓴 글: >> From: Chanho Park >> >> This patch adds a mic_bypass option to bypass the mic >> from display out path. The mic(Mobile image compressor) compresses >> RGB

[PATCH 00/29] Enabling new DAL display driver for amdgpu on Carrizo and Tonga

2016-02-11 Thread Daniel Vetter
On Thu, Feb 11, 2016 at 9:52 PM, Dave Airlie wrote: > On 12 February 2016 at 03:19, Harry Wentland > wrote: >> This set of patches enables the new DAL display driver for amdgpu on Carrizo >> Tonga, and Fiji ASICs. This driver will allow us going forward to bring >> display features on the open

[PATCH 08/29] drm/amd/dal: I2C Aux Manager

2016-02-11 Thread Daniel Vetter
On Thu, Feb 11, 2016 at 9:19 PM, Rob Clark wrote: > On Thu, Feb 11, 2016 at 12:19 PM, Harry Wentland > wrote: >> Implements low-level communication layer over I2C and Aux lines using >> GPIO handles. > > so without actually looking too closely at this rather large patch (in > a rather huge

[PATCH v7 3/5] dma-buf: Add ioctls to allow userspace to flush

2016-02-11 Thread Ville Syrjälä
On Thu, Feb 11, 2016 at 07:19:45PM +0100, David Herrmann wrote: > Hi > > On Thu, Feb 11, 2016 at 7:08 PM, Ville Syrjälä > wrote: > > On Thu, Feb 11, 2016 at 03:54:38PM -0200, Tiago Vignatti wrote: > >> > >> Thanks for reviewing, David. Please take a look in my comments in-line. > >> > >> > >>

[PATCH 01/10] drm/exynos: depend on ARCH_EXYNOS for DRM_EXYNOS

2016-02-11 Thread Inki Dae
Hi Marek, For all patches, picked them up. Thanks, Inki Dae 2016년 02월 03일 21:42에 Marek Szyprowski 이(가) 쓴 글: > From: Joonyoung Shim > > Because PLAT_SAMSUNG isn't include exynos SoCs for arm64, but > ARCH_EXYNOS can do it. And it also needs to add ARCH_S3C64XX instead of >

[PATCH v7 3/5] dma-buf: Add ioctls to allow userspace to flush

2016-02-11 Thread Ville Syrjälä
On Thu, Feb 11, 2016 at 03:54:38PM -0200, Tiago Vignatti wrote: > > Thanks for reviewing, David. Please take a look in my comments in-line. > > > On 02/09/2016 07:26 AM, David Herrmann wrote: > > > > On Tue, Dec 22, 2015 at 10:36 PM, Tiago Vignatti > > wrote: > >> From: Daniel Vetter > >> +

[Bug 92936] Tonga powerplay isssues

2016-02-11 Thread bugzilla-dae...@freedesktop.org
receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/54e27d20/attachment.html>

[PATCH] drm/exynos: support exynos5422 mipi-dsi

2016-02-11 Thread Inki Dae
Hi Chanho, 2016년 01월 30일 23:11에 Chanho Park 이(가) 쓴 글: > From: Chanho Park > > This patch supports mipi dsi for exynos5422. The dsi register > offsets of the exynos5422 are similar with exynos5433. However, > the values of the registers are quite different from the > exynos5433.

[PATCH 00/29] Enabling new DAL display driver for amdgpu on Carrizo and Tonga

2016-02-11 Thread Wentland, Harry
stinfo/dri-devel -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/d7136311/attachment-0001.html>

[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-02-11 Thread Tiago Vignatti
From: Daniel Vetter The userspace might need some sort of cache coherency management e.g. when CPU and GPU domains are being accessed through dma-buf at the same time. To circumvent this problem there are begin/end coherency markers, that forward directly to existing

[PATCH 00/29] Enabling new DAL display driver for amdgpu on Carrizo and Tonga

2016-02-11 Thread Mike Lothian
44 drivers/gpu/drm/amd/dal/include/dmcu_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/dpcd_defs.h > create mode 100644 drivers/gpu/drm/amd/dal/include/encoder_interface.h > create mode 100644 drivers/gpu/drm/amd/dal/include/fixed31_32.h > create mode 100644 drivers/gpu/drm/amd/dal/include/fixed32_32.h > create mode 100644 drivers/gpu/drm/amd/dal/include/gpio_interface.h > create mode 100644 > drivers/gpu/drm/amd/dal/include/gpio_service_interface.h > create mode 100644 drivers/gpu/drm/amd/dal/include/gpio_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/grph_csc_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/grph_object_ctrl_defs.h > create mode 100644 drivers/gpu/drm/amd/dal/include/grph_object_defs.h > create mode 100644 drivers/gpu/drm/amd/dal/include/grph_object_id.h > create mode 100644 > drivers/gpu/drm/amd/dal/include/hw_sequencer_interface.h > create mode 100644 drivers/gpu/drm/amd/dal/include/hw_sequencer_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/i2caux_interface.h > create mode 100644 drivers/gpu/drm/amd/dal/include/irq_interface.h > create mode 100644 drivers/gpu/drm/amd/dal/include/irq_service_interface.h > create mode 100644 > drivers/gpu/drm/amd/dal/include/link_service_interface.h > create mode 100644 drivers/gpu/drm/amd/dal/include/link_service_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/logger_interface.h > create mode 100644 drivers/gpu/drm/amd/dal/include/logger_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/scaler_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/set_mode_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/signal_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/vector.h > create mode 100644 drivers/gpu/drm/amd/dal/include/video_csc_types.h > create mode 100644 drivers/gpu/drm/amd/dal/include/video_gamma_types.h > > -- > 2.1.4 > > ___ > dri-devel mailing list > dri-devel at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel > -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/b9037908/attachment-0001.html>

[PATCH] drm/exynos: add mic_bypass option for exynos542x fimd

2016-02-11 Thread Inki Dae
Hi Chanho, 2016년 01월 30일 22:58에 Chanho Park 이(가) 쓴 글: > From: Chanho Park > > This patch adds a mic_bypass option to bypass the mic > from display out path. The mic(Mobile image compressor) compresses > RGB data from fimd and send the compressed data to the mipi dsi. > The

[PATCH] radeon: Define SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP for consistency and readability - libdrm

2016-02-11 Thread Alexandre Demers
--- include/drm/radeon_drm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/radeon_drm.h b/include/drm/radeon_drm.h index cd31794..e57640a 100644 --- a/include/drm/radeon_drm.h +++ b/include/drm/radeon_drm.h @@ -1026,6 +1026,7 @@ struct drm_radeon_info { #define

[PATCH] radeon: Define SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP for consistency and readability

2016-02-11 Thread Alexandre Demers
--- drivers/gpu/drm/radeon/atombios_crtc.c | 2 +- include/uapi/drm/radeon_drm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 801dd60..c88f9fe 100644 ---

[PATCH v7 3/5] dma-buf: Add ioctls to allow userspace to flush

2016-02-11 Thread David Herrmann
Hi On Thu, Feb 11, 2016 at 7:08 PM, Ville Syrjälä wrote: > On Thu, Feb 11, 2016 at 03:54:38PM -0200, Tiago Vignatti wrote: >> >> Thanks for reviewing, David. Please take a look in my comments in-line. >> >> >> On 02/09/2016 07:26 AM, David Herrmann wrote: >> > >> > On Tue, Dec 22, 2015 at

[PATCH v7 3/5] dma-buf: Add ioctls to allow userspace to flush

2016-02-11 Thread David Herrmann
Hi On Thu, Feb 11, 2016 at 6:54 PM, Tiago Vignatti wrote: > On 02/09/2016 07:26 AM, David Herrmann wrote: >>> + >>> + switch (cmd) { >>> + case DMA_BUF_IOCTL_SYNC: >>> + if (copy_from_user(, (void __user *) arg, >>> sizeof(sync))) >>> + return

[Bug 92936] Tonga powerplay isssues

2016-02-11 Thread bugzilla-dae...@freedesktop.org
scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/35a7a673/attachment.html>

[Bug 92936] Tonga powerplay isssues

2016-02-11 Thread bugzilla-dae...@freedesktop.org
--- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/eee21fa0/attachment.html>

[PATCH v2 2/2] drm/i915/gen9: Add support for pipe background color (v2)

2016-02-11 Thread Ville Syrjälä
On Thu, Feb 11, 2016 at 08:05:26AM -0800, Matt Roper wrote: > On Thu, Feb 11, 2016 at 12:00:50PM +0200, Ville Syrjälä wrote: > > On Wed, Feb 10, 2016 at 06:32:59PM -0800, Matt Roper wrote: > > > Gen9 platforms allow CRTC's to be programmed with a background/canvas > > > color below the

[Bug 93998] Linux 4.5-rc2 ATI Radeon 3000 Graphics not rendering correctly

2016-02-11 Thread bugzilla-dae...@freedesktop.org
ubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/cce3b74c/attachment.html>

[Bug 93591] [TONGA] ARK Survival Evolved: corruption of main menu textures

2016-02-11 Thread bugzilla-dae...@freedesktop.org
tps://lists.freedesktop.org/archives/dri-devel/attachments/20160211/d95c1581/attachment.html>

radeon_drm.h: missing TILE_MODE definition?

2016-02-11 Thread Alexandre Demers
any other more meaningful name) just so we don't have a "index = 10" right there in the middle of the code while other cases use defined variables: it is mostly about consistency and readability of the code. Any objection? Your comment is more about if this case/index value should be covered unde

[Bug 94091] Tonga unreal elemental segfault since radeonsi: put image, fmask, and sampler descriptors into one array

2016-02-11 Thread bugzilla-dae...@freedesktop.org
attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/3611817b/attachment.html>

[PATCH v2 2/2] drm/fsl-dcu: use flat regmap cache

2016-02-11 Thread Stefan Agner
On 2016-02-02 17:06, Stefan Agner wrote: > Using flat regmap cache instead of RB-tree to avoid the following > lockdep warning on driver load: > [0.697285] WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2755 > lockdep_trace_alloc+0x15c/0x160() > [0.697449]

[REGRESSION] i915: No HDMI output with 4.4

2016-02-11 Thread Ville Syrjälä
On Thu, Feb 11, 2016 at 01:16:53PM +0200, Oleksandr Natalenko wrote: > Ville, > > here is another dmesg: [1] > > I've reconnected HDMI cable three times. > > Forgot to note, it is HDMI monitor plugged into machine's DVI with > HDMI-DVI cable. I guess this should matter as well. Shouldn't

[PATCH v7 3/5] dma-buf: Add ioctls to allow userspace to flush

2016-02-11 Thread Tiago Vignatti
Thanks for reviewing, David. Please take a look in my comments in-line. On 02/09/2016 07:26 AM, David Herrmann wrote: > > On Tue, Dec 22, 2015 at 10:36 PM, Tiago Vignatti > wrote: >> From: Daniel Vetter >> >> The userspace might need some sort of cache coherency management e.g. when >> CPU

[PATCH 08/29] drm/amd/dal: I2C Aux Manager

2016-02-11 Thread Rob Clark
On Thu, Feb 11, 2016 at 12:19 PM, Harry Wentland wrote: > Implements low-level communication layer over I2C and Aux lines using > GPIO handles. so without actually looking too closely at this rather large patch (in a rather huge patchset).. I do wonder, why not i2c_adapter? Kernel already has

[Bug 94091] Tonga unreal elemental segfault since radeonsi: put image, fmask, and sampler descriptors into one array

2016-02-11 Thread bugzilla-dae...@freedesktop.org
/dri-devel/attachments/20160211/1bdc7323/attachment.html>

[PATCH 3/6] drm: Fix drm_vblank_pre/post_modeset regression from Linux 4.4

2016-02-11 Thread Vlastimil Babka
On 02/08/2016 02:13 AM, Mario Kleiner wrote: > Changes to drm_update_vblank_count() in Linux 4.4 broke the > behaviour of the pre/post modeset functions as the new update > code doesn't deal with hw vblank counter resets inbetween calls > to drm_vblank_pre_modeset an drm_vblank_post_modeset, as it

[PATCH v3 2/2] drm: remove drm_device_is_unplugged and related code

2016-02-11 Thread Haixia Shi
When a UDL monitor is unplugged, we need to still treat it as a fully functional device which just happens to have its connector unplugged. This allows user-space to properly deallocate fbs and dumb buffers before closing the device. This drops the "unplugged" flag hack, which puts the device in

[REGRESSION] i915: No HDMI output with 4.4

2016-02-11 Thread Oleksandr Natalenko
Ville, here is another dmesg: [1] I've reconnected HDMI cable three times. Forgot to note, it is HDMI monitor plugged into machine's DVI with HDMI-DVI cable. I guess this should matter as well. [1] https://gist.github.com/7057ea8512b9aa7ee5bd 11.02.2016 11:26, Ville Syrjälä написав:

[PATCH v7 3/5] dma-buf: Add ioctls to allow userspace to flush

2016-02-11 Thread Alex Deucher
On Thu, Feb 11, 2016 at 12:54 PM, Tiago Vignatti wrote: > > Thanks for reviewing, David. Please take a look in my comments in-line. > > > On 02/09/2016 07:26 AM, David Herrmann wrote: >> >> >> On Tue, Dec 22, 2015 at 10:36 PM, Tiago Vignatti >> wrote: >>> >>> From: Daniel Vetter >>> >>> The

[PATCH 5/5] drm/exynos: remove incorrect ccflags from Makefile

2016-02-11 Thread Andrzej Hajda
Include directories are provided by core already, adding them in driver is redundand and causes warnings in cause of out-of-tree build. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/Makefile | 1 - drivers/gpu/drm/exynos/exynos_drm_rotator.c | 1 - 2 files changed, 2

[PATCH 4/5] drm/exynos/decon: make irq handler static

2016-02-11 Thread Andrzej Hajda
The function is used only locally. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index

[PATCH 3/5] drm/exynos/hdmi: remove unused variable

2016-02-11 Thread Andrzej Hajda
The variable is unused for long time. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 9ec3ab1..c702efc 100644 ---

[PATCH 2/5] drm/exynos/dsi: constify read only structures

2016-02-11 Thread Andrzej Hajda
All global variables are read only. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c

[PATCH 1/5] drm/exynos/dsi: replace registry access macros with functions

2016-02-11 Thread Andrzej Hajda
Functions are preferred over macros as more type-safe. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 108 +--- 1 file changed, 57 insertions(+), 51 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c

[PATCH 0/5] Misc fixes/improvements for Exynos DRM

2016-02-11 Thread Andrzej Hajda
Hi Inki, This set of small fixes and improvements is based on exynos-drm-next, except patch 'drm/exynos/dsi: constify read only structures', which requires '[PATCH] drm/exynos: support exynos5422 mipi-dsi' which you have just picked up :) Regards Andrzej Andrzej Hajda (5): drm/exynos/dsi:

[PATCH] drm/exynos: fix incorrect cpu address for dma_mmap_attrs()

2016-02-11 Thread Marek Szyprowski
dma_mmap_attrs() should be called with cpu address returned by dma_alloc_attrs(). Existing code however passed pages array base as cpu address. This worked only by a pure luck on ARM architecture. This patch fixes this issue. Signed-off-by: Marek Szyprowski ---

radeon_drm.h: missing TILE_MODE definition?

2016-02-11 Thread Alex Deucher
On Thu, Feb 11, 2016 at 11:55 AM, Alexandre Demers wrote: > > On Thu, 11 Feb 2016 at 10:30 Alex Deucher wrote: >> >> On Thu, Feb 11, 2016 at 12:23 AM, Alexandre Demers >> wrote: >> > I was looking at /drivers/gpu/drm/radeon/atombios_crtc.c and at >> > radeon_drm.h >> > (both under kernel and

[PATCH] drm/exynos/decon: fix disable clocks order

2016-02-11 Thread Andrzej Hajda
Decon requires that clocks should be disabled in reverse order. Otherwise system hangs. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c

[Intel-gfx] [PATCH v2 1/2] drm: Add infrastructure for CRTC background color property (v2)

2016-02-11 Thread kbuild test robot
-for-i915/20160211-103451 base: git://people.freedesktop.org/~airlied/linux.git drm-next reproduce: make htmldocs All warnings (new ones prefixed by >>): drivers/gpu/drm/i915/i915_irq.c:2659: warning: No description found for parameter 'wedged' drivers/gpu/drm/i915/i915_irq.c:2659: w

[PATCH 29/29] drm/amd/dal: Force bw programming for DCE 10 until we start calculate BW.

2016-02-11 Thread Harry Wentland
From: Andrey Grodzovsky Signed-off-by: Andrey Grodzovsky Acked-by: Jordan Lazare Reviewed-by: Harry Wentland --- .../drm/amd/dal/dc/dce100/dce100_hw_sequencer.c| 28 -- .../gpu/drm/amd/dal/dc/dce100/dce100_resource.c| 3 ++- 2 files

[PATCH 28/29] drm/amd/dal: fix flip clean-up state

2016-02-11 Thread Harry Wentland
From: Mykola Lysenko Get on par with buffer management changes made in base driver Signed-off-by: Mykola Lysenko Acked-by: Harry Wentland --- drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.c | 10 -- drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 17

[PATCH 27/29] drm/amd/dal: Correctly interpret rotation as bit set

2016-02-11 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Mykola Lysenko --- drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c

[PATCH 26/29] drm/amdgpu: Use dal driver for Carrizo, Tonga, and Fiji

2016-02-11 Thread Harry Wentland
Start to use dal by default on Carrizo, Tonga, and Fiji ASICs. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/Kconfig | 3 + drivers/gpu/drm/amd/amdgpu/Makefile| 17 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 10 +-

[PATCH 25/29] drm/amd/dal: Adding amdgpu_dm for dal

2016-02-11 Thread Harry Wentland
Implements DRM's atomic KMS interfaces using DC. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/amdgpu_dm/Makefile | 17 + drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.c | 1470 +++ drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.h |

[PATCH 24/29] drm/amd/dal: Add display core

2016-02-11 Thread Harry Wentland
Adds a logical representation of our hardware. Provides ability to - dc_validate_resources - validate a display configuration - dc_commit_targets - commit a display configuration - dc_commit_surfaces_to_target - update surfaces - dc_link_detect - detect displays at link - dc_resume - resume

[PATCH 23/29] drm/amd/dal: Add empty encoder programming for virtual HW

2016-02-11 Thread Harry Wentland
Adds empty encoder HW programming functions to support enablement of virtual pipes (i.e. pipes without actual display output). Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/virtual/Makefile| 9 ++

[PATCH 22/29] drm/amd/dal: Add Tonga/Fiji HW sequencer and resource

2016-02-11 Thread Harry Wentland
Enables HW programming on Tonga and Fiji (DCE 10) ASICs. This mostly re-uses DCE 11 programming code with minor exceptions and using DCE 10 register offsets. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/dce100/Makefile | 23 +

[PATCH 21/29] drm/amd/dal: Add Carrizo HW sequencer and resource

2016-02-11 Thread Harry Wentland
Adds dce110_resource and dce110_hw_sequencer files. dce110_resource manages creation of HW resources, along with correct ASIC register offset for each block. dce110_hw_sequencers is responsible for programming HW sequences, such as enable_stream, program_scaler, power_down_encoders, etc.

[PATCH 20/29] drm/amd/dal: Add transform & scaler HW programming

2016-02-11 Thread Harry Wentland
Adds scaler, viewport, gamut remap, and pixel depth programming. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../gpu/drm/amd/dal/dc/dce110/dce110_transform.c | 91 +++ .../gpu/drm/amd/dal/dc/dce110/dce110_transform.h | 87 +++

[PATCH 19/29] drm/amd/dal: Add output pixel processing HW programming

2016-02-11 Thread Harry Wentland
Adds programming for color space conversion (CSC), regamma, and formatter. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/dce110/dce110_opp.c | 272 +++ drivers/gpu/drm/amd/dal/dc/dce110/dce110_opp.h | 143 ++

[PATCH 18/29] drm/amd/dal: Add input pixel processing HW programming

2016-02-11 Thread Harry Wentland
Adds programming of cursor and input gamma. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/dce110/dce110_ipp.c | 65 ++ drivers/gpu/drm/amd/dal/dc/dce110/dce110_ipp.h | 100 +++ .../gpu/drm/amd/dal/dc/dce110/dce110_ipp_cursor.c | 256 ++

[PATCH 17/29] drm/amd/dal: Add framebuffer compression HW programming

2016-02-11 Thread Harry Wentland
Adds framebuffer compression programming. Currently unused. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../gpu/drm/amd/dal/dc/dce110/dce110_compressor.c | 886 + .../gpu/drm/amd/dal/dc/dce110/dce110_compressor.h | 84 ++ 2 files changed, 970

[PATCH 16/29] drm/amd/dal: Add surface HW programming

2016-02-11 Thread Harry Wentland
Adds watermark, DMIF, and surface programming. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../gpu/drm/amd/dal/dc/dce110/dce110_mem_input.c | 965 + .../gpu/drm/amd/dal/dc/dce110/dce110_mem_input.h | 117 +++ 2 files changed, 1082 insertions(+) create

[PATCH 15/29] drm/amd/dal: Add timing generator HW programming

2016-02-11 Thread Harry Wentland
Adds ability to validate and program timings, enable, disable, and blank CRTCs, and get CRTC status information. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../amd/dal/dc/dce110/dce110_timing_generator.c| 1864

[PATCH 14/29] drm/amd/dal: Add clock source HW programming

2016-02-11 Thread Harry Wentland
Adds pixel clock programming and functionality to power down clock sources. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../drm/amd/dal/dc/dce110/dce110_clock_source.c| 1162 .../drm/amd/dal/dc/dce110/dce110_clock_source.h| 64 ++ 2 files changed,

[PATCH 13/29] drm/amd/dal: Add encoder HW programming

2016-02-11 Thread Harry Wentland
Responsible for programming back-end of display path, such as DIG, UNIPHY, DP, DAC, and DVO. Supports: - DisplayPort (single stream) - HDMI - DVI - eDP Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../drm/amd/dal/dc/dce110/dce110_link_encoder.c| 1927

[PATCH 12/29] drm/amd/dal: Bandwidth calculations

2016-02-11 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/calcs/Makefile | 10 + drivers/gpu/drm/amd/dal/dc/calcs/bandwidth_calcs.c | 3941 drivers/gpu/drm/amd/dal/dc/calcs/bw_fixed.c| 300 ++

[PATCH 11/29] drm/amd/dal: Audio

2016-02-11 Thread Harry Wentland
Responsible for programming the audio encoder in the display path. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/audio/Makefile | 22 + drivers/gpu/drm/amd/dal/dc/audio/audio.h | 195 ++

[PATCH 10/29] drm/amd/dal: GPU

2016-02-11 Thread Harry Wentland
Encapsulates programming for HW blocks which are shared between display paths, such as clock sources. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/gpu/Makefile| 22 + .../gpu/drm/amd/dal/dc/gpu/dc_clock_generator.c| 92 ++

[PATCH 09/29] drm/amd/dal: IRQ Service

2016-02-11 Thread Harry Wentland
Interface to set and ack DCE interrupts. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/irq/Makefile| 21 ++ .../drm/amd/dal/dc/irq/dce110/irq_service_dce110.c | 389 + .../drm/amd/dal/dc/irq/dce110/irq_service_dce110.h |

[PATCH 08/29] drm/amd/dal: I2C Aux Manager

2016-02-11 Thread Harry Wentland
Implements low-level communication layer over I2C and Aux lines using GPIO handles. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/i2caux/Makefile | 33 + drivers/gpu/drm/amd/dal/dc/i2caux/aux_engine.c | 567

[PATCH 07/29] drm/amd/dal: BIOS Parser

2016-02-11 Thread Harry Wentland
Wrapper to access Video BIOS command and data tables Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/bios/Makefile | 26 + drivers/gpu/drm/amd/dal/dc/bios/bios_parser.c | 5029

[PATCH 06/29] drm/amd/dal: Adapter Service

2016-02-11 Thread Harry Wentland
Provides information about ASIC features and capabilities. Also provides access to ASIC resources such as VBIOS, GPIO and I2cAux Manager Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/adapter/Makefile| 24 +

[PATCH 05/29] drm/amd/dal: GPIO (General Purpose IO)

2016-02-11 Thread Harry Wentland
Manages all DCE GPIO pins. The pins are represented as generic IO handles as well as handles dedicated for certain functions, such as DDC, HPD, and DVO. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/gpio/Makefile | 32 +

[PATCH 04/29] drm/amd/dal: Asic Capabilities

2016-02-11 Thread Harry Wentland
Add a generic way to manage display HW capabilities for different ASICs and implement it for Carrizo. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../gpu/drm/amd/dal/dc/asic_capability/Makefile| 35 .../amd/dal/dc/asic_capability/asic_capability.c | 190

[PATCH 03/29] drm/amd/dal: Fixed point arithmetic

2016-02-11 Thread Harry Wentland
Arithmetic operations on real numbers represented as fixed-point numbers. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/basics/Makefile | 2 +- drivers/gpu/drm/amd/dal/dc/basics/fixpt31_32.c | 692 +

[PATCH 02/29] drm/amd/dal: Add DAL Basic Types and Logger

2016-02-11 Thread Harry Wentland
Laying the groundwork for the AMD DAL display driver. This patch includes the basic services and defines basic types required by the display driver, such as: - ASIC register access - VBIOS access - Vector and flat_set data structures - Display signal types - ASIC versions and IDs - HW IDs -

[PATCH 01/29] drm/amd/dal: Add dal headers

2016-02-11 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dal_services.h | 266 ++ drivers/gpu/drm/amd/dal/dal_services_types.h | 62 ++ drivers/gpu/drm/amd/dal/dc/dc.h| 462 ++

[PATCH 00/29] Enabling new DAL display driver for amdgpu on Carrizo and Tonga

2016-02-11 Thread Harry Wentland
This set of patches enables the new DAL display driver for amdgpu on Carrizo Tonga, and Fiji ASICs. This driver will allow us going forward to bring display features on the open amdgpu driver (mostly) on par with the Catalyst driver. This driver adds support for - Atomic KMS API - MST - HDMI 2.0

[PATCH v2 2/2] drm/i915/gen9: Add support for pipe background color (v2)

2016-02-11 Thread Ville Syrjälä
On Wed, Feb 10, 2016 at 06:32:59PM -0800, Matt Roper wrote: > Gen9 platforms allow CRTC's to be programmed with a background/canvas > color below the programmable planes. Let's expose this as a property to > allow userspace to program a desired value. > > This patch is based on earlier work by

[PATCH] drm/msm: remove unused variable

2016-02-11 Thread Daniel Vetter
On Thu, Feb 11, 2016 at 10:10:00AM +0100, Arnd Bergmann wrote: > After the drm_device_is_unplugged() was removed, the 'dev' variable is now > unused, and we get a warning for that: > > drivers/gpu/drm/msm/msm_fbdev.c: In function 'msm_fbdev_mmap': > drivers/gpu/drm/msm/msm_fbdev.c:65:21: error:

[PATCH v2 2/2] drm: remove drm_device_is_unplugged checks in common drm code.

2016-02-11 Thread David Herrmann
Hi On Thu, Feb 11, 2016 at 12:18 AM, Haixia Shi wrote: > When USB cable is disconnected, we mark udl device as unplugged so that > udl_detect reports connector status as disconnected, but still keep > the drm device alive until user-space closes it. > > Signed-off-by: Haixia Shi > Reviewed-by:

[REGRESSION] i915: No HDMI output with 4.4

2016-02-11 Thread Ville Syrjälä
On Thu, Feb 11, 2016 at 10:54:08AM +0200, Oleksandr Natalenko wrote: > Daniel, > > I've already tried Ville's patch you've mentioned with no luck. > > Kindly find unpatched v4.5-rc3 dmesg with drm debug enabled here: [1] > > [1] https://gist.github.com/efb44b7c6bc325978b80 That's an IVB. So no

[PATCH v2 2/2] drm: remove drm_device_is_unplugged checks in common drm code.

2016-02-11 Thread Haixia Shi
interface might be > re-used by some other device any time (or in case the usb-core > provides protection against this, please document it). > > Thanks > David > -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/e9e0d932/attachment-0001.html>

[REGRESSION] i915: No HDMI output with 4.4

2016-02-11 Thread Oleksandr Natalenko
Daniel, I've already tried Ville's patch you've mentioned with no luck. Kindly find unpatched v4.5-rc3 dmesg with drm debug enabled here: [1] [1] https://gist.github.com/efb44b7c6bc325978b80 11.02.2016 10:21, Daniel Vetter wrote: > Please boot with drm.debug=0xe and attach the dmesg. Also

radeon_drm.h: missing TILE_MODE definition?

2016-02-11 Thread Alex Deucher
On Thu, Feb 11, 2016 at 12:23 AM, Alexandre Demers wrote: > I was looking at /drivers/gpu/drm/radeon/atombios_crtc.c and at radeon_drm.h > (both under kernel and libdrm). I noticed that there seems to be a missing > TILE_MODE definition: under atombios_crtc, line 1289 >

[PATCH] drm/msm: remove unused variable

2016-02-11 Thread Arnd Bergmann
After the drm_device_is_unplugged() was removed, the 'dev' variable is now unused, and we get a warning for that: drivers/gpu/drm/msm/msm_fbdev.c: In function 'msm_fbdev_mmap': drivers/gpu/drm/msm/msm_fbdev.c:65:21: error: unused variable 'dev' [-Werror=unused-variable] This removes the

[REGRESSION] i915: No HDMI output with 4.4

2016-02-11 Thread Oleksandr Natalenko
Daniel, I do confirm that this hacky patch: https://lkml.org/lkml/2016/1/19/637 works around my issue. I understand that this is improper fix, so let me know how could I debug my issue further. Thanks. 09.02.2016 12:11, Daniel Vetter wrote: > Can you please retest with latest -rc? There's

[PATCH] drm/bridge: removed dummy mode_fixup function from dw-hdmi.

2016-02-11 Thread Daniel Vetter
On Wed, Feb 10, 2016 at 04:10:39PM +, Carlos Palminha wrote: > Other bridge drivers don't implement this optional function. > Removed dummy code from dw-hdmi brigde driver. > > Signed-off-by: Carlos Palminha Merged your three patches to remove dummy mode_fixup functions. I've also squashed

[REGRESSION] i915: No HDMI output with 4.4

2016-02-11 Thread Daniel Vetter
On Thu, Feb 11, 2016 at 09:45:17AM +0200, Oleksandr Natalenko wrote: > Daniel, > > I do confirm that this hacky patch: > > https://lkml.org/lkml/2016/1/19/637 > > works around my issue. I understand that this is improper fix, so let me > know how could I debug my issue further. Please boot

[PATCH v2 2/2] drm: remove drm_device_is_unplugged checks in common drm code.

2016-02-11 Thread Daniel Vetter
On Wed, Feb 10, 2016 at 03:18:38PM -0800, Haixia Shi wrote: > When USB cable is disconnected, we mark udl device as unplugged so that > udl_detect reports connector status as disconnected, but still keep > the drm device alive until user-space closes it. > > Signed-off-by: Haixia Shi >

[PATCH 2/2] drm: make unplugged flag specific to udl driver

2016-02-11 Thread Daniel Vetter
On Wed, Feb 10, 2016 at 02:02:46PM -0800, Stéphane Marchesin wrote: > On Wed, Feb 10, 2016 at 1:54 PM, David Herrmann > wrote: > > Hi > > > > On Wed, Feb 10, 2016 at 10:46 PM, Stéphane Marchesin > > wrote: > >> On Wed, Feb 10, 2016 at 1:38 PM, David Herrmann > >> wrote: > >>> Hi > >>> > >>>

[PATCH] drm/bridge: removed dummy mode_fixup function from dw-hdmi.

2016-02-11 Thread Carlos Palminha
On 11-02-2016 08:22, Daniel Vetter wrote: > On Wed, Feb 10, 2016 at 04:10:39PM +, Carlos Palminha wrote: >> Other bridge drivers don't implement this optional function. >> Removed dummy code from dw-hdmi brigde driver. >> >> Signed-off-by: Carlos Palminha > > Merged your three patches to

[PATCHv12 18/17] cec: check for RC_CORE support

2016-02-11 Thread Hans Verkuil
If CONFIG_RC_CORE is not enabled, then remove the rc support, otherwise the module won't link. This will be folded into patch 07/17 for the final pull request. Signed-off-by: Hans Verkuil --- drivers/media/Kconfig | 2 -- drivers/media/cec.c | 16 2 files changed, 16

[PATCH v2 2/2] drm/i915/gen9: Add support for pipe background color (v2)

2016-02-11 Thread Matt Roper
On Thu, Feb 11, 2016 at 12:00:50PM +0200, Ville Syrjälä wrote: > On Wed, Feb 10, 2016 at 06:32:59PM -0800, Matt Roper wrote: > > Gen9 platforms allow CRTC's to be programmed with a background/canvas > > color below the programmable planes. Let's expose this as a property to > > allow userspace

radeon_drm.h: missing TILE_MODE definition?

2016-02-11 Thread Alexandre Demers
nse? Cheers, Alexandre Demers -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/0ea3f9e7/attachment.html>

[Bug 79504] LLVM error on fragment shader

2016-02-11 Thread bugzilla-dae...@freedesktop.org
this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/5bb6ea7b/attachment.html>

What can a "freezed" X server status be, and a HowTo to get some kernel crash dumps

2016-02-11 Thread Bruno Kant
ff88023fd96d20 [no tasks queued] -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/57e1117a/attachment-0001.html>

[Bug 35998] RS600: Texture alignment issues under Gnome Shell

2016-02-11 Thread bugzilla-dae...@freedesktop.org
ail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/f024bd90/attachment.html>

[Bug 35998] RS600: Texture alignment issues under Gnome Shell

2016-02-11 Thread bugzilla-dae...@freedesktop.org
git-8ae8fec), on kernel 4.2.0. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/fac19a51/attachment.html>

[Bug 35998] RS600: Texture alignment issues under Gnome Shell

2016-02-11 Thread bugzilla-dae...@freedesktop.org
tend to read dri-devel and mesa-dev ML). Thanks in advance! -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160211/6d1ff