[Bug 95306] Random Blank(black) screens on "Carrizo"

2016-08-22 Thread bugzilla-dae...@freedesktop.org
L: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160822/dd95450f/attachment.html>

[PATCH] drm: Avoid calling dev_printk(.dev = NULL)

2016-08-22 Thread Sean Paul
On Fri, Aug 19, 2016 at 7:33 AM, Sean Paul wrote: > On Aug 19, 2016 12:37 AM, "Chris Wilson" wrote: >> >> Since dev_printk likes to print "(NULL device *):" when passed in a NULL >> pointer, we have to manually call printk() ourselves. >> >> Fixes: c4e68a583202 ("drm: Introduce DRM_DEV_* log mess

[PATCH v13 4/7] drm/i915/skl: Update plane watermarks atomically during plane updates

2016-08-22 Thread Lyude
Thanks to Ville for suggesting this as a potential solution to pipe underruns on Skylake. On Skylake all of the registers for configuring planes, including the registers for configuring their watermarks, are double buffered. New values written to them won't take effect until said registers are "ar

[PATCH] drm/i915/skl: Set dirty_pipes to active_crtcs, not ~0

2016-08-22 Thread Lyude
Using intel_state->active_crtcs allows us to more easily check whether or not we've updated all of the CRTCs that needed ddb updates since we can just do: mask_of_crtcs_we_updated == intel_state->wm_results.dirty_pipes Signed-off-by: Lyude --- drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 f

[PATCH] drm/fsl-dcu: Fix endian issue when using clk_register_divider

2016-08-22 Thread Stefan Agner
On 2016-08-22 00:13, Meng Yi wrote: >> fsl_dev->pix_clk = clk_register_divider(dev, pix_clk_name, >> pix_clk_in_name, 0, base + DCU_DIV_RATIO, >> -0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL); >> +24, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL); >

[PATCH 1/2] drm/msm: fix use of copy_from_user() while holding spinlock

2016-08-22 Thread Rob Clark
Use instead __copy_from_user_inatomic() and fallback to slow-path where we drop and re-aquire the lock in case of fault. Cc: stable at vger.kernel.org Reported-by: Vaishali Thakkar Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem_submit.c | 27 ++- 1 file changed

[PATCH 2/2] drm/msm: protect against faults from copy_from_user() in submit ioctl

2016-08-22 Thread Rob Clark
An evil userspace could try to cause deadlock by passing an unfaulted-in GEM bo as submit->bos (or submit->cmds) table. Which will trigger msm_gem_fault() while we already hold struct_mutex. See: https://github.com/freedreno/msmtest/blob/master/evilsubmittest.c Cc: stable at vger.kernel.org Sig

[PATCH v4 0/5] drm: add SimpleDRM driver

2016-08-22 Thread Noralf Trønnes
This patchset adds the simpledrm driver by David Herrmann based on a patchset[1] from 2014. That patchset also included patches for kicking out simpledrm by real drivers. I have stayed away from that since it involves another subsystem and I would probably be unable to answer any questions about th

[PATCH v4 1/5] of: Add EXPORT_SYMBOL for of_chosen

2016-08-22 Thread Noralf Trønnes
Export of_chosen so drivers built as modules can get access to it. The simpledrm driver will use this and is compatible with simple-framebuffer which is a subnode of /chosen. Signed-off-by: Noralf Trønnes --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/base.

[PATCH v4 2/5] drm/fb-helper: Add drm_fb_helper_set_suspend_lock()

2016-08-22 Thread Noralf Trønnes
This adds a function that also takes the console lock before calling fb_set_suspend() in contrast to drm_fb_helper_set_suspend() which is a plain wrapper around fb_set_suspend(). Resume is run asynchronously using a worker if the console lock is already taken. This is modelled after the i915 driver

[PATCH v4 4/5] drm: simpledrm: add fbdev fallback support

2016-08-22 Thread Noralf Trønnes
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrmann at gmail.com Signed-off-by: Noralf Trønnes --- Changes from version 3: - Remove #ifdef CONFIG_DRM_FBDEV_EMULATION - Use drm_fb_helper_set_suspend_lock

[PATCH v4 5/5] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-22 Thread Noralf Trønnes
There is currently no non-fbdev mechanism in place to kick out simpledrm when the real hw-driver is probed. As a stop gap until that is in place, honour remove_conflicting_framebuffers() and delete the simple-framebuffer platform device when it's called. Signed-off-by: Noralf Trønnes --- Change

[PATCH v4 3/5] drm: add SimpleDRM driver

2016-08-22 Thread Noralf Trønnes
The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can create dumb-buffers which can be blit into the real framebuffer similar to UDL. No access to the real framebuffer i

[PATCH v3 1/5] drm/rockchip: sort registers define by chip's number

2016-08-22 Thread Sean Paul
On Thu, Aug 18, 2016 at 6:02 AM, Mark yao wrote: > On 2016年08月18日 17:11, Daniel Vetter wrote: >> >> On Thu, Aug 18, 2016 at 05:08:14PM +0800, Mark yao wrote: >>> >>> >Hi Sean >>> > >>> >Thanks for send v3 patch for rk3399 vop support. >>> > >>> >But sorry for that, I had changed my mind, tho

[PATCH 0/4] Backported vlv fixes for 4.7.y

2016-08-22 Thread Greg KH
On Mon, Aug 22, 2016 at 11:31:31AM -0400, Lyude wrote: > Hope this didn't take too long! Here's the backported versions of the patches > you had trouble applying to stable. The patch for FBC won't be necessary as > that is already present in 4.7.y. > > Cheers, > Lyude Thanks, but what are t

