[drm-intel:drm-intel-next-queued 1/1] drivers/gpu/drm/i915/gvt/handlers.c:137:3: note: in expansion of macro 'if'

2016-10-18 Thread kbuild test robot
at line 137 was first introduced by commit :: 28c4c6ca7f794b2d5ac8773d43311e95f6518415 drm/i915/gvt: vGPU workload submission :: TO: Zhi Wang :: CC: Zhenyu Wang --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -- next part -- A non-text attachment was scrubbed... Name: .config.gz Type: application/gzip Size: 24421 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161018/baea959d/attachment-0001.gz>

mm: fix cache mode tracking in vm_insert_mixed() breaks AMDGPU [was: Re: Latest testing with drm-next-4.9-wip and latest LLVM/mesa stack - Regression in PowerPlay/DPM on CIK?]

2016-10-18 Thread Dave Airlie
On 18 October 2016 at 07:25, Dan Williams wrote: > On Sun, Oct 16, 2016 at 1:53 PM, Dave Airlie wrote: >> On 17 October 2016 at 04:41, Marek Olšák wrote: >>> On Fri, Oct 14, 2016 at 3:33 AM, Michel Dänzer >>> wrote: [ Adding Dan Williams and dri-devel ] On 14/10/16 03:28

[PATCH 00/28] Reenable maybe-uninitialized warnings

2016-10-18 Thread Arnd Bergmann
This is a set of patches that I hope to get into v4.9 in some form in order to turn on the -Wmaybe-uninitialized warnings again. After talking to Linus in person at Linaro Connect about this, I spent some time on finding all the remaining warnings, and this is the resulting patch series. More deta

[PATCH 18/28] drm: avoid uninitialized timestamp use in wait_vblank

2016-10-18 Thread Arnd Bergmann
gcc warns about the timestamp in drm_wait_vblank being possibly used without an initialization: drivers/gpu/drm/drm_irq.c: In function 'drm_crtc_send_vblank_event': drivers/gpu/drm/drm_irq.c:992:24: error: 'now.tv_usec' may be used uninitialized in this function [-Werror=maybe-uninitialized] driv

[PATCH 12/15] drm: RIP mode_config->rotation_property

2016-10-18 Thread Laurent Pinchart
Hi Ville, On Friday 22 Jul 2016 16:43:13 ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > Now that all drivers have been converted over to the per-plane rotation > property, we can just nuke the global rotation property. > > Signed-off-by: Ville Syrjälä Stupid question, b

[PATCH v5 00/13] Centralize format information

2016-10-18 Thread Laurent Pinchart
Hello, Various pieces of information about DRM formats (number of planes, color depth, chroma subsampling, ...) are scattered across different helper functions in the DRM core. Callers of those functions often need to access more than a single parameter of the format, leading to inefficiencies due

[PATCH v5 05/13] drm: hdlcd: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()

2016-10-18 Thread Laurent Pinchart
The driver needs the number of bytes per pixel, not the bpp and depth info meant for fbdev compatibility. Use the right API. Signed-off-by: Laurent Pinchart Acked-by: Liviu Dudau --- drivers/gpu/drm/arm/hdlcd_crtc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH v5 08/13] drm: gma500: Replace drm_fb_get_bpp_depth() with drm_format_info()

2016-10-18 Thread Laurent Pinchart
The driver uses drm_fb_get_bpp_depth() to check whether it can support the format requested by userspace when creating a framebuffer. This isn't the right API, as it doesn't differentiate between RGB formats other than on a depth and bpp basis. Fixing this requires non trivial changes to the drive

[PATCH v5 01/13] drm: Centralize format information

2016-10-18 Thread Laurent Pinchart
Various pieces of information about DRM formats (number of planes, color depth, chroma subsampling, ...) are scattered across different helper functions in the DRM core. Callers of those functions often need to access more than a single parameter of the format, leading to inefficiencies due to mult

[PATCH v5 02/13] drm: Implement the drm_format_*() helpers as drm_format_info() wrappers

2016-10-18 Thread Laurent Pinchart
Turn the drm_format_*() helpers into wrappers around the drm_format_info lookup function to centralize all format information in a single place. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Reviewed-by: Daniel Vetter Reviewed-by: Eric Engestrom --- drivers/gpu/drm/drm_fourcc.c

[PATCH v5 09/13] drm: amdgpu: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()

2016-10-18 Thread Laurent Pinchart
The driver needs the number of bytes per pixel, not the bpp and depth info meant for fbdev compatibility. Use the right API. Signed-off-by: Laurent Pinchart Reviewed-by: Daniel Vetter --- Changes since v4: - Added Daniel Vetter's Reviewed-by received off-line Changes since v3: - Renamed bpp t

[PATCH v5 10/13] drm: radeon: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()

2016-10-18 Thread Laurent Pinchart
The driver needs the number of bytes per pixel, not the bpp and depth info meant for fbdev compatibility. Use the right API. Signed-off-by: Laurent Pinchart Reviewed-by: Daniel Vetter --- Changes since v4: - Added Daniel Vetter's Reviewed-by received off-line Changes since v3: - Renamed bpp t

