[PATCH] drm: add a drm_atomic_helper_plane_check_update

2015-07-13 Thread John Hunter
From: Zhao Junwang Cc: Daniel Vetter Signed-off-by: Zhao Junwang --- drivers/gpu/drm/drm_atomic_helper.c | 55 +++ include/drm/drm_atomic_helper.h |7 + 2 files changed, 62 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/

[Bug 91279] agd5f drm tonga occasional traps error:0 in libdrm_amdgpu.so.1.0.0

2015-07-13 Thread bugzilla-dae...@freedesktop.org
ion. I don't suppose you can run this thing in valgrind? -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/201

[Bug 101391] Lockup after resume (kernel BUG at include/drm/drm_mm.h:145!)

2015-07-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=101391 --- Comment #1 from Michel Dänzer --- What was the last kernel version that didn't have this problem? Does it also happen with 4.1.0? Can you bisect? -- You are receiving this mail because: You are watching the assignee of the bug.

[PATCH v7 1/4] drm/layerscape: Add Freescale DCU DRM driver

2015-07-13 Thread Wang J.W.
Hi Paul, Thank you for your review. > -Original Message- > From: Paul Bolle [mailto:pebolle at tiscali.nl] > Sent: Saturday, July 11, 2015 9:16 PM > To: Wang Jianwei-B52261 > Cc: dri-devel at lists.freedesktop.org; linux-kernel at vger.kernel.org; > linux- > arm-kernel at lists.infradead

[Bug 86351] HDMI audio garbled output on Radeon R9 280X

2015-07-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=86351 --- Comment #15 from Lorenzo Bona --- I tried other sound settings but nothing can solve this issue. BTW on my GPU playing a video is not enough, I need to run a game at least, the system needs a heavy load. I've tried playing video with MPV and

[4.2.0-rc1-00201-g59c3cb5] Regression: kernel NULL pointer dereference

2015-07-13 Thread Maarten Lankhorst
Op 12-07-15 om 18:52 schreef Linus Torvalds: > On Sun, Jul 12, 2015 at 1:03 AM, Jörg Otte wrote: >> BUG: unable to handle kernel NULL pointer dereference at 0009 >> IP: [] 0xbd3447bb > Ugh. Please enable KALLSYMS to get sane symbols. > > But yes, "crtc_state->base.active" is a

[PATCH v2 2/2] drm/rockchip: Drop owner assignment from platform_driver

2015-07-13 Thread Mark yao
On 2015年07月10日 18:37, Krzysztof Kozlowski wrote: > platform_driver does not need to set an owner because > platform_driver_register() will set it. > > Signed-off-by: Krzysztof Kozlowski > > --- > Changes since v1: > 1. Split owner removal from rockchip to separate patch (spotted by Mark >

[PATCH v8 1/4] drm/layerscape: Add Freescale DCU DRM driver

2015-07-13 Thread Jianwei Wang
This patch add support for Two Dimensional Animation and Compositing Engine (2D-ACE) on the Freescale SoCs. 2D-ACE is a Freescale display controller. 2D-ACE describes the functionality of the module extremely well its name is a value that cannot be used as a token in programming languages. Instead

[PATCH v8 2/4] drm/panel: simple: Add support for NEC NL4827HC19-05B 480x272 panel

2015-07-13 Thread Jianwei Wang
This adds support for the NEC NL4827HC19-05B 480x272 panel to the DRM simple panel driver. Signed-off-by: Jianwei Wang Acked-by: Daniel Vetter --- .../bindings/panel/nec,nl4827hc19_05b.txt | 7 ++ .../devicetree/bindings/vendor-prefixes.txt| 1 + MAINTAINERS

[PATCH v8 3/4] arm/dts/ls1021a: Add DCU dts node

2015-07-13 Thread Jianwei Wang
Add DCU node, DCU is a display controller of Freescale named 2D-ACE. Signed-off-by: Alison Wang Signed-off-by: Xiubo Li Signed-off-by: Jianwei Wang Reviewed-by: Alison Wang --- .../devicetree/bindings/drm/fsl-dcu/fsl,dcu.txt | 20 MAINTAINERS

[PATCH v8 4/4] arm/dts/ls1021a: Add a TFT LCD panel dts node

2015-07-13 Thread Jianwei Wang
Add a TFT LCD panel. the TFT LCD panel is WQVGA "480x272", and the bpp is 24. Signed-off-by: Alison Wang Signed-off-by: Xiubo Li Signed-off-by: Jianwei Wang Reviewed-by: Alison Wang --- arch/arm/boot/dts/ls1021a-twr.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/ar

[4.2.0-rc1-00201-g59c3cb5] Regression: kernel NULL pointer dereference

2015-07-13 Thread Daniel Vetter
On Sun, Jul 12, 2015 at 09:52:51AM -0700, Linus Torvalds wrote: > On Sun, Jul 12, 2015 at 1:03 AM, Jörg Otte wrote: > > > > BUG: unable to handle kernel NULL pointer dereference at 0009 > > IP: [] 0xbd3447bb > > Ugh. Please enable KALLSYMS to get sane symbols. > > But yes, "

[GIT PULL] drm/rockchip: some fixes

2015-07-13 Thread Mark yao
Hi Dave Here is some fixes for rockchip drm, can you land them? The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898: drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000) are available in the git repository at: http

