RFC: group maintainership for misc drm trees

2016-02-16 Thread Daniel Vetter
On Tue, Feb 16, 2016 at 11:44:52AM +1000, Dave Airlie wrote: > On 15 February 2016 at 20:06, Daniel Vetter wrote: > > Hi all, > > > > I've already chatted with some of you in private, here's the entire idea > > with a > > bit more thought. My motiviation for group maintainership of drm-misc was

[PATCH 00/29] Enabling new DAL display driver for amdgpu on Carrizo and Tonga

2016-02-16 Thread Harry Wentland
Hi Daniel, we've considered making cursor a plane but haven't done so (yet) because cursor is sort of a unique concept in our HW and doesn't map well to planes. Will take the time to look at the other mappings a bit more closely. Cheers, Harry On 2016-02-14 09:01 AM, Daniel Vetter wrote: > top

[PATCH 00/29] Enabling new DAL display driver for amdgpu on Carrizo and Tonga

2016-02-16 Thread Harry Wentland
Hi Jerome, some of the kernel API is abstracted to allow testing of this driver in user space for pre- and post-silicon validation. An alternative that we've considered is implementing the kernel functions in user space. That's definitely an option. We're definitely open to push things into dr

[PATCH 00/29] Enabling new DAL display driver for amdgpu on Carrizo and Tonga

2016-02-16 Thread Harry Wentland
Hi Rob, thanks for the heads-up for this. We're definitely interested in contributing to proposed new frameworks. I'm not sure we want to tightly couple userspace with hardware, though. Your proposal seems to assume that user mode is responsible for knowing how many planes any given configurat

[PATCH 08/29] drm/amd/dal: I2C Aux Manager

2016-02-16 Thread Harry Wentland
Hi Rob, that's a good point. We'll see if we can use DRM and existing amdgpu code for i2c/aux and rip this one out. Cheers, Harry On 2016-02-11 03:19 PM, Rob Clark wrote: > On Thu, Feb 11, 2016 at 12:19 PM, Harry Wentland > wrote: >> Implements low-level communication layer over I2C and Aux l

userptr support in drm drivers

2016-02-16 Thread Daniel Vetter
On Tue, Feb 16, 2016 at 09:33:51PM +0100, Christian König wrote: > At least for Radeon and Amdgpu the current situation is actually what we > want. > > >However I still find it confusing > >that full userptr support is under #if defined(CONFIG_MMU_NOTIFIER), > >and not under #if defined(CONFIG_RA

userptr support in drm drivers

2016-02-16 Thread Christian König
At least for Radeon and Amdgpu the current situation is actually what we want. > However I still find it confusing > that full userptr support is under #if defined(CONFIG_MMU_NOTIFIER), > and not under #if defined(CONFIG_RADEON_USERPTR), resp. #if > defined(CONFIG_AMDGPU_USERPTR). It means that f

userptr support in drm drivers

2016-02-16 Thread Jean Delvare
Hi all, While checking the openSUSE kernel configuration, I noticed a couple oddities regarding userptr support in the i915, radeon and amdgpu drm drivers. I'll like to discuss the current situation and come up with an agreement on how this could be cleaned up. Firstly, i915. This driver has user

[Bug 60879] [radeonsi] X11 can't start with acceleration enabled

2016-02-16 Thread bugzilla-dae...@freedesktop.org
x module- I'll gladly try that. If not, I will try to format the system and do vanilla tests as soon as possible. -- 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/20160216/fc8e1dec/attachment.html>

[PATCH 01/16] drm: fixes crct set_mode when crtc mode_fixup is null.

2016-02-16 Thread Daniel Vetter
On Tue, Feb 16, 2016 at 08:37:29PM +0300, Sergei Shtylyov wrote: > Hello. > > On 02/16/2016 05:10 PM, Carlos Palminha wrote: > > >This patch set nukes all the dummy crtc mode_fixup implementations. > >(made on top of Daniel topic/drm-misc branch) > > > >Signed-off-by: Carlos Palminha > >--- > >

[PATCH 01/16] drm: fixes crct set_mode when crtc mode_fixup is null.

2016-02-16 Thread Sergei Shtylyov
Hello. On 02/16/2016 05:10 PM, Carlos Palminha wrote: > This patch set nukes all the dummy crtc mode_fixup implementations. > (made on top of Daniel topic/drm-misc branch) > > Signed-off-by: Carlos Palminha > --- > drivers/gpu/drm/drm_crtc_helper.c | 9 ++--- > 1 file changed, 6 insertion