[PATCH v5 11/13] drm: vmwgfx: Replace drm_fb_get_bpp_depth() with drm_format_info()

2016-10-18 Thread Laurent Pinchart
The driver is the last users of the drm_fb_get_bpp_depth() function. It should ideally be converted to use struct drm_mode_fb_cmd2 instead of the legacy struct drm_mode_fb_cmd internally, but that will require broad changes across the code base. As a first step, replace drm_fb_get_bpp_depth() with

[PATCH v5 06/13] drm: tilcdc: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()

2016-10-18 Thread Laurent Pinchart
The driver needs the number of bytes per pixel, not the bpp and depth info meant for fbdev compatibility. Use the right API. In the tilcdc_crtc_mode_set() function compute the hardware register value directly from the pixel format instead of computing the number of bits per pixels first. Signed-o

[PATCH v5 04/13] drm: WARN when calling drm_format_info() for an unsupported format

2016-10-18 Thread Laurent Pinchart
The format helpers have historically treated unsupported formats as part of the default case, returning values that are likely wrong. We can't change this behaviour now without risking breaking drivers in difficult to detect ways, but we can WARN on unsupported formats to catch faulty callers. The

[PATCH v5 03/13] drm: Use drm_format_info() in DRM core code

2016-10-18 Thread Laurent Pinchart
Replace calls to the drm_format_*() helper functions with direct use of the drm_format_info structure. This improves efficiency by removing duplicate lookups. Signed-off-by: Laurent Pinchart Reviewed-by: Daniel Vetter Reviewed-by: Eric Engestrom --- drivers/gpu/drm/drm_fb_cma_helper.c | 23 ++

[PATCH v5 12/13] drm/arm: mali-dp: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()

2016-10-18 Thread Laurent Pinchart
The driver doesn't need the color depth, only the number of bits per pixel. Use the right API. Signed-off-by: Laurent Pinchart Reviewed-by: Daniel Vetter --- drivers/gpu/drm/arm/malidp_hw.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_hw.c

[PATCH v5 13/13] drm: Don't export the drm_fb_get_bpp_depth() function

2016-10-18 Thread Laurent Pinchart
The function is only used by the drm_helper_mode_fill_fb_struct() core function to fill the drm_framebuffer bpp and depth fields, used by drivers that haven't been converted to use pixel formats directly yet. It should not be used by new drivers, so inline it in its only caller. Signed-off-by: Lau

[PATCH v5 07/13] drm: cirrus: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()

2016-10-18 Thread Laurent Pinchart
The driver doesn't need the color depth, only the number of bits per pixel. Use the right API. Signed-off-by: Laurent Pinchart Reviewed-by: Daniel Vetter --- drivers/gpu/drm/cirrus/cirrus_fbdev.c | 6 +++--- drivers/gpu/drm/cirrus/cirrus_main.c | 4 ++-- 2 files changed, 5 insertions(+), 5 del

[drm-intel:for-linux-next 0/3] drivers/gpu/drm/i915/gvt/handlers.c:137: error: request for member 'mmio_base' in something not a structure or union

2016-10-18 Thread kbuild test robot
code at line 137 was first introduced by commit :: 28c4c6ca7f794b2d5ac8773d43311e95f6518415 drm/i915/gvt: vGPU workload submission :: TO: Zhi Wang :: CC: Zhenyu Wang --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -- next part -- A non-text attachment was scrubbed... Name: .config.gz Type: application/gzip Size: 25778 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161018/a74d876e/attachment-0001.gz>

[PATCH 18/28] drm: avoid uninitialized timestamp use in wait_vblank

2016-10-18 Thread Mario Kleiner
On 10/18/2016 12:13 AM, Arnd Bergmann wrote: > gcc warns about the timestamp in drm_wait_vblank being possibly > used without an initialization: > > drivers/gpu/drm/drm_irq.c: In function 'drm_crtc_send_vblank_event': > drivers/gpu/drm/drm_irq.c:992:24: error: 'now.tv_usec' may be used > uninitial

linux-next: build failure after merge of the drm-intel tree

2016-10-18 Thread Stephen Rothwell
Hi all, After merging the drm-intel tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/i915/gvt/handlers.c: In function 'render_mmio_to_ring_id': drivers/gpu/drm/i915/gvt/handlers.c:137:31: error: request for member 'mmio_base' in something not a structure or

[PATCH v5 0/3] drm/nouveau: set DMA mask before mapping scratch page

2016-10-18 Thread Alexandre Courbot
On Mon, Oct 17, 2016 at 5:12 AM, Ard Biesheuvel wrote: > On 7 October 2016 at 09:12, Alexandre Courbot wrote: >> On Fri, Oct 7, 2016 at 12:49 AM, Ard Biesheuvel >> wrote: >>> This v4 is now a 3 piece series (since v4), after Alexandre pointed out that >>> both GF 100 and NV50 are affected by the

[Bug 96381] Texture artifacts with immutable texture storage and mipmaps

2016-10-18 Thread bugzilla-dae...@freedesktop.org
HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161018/552aab57/attachment-0001.html>

[PATCH 28/28] Kbuild: bring back -Wmaybe-uninitialized warning