[Bug 91322] Usage of 'gallium' vaapi driver crashes radeon with inability to reset itself and scary pictures as if card has burned out

2015-07-13 Thread bugzilla-dae...@freedesktop.org
ug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150713/646014d9/attachment.html>

[PATCH] drm: add a drm_atomic_helper_plane_check_update

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 08:21:32AM +0800, John Hunter wrote: > From: Zhao Junwang A bit of text to motivate this would be good - i.e. why is this useful, how did it blow up in the bochs conversion? > Cc: Daniel Vetter > Signed-off-by: Zhao Junwang > --- > drivers/gpu/drm/drm_atomic_helper.c |

[PATCH 00/10] drm/misc: Kconfig cleanup

2015-07-13 Thread Archit Taneja
The top level drm Kconfig is a bit messy at the moment. Most of the drm drivers have their own Kconfig files, but a few have their Kconfig files in the top level Kconfig option itself. Create new Kconfig files for drivers that don't have one. This cleans up the Kconfig quite a bit Archit Taneja (

[PATCH 01/10] drm/tdfx: clean up: create a separate Kconfig file

2015-07-13 Thread Archit Taneja
Remove the DRM_TDFX from the top level drm Kconfig file and create a new Kconfig file within the driver folder. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig | 7 +-- drivers/gpu/drm/tdfx/Kconfig | 6 ++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644

[PATCH 02/10] drm/r128: clean up: create a separate Kconfig file

2015-07-13 Thread Archit Taneja
Remove the DRM_R128 config option from the top level drm Kconfig file and create a new Kconfig file within the driver folder. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig | 9 + drivers/gpu/drm/r128/Kconfig | 8 2 files changed, 9 insertions(+), 8 deletions(-)

[PATCH 03/10] drm/radeon: clean up: move config option to driver's own Kconfig file

2015-07-13 Thread Archit Taneja
Remove the DRM_RADEON config option from the top level drm Kconfig file and move it to the Kconfig file within the driver folder. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig| 21 - drivers/gpu/drm/radeon/Kconfig | 21 + 2 files changed

[PATCH 04/10] drm/amdgpu: clean up: move config option to driver's own Kconfig file

2015-07-13 Thread Archit Taneja
Remove the DRM_AMDGPU config option from the top level drm Kconfig file and move to Kconfig file within the driver folder. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig| 19 --- drivers/gpu/drm/amd/amdgpu/Kconfig | 19 +++ 2 files changed, 1

[PATCH 05/10] drm/i810: clean up: create a separate Kconfig file

2015-07-13 Thread Archit Taneja
Remove the DRM_I810 config option from the top level drm Kconfig file and create a new Kconfig file within the driver folder. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig | 9 + drivers/gpu/drm/i810/Kconfig | 8 2 files changed, 9 insertions(+), 8 deletions(-)

[PATCH 06/10] drm/mga: clean up: create a separate Kconfig file