[urgent] drm/fb-helper: Fix the dummy remove_conflicting_framebuffers

2016-08-22 Thread Chris Wilson
We always need to remove conflicting framebuffers if any other fb driver is enabled, and not just if we are setting up an fbdev ourselves. Unfortunately remove_conflicting_framebuffers() was incorrectly stubbed out if !fbdev rather than !fb leading to major memory corruption (and corrupt filesyste

[PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from "

2016-08-22 Thread ran...@sibernet.com
On Sat, 20 Aug 2016, Emil Velikov wrote: > > If you or any !Linux folks are around on XDC we should really sit down > and untangle some/all of these issues. > > Thanks > Emil > If there was to be some sort of BoF (doesn't have to be formal, and could be an after-hours event), I would inves

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread ran...@sibernet.com
On Mon, 22 Aug 2016, Emil Velikov wrote: > Although last time around people leaned towards the __uX types, if we > have a consensus amongst drm (kernel) developers about using stdint > ones everything should be fine. > We just need a handful of acks from the different maintainers. > My opinio

[PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from "

2016-08-22 Thread ran...@sibernet.com
On Mon, 22 Aug 2016, Daniel Vetter wrote: > On Sat, Aug 20, 2016 at 8:58 PM, Emil Velikov > wrote: >> >> All I can think of is that you (?) are porting some changes from the >> kernel to libdrm or vice-versa. In the latter case please _don't_ do >> that. Work with your changes in upstream kerne

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Ken Phillis Jr
HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160822/81caa154/attachment.html>

[PATCH v2 2/2] Documentation/sphinx: link dma-buf rsts

2016-08-22 Thread Mauro Carvalho Chehab
Em Mon, 22 Aug 2016 20:41:45 +0530 Sumit Semwal escreveu: > Include dma-buf sphinx documentation into top level index. > > Signed-off-by: Sumit Semwal > --- > Documentation/index.rst | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/index.rst b/Documentation/index.rst >

[PATCH] drm/fsl-dcu: Fix endian issue when using clk_register_divider

2016-08-22 Thread Meng Yi
> fsl_dev->pix_clk = clk_register_divider(dev, pix_clk_name, > pix_clk_in_name, 0, base + DCU_DIV_RATIO, > - 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL); > + 24, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL); Tested-by: Meng Yi On LS1021A-TW

[PATCH v2] drm/udl: Ensure channel is selected before using the device.

2016-08-22 Thread Jamie Lentin
Lift configuration command from udlfb. This appears to be essential for at least a Rextron VCUD-60, without which no URB communication occurs. Signed-off-by: Jamie Lentin --- udl_encoder_commit() is too late to do this set up in it seems. This setup doesn't need to be performed again after a susp

Mullins support in xf86-video-amdgpu

2016-08-22 Thread Reid Hekman
attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160822/21857c35/attachment.html>

[PATCH] Re: Mullins support in xf86-video-amdgpu

2016-08-22 Thread Reid Hekman
On 08/22/2016 08:27 PM, Michel Dänzer wrote: > On 23/08/16 10:18 AM, Reid Hekman wrote: >> >> I was encouraged by a commit I saw today to add Sea Islands PCI ids to >> xf86-video-amdgpu. However I did not see MULLINS included. Are there >> other showstoppers preventing inclusion? > > I assume the

[RFC][PATCH 0/4] Audio support for adv7511 hdmi bridge

2016-08-22 Thread John Stultz
This is an initial swing at getting the adv7511 hdmi bridge audio support reviewed. I've taken the core audio work done by Lars-Peter Clausen, and adapted by Srinivas Kandagatla and Archit Taneja, and tried to rework it to use the hdmi-codec sound driver. This patchset, along with the i2s driver

[RFC][PATCH 1/4] drm/bridge: adv7511: Move the common data structures to header file

2016-08-22 Thread John Stultz
From: Archit Taneja This patch moves the adv7511 data structure to header file so that the audio driver file could use it. Cc: David Airlie Cc: Archit Taneja Cc: Laurent Pinchart Cc: Wolfram Sang Cc: Srinivas Kandagatla Cc: "Ville Syrjälä" Cc: Boris Brezillon Cc: Andy Green Cc: Dave Lo

[RFC][PATCH 2/4] drm/bridge: adv7511: Add Audio support.

2016-08-22 Thread John Stultz
This patch adds support to Audio for both adv7511 and adv7533 bridge chips. This patch was originally from [1] by Lars-Peter Clausen and was adapted by Archit Taneja and Srinivas Kandagatla . Then I heavily reworked it to use the hdmi-codec driver. So credit to them, but blame to me. [1] http

[RFC][PATCH 3/4] drm/bridge: adv7511: Enable the audio data and clock pads on adv7533

2016-08-22 Thread John Stultz
From: Srinivas Kandagatla This patch enables the Audio Data and Clock pads to the adv7533 bridge. Without this patch audio can not be played. Cc: David Airlie Cc: Archit Taneja Cc: Laurent Pinchart Cc: Wolfram Sang Cc: Srinivas Kandagatla Cc: "Ville Syrjälä" Cc: Boris Brezillon Cc: Andy

[RFC][PATCH 4/4] drm/bridge: adv7511: Initialize audio packet on adv7533

2016-08-22 Thread John Stultz
From: Andy Green Set the initial audio packet settings to allow the audio driver to work. Cc: David Airlie Cc: Archit Taneja Cc: Laurent Pinchart Cc: Wolfram Sang Cc: Srinivas Kandagatla Cc: "Ville Syrjälä" Cc: Boris Brezillon Cc: Andy Green Cc: Dave Long Cc: Guodong Xu Cc: Zhangfei

<    1   2