2016-10-18 Thread Arnd Bergmann
Traditionally, we have always had warnings about uninitialized variables enabled, as this is part of -Wall, and generally a good idea [1], but it also always produced false positives, mainly because this is a variation of the halting problem and provably impossible to get right in all cases [2]. V

[PATCH v5 0/3] MT8173 HDMI 4K support

2016-10-18 Thread CK Hu
On Thu, 2016-09-29 at 11:02 +0800, Bibby Hsieh wrote: > This is MT8173 HDMI 4K support PATCH v5, based on 4.8-rc1. > > In order to support HDMI 4K on MT8173, > we have to make some modifications. > 1) Make sure that mtk_hdmi_send_infoframe is sent successfully. > 2) Enhance the HDMI driving curren

[PATCH 1/3] dma-buf/fence: make timeout handling in fence_default_wait consistent

2016-10-18 Thread zhoucm1
On 2016年10月17日 21:55, Christian König wrote: > From: Christian König > > Kernel functions taking a timeout usually return 1 on success even > when they get a zero timeout. > > Signen-off-by: Christian König The series is Reviewed-by: Chunming Zhou > --- > drivers/dma-buf/fence.c |

[Bug 178221] radeon performance drop from 4.8 to 4.9-rc1 in Shadow of Mordor

2016-10-18 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=178221 Alex Deucher changed: What|Removed |Added CC||alexdeucher at gmail.com --- Comment #1 f

[PATCH 3/3] drm/imx: ipuv3-plane: Access old u/vbo properly in ->atomic_check for YU12/YV12

2016-10-18 Thread Liu Ying
Hi Philipp, 2016-10-18 0:10 GMT+08:00 Philipp Zabel : > Hi Liu, > > Am Montag, den 10.10.2016, 14:50 +0800 schrieb Liu Ying: >> Before accessing the u/v offset(aka, u/vbo for IPUv3) of the old plane >> state's >> relevant fb, we should make sure the fb is in YU12 or YV12 pixel format(which >> are

mm: fix cache mode tracking in vm_insert_mixed() breaks AMDGPU [was: Re: Latest testing with drm-next-4.9-wip and latest LLVM/mesa stack - Regression in PowerPlay/DPM on CIK?]

