[Intel-gfx] [PATCH v4 02/11] drm: Read DP downstream port capabilities

2016-06-07 Thread kbuild test robot
eter 'rps' drivers/gpu/drm/i915/i915_gem.c:1452: warning: No description found for parameter 'req' drivers/gpu/drm/i915/i915_gem.c:1479: warning: No description found for parameter 'obj' drivers/gpu/drm/i915/i915_gem.c:1479: warning: No description found for parameter 'readonly' drivers/gpu/drm/i915/i915_gem.c:1596: warning: No description found for parameter 'dev' drivers/gpu/drm/i915/i915_gem.c:1596: warning: No description found for parameter 'data' drivers/gpu/drm/i915/i915_gem.c:1596: warning: No description found for parameter 'file' drivers/gpu/drm/i915/i915_gem.c:1659: warning: No description found for parameter 'dev' drivers/gpu/drm/i915/i915_gem.c:1659: warning: No description found for parameter 'data' drivers/gpu/drm/i915/i915_gem.c:1659: warning: No description found for parameter 'file' vim +/aux +451 drivers/gpu/drm/drm_dp_helper.c 435 return err; 436 437 return 0; 438 } 439 EXPORT_SYMBOL(drm_dp_link_configure); 440 441 /** 442 * drm_dp_downstream_port_cap() - read downstream port capabilities 443 * @dpcd: DisplayPort configuration data 444 * @port_cap: port capabilities 445 * 446 * returns size of the port capabilites 447 */ 448 int drm_dp_downstream_port_cap(struct drm_dp_aux *aux, 449 const u8 dpcd[DP_RECEIVER_CAP_SIZE], 450 u8 port_cap[4]) > 451 { 452 int size; 453 bool detailed_cap_info = dpcd[DP_DOWNSTREAMPORT_PRESENT] & 454 DP_DETAILED_CAP_INFO_AVAILABLE; 455 456 if (detailed_cap_info) { 457 size = 4; 458 drm_dp_dpcd_read(aux, DP_DOWNSTREAM_PORT_0, port_cap, size); 459 } else { --- 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/octet-stream Size: 6366 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/9b8c5ecb/attachment-0001.obj>

[Intel-gfx] [PATCH v4 06/11] drm: Read DP branch device id

2016-06-07 Thread kbuild test robot
* 490 * Returns max clock in kHz on success or negative error code on failure 491 */ 492 int drm_dp_downstream_max_clock(const u8 dpcd[DP_RECEIVER_CAP_SIZE], 493 const u8 port_cap[4]) 494 { 495 int type = drm_dp_downstream_type(dpcd, port_cap); 496 bool detailed_cap_info = dpcd[DP_DOWNSTREAMPORT_PRESENT] & 497 DP_DETAILED_CAP_INFO_AVAILABLE; 498 499 if (detailed_cap_info) { 500 if (type == DP_DS_PORT_TYPE_VGA) 501 return port_cap[1] * 8 * 1000; 502 else if (type != DP_DS_PORT_TYPE_WIRELESS) 503 return port_cap[1] * 2500; 504 } 505 506 return -EINVAL; 507 } 508 EXPORT_SYMBOL(drm_dp_downstream_max_clock); 509 510 /** 511 * drm_dp_downstream_max_bpc() - extract branch device max 512 * bits per component 513 * @dpcd: DisplayPort configuration data 514 * @port_cap: port capabilities 515 * 516 * Returns max bpc on success or negative error code on failure 517 */ 518 int drm_dp_downstream_max_bpc(const u8 dpcd[DP_RECEIVER_CAP_SIZE], 519const u8 port_cap[4]) 520 { 521 int type = drm_dp_downstream_type(dpcd, port_cap); 522 bool detailed_cap_info = dpcd[DP_DOWNSTREAMPORT_PRESENT] & 523 DP_DETAILED_CAP_INFO_AVAILABLE; 524 525 if (detailed_cap_info) { 526 if (type != DP_DS_PORT_TYPE_WIRELESS) { 527 int tmp; 528 tmp = port_cap[2] & DP_DS_VGA_MAX_BPC_MASK; 529 530 if (tmp == 0) 531 return 8; 532 else 533 return 8 + (1< 548 { 549 return drm_dp_dpcd_read(aux, DP_BRANCH_ID, id, 6); 550 } 551 EXPORT_SYMBOL(drm_dp_downstream_id); --- 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/octet-stream Size: 6366 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/ab38de4e/attachment-0001.obj>

274ad65c9d02 ("drm/radeon: hard reset r600 and newer GPU when hibernating.")

2016-06-07 Thread Borislav Petkov
On Mon, Jun 06, 2016 at 05:40:19PM -0400, Jerome Glisse wrote: > Brokens how ? Symptoms ? Whoops, sorry, I meant to elaborate... After doing: echo "shutdown" > /sys/power/disk echo "disk" > /sys/power/state screen goes blank but machine remains powered on and doesn't go off. No

[PATCH 07/23] drm: omapdrm: Handle FIFO underflow IRQs internally

2016-06-07 Thread Laurent Pinchart
Hi Tomi, On Monday 06 Jun 2016 13:50:13 Tomi Valkeinen wrote: > On 06/06/16 02:21, Laurent Pinchart wrote: > >> Also, I do like it that we deal with crtc or plane interrupts in > >> omap_crtc or omap_plane. Would similar approach here work as you use in > >> the following patches, i.e. just call u

[PATCH 10/23] drm: omapdrm: Use atomic state instead of local device state

2016-06-07 Thread Laurent Pinchart
Hi Tomi, On Monday 06 Jun 2016 13:37:13 Tomi Valkeinen wrote: > On 06/06/16 04:14, Laurent Pinchart wrote: > >>> If the DRM core doesn't track whether a CRTC HW is enabled at the > >>> moment, maybe omapdrm should? I guess the above works, but that if() > >>> makes me a bit uneasy, as it's not rea

[PATCH 0/4] Centralize format information

2016-06-07 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 1/4] drm: Centralize format information

2016-06-07 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 3/4] drm: Implement the drm_format_*() helpers as drm_format_info() wrappers

2016-06-07 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 --- drivers/gpu/drm/drm_crtc.c | 166 +++-- 1 file changed, 24 insertions(+), 1

[PATCH 2/4] drm: Remove unused drm_format_plane_(width|height) helpers

2016-06-07 Thread Laurent Pinchart
The drm_format_plane_width() and drm_format_plane_height() helper functions are not used, remove them. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/drm_crtc.c | 42 -- include/drm/drm_crtc.h | 2 -- 2 files changed, 44 deletions(-) diff --git

[PATCH 4/4] drm: Use drm_format_info() in DRM core code

2016-06-07 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 --- drivers/gpu/drm/drm_crtc.c | 100 +--- drivers/gpu/drm/drm_f

[PATCH v2 00/20] OMAP DRM fixes and improvements

2016-06-07 Thread Laurent Pinchart
Hello, Here's the second version of my current stack of pending patches for the omapdrm driver. All comments received for v1 have been taken into account. Changes since v1 include - Rebase on top to Tomi's 4.8/omapdrm branch and drop already merged patches (git://git.kernel.org/pub/scm/linux/k

[PATCH v2 01/20] drm: omapdrm: fb: Limit number of planes per framebuffer to two

2016-06-07 Thread Laurent Pinchart
The only multi-planar format supported by the driver is NV12, there will thus never be more than two planes per framebuffer. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_

[PATCH v2 05/20] drm: omapdrm: fb: Turn framebuffer creation error messages into debug

2016-06-07 Thread Laurent Pinchart
Don't print userspace parameters validation failures as error messages to avoid giving userspace the ability to flood the kernel log. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_fb.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

[PATCH v2 06/20] drm: omapdrm: Handle FIFO underflow IRQs internally

2016-06-07 Thread Laurent Pinchart
As the FIFO underflow IRQ handler just prints an error message to the kernel log, simplify the code by not registering one IRQ handler per plane but print the messages directly from the main IRQ handler. Signed-off-by: Laurent Pinchart --- Changes since v1: - Only register error IRQs that exist

[PATCH v2 09/20] drm: omapdrm: Use atomic state instead of local device state

2016-06-07 Thread Laurent Pinchart
Instead of conditioning planes update based on the hardware device state, use the CRTC state stored in the atomic state. This reduces the dependency from the DRM layer to the DSS layer. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 23 ++- 1 file c

[PATCH v2 08/20] drm: omapdrm: Handle OCP error IRQ directly

2016-06-07 Thread Laurent Pinchart
Instead of going through a complicated registration mechanism, just call the OCP error IRQ handler directly from the main IRQ handler. Signed-off-by: Laurent Pinchart --- Changes since v1: - Rename IRQ handler to omap_irq_ocp_error_handler() - Replace hex error value with "OCP error" message ---

[PATCH v2 13/20] drm: omapdrm: Use a spinlock to protect the CRTC pending flag

2016-06-07 Thread Laurent Pinchart
The flag will need to be accessed atomically in the vblank interrupt handler, memory barriers won't be enough. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v2 16/20] drm: omapdrm: Remove unused parameter from omap_drm_irq handler

2016-06-07 Thread Laurent Pinchart
The only omap_drm_irq handler doesn't use the irqstatus parameter passed to the function. Remove it. Signed-off-by: Laurent Pinchart --- Changes since v1: - New patch --- drivers/gpu/drm/omapdrm/omap_drv.h | 2 +- drivers/gpu/drm/omapdrm/omap_irq.c | 4 ++-- 2 files changed, 3 insertions(+), 3

[PATCH v2 17/20] drm: omapdrm: Don't call DISPC power handling in IRQ wait functions

2016-06-07 Thread Laurent Pinchart
The IRQ wait functions are called from the DSS enable and disable operations only, where the DISPC is guaranteed to be enabled. There's no need for manual DISPC power management there. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_irq.c | 4 1 file changed, 4 deletions(-)

[PATCH v2 03/20] drm: omapdrm: fb: Simplify objects lookup when creating framebuffer

2016-06-07 Thread Laurent Pinchart
Merge the single-user objects_lookup inline function into its caller, allowing reuse of the error code path. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_drv.h | 25 - drivers/gpu/drm/omapdrm/omap_fb.c | 29 +++

[PATCH v2 02/20] drm: omapdrm: fb: Use format information provided by the DRM core

2016-06-07 Thread Laurent Pinchart
The driver stores in a custom structure named format several pieces of information about the format that are available in the DRM core. Remove them and get the information from the DRM core instead. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_fb.c | 91 --

[PATCH v2 04/20] drm: omapdrm: fb: Simplify mode command checks when creating framebuffer

2016-06-07 Thread Laurent Pinchart
The hardware requires all planes to have an identical pitch in number of pixels. Given that all supported formats use the same number of bytes per pixel in all planes, framebuffer creation checks can be simplified. The implementations assumes that no format use more than two planes which is true wi

[PATCH v2 07/20] drm: omapdrm: Handle CRTC error IRQs directly

2016-06-07 Thread Laurent Pinchart
Instead of going through a complicated registration mechanism, just expose the CRTC error IRQ function and call it directly from the main IRQ handler. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_crtc.c | 12 ++-- drivers/gpu/drm/omapdrm/o

[PATCH v2 10/20] drm: omapdrm: Only commit planes on active CRTCs

2016-06-07 Thread Laurent Pinchart
The DRM core supports skipping plane update for inactive CRTCs for hardware that don't need it or can't cope with it. That's our case, so use the DRM core infrastructure instead of reinventing it. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 6 -- drivers/gpu/drm

[PATCH v2 11/20] drm: omapdrm: Check DSS manager state in the enable/disable helpers

2016-06-07 Thread Laurent Pinchart
The omapdrm DSS manager enable/disable operations check the DSS manager state to avoid double enabling/disabling. Move that code to the DSS manager to decrease the dependency of the DRM layer to the DSS layer. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dispc.c | 1 - driver

[PATCH v2 12/20] drm: omapdrm: Prevent processing the same event multiple times

2016-06-07 Thread Laurent Pinchart
The vblank interrupt is disabled after one occurrence, preventing the atomic update event from being processed twice. However, this also prevents the software frame counter from being updated correctly that would require vblank interrupts to be kept enabled while the CRTC is active. In preparation

[PATCH v2 15/20] drm: omapdrm: Don't expose the omap_irq_(un)register() functions

2016-06-07 Thread Laurent Pinchart
The IRQ registration functions are not used outside of their compilation unit, make them static. As the __omap_irq_(un)register() functions are only called by their omap_irq_(un)register() counterparts, merge them together. Signed-off-by: Laurent Pinchart --- Changes since v1: - Split the omap_d

[PATCH v2 14/20] drm: omapdrm: Keep vblank interrupt enabled while CRTC is active

2016-06-07 Thread Laurent Pinchart
Instead of going through a complicated private IRQ registration mechanism, handle the vblank interrupt activation with the standard drm_crtc_vblank_get() and drm_crtc_vblank_put() mechanism. This will let the DRM core keep the vblank interrupt enabled as long as needed to update the frame counter.

[PATCH v2 18/20] drm: omapdrm: Make pipe2vbl function static

2016-06-07 Thread Laurent Pinchart
The function is only used in omap_irq.c, move it there and make it static. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 7 --- drivers/gpu/drm/omapdrm/omap_drv.h | 1 - drivers/gpu/drm/omapdrm/omap_irq.c | 7 ++- 3 files changed, 6 insertions(+), 9 deletion

[PATCH v2 19/20] drm: omapdrm: Simplify IRQ wait implementation

2016-06-07 Thread Laurent Pinchart
Now that the IRQ list is used for IRQ wait only we can merge omap_drm_irq and omap_irq_wait and simplify the implementation. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 17 +-- drivers/gpu/drm/omapdrm/omap_irq.c | 94 ++ 2 file

[PATCH v2 20/20] drm: omapdrm: Remove global variables

2016-06-07 Thread Laurent Pinchart
Move the list of pending IRQ wait instances to the omap_drm_private structure and the wait queue head to the IRQ wait structure. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 3 ++- drivers/gpu/drm/omapdrm/omap_irq.c | 42 -- 2 file

[PATCH 1/2] drm/rockchip: vop: add uv_vir register field for RK3036 VOP

2016-06-07 Thread Mark yao
On 2016年06月06日 15:58, Yakir Yang wrote: > The WIN0 of RK3036 VOP could support YUV data format, but driver > forget to add the uv_vir register field for it. > > Signed-off-by: Yakir Yang > --- > drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 1 + > 1 file changed, 1 insertion(+) > > diff -

[PATCH 2/2] drm/rockchip: vop: correct the source size of uv scale factor setting

2016-06-07 Thread Mark yao
On 2016年06月06日 15:58, Yakir Yang wrote: > From: Mark Yao > > When the input color format is YUV, we need to do some external scale > for CBCR. Like, > * In YUV420 data format: > cbcr_xscale = dst_w / src_w * 2; > cbcr_yscale = dst_h / src_h * 2; > * In YUV422 data format: >

linux-next: manual merge of the drm-misc tree with Linus' tree

2016-06-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: Documentation/DocBook/device-drivers.tmpl between commit: eae1760fc838 ("doc: update/fixup dma-buf related DocBook") from Linus' tree and commit: ddac4b5a6c08 ("Documentation: add fence-array to kernel DocBook") f

[radeon-alex:drm-next-4.8-wip-si 99/115] drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1587:40: error: 'EVERGREEN_GRPH_ENDIAN_8IN16' undeclared

2016-06-07 Thread kbuild test robot
: application/octet-stream Size: 49570 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/a1246ba1/attachment-0001.obj>

[PATCH 08/14] drm/amdgpu: use drm_crtc_vblank_{get,put}()

2016-06-07 Thread Michel Dänzer
On 06.06.2016 23:41, Gustavo Padovan wrote: > From: Gustavo Padovan > > Replace the legacy drm_vblank_{get,put}() with the new helper functions. > > Signed-off-by: Gustavo Padovan [...] > @@ -268,7 +268,7 @@ int amdgpu_crtc_page_flip(struct drm_crtc *crtc, > return 0; > > vblank_clea

[PATCH v5 1/2] drm/bridge: Add sii902x driver

2016-06-07 Thread Boris Brezillon
Hi Meng, On Tue, 7 Jun 2016 02:40:56 + Meng Yi wrote: > Hi Boris, > > Sorry for reply late, I was on PTO. And another PTO on June 9~11, 2016.UTC+8 > > > > > > > + gpiod_set_value(sii902x->reset_gpio, 1); > > > > + > > > > + msleep(100); > > > Ouch that is some juicy number

[Mesa-dev] radeonfb: BAR 0: can't reserve [mem 0x98000000-0x9fffffff pref]

2016-06-07 Thread Mathieu Malaterre
Hi Alex, On Mon, Jun 6, 2016 at 7:20 PM, Alex Deucher wrote: > On Mon, Jun 6, 2016 at 1:16 PM, Marek Olšák wrote: >> [+ dri-devel] >> >> On Mon, Jun 6, 2016 at 8:42 AM, Mathieu Malaterre >> wrote: >>> Hi, >>> >>> Before reporting a possible invalid bug report. Does anyone knows why >>> radea

[Bug 95526] [AMDGPU][CIK] Suspend to disk deadlocks system (never worked)

2016-06-07 Thread bugzilla-dae...@freedesktop.org
w. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/a29dc411/attachment.html>

[PATCH v2] drm/dsi: Implement set tear scanline

2016-06-07 Thread Jani Nikula
On Mon, 06 Jun 2016, Vinay Simha BN wrote: > Provide a small convenience wrapper that transmits > a set_tear_scanline command. > > Also includes small build fixes from Sumit Semwal. > > Cc: Archit Taneja > Cc: John Stultz > Cc: Thierry Reding > Cc: Sumit Semwal > Cc: Jani Nikula > Signed-off-

[Intel-gfx] [PATCH v4] drm/i915/ilk: Don't disable SSC source if it's in use

2016-06-07 Thread Jani Nikula
On Mon, 06 Jun 2016, Lyude Paul wrote: > On Mon, 2016-06-06 at 14:30 +0300, Ville Syrjälä wrote: >> On Thu, May 26, 2016 at 09:54:56AM +0200, Daniel Vetter wrote: >> > >> > Queued for -next, thanks for the patch. >> Looks like this one broke one of the ILKs in CI. >> >> [   13.100979] [drm:

[PATCH 1/4] drm/amdgpu: clear RB at ring init

2016-06-07 Thread Michel Dänzer
On 02.06.2016 07:27, Alex Deucher wrote: > From: Monk Liu > > This help fix reloading driver hang issue of SDMA > ring. > > Signed-off-by: Monk Liu > Reviewed-by: Alex Deucher > Reviewed-by: Christian König > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3

[PATCH 10/20] drm: rockchip: Rely on the default ->best_encoder() behavior

2016-06-07 Thread Mark yao
On 2016年06月02日 22:31, Boris Brezillon wrote: > All outputss have a 1:1 relationship between connectors and encoders > and the driver is relying on the atomic helpers: we can drop the custom > ->best_encoder() implementations and let the core call > drm_atomic_helper_best_encoder() for us. G

fsl-dcu not works on latest "drm-next"

2016-06-07 Thread Meng Yi
Hi Stefan, Sorry for reply late, I was on PTO. And another PTO on June 9~11, 2016.UTC+8 > >> static const struct regmap_config fsl_dcu_regmap_config = { > >> .reg_bits = 32, > >> .reg_stride = 4, > >> .val_bits = 32, > >> .cache_type = REGCACHE_RBTREE, > > > > This needs to be a

[PATCH v5 1/2] drm/bridge: Add sii902x driver

2016-06-07 Thread Meng Yi
Hi Boris, Sorry for reply late, I was on PTO. And another PTO on June 9~11, 2016.UTC+8 > > > > + gpiod_set_value(sii902x->reset_gpio, 1); > > > + > > > + msleep(100); > > Ouch that is some juicy number. Can we get a comment with > > reasoning/origin of it ? > > As already explained

fsl-dcu not works on latest "drm-next"

2016-06-07 Thread Meng Yi
Hi Stefan, > >> static const struct regmap_config fsl_dcu_regmap_config = { > >> .reg_bits = 32, > >> .reg_stride = 4, > >> .val_bits = 32, > >> .cache_type = REGCACHE_RBTREE, > > > > This needs to be a flat cache. See > > https://lists.freedesktop.org/archives/dri-devel/2016-Janua

[PATCH v3] drm/dsi: Implement set tear scanline

2016-06-07 Thread Vinay Simha BN
Provide a small convenience wrapper that transmits a set_tear_scanline command. Cc: Archit Taneja Cc: John Stultz Cc: Thierry Reding Cc: Sumit Semwal Cc: Jani Nikula Signed-off-by: Vinay Simha BN -- v1: * helper function suggested by Thierry for set_tear_scanline * Also includes sma

[PATCH RESEND 06/14] drm/virtio: use drm_crtc_send_vblank_event()

2016-06-07 Thread Gerd Hoffmann
On Mo, 2016-06-06 at 11:41 -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Replace the legacy drm_send_vblank_event() with the new helper function. > > Signed-off-by: Gustavo Padovan > --- > drivers/gpu/drm/virtio/virtgpu_display.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

2016-06-07 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=119631 --- Comment #3 from Michel Dänzer --- Please attach the corresponding Xorg log file, preferably captured after running EVE-Online. -- You are receiving this mail because: You are watching the assignee of the bug.

[PATCH v5 1/2] drm/bridge: Add sii902x driver

2016-06-07 Thread Boris Brezillon
On Tue, 7 Jun 2016 08:28:18 + Meng Yi wrote: > Hi Boris, > > > Changes in v5: > > - drop the best_encoder() implementation > > > > Why best_encoder() droped? It's not needed anymore? Nope, not after this series [1]. [1]http://lists.infradead.org/pipermail/linux-arm-kernel/2016-June/432

[PATCH v3] drm/dsi: Implement set tear scanline

2016-06-07 Thread Jani Nikula
On Tue, 07 Jun 2016, Vinay Simha BN wrote: > Provide a small convenience wrapper that transmits > a set_tear_scanline command. > > Cc: Archit Taneja > Cc: John Stultz > Cc: Thierry Reding > Cc: Sumit Semwal > Cc: Jani Nikula > Signed-off-by: Vinay Simha BN Reviewed-by: Jani Nikula > > --

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Tomi Valkeinen
xt part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/c78c65dc/attachment.sig>

Request for Proposal for XDC 2017

2016-06-07 Thread Daniel Vetter
Hi all, The X.org board is soliciting proposals to host XDC in 2017. By the usual rotation a location in north america is preferred, but the board will also consider other locations, especially if there's an interesting co-location with another conference. If you consider hosting XDC, we have ass

[Bug 95528] BioShock Infinite issues on Tonga/Hawaii

2016-06-07 Thread bugzilla-dae...@freedesktop.org
pholeOptimizer cleans up redundant copies, which makes the operand folding more effective. --- -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Tomi Valkeinen
des. Which is what they do at the moment too, but is there ever a valid reason to do that without something being wrong? Tomi -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/efa883a2/attachment-0001.sig>

[PULL] virtio-vga updates

2016-06-07 Thread Gerd Hoffmann
Hi, Here are some virtio-gpu updates. please pull, Gerd The following changes since commit af8c34ce6ae32addda3788d54a7e340cad22516b: Linux 4.7-rc2 (2016-06-05 14:31:26 -0700) are available in the git repository at: git://git.kraxel.org/linux virtio-gpu-for-airlied for you to fetch ch

[PATCH v2] drm/core: Change declaration for gamma_set.

2016-06-07 Thread Maarten Lankhorst
Change return value to int to propagate errors from gamma_set, and remove start parameter. Updates always use the full size, and some drivers even ignore the start parameter altogether. This is needed for atomic drivers, where an atomic commit can fail with -EINTR or -ENOMEM and should be restarte

[PATCH v2] drm/core: Change declaration for gamma_set.

2016-06-07 Thread Patrik Jakobsson
On Tue, Jun 7, 2016 at 12:49 PM, Maarten Lankhorst wrote: > Change return value to int to propagate errors from gamma_set, > and remove start parameter. Updates always use the full size, > and some drivers even ignore the start parameter altogether. > > This is needed for atomic drivers, where an

[PATCH 10/14] drm/atmel: use drm_crtc_vblank_{get,put}()

2016-06-07 Thread Boris Brezillon
On Mon, 6 Jun 2016 11:41:41 -0300 Gustavo Padovan wrote: > From: Gustavo Padovan > > Replace the legacy drm_vblank_{get,put}() with the new helper functions. > > Signed-off-by: Gustavo Padovan Acked-by: Boris Brezillon > --- > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 +- > 1 fi

[PATCH RESEND 03/14] drm/atmel: use drm_crtc_send_vblank_event()

2016-06-07 Thread Boris Brezillon
On Mon, 6 Jun 2016 11:41:34 -0300 Gustavo Padovan wrote: > From: Gustavo Padovan > > Replace the legacy drm_send_vblank_event() with the new helper function. > > Signed-off-by: Gustavo Padovan Acked-by: Boris Brezillon > --- > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 +- > 1 fi

[PATCH 03/27] drm/atmel: Use lockless gem BO free callback

2016-06-07 Thread Boris Brezillon
On Mon, 30 May 2016 19:52:55 +0200 Daniel Vetter wrote: > No dev->struct_mutex anywhere to be seen. > > Cc: Boris Brezillon > Signed-off-by: Daniel Vetter Acked-by: Boris Brezillon > --- > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Laurent Pinchart
Hi Tomi, On Tuesday 07 Jun 2016 12:18:34 Tomi Valkeinen wrote: > On 07/06/16 02:33, Laurent Pinchart wrote: > > +/** > > + * struct drm_format_info - information about a DRM format > > + * @format: 4CC format identifier (DRM_FORMAT_*) > > + * @depth: color depth (number of bits per pixel excluding

[PATCH v6 1/2] drm/bridge: Add sii902x driver

2016-06-07 Thread Boris Brezillon
Add basic support for the sii902x RGB -> HDMI bridge. This driver does not support audio output yet. Signed-off-by: Boris Brezillon Tested-by: Nicolas Ferre --- Hello, This patch is only adding basic support for the sii9022 chip. As stated in the commit log, there's no audio support, but the dr

[PATCH v6 2/2] drm/bridge: Add sii902x DT bindings doc

2016-06-07 Thread Boris Brezillon
Add Sii9022 DT bindings description. Signed-off-by: Boris Brezillon Acked-by: Rob Herring --- Changes since v1: - rename doc file - s/sil902/sii902/ --- .../devicetree/bindings/display/bridge/sii902x.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documenta

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Laurent Pinchart
Hi Tomi, On Tuesday 07 Jun 2016 12:25:08 Tomi Valkeinen wrote: > On 07/06/16 02:33, Laurent Pinchart wrote: > > 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

HDLCD crashes with 6d910bfa809e

2016-06-07 Thread Robin Murphy
Hi Daniel, Liviu, Having just inadvertently merged -next into my working branch, I find dev6d910bfa809e ("drm/hlcd: Use lockless gem BO free callback") adversely affecting my board's ability to boot ;) Since I (intentionally) don't have sufficient CMA to create a framebuffer, drm_gem_cma_creat

[PATCH v6 0/4] drm/omapdrm: gamma table support + drm_crtc_enable_color_mgmt()

2016-06-07 Thread Jyri Sarha
Implements gamma tables for OMAP4, OMAP5, and dra7xx SoCs and adds a workaround for errata that may break LCD1 channel if gamma tables are in use. Also adds new drm_crtc_enable_color_mgmt() as suggested[1] by Daniel Vetter and get rid of the old drm_helper_crtc_enable_color_mgmt(). I have not test

[PATCH v6 1/4] drm: drm_helper_crtc_enable_color_mgmt() => drm_crtc_enable_color_mgmt()

2016-06-07 Thread Jyri Sarha
Add drm_crtc_enable_color_mgmt(), remove drm_helper_crtc_enable_color_mgmt() and update drm/i915-driver (the only user of the old function). The new function is more flexible. It allows driver to enable only the features it has without forcing to enable all three color management properties: degam

[PATCH v6 2/4] drm/omapdrm: Add gamma table support to DSS dispc

2016-06-07 Thread Jyri Sarha
Add gamma table support to DSS dispc. DSS driver initializes the default gamma table at component bind time and holds a copy of all gamma tables in its internal data structure. Each call to dispc_mgr_set_gamma() updates the internal table and triggers write to the HW, if it is enabled. The tables

[PATCH v6 3/4] drm/omapdrm: Workaround for errata i734 (LCD1 Gamma) in DSS dispc

2016-06-07 Thread Jyri Sarha
Workaround for errata i734 in DSS dispc - LCD1 Gamma Correction Is Not Working When GFX Pipe Is Disabled For gamma tables to work on LCD1 the GFX plane has to be used at least once after DSS HW has come out of reset. The workaround sets up a minimal LCD setup with GFX plane and waits for one vert

[PATCH v6 4/4] drm/omapdrm: Implement gamma_lut atomic crtc properties

2016-06-07 Thread Jyri Sarha
Implement gamma_lut atomic crtc properties, set crtc gamma size to 256 for all crtcs and use drm_atomic_helper_legacy_gamma_set() as gamma_set func. The tv-out crtc has 1024 element gamma table (with 10bit precision) in HW, but current Xorg server does not accept anything else but 256 elements so t

[PATCH] drm/fb_cma_helper: Implement fb_mmap callback

2016-06-07 Thread Robin Murphy
In the absence of an fb_mmap callback, the fbdev code falls back to a naive implementation which relies upon the DMA address being the same as the physical address, and the buffer being physically contiguous from there. Whilst this often holds for standard CMA allocations via the platform's regular

[Mesa-dev] radeonfb: BAR 0: can't reserve [mem 0x98000000-0x9fffffff pref]

2016-06-07 Thread Mathieu Malaterre
On Tue, Jun 7, 2016 at 8:05 AM, Mathieu Malaterre wrote: > Hi Alex, > > On Mon, Jun 6, 2016 at 7:20 PM, Alex Deucher wrote: >> On Mon, Jun 6, 2016 at 1:16 PM, Marek Olšák wrote: >>> [+ dri-devel] >>> >>> On Mon, Jun 6, 2016 at 8:42 AM, Mathieu Malaterre >>> wrote: Hi, Before r

[Bug 96423] radeonfb: BAR 0: can't reserve [mem 0x98000000-0x9fffffff pref]

2016-06-07 Thread bugzilla-dae...@freedesktop.org
/ ret = radeon_kick_out_firmware_fb(pdev); if (ret) [...] -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/6d33be59

[Mesa-dev] radeonfb: BAR 0: can't reserve [mem 0x98000000-0x9fffffff pref]

2016-06-07 Thread Christian König
Am 07.06.2016 um 14:19 schrieb Mathieu Malaterre: > On Tue, Jun 7, 2016 at 8:05 AM, Mathieu Malaterre wrote: >> Hi Alex, >> >> On Mon, Jun 6, 2016 at 7:20 PM, Alex Deucher >> wrote: >>> On Mon, Jun 6, 2016 at 1:16 PM, Marek Olšák wrote: [+ dri-devel] On Mon, Jun 6, 2016 at 8:42

[PATCH 2/4] drm: Remove unused drm_format_plane_(width|height) helpers

2016-06-07 Thread Ville Syrjälä
On Tue, Jun 07, 2016 at 02:33:12AM +0300, Laurent Pinchart wrote: > The drm_format_plane_width() and drm_format_plane_height() helper > functions are not used, remove them. I have a user lined up, assuming I could get the dang thing reviewed. > > Signed-off-by: Laurent Pinchart > --- > drivers

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Ville Syrjälä
On Tue, Jun 07, 2016 at 02:33:11AM +0300, Laurent Pinchart wrote: > 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 th

[PATCH 2/4] drm: Remove unused drm_format_plane_(width|height) helpers

2016-06-07 Thread Laurent Pinchart
Hi Ville, On Tuesday 07 Jun 2016 16:19:01 Ville Syrjälä wrote: > On Tue, Jun 07, 2016 at 02:33:12AM +0300, Laurent Pinchart wrote: > > The drm_format_plane_width() and drm_format_plane_height() helper > > functions are not used, remove them. > > I have a user lined up, assuming I could get the

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Laurent Pinchart
Hi Ville, On Tuesday 07 Jun 2016 16:20:17 Ville Syrjälä wrote: > On Tue, Jun 07, 2016 at 02:33:11AM +0300, Laurent Pinchart wrote: > > Various pieces of information about DRM formats (number of planes, color > > depth, chroma subsampling, ...) are scattered across different helper > > functions

[PATCH 0/4] Centralize format information

2016-06-07 Thread Daniel Vetter
On Tue, Jun 07, 2016 at 02:33:10AM +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 0/4] Centralize format information

2016-06-07 Thread Laurent Pinchart
Hi Daniel, On Tuesday 07 Jun 2016 15:27:09 Daniel Vetter wrote: > On Tue, Jun 07, 2016 at 02:33:10AM +0300, Laurent Pinchart wrote: > > Hello, > > > > Various pieces of information about DRM formats (number of planes, color > > depth, chroma subsampling, ...) are scattered across different helper

HDLCD crashes with 6d910bfa809e

2016-06-07 Thread liviu.du...@arm.com
On Tue, Jun 07, 2016 at 01:06:00PM +0100, Robin Murphy wrote: > Hi Daniel, Liviu, Hi Robin, > > Having just inadvertently merged -next into my working branch, I find > dev6d910bfa809e ("drm/hlcd: Use lockless gem BO free callback") adversely > affecting my board's ability to boot ;) > > Since I

[Bug 96350] vaGetSurfaceBufferWl() is not implemented at VAAPI Gallium state tracker

2016-06-07 Thread bugzilla-dae...@freedesktop.org
- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/0e0828f9/attachment.html>

[PATCH v2 2/3] drm: convert DT component matching to component_match_add_release()

2016-06-07 Thread Liviu Dudau
On Fri, Jun 03, 2016 at 03:21:25PM +0100, Russell King wrote: > Convert DT component matching to use component_match_add_release(). > > Signed-off-by: Russell King > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 9 +++-- > drivers/gpu/drm/armada/armada_drv.c | 8 ++-- > d

[Bug 96423] radeonfb: BAR 0: can't reserve [mem 0x98000000-0x9fffffff pref]

2016-06-07 Thread bugzilla-dae...@freedesktop.org
assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/48b6c19c/attachment-0001.html>

[PATCH 01/10] drm/nouveau: replace legacy vblank helpers

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_send_vblank_event(), drm_arm_vblank_event() and drm_vblank_{get,put}() with the new helper functions. v2: add crtc to nouveau_page_flip_state (comment from Mario Kleiner) Signed-off-by: Gustavo Padovan Signed-off-by: Gustavo Padovan --- drivers/g

[PATCH 02/10] drm: remove legacy drm_send_vblank_event()

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan We don't have any user of this function anymore, let's remove it. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/drm_irq.c | 31 ++- include/drm/drmP.h| 2 -- 2 files changed, 6 insertions(+), 27 deletions(-) diff --git a/drivers/

[PATCH 03/10] drm: remove legacy drm_arm_vblank_event()

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan We don't have any user of this function anymore, let's remove it. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/drm_irq.c | 39 --- include/drm/drmP.h| 2 -- 2 files changed, 8 insertions(+), 33 deletions(-) diff --git a/

[PATCH 05/10] drm: make drm_vblank_count_and_time() static

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan As they are not used anywhere outside drm_irq.c make them static. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/drm_irq.c | 7 ++- include/drm/drmP.h| 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_irq.c b/drivers

[PATCH 06/10] drm/amdgpu: use drm_crtc_vblank_{on,off}()

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{on,off}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 4 ++-- 3 files changed, 6

[PATCH 04/10] drm: make drm_vblank_{get,put}() static

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan As they are not used anywhere outside drm_irq.c make them static. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/drm_irq.c | 10 ++ include/drm/drmP.h| 2 -- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_irq.c b/d

[PATCH 07/10] drm/gma500: use drm_crtc_vblank_{on,off}()

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{on,off}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/gma500/gma_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma5

[PATCH 08/10] drm/radeon: use drm_crtc_vblank_{on,off}()

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan Replace the legacy drm_vblank_{on,off}() with the new helper functions. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/radeon/atombios_crtc.c | 4 ++-- drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --

[PATCH 09/10] drm/amdgpu: use crtc directly in drm_crtc_vblank_put()

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan We don't need to use &amdgpu_crtc->base there as crtc is available in the function. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display

[PATCH 10/10] drm/radeon: use crtc directly in drm_crtc_vblank_put()

2016-06-07 Thread Gustavo Padovan
From: Gustavo Padovan We don't need to use &radeon_crtc->base there as crtc is available in the function. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/radeon/radeon_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/dr

HDLCD crashes with 6d910bfa809e

2016-06-07 Thread Robin Murphy
Hi Liviu, On 07/06/16 14:35, liviu.dudau at arm.com wrote: > On Tue, Jun 07, 2016 at 01:06:00PM +0100, Robin Murphy wrote: >> Having just inadvertently merged -next into my working branch, I find >> dev6d910bfa809e ("drm/hlcd: Use lockless gem BO free callback") adversely >> affecting my board's a

HDLCD crashes with 6d910bfa809e

2016-06-07 Thread liviu.du...@arm.com
On Tue, Jun 07, 2016 at 03:11:14PM +0100, Robin Murphy wrote: > Hi Liviu, > > On 07/06/16 14:35, liviu.dudau at arm.com wrote: > >On Tue, Jun 07, 2016 at 01:06:00PM +0100, Robin Murphy wrote: > >>Having just inadvertently merged -next into my working branch, I find > >>dev6d910bfa809e ("drm/hlcd:

HDLCD crashes with 6d910bfa809e

2016-06-07 Thread liviu.du...@arm.com
On Tue, Jun 07, 2016 at 03:14:04PM +0100, liviu.dudau at arm.com wrote: > On Tue, Jun 07, 2016 at 03:11:14PM +0100, Robin Murphy wrote: > > Hi Liviu, > > > > On 07/06/16 14:35, liviu.dudau at arm.com wrote: > > >On Tue, Jun 07, 2016 at 01:06:00PM +0100, Robin Murphy wrote: > > >>Having just inadve

[PATCH 1/2] drm/amdgpu: add return value for pci config reset

2016-06-07 Thread Alex Deucher
From: Chunming Zhou So we know whether or not the reset succeeded. Signed-off-by: Chunming Zhou Reviewed-by: Christian König Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/cik.c | 14 ++ drivers/gpu/drm/amd/amdgpu/vi.c | 12 +++- 2

[PATCH 2/2] drm/amdgpu: enable BUS master after pci reset

2016-06-07 Thread Alex Deucher
From: Chunming Zhou Re-enable bus mastering after GPU reset. We disable it at the top of these functions, so balance them by re-enabling it. Signed-off-by: Chunming Zhou eviewed-by: Christian König Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/cik.c |

  1   2   >