[Mesa-dev] [PATCH] [v2] intel: Add missing SKL device IDs

2016-02-16 Thread Ben Widawsky
On Tue, Feb 16, 2016 at 03:42:45PM -0800, Ben Widawsky wrote: > A new list yielded new devices that apparently have shipped, or will ship. > > v2: I can't read. 0x192d is GT3 > > Signed-off-by: Ben Widawsky > --- > intel/intel_chipset.h | 11 --- > 1 file changed, 8 insertions(+), 3 del

[Bug 60879] [radeonsi] X11 can't start with acceleration enabled

2016-02-16 Thread bugzilla-dae...@freedesktop.org
edesktop.org/archives/dri-devel/attachments/20160216/1f30e017/attachment.html>

[Bug 94179] Marching cubes geometry shader locks GPU

2016-02-16 Thread bugzilla-dae...@freedesktop.org
xt part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160216/ccd648fe/attachment.html>

[Bug 60879] [radeonsi] X11 can't start with acceleration enabled

2016-02-16 Thread bugzilla-dae...@freedesktop.org
part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160216/c13d3d63/attachment.html>

[PATCH 11/16] drm/atmel-hldcd: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Boris Brezillon
On Tue, 16 Feb 2016 14:19:06 + Carlos Palminha wrote: > This patch set nukes all the dummy crtc mode_fixup implementations. > (made on top of Daniel topic/drm-misc branch) There's 2 typos in the subject line (s/hldcd/hlcdc/ and s/removed/remove/), and you're removing an empty line after atme

[REGRESSION] i915: No HDMI output with 4.4

2016-02-16 Thread Oleksandr Natalenko
Here is full dmesg with verbose patch on 4.4.1 and dual-link DVI-HDMI cable: [1] Dual-link works OK: === лют 16 17:46:38 pfactum.lanet kernel: port C live status ## ## ##

[Bug 94008] Grow Home colors are wrong with HD6950

2016-02-16 Thread bugzilla-dae...@freedesktop.org
HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160216/798fa63d/attachment.html>

[PATCH v2 26/26] drm/amdgpu: Use dal driver for Carrizo, Tonga, and Fiji

2016-02-16 Thread Harry Wentland
Start to use dal by default on Carrizo, Tonga, and Fiji ASICs. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/Kconfig | 3 + drivers/gpu/drm/amd/amdgpu/Makefile| 17 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 10 +- drivers/gpu/dr

[PATCH v2 25/26] drm/amd/dal: Adding amdgpu_dm for dal

2016-02-16 Thread Harry Wentland
Implements DRM's atomic KMS interfaces using DC. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/amdgpu_dm/Makefile | 17 + drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.c | 1468 +++ drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.h |

[PATCH v2 24/26] drm/amd/dal: Add display core

2016-02-16 Thread Harry Wentland
Adds a logical representation of our hardware. Provides ability to - dc_validate_resources - validate a display configuration - dc_commit_targets - commit a display configuration - dc_commit_surfaces_to_target - update surfaces - dc_link_detect - detect displays at link - dc_resume - resume display

[PATCH v2 23/26] drm/amd/dal: Add empty encoder programming for virtual HW

2016-02-16 Thread Harry Wentland
Adds empty encoder HW programming functions to support enablement of virtual pipes (i.e. pipes without actual display output). Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/virtual/Makefile| 9 ++ .../drm/amd/dal/dc/virtual/virtual_link_encoder

[PATCH v2 22/26] drm/amd/dal: Add Tonga/Fiji HW sequencer and resource

2016-02-16 Thread Harry Wentland
Enables HW programming on Tonga and Fiji (DCE 10) ASICs. This mostly re-uses DCE 11 programming code with minor exceptions and using DCE 10 register offsets. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/dce100/Makefile | 23 + .../drm/amd/dal/

[PATCH v2 21/26] drm/amd/dal: Add Carrizo HW sequencer and resource

2016-02-16 Thread Harry Wentland
Adds dce110_resource and dce110_hw_sequencer files. dce110_resource manages creation of HW resources, along with correct ASIC register offset for each block. dce110_hw_sequencers is responsible for programming HW sequences, such as enable_stream, program_scaler, power_down_encoders, etc. Signed-