2016-10-18 Thread Dave Airlie
On 18 October 2016 at 08:01, Dave Airlie wrote: > On 18 October 2016 at 07:25, Dan Williams wrote: >> On Sun, Oct 16, 2016 at 1:53 PM, Dave Airlie wrote: >>> On 17 October 2016 at 04:41, Marek Olšák wrote: On Fri, Oct 14, 2016 at 3:33 AM, Michel Dänzer wrote: > > [ Adding

[rfc] fix for regression in pat memory tracking in 4.9-rc1

2016-10-18 Thread Dave Airlie
Okay I spent some time looking into it, and this is the result. We have to manually insert the VRAM BAR into the pat memory tracking table as WC. The only other way things get inserted are via ioremap, which we never do for the whole VRAM BAR. We could in theory map the VRAM BAR using the iomap st

[PATCH 1/3] x86/pat: export io memory reserve/free api.

2016-10-18 Thread Dave Airlie
From: Dave Airlie These functions are needed for gpu/ttm drivers to reserve the VRAM area as write combined. In a lot of places we don't ioremap but still need to insert pfn from it into a VMA using vm_insert_mixed, but a recent change in mixed insertion means we need to reserve VRAM as WC upfron

[PATCH 3/3] amdgpu: reserve VRAM ranges in PAT memtype tables.

2016-10-18 Thread Dave Airlie
From: Dave Airlie Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 887483b..3142d70 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgp

[PATCH 2/3] drm/ttm: add API to reserve/free WC memory.

2016-10-18 Thread Dave Airlie
From: Dave Airlie These will be used by drivers to reserve/free WC memory in the PAT tracking tables, for VRAM BARs. Signed-off-by: Dave Airlie --- drivers/gpu/drm/ttm/ttm_bo_util.c | 24 include/drm/ttm/ttm_bo_driver.h | 2 ++ 2 files changed, 26 insertions(+) dif

linux-next: build failure after merge of the drm-intel tree

2016-10-18 Thread Daniel Vetter
On Tue, Oct 18, 2016 at 10:59:20AM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the drm-intel tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/i915/gvt/handlers.c: In function 'render_mmio_to_ring_id': > drivers/gpu/drm/i915/gvt/handlers.c

[PATCH v6] drm: Helper for lspcon in drm_dp_dual_mode

2016-10-18 Thread Jani Nikula
On Mon, 17 Oct 2016, Shashank Sharma wrote: > Readme: { > This patch-series got approved in drm-intel mailing list already. > Sending this one patch to dri-devel too, as this patch touches the > drm layer dp_dual_mode_helper implementation. Plese provide an ack > so that we

[PATCH 12/15] drm: RIP mode_config->rotation_property

2016-10-18 Thread Daniel Vetter
On Tue, Oct 18, 2016 at 01:38:05AM +0300, Laurent Pinchart wrote: > Hi Ville, > > On Friday 22 Jul 2016 16:43:13 ville.syrjala at linux.intel.com wrote: > > From: Ville Syrjälä > > > > Now that all drivers have been converted over to the per-plane rotation > > property, we can just nuke the gl

mm: fix cache mode tracking in vm_insert_mixed() breaks AMDGPU [was: Re: Latest testing with drm-next-4.9-wip and latest LLVM/mesa stack - Regression in PowerPlay/DPM on CIK?]

2016-10-18 Thread Daniel Vetter
On Tue, Oct 18, 2016 at 08:01:01AM +1000, Dave Airlie wrote: > On 18 October 2016 at 07:25, Dan Williams wrote: > > On Sun, Oct 16, 2016 at 1:53 PM, Dave Airlie wrote: > >> On 17 October 2016 at 04:41, Marek Olšák wrote: > >>> On Fri, Oct 14, 2016 at 3:33 AM, Michel Dänzer > >>> wrote: > >>

[PATCH] dma-buf/fence-array: fix deadlock in fence-array

2016-10-18 Thread Daniel Vetter
On Mon, Oct 17, 2016 at 05:44:48PM -0200, Gustavo Padovan wrote: > 2016-10-17 Chris Wilson : > > > On Mon, Oct 17, 2016 at 02:59:52PM -0400, Rob Clark wrote: > > > On Mon, Oct 17, 2016 at 2:52 PM, Gustavo Padovan > > > wrote: > > > > 2016-10-17 Rob Clark : > > > > > > > >> Currently with fence-a

[PATCH v3 5/5] drm/fsl-dcu: only init fbdev if required

2016-10-18 Thread Daniel Vetter
On Mon, Oct 17, 2016 at 02:33:21PM -0700, Stefan Agner wrote: > There is no need to request a CMA backed framebuffer if fbdev > emulation is not enabled. > > Signed-off-by: Stefan Agner > --- > drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >

[PATCH 18/28] drm: avoid uninitialized timestamp use in wait_vblank

2016-10-18 Thread Daniel Vetter
On Tue, Oct 18, 2016 at 01:47:24AM +0200, Mario Kleiner wrote: > On 10/18/2016 12:13 AM, Arnd Bergmann wrote: > > gcc warns about the timestamp in drm_wait_vblank being possibly > > used without an initialization: > > > > drivers/gpu/drm/drm_irq.c: In function 'drm_crtc_send_vblank_event': > > dri

[PATCH v4 3/9] drm/hisilicon/hibmc: Add support for frame buffer

2016-10-18 Thread Daniel Vetter
On Tue, Oct 18, 2016 at 12:01:18PM +0800, Rongrong Zou wrote: > Add support for fbdev and framebuffer. > > Signed-off-by: Rongrong Zou > --- > drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 25 +++ > drivers/gpu/drm/hisilicon/hi

[rfc] fix for regression in pat memory tracking in 4.9-rc1

2016-10-18 Thread Daniel Vetter
On Tue, Oct 18, 2016 at 04:13:10PM +1000, Dave Airlie wrote: > Okay I spent some time looking into it, and this is the result. > > We have to manually insert the VRAM BAR into the pat memory tracking > table as WC. The only other way things get inserted are via ioremap, > which we never do for the

[PATCH v3 1/9] drm/hisilicon/hibmc: Add hisilicon hibmc drm master driver

2016-10-18 Thread Xinliang Liu
On 14 October 2016 at 22:33, Benjamin Gaignard wrote: > Just by curiosity, why using "old" TTM instead of GEM ? any particular > reasons ? >From the linux kernel DRM mm doc[1] it says: "GEM has simpler initialization and execution requirements than 25 TTM, but has no video RAM management capabi

[PATCH v6] drm: Helper for lspcon in drm_dp_dual_mode

2016-10-18 Thread Sharma, Shashank
Ok, Sure. Thanks for this information, Jani. Regards Shashank -Original Message- From: Nikula, Jani Sent: Tuesday, October 18, 2016 12:28 PM To: Sharma, Shashank ; dri-devel at lists.freedesktop.org; airlied at redhat.com Cc: Vetter, Daniel ; Deak, Imre ; ville.syrjala at linux.intel.

[PATCH v4 7/9] drm/hisilicon/hibmc: Add connector for VDAC

2016-10-18 Thread Rongrong Zou
Add connector funcs and helper funcs for VDAC. Signed-off-by: Rongrong Zou --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 8 +++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 + drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 76 3 files changed, 86 i

[PATCH v3 3/6] drm/bridge: analogix_dp: detect Sink PSR state after configuring the PSR

2016-10-18 Thread Zain Wang
From: Yakir Yang Make sure the request PSR state takes effect in analogix_dp_send_psr_spd() function, or print the sink PSR error state if we failed to apply the requested PSR setting. Signed-off-by: zain wang Signed-off-by: Yakir Yang --- Changes in v3: None Changes in v2: None drivers/gpu

[PATCH v4 4/9] drm/hisilicon/hibmc: Add plane for DE

2016-10-18 Thread Rongrong Zou
Add plane funcs and helper funcs for DE. Signed-off-by: Rongrong Zou --- drivers/gpu/drm/hisilicon/hibmc/Kconfig | 1 + drivers/gpu/drm/hisilicon/hibmc/Makefile| 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 171 drivers/gpu/drm/hisilicon/hi

[PATCH v4 5/9] drm/hisilicon/hibmc: Add crtc for DE

2016-10-18 Thread Rongrong Zou
Add crtc funcs and helper funcs for DE. Signed-off-by: Rongrong Zou --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 318 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 6 + drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 + 3 files changed, 326 insertion

[PATCH 6/6] drm: bridge/analogix: enable vop standby when entry PSR

2016-10-18 Thread Zain Wang
From: zain wang make VOP standby when entry PSR to save some power. Signed-off-by: zain wang --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 29 ++--- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 + drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 19

[PATCH v4 1/9] drm/hisilicon/hibmc: Add hisilicon hibmc drm master driver

2016-10-18 Thread Rongrong Zou
Add DRM master driver for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother board. +--+ +--+ | | PCIe | Hibmc | |host CPU( |<->| display | |arm64,x86)|

[PATCH v4 0/9] Add DRM driver for Hisilicon Hibmc

2016-10-18 Thread Rongrong Zou
This patch set adds a new drm driver for Hisilicon Hibmc. Hibmc is a BMC SoC with a display controller intergrated, usually it is used on server for Out-of-band management purpose. In this patch set, we just support basic function for Hibmc display subsystem. Hibmc display subsystem is connected to

[PATCH v3 1/6] drm/bridge: analogix_dp: set psr activate/deactivate when enable/disable bridge

2016-10-18 Thread Zain Wang
From: zain wang There's a race between when bridge_disable and when vop_crtc_disable are called. If the flush timer triggers a new psr work between these, we will operate eDP without power shutdowned by bridge_disable. In this case, moving activate/deactivate to enable/disable bridge to avoid it.

[PATCH v4 9/9] MAINTAINERS: Update HISILICON DRM entries

2016-10-18 Thread Rongrong Zou
Signed-off-by: Rongrong Zou --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1cd38a7..c063c9b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4117,6 +4117,7 @@ F:drivers/gpu/drm/gma500/ DRM DRIVERS FOR HISILICON M: Xinliang Liu +M:

[PATCH v3 2/6] drm/bridge: remove dp init from analogix_dp_bind

2016-10-18 Thread Zain Wang
From: zain wang phy_power_on() and analogix_dp_init_dp would be called in bridge_eanble, so remove them from analogix_dp_bind to be clear. Signed-off-by: zain wang --- Changes in v3: - remove changes before - remove phy_power_on() and analogix_dp_init_dp from analogix_dp_bind(). Changes in v2

[PATCH v4 3/9] drm/hisilicon/hibmc: Add support for frame buffer

2016-10-18 Thread Rongrong Zou
Add support for fbdev and framebuffer. Signed-off-by: Rongrong Zou --- drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 25 +++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 25 +++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_f

[PATCH 1/3] x86/pat: export io memory reserve/free api.

2016-10-18 Thread Edward O'Callaghan
ture Size: 819 bytes Desc: OpenPGP digital signature URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161018/ffe079b3/attachment-0001.sig>

[PATCH v3 0/6] Misc changes to Rockchip PSR drivers

2016-10-18 Thread Zain Wang
This serise of patches works for saving power on eDP PHY and VOP during PSR. BR, - Zain Changes in v3: - add new patch to support fast link training. - add new patch to make VOP standby when entry PSR. - Misc changes. Changes in v2: - add spin_lock to protect dpms_mode - misc changes. Yakir Yan

[PATCH v3 5/6] drm: bridge/analogix: add fast link train for eDP

2016-10-18 Thread Zain Wang
From: zain wang we would meet a short black screen when exit PSR with the full link training, In this case, we should use fast link train instead of full link training. Signed-off-by: zain wang --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 89 +- drivers/gpu/drm/

[PATCH v4 8/9] drm/hisilicon/hibmc: Add vblank interruput

2016-10-18 Thread Rongrong Zou
Add vblank interrupt. Signed-off-by: Rongrong Zou --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 47 - 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c i

[PATCH v4 2/9] drm/hisilicon/hibmc: Add video memory management

2016-10-18 Thread Rongrong Zou
Hibmc have 32m video memory which can be accessed through PCIe by host, we use ttm to manage these memory. Signed-off-by: Rongrong Zou --- drivers/gpu/drm/hisilicon/hibmc/Kconfig | 1 + drivers/gpu/drm/hisilicon/hibmc/Makefile| 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_

[PATCH v3 4/6] drm: bridge/analogix: switch Main-link and eDP PHY when enable/disable psr

2016-10-18 Thread Zain Wang
From: zain wang turn off Main-link and power down eDP PHY when enable psr, turn on Main-link and power up eDP PHY when disable psr. Signed-off-by: zain wang --- Changes in v3: - detecting PSR state at enable/disable_psr() avoid to make link training when sink in not PSR State. Changes in v2

[PATCH v4 6/9] drm/hisilicon/hibmc: Add encoder for VDAC

2016-10-18 Thread Rongrong Zou
Add encoder funcs and helpers for VDAC. Signed-off-by: Rongrong Zou --- drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 6 ++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 + drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c |

[PATCH 12/15] drm: RIP mode_config->rotation_property

2016-10-18 Thread Laurent Pinchart
Hi Daniel, On Tuesday 18 Oct 2016 09:36:23 Daniel Vetter wrote: > On Tue, Oct 18, 2016 at 01:38:05AM +0300, Laurent Pinchart wrote: > > On Friday 22 Jul 2016 16:43:13 ville.syrjala at linux.intel.com wrote: > >> From: Ville Syrjälä > >> > >> Now that all drivers have been converted over to the

[PATCH v2] drm/mediatek: fix a typo

2016-10-18 Thread Bibby Hsieh
If we want to set the hardware OD to relay mode, we have to set OD_CFG register rather than OD_RELAYMODE; otherwise, the system will access the wrong address. Fixes: 7216436420414144646f5d8343d061355fd23483 ("drm/mediatek: set mt8173 dithering function") Cc: stable at vger.kernel.org # v4.9+ Sign

[PATCH 1/3] x86/pat: export io memory reserve/free api.

2016-10-18 Thread Dave Airlie
); > > > > pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, > > unsigned long size, pgprot_t vma_prot) > > > -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161018/434ffdbf/attachment.html>

