[RFC 1/7] drm/amdkfd: avoid fragile and inefficient snprintf use

2016-03-14 Thread Rasmus Villemoes
On Mon, Mar 14 2016, Oded Gabbay wrote: > On Tue, Mar 8, 2016 at 10:40 PM, Rasmus Villemoes > wrote: >> Passing overlapping source and destination buffers to snprintf >> formally has undefined behaviour and is rather fragile. While the > > I saw there were some different opinions on this. > Have

[PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Dave Airlie
> >> - if (pcie_port_runtime_suspend_allowed(dev)) >> + if (pcie_port_runtime_suspend_allowed(dev)) { >> + pm_runtime_allow(&dev->dev); > > PCI drivers typically have left this decision up to the userspace. I'm > wondering whether it is good idea to deviate from that here? Of co

linux-4.5/drivers/gpu/drm/gma500/oaktrail_crtc.c: 5 * uninit data ?

2016-03-14 Thread David Binderman
Hello there, [linux-4.5/drivers/gpu/drm/gma500/oaktrail_crtc.c:175]: (error) Uninitialized struct member: clock.dot [linux-4.5/drivers/gpu/drm/gma500/oaktrail_crtc.c:175]: (error) Uninitialized struct member: clock.m1 [linux-4.5/drivers/gpu/drm/gma500/oaktrail_crtc.c:175]: (error) Uninitialized

[PATCH v8 2/2] staging/android: refactor SYNC IOCTLs

2016-03-14 Thread Gustavo Padovan
From: Gustavo Padovan Change SYNC_IOC_FILE_INFO (former SYNC_IOC_FENCE_INFO) behaviour to avoid future API breaks and optimize buffer allocation. Now num_fences can be filled by the caller to inform how many fences it wants to retrieve from the kernel. If the num_fences passed is greater than ze

[PATCH v8 1/2] staging/android: remove redundant comments on sync_merge_data

2016-03-14 Thread Gustavo Padovan
From: Gustavo Padovan struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it. Signed-off-by: Gustavo Padovan Reviewed-by: Maarten Lankhorst --- drivers/staging/android/uapi/sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

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

2016-03-14 Thread Tiago Vignatti
On 03/05/2016 06:34 AM, Daniel Vetter wrote: > On Mon, Feb 29, 2016 at 03:02:09PM +, Chris Wilson wrote: >> On Mon, Feb 29, 2016 at 03:54:19PM +0100, Daniel Vetter wrote: >>> On Thu, Feb 25, 2016 at 06:01:22PM +, Chris Wilson wrote: On Thu, Feb 11, 2016 at 08:04:51PM -0200, Tiago Vigna

DISTRIBUTE A NECESSARY SAFETY PRODUCT

2016-03-14 Thread Jason Williams
26 YEAR OLD U.S. COMPANY NEEDS DISTRIBUTORS IN MANY COUNTRIES for our amazing slip-resistant floor product. One 30 minute application with our Amazing Anti-Slip Floor Treatment will make floors slip-resistant and safe for 4 years - Guaranteed! Indoors or Outdoors No Change in Appearance Typical A

[RFC 1/7] drm/amdkfd: avoid fragile and inefficient snprintf use

2016-03-14 Thread Oded Gabbay
On Tue, Mar 8, 2016 at 10:40 PM, Rasmus Villemoes wrote: > Passing overlapping source and destination buffers to snprintf > formally has undefined behaviour and is rather fragile. While the > rather special case of passing the output buffer as the argument > corresponding to a leading "%s" in the

[PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Mika Westerberg
On Mon, Mar 14, 2016 at 01:50:41PM +0100, Rafael J. Wysocki wrote: > On Mon, Mar 14, 2016 at 11:23 AM, Mika Westerberg > wrote: > > On Mon, Mar 14, 2016 at 07:47:39PM +1000, Dave Airlie wrote: > >> > > >> >> - if (pcie_port_runtime_suspend_allowed(dev)) > >> >> + if (pcie_port_runtime_susp

[PATCH] drm/etnaviv: move GPU linear window to end of DMA window

2016-03-14 Thread Lucas Stach
Am Montag, den 14.03.2016, 15:09 + schrieb Russell King - ARM Linux: > On Mon, Mar 14, 2016 at 04:02:35PM +0100, Lucas Stach wrote: > > I guess not using the offset on MC10 will also allow you to enable TS on > > those parts? In that case we might advertise this with a patchlevel > > change of

[Bug 112781] radeon: f95429e "only init fbdev if we have connectors" breaks suspend on Clevo P170EM laptop

2016-03-14 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=112781 --- Comment #3 from Christoph Haag --- 4.5 with the patch seems to suspend without problems, thanks. -- You are receiving this mail because: You are watching the assignee of the bug.

[PATCH 4/4] drm/imx: ipuv3-plane: Configure DMFC wait4eot bit after slots are determined

2016-03-14 Thread Liu Ying
Just as the function ipu_dmfc_config_wait4eot() tells, the DMFC wait4eot bit depends on the number of DMFC slots to be used, so it should be called after the slots are determined in the function ipu_dmfc_alloc_bandwidth(). Based on tests, this patch may eliminate display distortion issue on overlay

[PATCH 3/4] gpu: ipu-v3: ipu-dmfc: Rename ipu_dmfc_init_channel to ipu_dmfc_config_wait4eot

2016-03-14 Thread Liu Ying
The function name 'ipu_dmfc_config_wait4eot' matches the implementation of the function better than 'ipu_dmfc_init_channel', since it only touches the wait4eot bits. Signed-off-by: Liu Ying --- drivers/gpu/drm/imx/ipuv3-plane.c | 2 +- drivers/gpu/ipu-v3/ipu-dmfc.c | 4 ++-- include/video/im

[PATCH 2/4] gpu: ipu-v3: ipu-dmfc: Make function ipu_dmfc_init_channel() return void

2016-03-14 Thread Liu Ying
Since the function ipu_dmfc_init_channel() always returns zero, we may change the return type to void to simplify the code. Signed-off-by: Liu Ying --- drivers/gpu/drm/imx/ipuv3-plane.c | 6 +- drivers/gpu/ipu-v3/ipu-dmfc.c | 4 +--- include/video/imx-ipu-v3.h| 2 +- 3 files chan

[PATCH 1/4] gpu: ipu-v3: ipu-dmfc: Protect function ipu_dmfc_init_channel() with mutex

2016-03-14 Thread Liu Ying
To avoid race condition issue, we should protect the function ipu_dmfc_init_channel() with the mutex dmfc->priv->mutex, since it configures the register DMFC_GENERAL1 at runtime which contains several control bits for various display channels. This matches better with fine grained locking logic in

[PATCH] drm/etnaviv: move GPU linear window to end of DMA window

2016-03-14 Thread Lucas Stach
Am Mittwoch, den 09.03.2016, 12:25 + schrieb Russell King - ARM Linux: > On Mon, Feb 29, 2016 at 05:20:16PM +0100, Lucas Stach wrote: > > If the end of the system DMA window is farther away from the start of > > physical RAM than the size of the GPU linear window, move the linear > > window so

[patch] drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()

2016-03-14 Thread Oded Gabbay
On Fri, Mar 11, 2016 at 9:51 AM, Dan Carpenter wrote: > At the end of the function we expect "status" to be zero, but it's > either -EINVAL or unitialized. > > Fixes: 788bf83db301 ('drm/amdkfd: Add wave control operation to debugger') > Signed-off-by: Dan Carpenter > > diff --git a/drivers/gpu/d

[PATCH] nouveau: fix nv40_perfctr_next() cleanup regression

2016-03-14 Thread Arnd Bergmann
gcc-6 warns about code in the nouveau driver that is obviously silly: drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c: In function 'nv40_perfctr_next': drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c:62:19: warning: self-comparison always evaluats to false [-Wtautological-compare] if (pm->sequence

[PATCH] drm/exynos: fix error handling in exynos_drm_subdrv_open

2016-03-14 Thread Arnd Bergmann
gcc-6 warns about a pointless loop in exynos_drm_subdrv_open: drivers/gpu/drm/exynos/exynos_drm_core.c: In function 'exynos_drm_subdrv_open': drivers/gpu/drm/exynos/exynos_drm_core.c:104:199: error: self-comparison always evaluates to false [-Werror=tautological-compare] list_for_each_entry_rev

[PATCH] drm/etnaviv: move GPU linear window to end of DMA window

2016-03-14 Thread Russell King - ARM Linux
On Mon, Mar 14, 2016 at 04:02:35PM +0100, Lucas Stach wrote: > I guess not using the offset on MC10 will also allow you to enable TS on > those parts? In that case we might advertise this with a patchlevel > change of the API. I don't think we need that - it isn't an API change as such. What we c

[Intel-gfx] [PATCH v5 00/12] Enable GPU switching on pre-retina?MacBook Pro

2016-03-14 Thread Bastien Nocera
On Mon, 2016-03-14 at 13:41 +0100, Lukas Wunner wrote: > Hi Bastien, > > sorry for the delay. > > On Sat, Mar 05, 2016 at 05:31:55PM +0100, Bastien Nocera wrote: > > > > We could, on boot, force using the integrated GPU, turning off the > > discrete GPU that we're not interested in. > Yes, many

[Bug 112781] radeon: f95429e "only init fbdev if we have connectors" breaks suspend on Clevo P170EM laptop

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

[PATCH v7 00/11] Add DRM Driver for HiSilicon Kirin hi6220 SoC

2016-03-14 Thread Xinliang Liu
Hi David, As DT binding docs have been acked by Rob Herring since v6, https://lists.freedesktop.org/archives/dri-devel/2016-March/102135.html And it seems there is no comments on v7. I wonder if we get a chance that v7 be merge into v4.6 mainline. Or if no chance for v4.6, when? Thanks, -xinlian

[PATCH v15 1/3] drm: rockchip: Add basic drm driver

2016-03-14 Thread Tomeu Vizoso
On 2 December 2014 at 10:15, Mark Yao wrote: > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > new file mode 100644 > index 000..e7ca25b > --- /dev/null > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > @@ -0,0 +1,1455 @@ ... > +s

[PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Rafael J. Wysocki
On Mon, Mar 14, 2016 at 11:23 AM, Mika Westerberg wrote: > On Mon, Mar 14, 2016 at 07:47:39PM +1000, Dave Airlie wrote: >> > >> >> - if (pcie_port_runtime_suspend_allowed(dev)) >> >> + if (pcie_port_runtime_suspend_allowed(dev)) { >> >> + pm_runtime_allow(&dev->dev); >> > >> >

[Bug 93652] Random crashes/freezing with amdgpu Fury X mesa 11.1

2016-03-14 Thread bugzilla-dae...@freedesktop.org
cause: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160314/5351c988/attachment.html>

[Intel-gfx] [PATCH v5 00/12] Enable GPU switching on pre-retina?MacBook Pro

2016-03-14 Thread Lukas Wunner
Hi Bastien, sorry for the delay. On Sat, Mar 05, 2016 at 05:31:55PM +0100, Bastien Nocera wrote: > We could, on boot, force using the integrated GPU, turning off the > discrete GPU that we're not interested in. Yes, many people "solve" this by having grub write the requisite commands to gmux' I/

[Bug 94405] radeon GPU hang

2016-03-14 Thread bugzilla-dae...@freedesktop.org
u are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160314/1318a37a/attachment.html>

[Bug 94405] radeon GPU hang

2016-03-14 Thread bugzilla-dae...@freedesktop.org
tps://lists.freedesktop.org/archives/dri-devel/attachments/20160314/6ab9bb03/attachment.html>

[Bug 80419] XCOM: Enemy Unknown Causes lockup

2016-03-14 Thread bugzilla-dae...@freedesktop.org
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/20160314/22679dcd/attachment.html>

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

2016-03-14 Thread bugzilla-dae...@freedesktop.org
u are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160314/0cf366f3/attachment.html>

[PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Mika Westerberg
On Mon, Mar 14, 2016 at 07:47:39PM +1000, Dave Airlie wrote: > > > >> - if (pcie_port_runtime_suspend_allowed(dev)) > >> + if (pcie_port_runtime_suspend_allowed(dev)) { > >> + pm_runtime_allow(&dev->dev); > > > > PCI drivers typically have left this decision up to the userspace.

[PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Dave Airlie
s after a certain year should probably be better, as we'll constantly be adding PCI Ids for every chipset ever made, and I expect we'll forget some. Dave. -- next part -- A non-text attachment was scrubbed... Name: 0001-RFC-PCI-enable-runtime-PM-on-pcieports-to-let-second.patch Type: text/x-patch Size: 1772 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160314/275f843f/attachment.bin>

drm: fix blob pointer check

2016-03-14 Thread Dan Carpenter
On Fri, Mar 11, 2016 at 11:52:44AM +, Lionel Landwerlin wrote: > Hi Dan, > > Thanks a lot for pointing this out. I saw you previous comment but > didn't realize the issue. > I'll set the pointer to NULL. > > I don't if there is an agreement on this, but do you think the > unref/free functions

[PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Mika Westerberg
On Mon, Mar 14, 2016 at 12:19:14PM +1000, Dave Airlie wrote: > On 11 March 2016 at 23:45, Rafael J. Wysocki wrote: > > On Friday, March 11, 2016 12:58:15 PM Mika Westerberg wrote: > >> On Thu, Mar 10, 2016 at 09:57:09PM +0100, Rafael J. Wysocki wrote: > >> > > It doesn't seem to do any runtime PM,

[PATCH 1/4 v3] drm: Add support of ARC PGU display controller

2016-03-14 Thread Alexey Brodkin
Hi Daniel, On Mon, 2016-03-14 at 08:00 +0100, Daniel Vetter wrote: > On Fri, Mar 11, 2016 at 06:42:36PM +0300, Alexey Brodkin wrote: > > > > ARC PGU could be found on some development boards from Synopsys. > > This is a simple byte streamer that reads data from a framebuffer > > and sends data to

[GIT PULL] drm-vc4-next for 4.6

2016-03-14 Thread Eric Anholt
Merge tag 'drm-vc4-fixes-2016-03-03' of github.com:anholt/linux into drm-next (2016-03-14 09:48:04 +1000) are available in the git repository at: git at github.com:anholt/linux.git tags/drm-vc4-next-2016-03-14 for you to fetch changes up to 90d7116061f86c1f8ea460806a0414addea7b58b: drm/v

[PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Daniel Vetter
On Mon, Mar 14, 2016 at 07:47:39PM +1000, Dave Airlie wrote: > > > >> - if (pcie_port_runtime_suspend_allowed(dev)) > >> + if (pcie_port_runtime_suspend_allowed(dev)) { > >> + pm_runtime_allow(&dev->dev); > > > > PCI drivers typically have left this decision up to the userspace.

[PATCH] drm/rockchip: cancel pending vblanks on close

2016-03-14 Thread Mark yao
On 2016年03月12日 01:21, John Keeping wrote: > When closing the DRM device while a vblank is pending, we access > file_priv after it has been free'd, which gives: > >Unable to handle kernel NULL pointer dereference at virtual address > >... >PC is at __list_add+0x5c/0xe8 >

[PATCH v2] drm/rockchip: vop: fix crtc size in plane check

2016-03-14 Thread Mark yao
On 2016年03月04日 19:04, John Keeping wrote: > If the geometry of a crtc is changing in an atomic update then we must > validate the plane size against the new state of the crtc and not the > current size, otherwise if the crtc size is increasing the plane will be > cropped at the previous size

[PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Alex Deucher
On Sun, Mar 13, 2016 at 10:19 PM, Dave Airlie wrote: > On 11 March 2016 at 23:45, Rafael J. Wysocki wrote: >> On Friday, March 11, 2016 12:58:15 PM Mika Westerberg wrote: >>> On Thu, Mar 10, 2016 at 09:57:09PM +0100, Rafael J. Wysocki wrote: >>> > > It doesn't seem to do any runtime PM, >>> > > I

[Bug 94530] AMD R9 Nano reset problem

2016-03-14 Thread bugzilla-dae...@freedesktop.org
dri-devel/attachments/20160314/8a9f9de8/attachment.html>

[PATCH 1/4 v3] drm: Add support of ARC PGU display controller

2016-03-14 Thread Daniel Vetter
On Fri, Mar 11, 2016 at 06:42:36PM +0300, Alexey Brodkin wrote: > ARC PGU could be found on some development boards from Synopsys. > This is a simple byte streamer that reads data from a framebuffer > and sends data to the single encoder. > > Signed-off-by: Alexey Brodkin > Cc: David Airlie > Cc

[PATCH] drm/msm/dsi: fix definition of msm_dsi_pll_28nm_8960_init()

2016-03-14 Thread Kieran Bingham
On 14/03/16 01:07, Rob Clark wrote: > On Sun, Mar 13, 2016 at 5:12 PM, Kieran Bingham > wrote: >> On 04/02/16 05:09, Archit Taneja wrote: >>> >>> >>> On 02/03/2016 07:55 PM, Luis Henriques wrote: This fixes the following build failure: drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.o: In

[PULL] topic/drm-misc

2016-03-14 Thread Daniel Vetter
On Wed, Mar 09, 2016 at 10:56:46AM +0100, Daniel Vetter wrote: > Hi Dave, > > I expect this to be the final drm-misc pull for 4.6: > - color manager core patch from Lionel - i915 side is ready too, but will > only land in 4.7, but I figured it's better to land this earlier for > better coordin

[PATCH] drm/msm/dsi: fix definition of msm_dsi_pll_28nm_8960_init()

2016-03-14 Thread Rob Clark
On Mon, Mar 14, 2016 at 3:59 AM, Kieran Bingham wrote: > On 14/03/16 01:07, Rob Clark wrote: >> On Sun, Mar 13, 2016 at 5:12 PM, Kieran Bingham >> wrote: >>> On 04/02/16 05:09, Archit Taneja wrote: On 02/03/2016 07:55 PM, Luis Henriques wrote: > This fixes the following build f

[Bug 94284] [radeonsi] outlast segfault on start

2016-03-14 Thread bugzilla-dae...@freedesktop.org
... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160314/e5fa0173/attachment.html>

[Bug 92912] Full GPU lockups in TF2 - R600

2016-03-14 Thread bugzilla-dae...@freedesktop.org
e bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160314/b9c0bd25/attachment.html>