2015-07-13 Thread Archit Taneja
Remove the DRM_MGA config option from the top level drm Kconfig file and create a new Kconfig file within the driver folder. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig | 9 + drivers/gpu/drm/mga/Kconfig | 8 2 files changed, 9 insertions(+), 8 deletions(-) cre

[PATCH 07/10] drm/sis: clean up: create a separate Kconfig file

2015-07-13 Thread Archit Taneja
Remove the DRM_SIS config option from the top level drm Kconfig file and create a new Kconfig file within the driver folder. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig | 9 + drivers/gpu/drm/sis/Kconfig | 8 2 files changed, 9 insertions(+), 8 deletions(-) cre

[PATCH 08/10] drm/via: clean up: create a separate Kconfig file

2015-07-13 Thread Archit Taneja
Remove the DRM_VIA config option from the top level drm Kconfig file and create a new Kconfig file within the driver folder. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig | 7 +-- drivers/gpu/drm/via/Kconfig | 6 ++ 2 files changed, 7 insertions(+), 6 deletions(-) create

[PATCH 09/10] drm/savage: clean up: create a separate Kconfig file

2015-07-13 Thread Archit Taneja
Remove the DRM_SAVAGE config option from the top level drm Kconfig file and create a new Kconfig file within the driver folder. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig| 8 +--- drivers/gpu/drm/savage/Kconfig | 7 +++ 2 files changed, 8 insertions(+), 7 deletions(

[PATCH 10/10] drm/misc: clean up: group device specific Kconfigs

2015-07-13 Thread Archit Taneja
Move the VGEM Kconfig option along with other DRM Kconfig options. Add a comment saying that the device specific Kconfig options start from here. Signed-off-by: Archit Taneja --- drivers/gpu/drm/Kconfig | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drive

[PATCH 00/25] drm: fb emulation: Step 1: Create new drm_fb_helper wrapper funcs

2015-07-13 Thread Archit Taneja
DRM drivers using drm_fb_helpers still call some fbdev core functions. This makes the driver depend on CONFIG_FB, resulting in complicated Kconfig options, and preventing us from creating a top level drm config option to enable/disable FBDEV emulation. Create new drm_fb_helper functions that repla

[PATCH 01/25] drm/fb_helper: Add drm_fb_helper functions to manage fb_info creation

2015-07-13 Thread Archit Taneja
Every drm driver calls framebuffer_alloc, fb_alloc_cmap, unregister_framebuffer, fb_dealloc_cmap and framebuffer_release in order to emulate fbdev support. Create drm_fb_helper functions that perform the above operations. This is part of an effort to prevent drm drivers from calling fbdev functio

[PATCH 02/25] drm/fb_helper: Create a wrapper for unlink_framebuffer

2015-07-13 Thread Archit Taneja
Some drm drivers call unlink_framebuffer. Create a drm_fb_helper function that wraps around these calls. This is part of an effort to prevent drm drivers from calling fbdev functions directly, in order to make fbdev emulation a top level drm option. Signed-off-by: Archit Taneja --- drivers/gpu/

[PATCH 03/25] drm/fb_helper: Create wrappers for fb_sys_read/write funcs

2015-07-13 Thread Archit Taneja
Some drm drivers populate their fb_ops with fb_sys_read/write fb sysfs ops. Create a drm_fb_helper function that wraps around these calls. This is part of an effort to prevent drm drivers from calling fbdev functions directly, in order to make fbdev emulation a top level drm option. Signed-off-

[PATCH 04/25] drm/fb_helper: Create wrappers for blit, copyarea and fillrect funcs

2015-07-13 Thread Archit Taneja
drm drivers that emulate fbdev populate their fb_fillrect, fb_copyarea and fb_imageblit fb_ops with the help of cfb_* or sys_* fbdev core helper functions. Create drm_fb_helper functions that wrap around these calls. This is part of an effort to prevent drm drivers from calling fbdev functions di

[PATCH 05/25] drm/fb_helper: Create a wrapper for fb_set_suspend

2015-07-13 Thread Archit Taneja
Some drm drivers call fb_set_suspend. Create a drm_fb_helper function that wraps around these calls. This is part of an effort to prevent drm drivers from calling fbdev functions directly, in order to make fbdev emulation a top level drm option. Signed-off-by: Archit Taneja --- drivers/gpu/drm/

[PATCH 06/25] drm/fb_helper: Create a wrapper for remove_conflicting_framebuffers

2015-07-13 Thread Archit Taneja
Some drm drivers call remove_conflicting_framebuffers. Create a drm_fb_helper function that wraps around these calls. This is part of an effort to prevent drm drivers from calling fbdev functions directly, in order to make fbdev emulation a top level drm option. Signed-off-by: Archit Taneja ---

[PATCH 07/25] drm/cirrus: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. COMPILE TESTED ONLY. Cc: Thierry Reding Cc: Zach Reizner Cc: Russell King Cc: Fabian Frederick Signed-off-by: Archit Taneja --- drivers/gpu/drm/cirrus/cirrus_drv.c | 7 --- driver

[PATCH 08/25] drm/rockchip: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. This is an effort to create a top level drm fbdev emulation option. COMPILE TESTED ONLY. Cc: Mark Yao Cc: Daniel Vetter Cc: Rob Clark Cc: Daniel Kur

[PATCH 09/25] drm/armada: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: Russell King Signed-off-by: Archit Taneja --- drivers/gpu/drm/armada/armada_fbdev.c | 33 ++---

[PATCH 10/25] drm/ast: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. Cleaned up the error handling in astfb_create a bit. COMPILE TESTED ONLY. Cc: David Airlie Cc: "Y.C. Chen" Cc: Alex Deucher Signed-off-by: Archit T

[PATCH 11/25] drm/omap: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: Tomi Valkeinen Cc: Laurent Pinchart Signed-off-by: Archit Taneja --- drivers/gpu/drm/omapdrm/omap_fbdev.c | 34 +++

[PATCH 12/25] drm/tegra: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: Thierry Reding Cc: "Terje Bergström" Cc: Stephen Warren Signed-off-by: Archit Taneja --- drivers/gpu/drm/tegra/fb.c | 40

[PATCH 13/25] drm/msm: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. Cc: Rob Clark Cc: Stephane Viau Cc: Hai Li Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/msm_fbdev.c | 34 ++

[PATCH 14/25] drm/exynos: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Signed-off-by: Archit Taneja --- drivers/gpu/drm/exynos/exynos_drm_fbdev.c

[PATCH 15/25] drm/gma500: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Signed-off-by: Archit Taneja --- drivers/gpu/drm/gma500/accel_2d.c| 6 ++--- drivers/gpu/drm/gma500/framebuffer.c | 47 +

[PATCH 16/25] drm/mgag200: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: Daniel Vetter Cc: David Airlie Cc: Alex Deucher Signed-off-by: Archit Taneja --- drivers/gpu/drm/mgag200/mgag200_drv.c |

[PATCH 17/25] drm/radeon: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: Alex Deucher Cc: "Christian König" Signed-off-by: Archit Taneja --- drivers/gpu/drm/radeon/radeon_drv.c | 4 +++- driver

[PATCH 18/25] drm/qxl: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: David Airlie Cc: Frediano Ziglio Cc: Maarten Lankhorst Signed-off-by: Archit Taneja --- drivers/gpu/drm/qxl/qxl_fb.c | 40

[PATCH 19/25] drm/i915: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: Daniel Vetter Cc: Jani Nikula Signed-off-by: Archit Taneja --- drivers/gpu/drm/i915/i915_dma.c| 3 ++- drivers/gpu/dr

[PATCH 20/25] drm/nouveau: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: David Airlie Cc: Ben Skeggs Cc: Alexandre Courbot Signed-off-by: Archit Taneja --- drivers/gpu/drm/nouveau/nouveau_drm.c

[PATCH 21/25] drm/udl: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: David Airlie Cc: Haixia Shi Cc: "Stéphane Marchesin" Signed-off-by: Archit Taneja --- drivers/gpu/drm/udl/udl_fb.c | 40

[PATCH 22/25] drm/boschs: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: David Airlie Cc: Gerd Hoffmann Cc: Daniel Vetter Signed-off-by: Archit Taneja --- drivers/gpu/drm/bochs/bochs_drv.c |

[PATCH 23/25] drm/amdgpu: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: Alex Deucher Cc: Oded Gabbay Cc: "Christian König" Signed-off-by: Archit Taneja --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv

[PATCH 24/25] drm/virtio: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: David Airlie Cc: Gerd Hoffmann Signed-off-by: Archit Taneja --- drivers/gpu/drm/virtio/virtgpu_drm_bus.c | 3 ++- drivers

[PATCH 25/25] drm/fb_cma_helper: Use new drm_fb_helper functions

2015-07-13 Thread Archit Taneja
Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. COMPILE TESTED ONLY. Cc: Lars-Peter Clausen Cc: Daniel Vetter Signed-off-by: Archit Taneja --- drivers/gpu/drm/drm_fb_cma_helper.c | 45 +--

[RFC v2 0/6] drm: fb emulation: Step 2: Create a fbdev emulation config option

2015-07-13 Thread Archit Taneja
This provides a uniform interface to enable/disable legacy fbdev support for modesetting drivers. DRM_FBDEV_EMULATION is made available in the top level drm Kconfig. A driver that wants fbdev emulation using drm_fb_helper can enable this option. Apart from 5 drivers (msm, tegra, imx, sti, i915),

[RFC v2 1/6] drm: Add top level Kconfig option for DRM fbdev emulation

2015-07-13 Thread Archit Taneja
Legacy fbdev emulation support via DRM is achieved through KMS FB helpers. Most modesetting drivers enable provide fbdev emulation by default by selecting KMS FB helpers. A few provide a separate Kconfig option for the user to enable or disbale fbdev emulation. Enabling fbdev emulation is finally

[RFC v2 2/6] drm/msm: Remove local fbdev emulation Kconfig option

2015-07-13 Thread Archit Taneja
DRM_MSM_FBDEV config is used to enable/disable fbdev emulation for the msm kms driver. Replace this with the top level DRM_FBDEV_EMULATION config option where applicable. This also prevents build breaks caused by undefined drm_fb_helper_* functions when legacy fbdev support was disabled. Signed-o

[RFC v2 3/6] drm/tegra: Remove local fbdev emulation Kconfig option

2015-07-13 Thread Archit Taneja
DRM_TEGRA_FBDEV config is currently used to enable/disable fbdev emulation for the tegra kms driver. Replace this with the top level DRM_FBDEV_EMULATION config option. Using this config lets us also prevent wrapping around drm_fb_helper_* calls with The #ifdef in tegra_drm struct that adds/remove

[RFC v2 4/6] drm/imx: Remove local fbdev emulation Kconfig option

2015-07-13 Thread Archit Taneja
DRM_IMX_FB_HELPER config is currently used to enable/disable fbdev emulation for the imx kms driver. Remove this local config option and use the top level DRM_FBDEV_EMULATION config option where applicable. Using this config lets us also prevent wrapping around drm_fb_helper_* calls with #ifdefs i

[RFC v2 5/6] drm/sti: Remove local fbdev emulation Kconfig option

2015-07-13 Thread Archit Taneja
DRM_STI_FBDEV config is currently used to enable/disable fbdev emulation for the sti kms driver. Remove this local config option and use the top level DRM_FBDEV_EMULATION config option instead where applicable. We replace the #ifdef in sti_drm_load with CONFIG_DRM_FBDEV_EMULATION. It's probably o

[RFC v2 6/6] drm/i915: Remove local fbdev emulation Kconfig option

2015-07-13 Thread Archit Taneja
DRM_I915_FBDEV config is currently used to enable/disable fbdev emulation for the i915 kms driver. Replace this with the top level DRM_FBDEV_EMULATION config option. Using this config lets us also prevent wrapping around drm_fb_helper_* calls with The #ifdef in drm_i915_private struct adding/remo

[RFC 00/21] drm: fb emulation: Step 3: Remove FB_KMS_HELPER config from drivers

2015-07-13 Thread Archit Taneja
With the top level DRM_FBDEV_EMULATION option, drivers don't need to select DRM_FB_KMS_HELPER or other FB related config options in the driver. Even if FBDEV_EMULATION isn't select, the stubbed out versions of the drm_fb_helper functions will be called. There are some drivers which still need som

[RFC 01/21] drm/cirrus: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: Thierry Reding Cc:

[RFC 02/21] drm/rockchip: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: Mark Yao Cc: Danie

[RFC 03/21] drm/armada: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: Russell King Sign

[RFC 04/21] drm/ast: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: David Airlie Cc: "

[RFC 05/21] drm/omap: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: Tomi Valkeinen Cc:

[RFC 06/21] drm/exynos: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: Inki Dae Cc: Joony

[RFC 07/21] drm/gma500: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc:Daniel Vetter Cc: P

[RFC 08/21] drm/mgag200: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: Daniel Vetter Cc:

[RFC 09/21] drm/radeon: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: Alex Deucher Cc: "

[RFC 10/21] drm/qxl: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. The code relying on DEF

[RFC 11/21] drm/nouveau: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Removing FB_BACKLIGHT g

[RFC 12/21] drm/udl: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. The code relying on DEF

[RFC 13/21] drm/bochs: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: David Airlie Cc: G

[RFC 14/21] drm/amdgpu: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: Alex Deucher Cc: O

[RFC 15/21] drm/virtio: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the driver doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: David Airlie Cc: G

[RFC 16/21] drm/fb_cma_helper: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Archit Taneja
Remove FB_* config options since the helper doesn't call any fbdev functions directly. Remove FB_KMS_HELPER as this would now be selected by the top level FBDEV_EMULATION config option. If the fbdev emulation isn't selected, the drm_fb_helper functions will be stubbed out. Cc: Lars-Peter Clausen

[RFC 17/21] drm/atmel-hlcdc: Remove FB_KMS_HELPER config option

2015-07-13 Thread Archit Taneja
The driver internally uses drm_fb_cma helpers to emulate fbdev and allocate buffers. It doesn't need to select DRM_FB_KMS_HELPER. This will be managed by the config option DRM_KMS_CMA_HELPER. Cc: Boris Brezillon Cc: Sylvain Rochet Cc: Nicolas Ferre Signed-off-by: Archit Taneja --- drivers/gp

[RFC 18/21] drm/imx: Remove FB_KMS_HELPER config option

2015-07-13 Thread Archit Taneja
The driver internally uses drm_fb_cma helpers to emulate fbdev and allocate buffers. It doesn't need to select DRM_FB_KMS_HELPER. This will be managed by the config option DRM_KMS_CMA_HELPER. Cc: Philipp Zabel Signed-off-by: Archit Taneja --- drivers/gpu/drm/imx/Kconfig | 1 - 1 file changed,

[RFC 19/21] drm/rcar-du: Remove FB_KMS_HELPER config option

2015-07-13 Thread Archit Taneja
The driver internally uses drm_fb_cma helpers to emulate fbdev and allocate buffers. It doesn't need to select DRM_FB_KMS_HELPER. This will be managed by the config option DRM_KMS_CMA_HELPER. Cc: Laurent Pinchart Signed-off-by: Archit Taneja --- drivers/gpu/drm/rcar-du/Kconfig | 1 - 1 file ch

[RFC 20/21] drm/shmobile: Remove FB_KMS_HELPER config option

2015-07-13 Thread Archit Taneja
The driver internally uses drm_fb_cma helpers to emulate fbdev and allocate buffers. It doesn't need to select DRM_FB_KMS_HELPER. This will be managed by the config option DRM_KMS_CMA_HELPER. Cc: Laurent Pinchart Signed-off-by: Archit Taneja --- drivers/gpu/drm/shmobile/Kconfig | 1 - 1 file c

[RFC 21/21] drm/tilcdc: Remove FB_KMS_HELPER config option

2015-07-13 Thread Archit Taneja
The driver internally uses drm_fb_cma helpers to emulate fbdev and allocate buffers. It doesn't need to select DRM_FB_KMS_HELPER. This will be managed by the config option DRM_KMS_CMA_HELPER. Cc: Ezequiel Garcia Cc: Tomi Valkeinen Cc: Jyri Sarha Signed-off-by: Archit Taneja --- drivers/gpu/d

[RFC v2 1/6] drm: Add top level Kconfig option for DRM fbdev emulation

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:12:06PM +0530, Archit Taneja wrote: > Legacy fbdev emulation support via DRM is achieved through KMS FB helpers. > Most modesetting drivers enable provide fbdev emulation by default by > selecting KMS FB helpers. A few provide a separate Kconfig option for the > user to e

[PATCH 0/7] drm/exynos/hdmi: refactoring/cleanup patches

2015-07-13 Thread Andrzej Hajda
Hi Tobias, On 07/12/2015 06:06 PM, Tobias Jakobi wrote: > Hello Andrzej! > > Just some small comments. > > It seems like linux-samsung-soc wasn't put into Cc for '[PATCH RESEND > 0/6] drm/exynos: HDMI related fixes' (even though this series was), > maybe you should also forward the other series to

[RFC v2 6/6] drm/i915: Remove local fbdev emulation Kconfig option

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:12:11PM +0530, Archit Taneja wrote: > DRM_I915_FBDEV config is currently used to enable/disable fbdev emulation > for the i915 kms driver. > > Replace this with the top level DRM_FBDEV_EMULATION config option. Using > this config lets us also prevent wrapping around drm_

[RFC v2 0/6] drm: fb emulation: Step 2: Create a fbdev emulation config option

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:12:05PM +0530, Archit Taneja wrote: > This provides a uniform interface to enable/disable legacy fbdev support > for modesetting drivers. > > DRM_FBDEV_EMULATION is made available in the top level drm Kconfig. A > driver that wants fbdev emulation using drm_fb_helper can

[PATCH] drm: add a drm_atomic_helper_plane_check_update

2015-07-13 Thread Maarten Lankhorst
Op 13-07-15 om 02:21 schreef John Hunter: > From: Zhao Junwang > > Cc: Daniel Vetter > Signed-off-by: Zhao Junwang > --- > drivers/gpu/drm/drm_atomic_helper.c | 55 > +++ > include/drm/drm_atomic_helper.h |7 + > 2 files changed, 62 insertions(+) >

[PATCH] drm: add a drm_atomic_helper_plane_check_update

2015-07-13 Thread Maarten Lankhorst
Op 13-07-15 om 09:12 schreef Maarten Lankhorst: > Op 13-07-15 om 02:21 schreef John Hunter: >> From: Zhao Junwang >> >> Cc: Daniel Vetter >> Signed-off-by: Zhao Junwang >> --- >> drivers/gpu/drm/drm_atomic_helper.c | 55 >> +++ >> include/drm/drm_atomic_helper

[PULL] topic/drm-misc

2015-07-13 Thread Daniel Vetter
Hi Dave, First pull request for 4.3! Random things all over, most of it more atomic polish. Plus trying to reject more dri1 crap (the final bits afaik!), but this time around with nouveau whitelisted to avoid breaking old userspace. Aside: 4.2 vs 4.3 is a terrible conflict mess so I need you to r

[4.2.0-rc1-00201-g59c3cb5] Regression: kernel NULL pointer dereference

2015-07-13 Thread Maarten Lankhorst
Op 13-07-15 om 08:22 schreef Daniel Vetter: > On Sun, Jul 12, 2015 at 09:52:51AM -0700, Linus Torvalds wrote: >> On Sun, Jul 12, 2015 at 1:03 AM, Jörg Otte wrote: >>> BUG: unable to handle kernel NULL pointer dereference at 0009 >>> IP: [] 0xbd3447bb >> Ugh. Please enable KALL

[PATCH 02/25] drm/fb_helper: Create a wrapper for unlink_framebuffer

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:07:58PM +0530, Archit Taneja wrote: > Some drm drivers call unlink_framebuffer. Create a drm_fb_helper function > that wraps around these calls. > > This is part of an effort to prevent drm drivers from calling fbdev > functions directly, in order to make fbdev emulation

[PATCH 03/25] drm/fb_helper: Create wrappers for fb_sys_read/write funcs

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:07:59PM +0530, Archit Taneja wrote: > Some drm drivers populate their fb_ops with fb_sys_read/write fb sysfs > ops. > > Create a drm_fb_helper function that wraps around these calls. > > This is part of an effort to prevent drm drivers from calling fbdev > functions di

[RFC 10/21] drm/qxl: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:13:57PM +0530, Archit Taneja wrote: > Remove FB_* config options since the driver doesn't call any fbdev > functions directly. > > Remove FB_KMS_HELPER as this would now be selected by the top level > FBDEV_EMULATION config option. If the fbdev emulation isn't selected,

[PATCH] drm: add a drm_atomic_helper_plane_check_update

2015-07-13 Thread John Hunter
e while a crtc is disabled, just don't > update it in your commit function. > -- Best regards Junwang Zhao Microprocessor Research and Develop Center Department of Computer Science &Technology Peking University Beijing, 100871, PRC -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150713/c892a78b/attachment.html>

[PATCH 03/25] drm/fb_helper: Create wrappers for fb_sys_read/write funcs

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:07:59PM +0530, Archit Taneja wrote: > Some drm drivers populate their fb_ops with fb_sys_read/write fb sysfs > ops. > > Create a drm_fb_helper function that wraps around these calls. > > This is part of an effort to prevent drm drivers from calling fbdev > functions di

[PATCH 04/25] drm/fb_helper: Create wrappers for blit, copyarea and fillrect funcs

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:08:00PM +0530, Archit Taneja wrote: > drm drivers that emulate fbdev populate their fb_fillrect, fb_copyarea > and fb_imageblit fb_ops with the help of cfb_* or sys_* fbdev core > helper functions. > > Create drm_fb_helper functions that wrap around these calls. > > Thi

[RFC 14/21] drm/amdgpu: Remove FB_KMS_HELPER and FB related config options

2015-07-13 Thread Koenig, Christian
B_HELPER select DRM_TTM select POWER_SUPPLY select HWMON -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation -- next part -- An HTML attachment was scrubbed... URL: <http://lists.free

[PATCH v8 1/4] drm/layerscape: Add Freescale DCU DRM driver

2015-07-13 Thread Mark yao
ice *fsl_dev = platform_get_drvdata(pdev); > + > + drm_put_dev(fsl_dev->ddev); > + > + return 0; > +} > + > +static const struct of_device_id fsl_dcu_of_match[] = { > + { .compatible = "fsl,ls1021a-dcu", }, > + { .compatible = "fsl,vf610-dcu", }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, fsl_dcu_of_match); > + > +static struct platform_driver fsl_dcu_drm_platform_driver = { > + .probe = fsl_dcu_drm_probe, > + .remove = fsl_dcu_drm_remove, > + .driver = { > + .owner = THIS_MODULE, remove ".owner= THIS_MODULE," platform_driver does not need to set an owner because platform_driver_register() will set it. -- ï¼­ark -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150713/4a084c59/attachment.html>

[4.2.0-rc1-00201-g59c3cb5] Regression: kernel NULL pointer dereference

2015-07-13 Thread Maarten Lankhorst
Op 13-07-15 om 09:42 schreef Jörg Otte: > 2015-07-13 9:23 GMT+02:00 Maarten Lankhorst linux.intel.com>: >> Op 13-07-15 om 08:22 schreef Daniel Vetter: >>> On Sun, Jul 12, 2015 at 09:52:51AM -0700, Linus Torvalds wrote: On Sun, Jul 12, 2015 at 1:03 AM, Jörg Otte wrote: > BUG: unable to

[PATCH 00/25] drm: fb emulation: Step 1: Create new drm_fb_helper wrapper funcs

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:07:56PM +0530, Archit Taneja wrote: > DRM drivers using drm_fb_helpers still call some fbdev core functions. > This makes the driver depend on CONFIG_FB, resulting in complicated > Kconfig options, and preventing us from creating a top level drm config > option to enable/

[Intel-gfx] [PATCH v2 00/10] Color Manager Implementation

2015-07-13 Thread Hans Verkuil
On 06/15/2015 08:53 AM, Daniel Vetter wrote: > On Tue, Jun 09, 2015 at 01:50:48PM +0100, Damien Lespiau wrote: >> On Thu, Jun 04, 2015 at 07:12:31PM +0530, Kausal Malladi wrote: >>> From: Kausal Malladi >>> >>> This patch set adds color manager implementation in drm/i915 layer. >>> Color Manager i

  1   2   >