[PATCH 3/3] drm/imx: ipuv3-plane: Access old u/vbo properly in ->atomic_check for YU12/YV12

2016-10-18 Thread Philipp Zabel
Am Dienstag, den 18.10.2016, 11:39 +0800 schrieb Liu Ying: [...] > >> @@ -359,7 +359,7 @@ static int ipu_plane_atomic_check(struct drm_plane > >> *plane, > >> if ((ubo > 0xf8) || (vbo > 0xf8)) > >> return -EINVAL; > >> > >> - if (old_fb) { >

[PATCH 4/5] drm/sun4i: Compute TCON1 mode from tv mode

2016-10-18 Thread Maxime Ripard
Since the mode passed in mode_set is probably going to be a scaled down version of the TV mode, we cannot just use it. Instead, try to retrieve the actual mode we want to set, and generate a drm mode from that. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tv.c | 7 ++- 1 fil

[PATCH 1/5] drm/modes: Rewrite the command line parser

2016-10-18 Thread Maxime Ripard
Rewrite the command line parser in order to get away from the state machine parsing the video mode lines. Hopefully, this will allow to extend it more easily to support named modes and / or properties set directly on the command line. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_modes.c

[PATCH 0/5] drm/sun4i: Handle TV overscan

2016-10-18 Thread Maxime Ripard
Hi, The Allwinner display engine doesn't have any kind of hardware help to deal with TV overscan. This means that if we use the only mode the hardware provides (either PAL or NTSC, or something else), most of the screens will crop the borders of the image, which is bad. We can however use someki

[PATCH 3/5] drm/sun4i: Add custom crtc state

2016-10-18 Thread Maxime Ripard
We'll need a custom CRTC state to deal with the overscan setup. We'll store in it the actual display size that can be used by the applications, and the size to use on the plane. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_backend.c | 18 +- drivers/gpu/drm/sun4i/sun

[PATCH 2/5] drm/modes: Support modes names on the command line

2016-10-18 Thread Maxime Ripard
The drm subsystem also uses the video= kernel parameter, and in the documentation refers to the fbdev documentation for that parameter. However, that documentation also says that instead of giving the mode using its resolution we can also give a name. However, DRM doesn't handle that case at the m

[PATCH 5/5] drm/sun4i: Add support for the overscan profiles

2016-10-18 Thread Maxime Ripard
Create overscan profiles reducing the displayed zone. For each TV standard (PAL and NTSC so far), we create 4 more reduced modes by steps of 5% that the user will be able to select. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tv.c | 60 +++-- 1 file

[PATCH v2] drm/imx: ipuv3-plane: Access old u/vbo properly in ->atomic_check for YU12/YV12

2016-10-18 Thread Liu Ying
Before accessing the u/v offset(aka, u/vbo for IPUv3) of the old plane state's relevant fb, we should make sure the fb is in YU12 or YV12 pixel format(which are the two YUV pixel formats we support only), otherwise, we are likely to trigger BUG_ON() in drm_plane_state_to_u/vbo() since the fb's pixe

[PATCH] drm/sun4i: Add a few formats

2016-10-18 Thread Maxime Ripard
The planes can do more than what was previously exposed. Add support for them. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_backend.c | 20 drivers/gpu/drm/sun4i/sun4i_layer.c | 6 ++ 2 files changed, 26 insertions(+) diff --git a/drivers/gpu/drm/sun4

[PATCH v2] drm/imx: ipuv3-plane: Access old u/vbo properly in ->atomic_check for YU12/YV12

2016-10-18 Thread Philipp Zabel
Am Dienstag, den 18.10.2016, 16:44 +0800 schrieb Liu Ying: > Before accessing the u/v offset(aka, u/vbo for IPUv3) of the old plane state's > relevant fb, we should make sure the fb is in YU12 or YV12 pixel format(which > are the two YUV pixel formats we support only), otherwise, we are likely to >

[Intel-gfx] [PATCH 12/15] drm: RIP mode_config->rotation_property

2016-10-18 Thread Ville Syrjälä
On Tue, Oct 18, 2016 at 11:13:53AM +0300, Laurent Pinchart wrote: > Hi Daniel, > > On Tuesday 18 Oct 2016 09:36:23 Daniel Vetter wrote: > > On Tue, Oct 18, 2016 at 01:38:05AM +0300, Laurent Pinchart wrote: > > > On Friday 22 Jul 2016 16:43:13 ville.syrjala at linux.intel.com wrote: > > >> From: Vi

[PATCH v2] drm/mediatek: fix a typo

2016-10-18 Thread CK Hu
Acked-by: CK Hu On Tue, 2016-10-18 at 16:23 +0800, Bibby Hsieh wrote: > If we want to set the hardware OD to relay mode, > we have to set OD_CFG register rather than > OD_RELAYMODE; otherwise, the system will access > the wrong address. > > Fixes: 7216436420414144646f5d8343d061355fd23483 ("drm/m

[PATCH 0/5] drm/sun4i: Handle TV overscan

2016-10-18 Thread Maxime Ripard
is in the core would be accepted, hence why I chose to deal with this at the driver level. Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161018/64e682e0/attachment.sig>

[RFC] dma-buf/fence: avoid holding lock while calling cb

2016-10-18 Thread Christian König
Am 17.10.2016 um 20:02 schrieb Rob Clark: > On Mon, Oct 17, 2016 at 4:25 AM, Maarten Lankhorst > wrote: >> Op 16-10-16 om 18:03 schreef Rob Clark: >>> Currently with fence-array, we have a potential deadlock situation. If we >>> fence_add_callback() on an array-fence, the array-fence's lock is aq

[RFC] dma-buf/fence: avoid holding lock while calling cb

2016-10-18 Thread Christian König
Am 16.10.2016 um 18:03 schrieb Rob Clark: > Currently with fence-array, we have a potential deadlock situation. If we > fence_add_callback() on an array-fence, the array-fence's lock is aquired > first, and in it's ->enable_signaling() callback, it will install cb's on > it's array-member fences,

[PATCH] drm/bridge: adv7511: Remove unused code blocks

2016-10-18 Thread Jitendra Sharma
Remove unused id_table entries Currently this driver supports only device tree based configuration. So, no need in keeping the id_table entries Remove redundant condition check Remove not necessary if-else block for checking DT entry because else part will never be picked as in absence of device n

[PATCH v5 00/13] Centralize format information

2016-10-18 Thread Archit Taneja
Hi, On 10/18/2016 04:11 AM, Laurent Pinchart wrote: > Hello, > > Various pieces of information about DRM formats (number of planes, color > depth, chroma subsampling, ...) are scattered across different helper > functions in the DRM core. Callers of those functions often need to access > more than

[Bug 178281] New: wine-staging apps freezes the machine with RX460

2016-10-18 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=178281 Bug ID: 178281 Summary: wine-staging apps freezes the machine with RX460 Product: Drivers Version: 2.5 Kernel Version: 4.9-rc1, 4.8.2, amd-staging-4.7 Hardware: x86-64 OS:

[PATCH 1/2] drm: make is_lspcon_adaptor static

2016-10-18 Thread Jani Nikula
Fixes sparse warning: drivers/gpu/drm/drm_dp_dual_mode_helper.c:151:6: warning: symbol 'is_lspcon_adaptor' was not declared. Should it be static? Fixes: 056996b95686 ("drm: Helper for lspcon in drm_dp_dual_mode") Cc: Rodrigo Vivi Cc: Shashank Sharma Cc: Signed-off-by: Jani Nikula --- n.b. 0

[PATCH] drm: fix sparse warnings on undeclared symbols in crc debugfs

2016-10-18 Thread Jani Nikula
Fixes sparse warnings: drivers/gpu/drm/drm_debugfs_crc.c:118:30: warning: symbol 'drm_crtc_crc_control_fops' was not declared. Should it be static? drivers/gpu/drm/drm_debugfs_crc.c:264:30: warning: symbol 'drm_crtc_crc_data_fops' was not declared. Should it be static? drivers/gpu/drm/drm_debugf

[PATCH] drm: fix sparse warnings on undeclared symbols in crc debugfs

2016-10-18 Thread Chris Wilson
On Tue, Oct 18, 2016 at 02:28:35PM +0300, Jani Nikula wrote: > Fixes sparse warnings: > > drivers/gpu/drm/drm_debugfs_crc.c:118:30: warning: symbol > 'drm_crtc_crc_control_fops' was not declared. Should it be static? > > drivers/gpu/drm/drm_debugfs_crc.c:264:30: warning: symbol > 'drm_crtc_crc_da

[PATCH v5 00/13] Centralize format information

2016-10-18 Thread Ville Syrjälä
On Tue, Oct 18, 2016 at 01:41:08AM +0300, Laurent Pinchart wrote: > Hello, > > Various pieces of information about DRM formats (number of planes, color > depth, chroma subsampling, ...) are scattered across different helper > functions in the DRM core. Callers of those functions often need to acce

[PATCH 1/2] drm: make is_lspcon_adaptor static

2016-10-18 Thread Sharma, Shashank
Reviewed-by: Shashank Sharma Regards Shashank -Original Message- From: Nikula, Jani Sent: Tuesday, October 18, 2016 4:52 PM To: intel-gfx at lists.freedesktop.org Cc: Nikula, Jani ; Vivi, Rodrigo ; Sharma, Shashank ; dri-devel at lists.freedesktop.org Subject: [PATCH 1/2] drm: make is_ls

[PATCH] dma-buf/fence-array: fix deadlock in fence-array

2016-10-18 Thread Rob Clark
On Tue, Oct 18, 2016 at 3:41 AM, Daniel Vetter wrote: > On Mon, Oct 17, 2016 at 05:44:48PM -0200, Gustavo Padovan wrote: >> 2016-10-17 Chris Wilson : >> >> > On Mon, Oct 17, 2016 at 02:59:52PM -0400, Rob Clark wrote: >> > > On Mon, Oct 17, 2016 at 2:52 PM, Gustavo Padovan > > > padovan.org> wrote:

[PATCH 02/10] dim: Autocheck for up-to-dateness

2016-10-18 Thread Daniel Vetter
Exits script to annoy people roughly every 100th time ... Also switch to the magic @{upstream} reference, in case the remote is not called origin (which is pretty normal in case of using git worktree). Signed-off-by: Daniel Vetter --- dim | 6 +- 1 file changed, 5 insertions(+), 1 deletion(

[PATCH 01/10] dim: Extract TODO

2016-10-18 Thread Daniel Vetter
Just maybe a bit more visibility, the scripts are growing. Signed-off-by: Daniel Vetter --- TODO | 27 +++ dim | 17 - qf | 11 --- 3 files changed, 27 insertions(+), 28 deletions(-) create mode 100644 TODO diff --git a/TODO b/TODO new file mo

[PATCH 10/10] dim: s/drm-nightly/drm-tip

2016-10-18 Thread Daniel Vetter
tip = testing and integration pile Also rename drm-intel-rerere directory to drm-rerere. Signed-off-by: Daniel Vetter --- dim| 48 dim.rst| 16 +++- dimrc.sample | 2 +- drm-intel-flow.dot | 18 +

[PATCH 03/10] dim: echoerr helper for printing to stderr

2016-10-18 Thread Daniel Vetter
Signed-off-by: Daniel Vetter --- dim | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/dim b/dim index 192d6ee10838..2601bb7dbbad 100755 --- a/dim +++ b/dim @@ -102,12 +102,17 @@ DRY= FORCE= HELP= +function echoerr +{ + echo "$@" >&2 +} + function

[PATCH 05/10] dim: support git worktree for aux checkouts

2016-10-18 Thread Daniel Vetter
If available by default. This saves quite a pile of disk-space that imo making it the default is justified. Note that this will break the rebuild-nightly script for now, follow-up patches will fix that. Signed-off-by: Daniel Vetter --- dim | 23 --- 1 file changed, 16 insert

[PATCH 04/10] dim: autodetect remotes, first part for dim_setup

2016-10-18 Thread Daniel Vetter
The goals here are multiple: - simpler configuration through autodetection - allows seamless upgrading to git worktree for the aux checkouts - eventually I want to split up drm-misc into a separate remote ... And yes this is just a start. v2: Print errors to stderr, otherwise they can't be seen w

[PATCH 06/10] dim: Nuke nightly-forget

2016-10-18 Thread Daniel Vetter
With our proliferation of branches it's become long useless. Nowadays my MO is to revert the offending commit in the rerere-cache branch explicitly, remove drm-intel-nightly/.git/rr-cache and then re-run rebuild-nightly. That works much better, hence nuke this helper. Signed-off-by: Daniel Vetter

[PATCH 08/10] dim: remove integration-tree remotes

2016-10-18 Thread Daniel Vetter
With the remotes stored in nightly.conf and git worktrees we can avoid hard-coding them in even more places. Signed-off-by: Daniel Vetter --- dim | 12 1 file changed, 12 deletions(-) diff --git a/dim b/dim index f9b28d5fd241..20a3143a5c1e 100755 --- a/dim +++ b/dim @@ -80,8 +80,6

[PATCH 09/10] dim: Split out drm-nightly.git

2016-10-18 Thread Daniel Vetter
This is a prep step to eventually split out the drm-misc branches all into their own repo. To get there we first need to split out the integration tree mangling. Since dim doesn't auto-update and since the transition is a good reason to switch over to worktrees and it's tricky it's not scripted. T

[PATCH 07/10] dim: autodetect branches in rebuild-nightly

2016-10-18 Thread Daniel Vetter
Needs new url-mapping information in nightly.conf to work properly. Signed-off-by: Daniel Vetter --- dim | 48 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/dim b/dim index 48d5e7b6477a..f9b28d5fd241 100755 --- a/dim +++ b/dim @@

  1   2   >