[PATCH v2 20/26] drm/amd/dal: Add transform & scaler HW programming

2016-02-16 Thread Harry Wentland
Adds scaler, viewport, gamut remap, and pixel depth programming. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../gpu/drm/amd/dal/dc/dce110/dce110_transform.c | 91 +++ .../gpu/drm/amd/dal/dc/dce110/dce110_transform.h | 87 +++ .../amd/dal/dc/dce110/dce110_transform_bit_dep

[PATCH v2 19/26] drm/amd/dal: Add output pixel processing HW programming

2016-02-16 Thread Harry Wentland
Adds programming for color space conversion (CSC), regamma, and formatter. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/dce110/dce110_opp.c | 272 +++ drivers/gpu/drm/amd/dal/dc/dce110/dce110_opp.h | 143 ++ drivers/gpu/drm/amd/dal/dc/dce110/d

[PATCH v2 18/26] drm/amd/dal: Add input pixel processing HW programming

2016-02-16 Thread Harry Wentland
Adds programming of cursor and input gamma. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/dce110/dce110_ipp.c | 65 ++ drivers/gpu/drm/amd/dal/dc/dce110/dce110_ipp.h | 100 +++ .../gpu/drm/amd/dal/dc/dce110/dce110_ipp_cursor.c | 256 ++ ...

[PATCH v2 17/26] drm/amd/dal: Add framebuffer compression HW programming

2016-02-16 Thread Harry Wentland
Adds framebuffer compression programming. Currently unused. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../gpu/drm/amd/dal/dc/dce110/dce110_compressor.c | 886 + .../gpu/drm/amd/dal/dc/dce110/dce110_compressor.h | 84 ++ 2 files changed, 970 insertions(+)

[PATCH v2 16/26] drm/amd/dal: Add surface HW programming

2016-02-16 Thread Harry Wentland
Adds watermark, DMIF, and surface programming. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../gpu/drm/amd/dal/dc/dce110/dce110_mem_input.c | 965 + .../gpu/drm/amd/dal/dc/dce110/dce110_mem_input.h | 117 +++ 2 files changed, 1082 insertions(+) create mo

[PATCH v2 15/26] drm/amd/dal: Add timing generator HW programming

2016-02-16 Thread Harry Wentland
Adds ability to validate and program timings, enable, disable, and blank CRTCs, and get CRTC status information. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../amd/dal/dc/dce110/dce110_timing_generator.c| 1864 .../amd/dal/dc/dce110/dce110_timing_genera

[PATCH v2 14/26] drm/amd/dal: Add clock source HW programming

2016-02-16 Thread Harry Wentland
Adds pixel clock programming and functionality to power down clock sources. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../drm/amd/dal/dc/dce110/dce110_clock_source.c| 1162 .../drm/amd/dal/dc/dce110/dce110_clock_source.h| 64 ++ 2 files changed,

[PATCH v2 13/26] drm/amd/dal: Add encoder HW programming

2016-02-16 Thread Harry Wentland
Responsible for programming back-end of display path, such as DIG, UNIPHY, DP, DAC, and DVO. Supports: - DisplayPort (single stream) - HDMI - DVI - eDP Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../drm/amd/dal/dc/dce110/dce110_link_encoder.c| 1927 ...

[PATCH v2 12/26] drm/amd/dal: Bandwidth calculations

2016-02-16 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/calcs/Makefile | 10 + drivers/gpu/drm/amd/dal/dc/calcs/bandwidth_calcs.c | 3941 drivers/gpu/drm/amd/dal/dc/calcs/bw_fixed.c| 300 ++ drivers/gpu/drm/amd/dal/dc/calcs/

[PATCH v2 11/26] drm/amd/dal: Audio

2016-02-16 Thread Harry Wentland
Responsible for programming the audio encoder in the display path. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/audio/Makefile | 22 + drivers/gpu/drm/amd/dal/dc/audio/audio.h | 195 ++ drivers/gpu/drm/amd/dal/dc/audio/audio_base.c

[PATCH v2 10/26] drm/amd/dal: GPU

2016-02-16 Thread Harry Wentland
Encapsulates programming for HW blocks which are shared between display paths, such as clock sources. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/gpu/Makefile| 22 + .../gpu/drm/amd/dal/dc/gpu/dc_clock_generator.c| 92 ++ .../gpu/drm/

[PATCH v2 09/26] drm/amd/dal: IRQ Service

2016-02-16 Thread Harry Wentland
Interface to set and ack DCE interrupts. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/irq/Makefile| 21 ++ .../drm/amd/dal/dc/irq/dce110/irq_service_dce110.c | 389 + .../drm/amd/dal/dc/irq/dce110/irq_service_dce110.h |

[PATCH v2 08/26] drm/amd/dal: I2C Aux Manager

2016-02-16 Thread Harry Wentland
Implements low-level communication layer over I2C and Aux lines using GPIO handles. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/i2caux/Makefile | 33 + drivers/gpu/drm/amd/dal/dc/i2caux/aux_engine.c | 567 drivers/gpu/drm/amd/

[PATCH v2 07/26] drm/amd/dal: BIOS Parser

2016-02-16 Thread Harry Wentland
Wrapper to access Video BIOS command and data tables Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/bios/Makefile | 26 + drivers/gpu/drm/amd/dal/dc/bios/bios_parser.c | 5029 drivers/gpu/drm/amd/dal/dc/bios/bios_pars

[PATCH v2 06/26] drm/amd/dal: Adapter Service

2016-02-16 Thread Harry Wentland
Provides information about ASIC features and capabilities. Also provides access to ASIC resources such as VBIOS, GPIO and I2cAux Manager Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/adapter/Makefile| 24 + .../gpu/drm/amd/dal/dc/adapter/adapte

[PATCH v2 05/26] drm/amd/dal: GPIO (General Purpose IO)

2016-02-16 Thread Harry Wentland
Manages all DCE GPIO pins. The pins are represented as generic IO handles as well as handles dedicated for certain functions, such as DDC, HPD, and DVO. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/gpio/Makefile | 32 + .../gpu/drm/amd/dal/dc

[PATCH v2 04/26] drm/amd/dal: Asic Capabilities

2016-02-16 Thread Harry Wentland
Add a generic way to manage display HW capabilities for different ASICs and implement it for Carrizo. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- .../gpu/drm/amd/dal/dc/asic_capability/Makefile| 35 .../amd/dal/dc/asic_capability/asic_capability.c | 190 +

[PATCH v2 03/26] drm/amd/dal: Fixed point arithmetic

2016-02-16 Thread Harry Wentland
Arithmetic operations on real numbers represented as fixed-point numbers. Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/basics/Makefile | 2 +- drivers/gpu/drm/amd/dal/dc/basics/fixpt31_32.c | 692 + drivers/gpu/drm/amd/dal/

[PATCH v2 02/26] drm/amd/dal: Add DAL Basic Types and Logger

2016-02-16 Thread Harry Wentland
Laying the groundwork for the AMD DAL display driver. This patch includes the basic services and defines basic types required by the display driver, such as: - ASIC register access - VBIOS access - Vector and flat_set data structures - Display signal types - ASIC versions and IDs - HW IDs - Logging

[PATCH v2 01/26] drm/amd/dal: Add dal headers

2016-02-16 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dal_services.h | 266 ++ drivers/gpu/drm/amd/dal/dal_services_types.h | 62 ++ drivers/gpu/drm/amd/dal/dc/dc.h| 462 ++ drivers/gpu/drm/amd/dal/dc/dc_bios_types.

[PATCH v2 00/26] Enabling new DAL display driver for amdgpu on Carrizo and Tonga

2016-02-16 Thread Harry Wentland
v2 Update: This is just a squash of the three small fixes into the main patches to make for an easier read. No other changes yet. This set of patches enables the new DAL display driver for amdgpu on Carrizo Tonga, and Fiji ASICs. This driver will allow us going forward to bring display features o

[PATCH v5 10/12] drm/i915: Defer probe if gmux is present but its driver isn't

2016-02-16 Thread Daniel Vetter
On Tue, Feb 16, 2016 at 04:58:20PM +0100, Lukas Wunner wrote: > Hi, > > On Sun, Feb 14, 2016 at 01:46:28PM +0100, Daniel Vetter wrote: > > On Sun, Feb 14, 2016 at 1:10 PM, Lukas Wunner wrote: > > > /** > > > + * vga_switcheroo_client_probe_defer() - whether to defer probing a > > > given GPU >

[PATCH v5 10/12] drm/i915: Defer probe if gmux is present but its driver isn't

2016-02-16 Thread Lukas Wunner
Hi, On Sun, Feb 14, 2016 at 01:46:28PM +0100, Daniel Vetter wrote: > On Sun, Feb 14, 2016 at 1:10 PM, Lukas Wunner wrote: > > /** > > + * vga_switcheroo_client_probe_defer() - whether to defer probing a given > > GPU > > + * @pdev: pci device of GPU > > + * > > + * Determine whether any prerequ

[PATCH v3 2/2] drm: remove drm_device_is_unplugged and related code

2016-02-16 Thread Haixia Shi
return ((dev->driver->driver_features & feature) ? 1 : 0); > } > > -static inline void drm_device_set_unplugged(struct drm_device *dev) > -{ > - smp_wmb(); > - atomic_set(&dev->unplugged, 1); > -} > - > -static inline int drm_device_is_unplugged(struct drm_device *dev) > -{ > - int ret = atomic_read(&dev->unplugged); > - smp_rmb(); > - return ret; > -} > - > static inline bool drm_is_render_client(const struct drm_file *file_priv) > { > return file_priv->minor->type == DRM_MINOR_RENDER; > -- > 2.7.0.rc3.207.g0ac5344 > > -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160216/acbf60d8/attachment-0001.html>

[PATCH v2 21/21] drm/tilcdc: Initialize crtc->port

2016-02-16 Thread Jyri Sarha
Initialize port device node pointer in the tilcdc crtc. Fixes "Falling back to first CRTC" warning from tda998x driver. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/driv

[PATCH v2 20/21] drm/tilcdc: Disable sync lost interrupt if it fires on every frame

2016-02-16 Thread Jyri Sarha
Disable the sync lost interrupt if it fires on every frame for 50 consecutive frames in a row. This is relatively sure sign of the sync lost interrupt being stuck and firing on every frame even if the display otherwise appears to work OK. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilc

[PATCH v2 19/21] drm/tilcdc: Add prints on sync lost and FIFO underrun interrupts

2016-02-16 Thread Jyri Sarha
Add ratelimited prints on sync lost and FIFO underrun interrupts. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 8 drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c

[PATCH v2 18/21] drm/tilcdc: Remove the duplicate LCDC_INT_ENABLE_SET_REG in registers[]

2016-02-16 Thread Jyri Sarha
Removes the duplicate LCDC_INT_ENABLE_SET_REG-entry in registers array. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 3b36747

[PATCH v2 17/21] drm/tilcdc: Fix interrupt enable/disable code for version 2 tilcdc

2016-02-16 Thread Jyri Sarha
Fix interrupt enable/disable code for version 2 tilcdc. In version 2 tilcdc there is a separate register for disabling interrupts. Writing 0 to enable registers bits does not have any effect. The interrupt clear register works the same way, writing 1 to specific bit disables the interrupt and writi

[PATCH v2 16/21] drm/tilcdc: Do not update the next frame buffer close to vertical blank

2016-02-16 Thread Jyri Sarha
From: Tomi Valkeinen Do not update the next frame buffer close to vertical blank. This is to avoid situation when the frame changes between writing of LCDC_DMA_FB_BASE_ADDR_0_REG and LCDC_DMA_FB_CEILING_ADDR_0_REG. Signed-off-by: Tomi Valkeinen [Added description to the patch] Signed-off-by: Jy

[PATCH v2 15/21] drm/tilcdc: Get rid of complex ping-pong mechanism

2016-02-16 Thread Jyri Sarha
From: Tomi Valkeinen Get rid of complex ping-pong mechanism and replace it with simpler single buffer flipping code. The LCDC HW appears to be designed mainly static framebuffers in mind. There are two modes of operation, either static single buffer, or ping pong double buffering with two static

[PATCH v2 14/21] drm/tilcdc: cleanup irq handling

2016-02-16 Thread Jyri Sarha
From: Tomi Valkeinen Cleanup irq handling. Clear the irq status unconditionally and restructure the status bit conditions. Signed-off-by: Tomi Valkeinen [Added description to the patch] Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 9 + 1 file changed, 5 inserti

[PATCH v2 13/21] drm/tilcdc: remove broken error handling

2016-02-16 Thread Jyri Sarha
From: Tomi Valkeinen Remove broken error handling. The condition for handling the LCDC_SYNC_LOST and LCDC_FIFO_UNDERFLOW could never be satisfied as the LCDC_SYNC_LOST interrupt is not enabled. Also the requirement to have both LCDC_SYNC_LOST and LCDC_FIFO_UNDERFLOW fired at once before handling

[PATCH v2 12/21] drm/tilcdc: split reset to a separate function

2016-02-16 Thread Jyri Sarha
From: Tomi Valkeinen Split reset to a separate function and use usleep_range(250, 1000) instead of msleep(1) to to keep the reset bit on long enough. Signed-off-by: Tomi Valkeinen [Added description to the patch, changed mdelay(500) to usleep_range(250, 1000)] Signed-off-by: Jyri Sarha --- dr

[PATCH v2 11/21] drm/tilcdc: disable crtc on unload

2016-02-16 Thread Jyri Sarha
From: Tomi Valkeinen Disable crtc on unload. Call tilcdc_crtc_dpms() with DRM_MODE_DPMS_OFF in the beginning of unload function. Signed-off-by: Tomi Valkeinen [Added description to the patch] Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 ++ 1 file changed, 2 insertion

[PATCH v2 10/21] drm/tilcdc: cleanup runtime PM handling

2016-02-16 Thread Jyri Sarha
From: Tomi Valkeinen Cleanup runtime PM handling. Before the patch the usage of pm_runtime calls was inconsistent and hard to follow. After the update the pm_runtime calls are removed from set_scanout() and called around major operations that access the HW. After the patch the DPMS code does not

[PATCH v2 09/21] drm/tilcdc: Allocate register storage based on the actual number registers

2016-02-16 Thread Jyri Sarha
Allocate suspend/resume register storage based on the actual number registers the driver is aware of. The static allocation for register storage had falen behind badly. Reported-by: Michael Bode Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 21 - driver

[PATCH v2 08/21] drm/tilcdc: fix build error when !CONFIG_CPU_FREQ

2016-02-16 Thread Jyri Sarha
From: Grygorii Strashko Fix build error when !CONFIG_CPU_FREQ drivers/gpu/drm/tilcdc/tilcdc_drv.c: In function 'tilcdc_load': drivers/gpu/drm/tilcdc/tilcdc_drv.c:327:1: error: label 'fail_put_clk' defined but not used [-Werror=unused-label] fail_put_clk: ^ Signed-off-by: Grygorii Strashko Si

[PATCH v2 07/21] drm/tilcdc: Implement dma-buf support for tilcdc

2016-02-16 Thread Jyri Sarha
There is nothing special about tilcdc HW when the video memory is concerned. Just using the standard drm helpers for implementation is enough. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v2 06/21] drm/tilcdc: disable the lcd controller/dma engine when suspend invoked

2016-02-16 Thread Jyri Sarha
From: Darren Etheridge The LCD controller must be deactivated and all DMA transactions stopped when the suspend power state is entered otherwise the PRCM causes the L3 bus to get stuck in transition state. This commit forces the lcdc to be shut down and waits for all pending DMA transactions to

[PATCH v2 05/21] drm/tilcdc: make frame_done interrupt active at all times

2016-02-16 Thread Jyri Sarha
From: Darren Etheridge The frame_done interrupt was only being enabled when the vsync interrupts were being enabled by DRM. However the frame_done is used to determine if the LCD controller has successfully completed the raster_enable, raster_disable commands and the vsync interrupts are not alw

[PATCH v2 04/21] drm/tilcdc: fix kernel panic on suspend when no hdmi monitor connected

2016-02-16 Thread Jyri Sarha
From: Darren Etheridge On BeagleBone Black if no HDMI monitor is connected and suspend is requested a kernel panic will result: root at am335x-evm:~# echo mem > /sys/power/state [ 65.548710] PM: Syncing filesystems ... done. [ 65.631311] Freezing user space processes ... (elapsed 0.006 seconds)

[PATCH v2 03/21] drm/tilcdc: adopt pinctrl support

2016-02-16 Thread Jyri Sarha
From: Dave Gerlach Update tilcdc driver to set the state of the pins to: - "default on resume - "sleep" on suspend By optionally putting the pins into sleep state in the suspend callback we can accomplish two things. - minimize current leakage from pins and thus save power, - prevent the IP from

[PATCH v2 02/21] drm/tilcdc: verify fb pitch

2016-02-16 Thread Jyri Sarha
From: Tomi Valkeinen LCDC hardware does not support fb pitch that is different (i.e. larger) than the screen size. The driver currently does no checks for this, and the results of too big pitch are are flickering and lower fps. This issue easily happens when using libdrm's modetest tool with non

[PATCH v2 01/21] drm/tilcdc: rewrite pixel clock calculation

2016-02-16 Thread Jyri Sarha
From: Darren Etheridge Updating the tilcdc DRM driver code to calculate the LCD controller pixel clock more accurately. Based on a suggested implementation by Tomi Valkeinen. The current code does not work correctly and produces wrong results with many requested clock rates. It also oddly uses t

[PATCH v2 00/21] drm/ticdc: Accumulated fixes over the past couple of years

2016-02-16 Thread Jyri Sarha
Changes since the first version of the series: - Dropped: "drm/tilcdc: disable console switching during pm operations" - Changed: "drm/tilcdc: Allocate register storage based on the actual number.." - Reversed kcalloc() nmemb and size parameters to correct order - Addeed: "drm/tilcdc: Initialize

[PATCH] [v2] intel: Add missing SKL device IDs

2016-02-16 Thread Ben Widawsky
A new list yielded new devices that apparently have shipped, or will ship. v2: I can't read. 0x192d is GT3 Signed-off-by: Ben Widawsky --- intel/intel_chipset.h | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/intel/intel_chipset.h b/intel/intel_chipset.h index 35

[Bug 94043] Distorted graphics when running Battle.net app under Wine with Radeon driver

2016-02-16 Thread bugzilla-dae...@freedesktop.org
was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160216/99f10234/attachment.html>

[PATCH v2 00/17] drm encoders cleanup: nuke optional dummy encoder mode_fixup function.

2016-02-16 Thread Daniel Vetter
On Mon, Feb 15, 2016 at 12:57:04PM +, Carlos Palminha wrote: > mode_fixup function for encoder drivers became optional with patch > http://patchwork.freedesktop.org/patch/msgid/1455106522-32307-1-git-send-email-palminha > at synopsys.com > > This patch set nukes all the dummy mode_fixup imple

[PATCH 01/16] drm: fixes crct set_mode when crtc mode_fixup is null.

2016-02-16 Thread Daniel Vetter
On Tue, Feb 16, 2016 at 02:10:03PM +, Carlos Palminha wrote: > This patch set nukes all the dummy crtc mode_fixup implementations. > (made on top of Daniel topic/drm-misc branch) > > Signed-off-by: Carlos Palminha Applied this one to drm-misc. I'll let the others hang out there for a bit mor

[PATCH v8 0/2] Add Rockchip Inno-HDMI driver

2016-02-16 Thread Heiko Stuebner
Hi Mark, Am Dienstag, 16. Februar 2016, 08:44:41 schrieb Mark yao: > Ping, it seems inno hdmi driver is ready, So I'd like to merge it into > drm/rockchip if there is no doubt these days. I think you can just go ahead with picking them up, I think they have ripened enough :-) Heiko

[PATCH v2 03/17] drm/exynos: removed optional dummy encoder mode_fixup function.

2016-02-16 Thread Daniel Vetter
On Mon, Feb 15, 2016 at 02:49:09PM +0100, Patrik Jakobsson wrote: > Hi Carlos > > Any particular reason why this patch isn't squashed with patch 8/17? I've squashed them while applying. -Daniel > > Thanks > Patrik > > > On Mon, Feb 15, 2016 at 1:58 PM, Carlos Palminha > wrote: > > mode_fixup

[PATCH 01/16] drm: fixes crct set_mode when crtc mode_fixup is null.

2016-02-16 Thread Carlos Palminha
Thanks! On 16-02-2016 14:37, Daniel Vetter wrote: > On Tue, Feb 16, 2016 at 02:10:03PM +, Carlos Palminha wrote: >> This patch set nukes all the dummy crtc mode_fixup implementations. >> (made on top of Daniel topic/drm-misc branch) >> >> Signed-off-by: Carlos Palminha > > Applied this one t

[PATCH v2] qxl: use kmalloc_array to alloc reloc_info in qxl_process_single_command

2016-02-16 Thread Daniel Vetter
On Tue, Feb 16, 2016 at 02:25:00PM +0100, Gerd Hoffmann wrote: > This avoids integer overflows on 32bit machines when calculating > reloc_info size, as reported by Alan Cox. > > Cc: stable at vger.kernel.org > Cc: gnomes at lxorguk.ukuu.org.uk > Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel V

[PATCH] intel: Add missing SKL device IDs

2016-02-16 Thread Ben Widawsky
A new list yielded new devices that apparently have shipped, or will ship. Signed-off-by: Ben Widawsky --- intel/intel_chipset.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/intel/intel_chipset.h b/intel/intel_chipset.h index 35148e5..392f7ba 100644 --- a/intel/int

[REGRESSION] i915: No HDMI output with 4.4

2016-02-16 Thread Oleksandr Natalenko
16.02.2016 14:54, Daniel Vetter wrote: >> Computer DVI ——— DVI-D (Single Link)/HDMI cable ——— HDMI LG >> 23MP65HQ-P >> === >> not working > > I presume the above LG screen is what you've called previously "old > monitor"? Correct. >> Computer DVI ——— DVI-D (Dual Link)/HDMI ca

[Bug 112491] Radeon: HD 7400G / A4-4355M System overheats with 3D graphics active.

2016-02-16 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=112491 --- Comment #6 from Dionisus Torimens --- Actually, I forgot to mention I used to have problems without active 3D use as well, but I'm now switching the DPM profile to battery during boot. And that solved that part mostly. Also, high CPU use by i

[PATCH v2] qxl: use kmalloc_array to alloc reloc_info in qxl_process_single_command

2016-02-16 Thread Gerd Hoffmann
This avoids integer overflows on 32bit machines when calculating reloc_info size, as reported by Alan Cox. Cc: stable at vger.kernel.org Cc: gnomes at lxorguk.ukuu.org.uk Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) dif

[PATCH 16/16] drm/ast: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/ast/ast_mode.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_

[PATCH 15/16] drm/bochs: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/bochs/bochs_kms.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/b

[PATCH 14/16] drm/fsl-dcu: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c b

[PATCH 13/16] drm/virtio: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/virtio/virtgpu_display.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/dri

[PATCH 12/16] drm/nouveau/dispnv04: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv04/crtc.c b/drive

[PATCH 11/16] drm/atmel-hldcd: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_

[PATCH 10/16] drm/sti: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/sti/sti_crtc.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti

[PATCH 09/16] drm/shmobile: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/shmobile/shmob_drm_crtc.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c b/d

[PATCH 08/16] drm/msm/mdp: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c | 8 drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 8 2 files changed, 16 deletions(-) dif

[PATCH 07/16] drm/omapdrm: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/omapdrm/omap_crtc.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c b/drivers/gpu/d

[PATCH 06/16] drm/rcar-du: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/driver

[PATCH 05/16] drm/gma: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/gma500/cdv_intel_display.c | 13 ++--- drivers/gpu/drm/gma500/gma_display.c | 7 --- drivers/gpu/drm/gma500/

[PATCH 04/16] drm/udl: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/udl/udl_modeset.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/

[PATCH 03/16] drm/mgag200: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/mgag200/mgag200_mode.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/

[PATCH 02/16] drm/cirrus: removed optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/cirrus/cirrus_mode.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/cirrus/cirrus_mode.c b/driv

[PATCH 01/16] drm: fixes crct set_mode when crtc mode_fixup is null.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha --- drivers/gpu/drm/drm_crtc_helper.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc_helper.c b

[PATCH 00/16] drm crtc cleanup: nuke optional dummy crtc mode_fixup function.

2016-02-16 Thread Carlos Palminha
This patch set nukes all the dummy crtc mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Carlos Palminha (16): drm: fixes crct set_mode when crtc mode_fixup is null. drm/cirrus: removed optional dummy crtc mode_fixup function. drm/mgag200: removed optional dummy crtc

[REGRESSION] i915: No HDMI output with 4.4

2016-02-16 Thread Daniel Vetter
On Tue, Feb 16, 2016 at 12:58:56PM +0200, Oleksandr Natalenko wrote: > Ville, Daniel, > > I've just got another monitor and another DVI-HDMI cable, and here what I've > got. > > ===Single Link DVI-D cable with 3 different monitors=== > > Computer DVI ——— DVI-D (Single Link)/HDMI cable —â

  1   2   >