Re: [PATCH 02/19] drm: Add acquire ctx parameter to ->update_plane

2017-03-24 Thread Daniel Vetter
On Wed, Mar 22, 2017 at 11:03:41PM +, Russell King - ARM Linux wrote: > On Wed, Mar 22, 2017 at 10:50:41PM +0100, Daniel Vetter wrote: > > diff --git a/drivers/gpu/drm/armada/armada_overlay.c > > b/drivers/gpu/drm/armada/armada_overlay.c > > index 34cb73d0db77..b54fd8cbd3a6 100644 > > --- a/dr

Re: [PATCH] drm: omapdrm: Fix oops on rmmod

2017-03-24 Thread Tomi Valkeinen
On 23/03/17 19:04, Tony Lindgren wrote: > Looks like in Linux next we can now get an oops when unloading omapdrm: > > Unable to handle kernel NULL pointer dereference at virtual address > > ... > LR is at omap_drm_irq_uninstall+0xb0/0xe0 [omapdrm] > ... > [] (omap_drm_irq_uninstall [omapd

Re: [PATCH 2/2] drm/pl111: Initial drm/kms driver for pl111

2017-03-24 Thread Linus Walleij
On Fri, Mar 24, 2017 at 12:31 AM, Russell King - ARM Linux wrote: > On Thu, Mar 23, 2017 at 10:54:53PM +0100, Linus Walleij wrote: >> Hm, I certainly want it... but it would be unreasonable of me to expect >> Eric to cold-code a big upfront design for systems he can't even test >> this on. >> >> W

Re: [PATCH] drm/debugfs: Add kerneldoc

2017-03-24 Thread Daniel Vetter
On Wed, Mar 22, 2017 at 09:54:01PM +0100, Daniel Vetter wrote: > I've decided to not document drm_debugfs_remove_files, it's on the way > out. > > The biggest part is a huge todo.rst entry with what all should be > improved. > > v2: Nits from Gabriel. > > Cc: Gabriel Krisman Bertazi > Reviewed-

Re: [PATCH] Revert "drm/radeon: Try evicting from CPU accessible to inaccessible VRAM first"

2017-03-24 Thread Michel Dänzer
On 23/03/17 06:26 PM, Julien Isorce wrote: > Hi Michel, > > When it happens, the main thread of our gl based app is stuck on a > ioctl(RADEON_CS). I set RADEON_THREAD=false to ease the debugging but > same thing happens if true. Other threads are only si_shader:0,1,2,3 and > are doing nothing, jus

[PATCHv2 06/31] drm/omap: Init fbdev emulation only when we have displays

2017-03-24 Thread Tomi Valkeinen
From: Peter Ujfalusi Do not try to init the fbdev if either num_crtcs or num_connectors is 0. In this case we do not have display so the fbdev init would fail anyways. Signed-off-by: Peter Ujfalusi Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_fbdev.c | 3 +++ 1 file changed,

[PATCHv2 15/31] drm/omap: add dispc_ops

2017-03-24 Thread Tomi Valkeinen
We want to change the dispc API from plain functions to a struct with functions pointers, so that omapdrm can call either omapdss or omapdss6 depending on the platform. This patch adds 'struct dispc_ops' and adds functions to omapdss-base to set and get the ops. Signed-off-by: Tomi Valkeinen ---

[PATCHv2 11/31] drm/omap: output: use dev_err instead of DSSERR

2017-03-24 Thread Tomi Valkeinen
We don't have omapdss's custom error printing functions in the common omapdss-base module, to which we want to move output.c. This patch changes output.c to use dev_err instead of DSSERR so that it doesn't depend on DSSERR. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/output.c

[PATCHv2 02/31] drm/omap: refactor CRTC HW property setup

2017-03-24 Thread Tomi Valkeinen
The current driver doesn't expose any of the CRTC HW properties like background color or transparency key, and sets them at CRTC enable time. Refactor this into a separate function and call that function from omap_crtc_atomic_flush(). This is the behavior we want when the properties can be configu

[PATCHv2 16/31] drm/omap: fill dispc_ops

2017-03-24 Thread Tomi Valkeinen
This patch changes the current omapdss driver to fill a dispc_ops struct and set it to omapdss-base. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dispc.c | 40 + 1 file changed, 40 insertions(+) diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.

[PATCHv2 04/31] drm/omap: decrease min width & height

2017-03-24 Thread Tomi Valkeinen
mode_config's min_width and min_height are both set to 32, which is overly restrictive. The real limits depend on whether we're configuring a crtc or a plane, but a limit of 8x2 is safe for both cases. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_drv.c | 4 ++-- 1 file changed

[PATCHv2 14/31] drm/omap: move dispc related dss-feat funcs to dispc

2017-03-24 Thread Tomi Valkeinen
omapdrm still uses a few non-dispc functions: dss_feat_get_num_mgrs(), dss_feat_get_num_ovls() and dss_feat_get_supported_color_modes(). We want to provide omapdrm a single dispc_ops function pointer struct so that omapdrm will use either the current omapdss or the new omapdss6 driver depending on

[PATCHv2 07/31] drm/omap: Add support for render nodes

2017-03-24 Thread Tomi Valkeinen
From: Hemant Hariyani Add support for render nodes in omap driver and allow required ioctls to be accessible via render nodes. This enables unprivileged clients to allocate resources like GEM buffers for rendering their content into. Mode setting (KMS ioctls) is not allowed using render nodes. T

[PATCHv2 19/31] drm/omap: remove unused dispc_wb_enable & dispc_wb_is_enabled

2017-03-24 Thread Tomi Valkeinen
Remove two unused WB functions. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dispc.c | 10 -- drivers/gpu/drm/omapdrm/dss/dss.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c index 7104

[PATCHv2 00/31] drm/omap: miscallaneous improvements

2017-03-24 Thread Tomi Valkeinen
Hi, This is an update of the "drm/omap: miscallaneous improvements" series I sent last Nov. I have dropped some patches, and added one fix, but otherwise the contents are the same. The main changes in v2: - Interrupt based HPD removed, as there's a race issue which needs to be fixed - Added patc

[PATCHv2 03/31] drm/omap: remove divider constraint from hsdiv

2017-03-24 Thread Tomi Valkeinen
The driver only uses even dividers for hsdiv when pclk >= 100MHz, as odd dividers can create uneven duty cycle. However, while this holds true for some dividers like DISPC's LCK and PCK dividers, it is not actually true for hsdiv. hsdiv always produces even duty cycle, so the constraint can be rem

[PATCHv2 10/31] drm/omap: move dss_initialized to omapdss-base

2017-03-24 Thread Tomi Valkeinen
omapdss_is_initialized() is used to find out if omapdss has been probed successfully. This patch moves the related code to the common omapdss-base module, so that the same support will be there for both omapdss and omapdss6. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/base.c

[PATCHv2 01/31] drm/omap: work-around for errata i886

2017-03-24 Thread Tomi Valkeinen
DRA7 errata i886 (FPDLink PLL Unlocks With Certain SoC PLL M/N Values) says that FPDLink is sensitive to jitter on the vout clock, and that low PLL M and N values result in more jitter than high M and N values. This patch implements a workaround for the problem by changing the PLL setup to search

[PATCHv2 18/31] drm/omap: remove all EXPORT_SYMBOLs from dispc.c

2017-03-24 Thread Tomi Valkeinen
omapdrm now uses dispc_ops instead of direct function calls so we can remove all EXPORT_SYMBOLs from dispc. Most of the functions can also be made static, but a few are used outside dispc.c. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dispc.c | 84 +---

[PATCHv2 20/31] drm/omap: fix replication logic

2017-03-24 Thread Tomi Valkeinen
DSS uses "replication logic" to convert color components from smaller bit widths to bigger bit widths. Without replication logic, the color component would be shifted and the least significant bits would be left at 0, whereas with replication logic, the least significat bits will be filled with the

[PATCHv2 08/31] drm/omap: fix HDMI sync polarities

2017-03-24 Thread Tomi Valkeinen
While implementing writeback support, odd behavior of WBDELAYCOUNT was observed with the combination of WB capture and HDMI. The result of the debugging was that the HDMI sync polarities are not set correctly. The current code sets the sync polarities going from HDMI WP to DISPC according to the v

[PATCHv2 28/31] drm/omap: displays: panel-dpi: Support for handling backlight devices

2017-03-24 Thread Tomi Valkeinen
From: Peter Ujfalusi The associated backlight device can be configured via DT by providing the phandle to the device. If the backlight device is configured, the driver can manage the backligt along with the panel's power state, iow it can turn on the backlight when the panel is enabled and turn

[PATCHv2 13/31] drm/omap: move display, dss-of, output to omapdss-base

2017-03-24 Thread Tomi Valkeinen
This patch moves the common parts of omapdss to omapdss-base so that both the current omapdss driver and the new omapdss6 driver can use them. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/Makefile | 6 +++--- drivers/gpu/drm/omapdrm/dss/display.c | 2 -- drivers/gpu/drm/omapdrm

[PATCHv2 23/31] drm/omap: Use omapdss_stack_is_ready() to check that the display stack is up

2017-03-24 Thread Tomi Valkeinen
From: Peter Ujfalusi Instead of 'guessing' based on aliases of the status of the DSS drivers, use the new interface to check that all needed drivers are loaded. In this way we can be sure that all needed drivers are loaded so it is safe to continue the probing of omapdrm. This method will allow t

[PATCHv2 09/31] drm/omap: add omapdss-base.ko

2017-03-24 Thread Tomi Valkeinen
We are working towards enabling omapdss6, which will consists of a new dss, dispc and dpi drivers. omapdss6 will be a new module. The panel, encoder and omapdrm will need to use either the current omapdss driver or the new omapdss6 driver, depending on the platform. This will be implemented with a

[PATCHv2 25/31] drm/omap: display: Add displays in sorted order to the panel_list

2017-03-24 Thread Tomi Valkeinen
From: Peter Ujfalusi Keep the panel_list ordered according to aliases. The DRM connectors will be created following the panel_list. By keeping the list ordered the DRM connectors will be created in the same order regardless of the driver probe order. Signed-off-by: Peter Ujfalusi Signed-off-by:

[PATCHv2 30/31] drm/omap: fix display SYNC/DE flags

2017-03-24 Thread Tomi Valkeinen
At the moment VSYNC/HSYNC/DE high/low flags set by the panel/encoder drivers get lost when the videotimings are translated to DRM's videomode, as DRM's mode does not have corresponding flags. DRM has bus-flags for this purpose, and while it lacks a few flags at the moment, it should be used here.

[PATCHv2 05/31] drm/omap: improve DPI clock selection on DRA7xx

2017-03-24 Thread Tomi Valkeinen
The clock source selection for the LCD outputs is too hardcoded at the moment. For example, LCD3 is set to use PLL2_1, and PLL2 doesn't exist on DRA72x SoCs. There are quite many ways to configure the clocks, even using HDMI PLL for LCD outputs, but enabling full configuration of the clocks is rat

[PATCHv2 26/31] drm/omap: Create fbdev emulation only for the first DRM connector

2017-03-24 Thread Tomi Valkeinen
From: Peter Ujfalusi Add fbdev emulation only for the first DRM connector. When the fbdev emulation was created for all connectors with different resolution, the lower res display would only be able to show part of the framebuffer. By creating the fbdev emulation only for the first connector we c

[PATCHv2 24/31] drm/omap: fix plane update warning when crtc is disabled

2017-03-24 Thread Tomi Valkeinen
If omap_plane_atomic_update() is called when the crtc is disabled, and the timings are zero, we'll see the following warning: omapdss DISPC error: cannot calculate scaling settings: pclk is zero omapdrm omapdrm.0: Failed to setup plane vid2 It shouldn't cause any issues, as the crtc is disabled s

[PATCHv2 17/31] drm/omap: use dispc_ops

2017-03-24 Thread Tomi Valkeinen
Change omapdrm to get dispc_ops and use that to call the dispc functions instead or direct function calls. The change is very straightforward. The only problem was in omap_crtc_init() which calls pipe2vbl(crtc), and at that point of time the crtc->dev link, which is used to get the dispc_ops, has

[PATCHv2 29/31] drm/omap: dispc: improve debug print of display flags

2017-03-24 Thread Tomi Valkeinen
Instead of printing 0/1 for display flags like vsync high/low, use a tri-state print (-1/0/1) to indicate the "undefined" state. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dispc.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCHv2 31/31] drm/omap: fix crash on module unload

2017-03-24 Thread Tomi Valkeinen
When unloading omapdrm we get a NULL pointer deref in omap_drm_irq_uninstall(). This is caused by: 967dd48417874dd25491a4e933648f394a64f70f ("drm: remove drm_vblank_no_hw_counter assignment from driver code") As OMAP DSS does not have a HW vblank counter, vblank[i].last is anyway always 0, so we

[PATCHv2 27/31] drm/omap: poll only connectors where the connect/disconnect can be checked

2017-03-24 Thread Tomi Valkeinen
From: Peter Ujfalusi When the connector associated detect callback is not provided, we can not detect if the display is connected or disconnected. These displays does not support hot plug, they are always connected. Let DRM know that connectors w/o detect callback should not be polled. Signed-of

[PATCHv2 12/31] drm/omap: display: don't use dsi_get_pixel_size()

2017-03-24 Thread Tomi Valkeinen
display.c uses dsi_get_pixel_size() which is implemented in the DSI driver, and we won't have that in the omapdss-base module, to which we want to move display.c This patch changes display.c not to use dsi_get_pixel_size(). The call can be replaced with a simple check for OMAP_DSS_DSI_FMT_RGB565.

[PATCHv2 21/31] drm/omap: dss: Functions to check components in the display/output list

2017-03-24 Thread Tomi Valkeinen
From: Peter Ujfalusi The functions can be used to check a component (by it's of_node) if it is part of the omapdss display or output list. If the component is found, it means that the driver is loaded. Signed-off-by: Peter Ujfalusi Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss

[PATCHv2 22/31] drm/omap: dss: Support for detecting display stack readiness

2017-03-24 Thread Tomi Valkeinen
From: Peter Ujfalusi When omapdss is loaded (all core components are in place) create a list of devices used in the display graph. This list later can be used by omapdrm via the omapdss_stack_is_ready() function to check that these components are loaded. Based on this information, omapdrm can def

Re: [PATCH 08/19] drm/tilcdc: Drop calls to modeset_lock_crtc

2017-03-24 Thread Tomi Valkeinen
On 22/03/17 23:50, Daniel Vetter wrote: > Again this is an internal helper, not the official way to lock a crtc. > > Cc: Jyri Sarha > Cc: Tomi Valkeinen > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions

Re: [PATCH] Revert "drm/radeon: Try evicting from CPU accessible to inaccessible VRAM first"

2017-03-24 Thread Julien Isorce
Hi Michel, (Just for other readers my reply has been delayed on the mailing lists and should have been on second position) We have actually spotted this /0/i/ but somehow I convinced myself it was intentional. The reason I found was that you wanted to set the fpfn only if there is 2 placements, w

Re: [PATCH] Revert "drm/radeon: Try evicting from CPU accessible to inaccessible VRAM first"

2017-03-24 Thread Michel Dänzer
On 24/03/17 06:50 PM, Julien Isorce wrote: > Hi Michel, > > (Just for other readers my reply has been delayed on the mailing lists > and should have been on second position) It is on https://patchwork.freedesktop.org/patch/145731/ , did you mean something else? The delay was because you weren't

Re: [PATCH] Revert "drm/radeon: Try evicting from CPU accessible to inaccessible VRAM first"

2017-03-24 Thread Michel Dänzer
On 24/03/17 12:31 AM, Zachary Michaels wrote: > > I should also note that we are experiencing another issue where the > kernel locks up in similar circumstances. As Julien noted, we get no > output, and the watchdogs don't seem to work. It may be the case that > Xorg and our process are calling tt

[Bug 99851] [drm:.r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD)

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99851 --- Comment #26 from intermedi...@hotmail.com --- Need to notice the issue now is present on 8x slot too on kernel 4.11 rc3 -- You are receiving this mail because: You are the assignee for the bug.___

Re: [CRTC:24] vblank wait timed out

2017-03-24 Thread Martyn Welch
On Tue, Mar 21, 2017 at 06:18:44PM +0100, Philipp Zabel wrote: > Hi Martyn, > > On Tue, 2017-03-21 at 09:50 +, Martyn Welch wrote: > > I have an i.MX6 platform with 2 display port interfaces, one driven by the > > HDMI interface, the other by LVDS, both via bridges. We are currently > > experi

[Bug 100375] forced EDID's can cause a amdgpu to null ptr deref

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100375 Bug ID: 100375 Summary: forced EDID's can cause a amdgpu to null ptr deref Product: DRI Version: unspecified Hardware: Other OS: All Status: NEW Severity

[Bug 86351] HDMI audio garbled output on Radeon R9 280X

2017-03-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=86351 --- Comment #27 from Gerion (gerion-ker...@flump.de) --- I've experienced a little more with CPU load and it seems, that not the CPU load is the essential part, but the memory access. To be concrete: stress -m 1 is enough to let the sound play nor

Re: [CRTC:24] vblank wait timed out

2017-03-24 Thread Philipp Zabel
On Fri, 2017-03-24 at 10:24 +, Martyn Welch wrote: [...] > > Could you move to v4.9 or v4.10 and check if the four patches in > > https://git.pengutronix.de/cgit/pza/linux/tag/?id=v4.9-ipu-dp-plane-fix > > or > > https://git.pengutronix.de/cgit/pza/linux/tag/?id=v4.10-ipu-dp-plane-fix-2 > > hel

[Bug 86351] HDMI audio garbled output on Radeon R9 280X

2017-03-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=86351 --- Comment #28 from Andy Furniss (adf.li...@gmail.com) --- Yea, I fount that you need io load, I use mprime - but not the test that just stresses cpu... Of course using pulse, as most people do, avoids the bug as it uses sound different from alsa

Re: [PATCH 08/19] drm/tilcdc: Drop calls to modeset_lock_crtc

2017-03-24 Thread Jyri Sarha
On 03/22/17 23:50, Daniel Vetter wrote: > Again this is an internal helper, not the official way to lock a crtc. > > Cc: Jyri Sarha > Cc: Tomi Valkeinen > Signed-off-by: Daniel Vetter Acked-by: Jyri Sarha > --- > drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 12 ++-- > 1 file changed, 6 in

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Daniel Stone
Hi Jose, On 24 March 2017 at 14:03, Jose Fonseca wrote: > On 22/03/17 20:57, Dylan Baker wrote: >> Cross compiling for mingw is supported, and it provides a way to >> differentiate >> the build, host, and target machines [1], I've cross compiled for >> aarch64-linux-gnu, and it was trivial (I've

[PATCH] drm: mali-dp: Update the state of all planes before re-enabling active CRTCs.

2017-03-24 Thread Liviu Dudau
Mali DP needs to have all the planes that are becoming inactive in the new state disabled before re-enabling the active CRTC, otherwise we start streaming out data from old pointers in memory. Signed-off-by: Liviu Dudau Reviewed-by: Brian Starkey --- drivers/gpu/drm/arm/malidp_drv.c | 12 ++

[PATCH] drm: mali-dp: Enable power management for the device.

2017-03-24 Thread Liviu Dudau
Enable runtime and system Power Management. Clocks are now managed from malidp_crtc_{enable,disable} functions. Suspend-to-RAM tested as working on Juno. Signed-off-by: Liviu Dudau Reviewed-by: Brian Starkey --- drivers/gpu/drm/arm/malidp_crtc.c | 14 - drivers/gpu/drm/arm/malidp_drv.c |

[PATCH v4 0/6] drm/omap: Remove CONFIG_DRM_OMAP_NUM_CRTCS, cleanup & CTM

2017-03-24 Thread Jyri Sarha
The first patch removes CONFIG_DRM_OMAP_NUM_CRTCS config option. The patches number 2-4 gets rid of annoying name collision between dss backend and omapdrm. The second last patch cleans up the unnecessary complexity from omap_modeset_init(). And finally the last implements CRTC's CTM matrix propety

[PATCH v4 1/6] drm/omap: Get rid of DRM_OMAP_NUM_CRTCS config option

2017-03-24 Thread Jyri Sarha
Allocate one CRTC for each connected output and get rid of DRM_OMAP_NUM_CRTCS config option. We still can not create more CRTCs than we have DSS display managers. We also reserve one overlay per CRTC for primary plane so we can not have more CRTCs than we have overlays either. Signed-off-by: Jyri

[PATCH v4 5/6] drm/omap: Major omap_modeset_init() cleanup

2017-03-24 Thread Jyri Sarha
Cleanup overly complex omap_modeset_init(). The function is trying to support many unusual configuration, that have never been tested and are not supported by other parts of the dirver. After cleanup the init function creates exactly one connector, encoder, crtc, and primary plane per each connect

[PATCH v4 2/6] drm/omap: Rename enum omap_plane to enum omap_plane_id

2017-03-24 Thread Jyri Sarha
The enum omap_plane conflicted with the same struct name for omapdrm plane private data. This rename should solve the conflict. The rename was implement with this very simple coccinelle patch: @@ @@ enum -omap_plane +omap_plane_id The patch was app

[PATCH v4 3/6] drm/omap: Fix one ugly indentation style break left by coccinelle

2017-03-24 Thread Jyri Sarha
Fix one ugly indentation style break left by the previous coccilnelle patch. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/omapdrm/dss/dispc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c index

[PATCH v4 4/6] drm/omap: Remove the obsolete #define omap_plane _omap_plane hack

2017-03-24 Thread Jyri Sarha
Remove the obsolete "#define omap_plane _omap_plane" hack and other related hacks to get around the enum omap_plane colliding with struct omap_plane. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/omapdrm/omap_plane.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/driv

[PATCH v4 6/6] drm/omap: Implement CTM property for CRTC using OVL managers CPR matrix

2017-03-24 Thread Jyri Sarha
Implement CTM color management property for OMAP CRTC using DSS overlay manager's Color Phase Rotation matrix. The CPR matrix does not exactly match the CTM property documentation. On DSS the CPR matrix is applied before gamma table look up. However, it seems stupid to add a custom property just fo

Re: [PATCHv2 10/10] ARM: dts: n950: add display support

2017-03-24 Thread Tomi Valkeinen
On 24/03/17 16:29, Tony Lindgren wrote: > * Sebastian Reichel [170304 16:45]: >> Add basic panel support for the Nokia N950. It must be tweaked a >> little bit later, since the panel was built into the device >> upside-down. Also the first 5 and the last 5 pixels are covered >> by plastic. > > Th

Re: [PATCHv2 10/10] ARM: dts: n950: add display support

2017-03-24 Thread Tomi Valkeinen
On 24/03/17 17:12, Tony Lindgren wrote: > * Tomi Valkeinen [170324 08:01]: >> On 24/03/17 16:29, Tony Lindgren wrote: >>> * Sebastian Reichel [170304 16:45]: Add basic panel support for the Nokia N950. It must be tweaked a little bit later, since the panel was built into the device

[PATCH] drm/vmwgfx: Check check that number of mip levels is above zero in vmw_surface_define_ioctl()

2017-03-24 Thread Vladis Dronov
In vmw_surface_define_ioctl(), a num_sizes parameter is assigned a user-controlled value which is not checked for zero. It is used in a call to kmalloc() which returns ZERO_SIZE_PTR. Later ZERO_SIZE_PTR is dereferenced which leads to a GPF and possibly to a kernel panic. Add the check for zero to a

Re: [PATCHv2 2/2] drm/panel: simple: Add support for Winstar WF35LTIACD

2017-03-24 Thread Rob Herring
On Mon, Mar 20, 2017 at 02:32:22PM +0100, Richard Genoud wrote: > This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT > LCD panel, which can be supported by the simple panel driver. > > Signed-off-by: Richard Genoud > --- > > Changes since v1: > Add power-supply property and a

[Bug 100067] [OpenCL] const int in argument list crashes build

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100067 --- Comment #7 from Mig --- Backtrace: (gdb) run Starting program: /home/miguel/Dokumente/OpenCLExamples/myGEMM-master/extra/minimal >>> Initializing OpenCL... [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr

[Bug 100067] [OpenCL] const int in argument list crashes build

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100067 --- Comment #8 from Mig --- BTW: I applied the patch from bug 99856 to clc but apparently the bug described above is not related to that. -- You are receiving this mail because: You are the assignee for the bug.___

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Bas Nieuwenhuizen
> Another tool I heard good about but have not direct experience is > https://bazel.build . Any thoughts about it? Having looked a bit into it, it also is just a build system (albeit higher level than ninja or make). It doesn't do configure or install and working with system dependencies is annoy

[Bug 99851] [drm:.r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD)

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99851 --- Comment #27 from Alex Deucher --- (In reply to intermedi...@hotmail.com from comment #26) > Need to notice the issue now is present on 8x slot too on kernel 4.11 rc3 Can you bisect? That might give us a clue as to the overall root cause (wh

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Dylan Baker
Quoting Colin Cross (2017-03-23 17:03:58) > On Thu, Mar 23, 2017 at 4:56 PM, Dylan Baker wrote: > > > > I'm hoping you can clarify a couple of questions I have about blueprint: > > 1) android is moving to blueprint from android.mk files? > > Yes, in a phased transition. We support both for now.

[Bug 99851] [drm:.r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD)

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99851 --- Comment #28 from intermedi...@hotmail.com --- I can but i dont know how to ... im a newbee in this geek things. but for sure of 411.rc1 was not present . i suggest wait the 4.11.rc4 because on ml i sow there are many patch for rc 4.11rc3 in c

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread randyf
On Mon, 20 Mar 2017, Matt Turner wrote: - dropping the Autotools will lead to OpenBSD and NetBSD having to write one from scratch, IIRC Solaris/FreeBSD and others are in similar boat. Solaris is a closed source operating system whose developers do not contribute to the project. We do not

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Dylan Baker
Quoting Jose Fonseca (2017-03-24 06:42:18) > > I tend to disagree. While we can't avoid a transitory period, when we > embark on another build system (Meson or something else) I think we > should aim at 1) ensure such tool can indeed _completely_ replace at > least _one_ existing build system,

Re: [PATCH] drm: Make the decision to keep vblank irq enabled earlier

2017-03-24 Thread Chris Wilson
On Fri, Mar 24, 2017 at 04:16:28AM +0100, Mario Kleiner wrote: > Looks good to me. As a further optimization, i think we could move > the vblank_disable_fn() call outside/below the > spin_unlock_irqrestore for event_lock, as vblank_disable_fn() > doesn't need any locks held at call time, so slightl

[PATCH v2] drm: Make the decision to keep vblank irq enabled earlier

2017-03-24 Thread Chris Wilson
We want to provide the vblank irq shadow for pageflip events as well as vblank queries. Such events are completed within the vblank interrupt handler, and so the current check for disabling the irq will disable it from with the same interrupt as the last pageflip event. If we move the decision on w

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Eric Anholt
Dylan Baker writes: > [ Unknown signature status ] > Quoting Jose Fonseca (2017-03-24 06:42:18) >> >> I tend to disagree. While we can't avoid a transitory period, when we >> embark on another build system (Meson or something else) I think we >> should aim at 1) ensure such tool can indeed _c

[Bug 99851] [drm:.r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD)

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99851 --- Comment #29 from Alex Deucher --- (In reply to intermedi...@hotmail.com from comment #28) > I can but i dont know how to ... im a newbee in this geek things. > but for sure of 411.rc1 was not present . i suggest wait the 4.11.rc4 > because on

[Bug 100364] DisplayPort hotplug warning and monitor sometimes stays blank

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100364 --- Comment #2 from Alex Deucher --- Do you physically turn the monitor on/off with the button on the monitor or just let dpms do it's thing? -- You are receiving this mail because: You are the assignee for the bug.

Re: [PATCH v4 2/4] dt-bindings: add the grf clock for dw-mipi-dsi

2017-03-24 Thread Rob Herring
On Wed, Mar 22, 2017 at 09:54:49AM +0800, Chris Zhong wrote: > For RK3399, the grf clock should be controlled by dw-mipi-dsi driver, > add the description for this clock. > > Signed-off-by: Chris Zhong > Reviewed-by: Sean Paul > --- > > Changes in v4: > - remove "additional" > > Changes in v3:

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Daniel Stone
Hi, On 24 March 2017 at 17:51, Eric Anholt wrote: > Dylan Baker writes: >> I also think it's worth talking to Eric (who said he's porting X to meson), >> Daniel Stone (who has patches to port weston to meson), and Peter Hutterer >> (who >> has patches to port libinput to meson). If they're seri

[Bug 193981] AMDGPU: R9 380 Fan rotates all the time (loud!)

2017-03-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=193981 --- Comment #12 from winches (dry...@gmx.fr) --- I start to bisect. My problem is, between the linux-git-4.8.r15051.g133d970e0dad and the linux-git-4.9rc5.r369.g697ed8d03909 my system doesn't found my harddrive with his UUID and refuse to boot. It

[Bug 100289] 'flip queue failed in radeon_scanout_flip: Invalid argument' error and small frame buffer allocated on turning off and on new monitor

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100289 --- Comment #7 from omegap...@startmail.com --- Just turned the monitors on in sequence left to right after dinner (new monitor is last), and the problem occurred: $ x

Re: [PATCH] Revert "drm/radeon: Try evicting from CPU accessible to inaccessible VRAM first"

2017-03-24 Thread Julien Isorce
Hi Michel, I double checked and you are right, the change 0 -> i works. Cheers Julien On 24 March 2017 at 09:59, Michel Dänzer wrote: > On 24/03/17 06:50 PM, Julien Isorce wrote: > > Hi Michel, > > > > (Just for other readers my reply has been delayed on the mailing lists > > and should have b

Re: [PATCH] Revert "drm/radeon: Try evicting from CPU accessible to inaccessible VRAM first"

2017-03-24 Thread Julien Isorce
Hi Michel, No this change does not help on the other issue (hard lockup). I have no tried it in combination with the 0 -> i change. Thx anyway. Julien On 24 March 2017 at 10:03, Michel Dänzer wrote: > On 24/03/17 12:31 AM, Zachary Michaels wrote: > > > > I should also note that we are experie

Re: [Intel-gfx] [PATCH v10 3/6] drm/edid: detect SCDC support in HF-VSDB

2017-03-24 Thread Daniel Vetter
On Mon, Mar 13, 2017 at 12:24 PM, Shashank Sharma wrote: > +/** > + * struct drm_hdmi_info - runtime information about the connected HDMI sink > + * > + * Describes if a given display supports advanced HDMI 2.0 features. > + * This information is available in CEA-861-F extension blocks (like > HF

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Kristian Høgsberg
On Fri, Mar 24, 2017 at 6:42 AM, Jose Fonseca wrote: > On 23/03/17 01:38, Rob Clark wrote: >> >> On Wed, Mar 22, 2017 at 9:18 PM, Jonathan Gray wrote: >>> >>> On Wed, Mar 22, 2017 at 01:10:14PM -0700, Dylan Baker wrote: On Wed, Mar 22, 2017 at 12:40 PM, Alex Deucher wrote: > >

Re: [PATCH v8] drm/rockchip: Refactor the component match logic.

2017-03-24 Thread Sean Paul
On Wed, Mar 22, 2017 at 11:21:20AM +0800, Jeffy Chen wrote: > Currently we are adding all components from the dts, if one of their > drivers been disabled, we would not be able to bring up others. > > Refactor component match logic, follow exynos drm. Applied to drm-misc Thanks, Sean > > Sign

Re: [PATCH v4 0/4] RK3399 dw-mipi-dsi patches

2017-03-24 Thread Sean Paul
On Wed, Mar 22, 2017 at 09:54:47AM +0800, Chris Zhong wrote: > Hi all > > This series set the phy_cfg_clk to be a required clock for RK3399, and > add a grf clock control in dw-mipi-dsi driver. And then correct a > register name. > Applied to drm-misc Thanks, Sean > > Changes in v4: > - rem

[Bug 100364] DisplayPort hotplug warning and monitor sometimes stays blank

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100364 --- Comment #3 from John Brooks --- (In reply to Alex Deucher from comment #2) > Do you physically turn the monitor on/off with the button on the monitor or > just let dpms do it's thing? I'm turning it on and off with the button. I seem to rec

[Bug 100364] DisplayPort hotplug warning and monitor sometimes stays blank

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100364 --- Comment #4 from John Brooks --- It's possible that I just didn't leave it alone for long enough after it turned off (or after I turned it off with xset dpms force off). Maybe after a period of time with no signal, the monitor itself goes int

[Bug 100364] DisplayPort hotplug warning and monitor sometimes stays blank

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100364 --- Comment #6 from John Brooks --- Created attachment 130441 --> https://bugs.freedesktop.org/attachment.cgi?id=130441&action=edit Xorg.log -- You are receiving this mail because: You are the assignee for the bug.___

[Bug 100364] DisplayPort hotplug warning and monitor sometimes stays blank

2017-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100364 --- Comment #5 from John Brooks --- Created attachment 130440 --> https://bugs.freedesktop.org/attachment.cgi?id=130440&action=edit dmesg -- You are receiving this mail because: You are the assignee for the bug.__

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Kristian Høgsberg
On Fri, Mar 24, 2017 at 12:44 PM, Jose Fonseca wrote: > On 24/03/17 19:10, Kristian Høgsberg wrote: >> >> On Fri, Mar 24, 2017 at 6:42 AM, Jose Fonseca wrote: >>> >>> On 23/03/17 01:38, Rob Clark wrote: On Wed, Mar 22, 2017 at 9:18 PM, Jonathan Gray wrote: > > > On Wed

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Chad Versace
On Tue 21 Mar 2017, Matt Turner wrote: > On Mon, Mar 20, 2017 at 12:39 PM, Emil Velikov > wrote: > > On 20 March 2017 at 18:30, Matt Turner wrote: > >> On Mon, Mar 20, 2017 at 6:55 AM, Emil Velikov > >> wrote: > >>> These projects have been getting closer to upstream and "forcing" the > >>> e

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Chad Versace
On Tue 21 Mar 2017, Matt Turner wrote: > On Tue, Mar 21, 2017 at 10:16 AM, Emil Velikov > wrote: > > On 21 March 2017 at 15:57, Matt Turner wrote: > >> On Mon, Mar 20, 2017 at 12:39 PM, Emil Velikov > >> wrote: > >>> On 20 March 2017 at 18:30, Matt Turner wrote: > On Mon, Mar 20, 2017 at

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Rob Clark
On Fri, Mar 24, 2017 at 3:10 PM, Kristian Høgsberg wrote: > On Fri, Mar 24, 2017 at 6:42 AM, Jose Fonseca wrote: >> On 23/03/17 01:38, Rob Clark wrote: >>> >>> On Wed, Mar 22, 2017 at 9:18 PM, Jonathan Gray wrote: On Wed, Mar 22, 2017 at 01:10:14PM -0700, Dylan Baker wrote: > >

[PATCH] drm/vblank: fix boolreturn.cocci warnings

2017-03-24 Thread kbuild test robot
drivers/gpu/drm/nouveau/nouveau_display.c:154:8-9: WARNING: return of 0/1 in function 'nouveau_display_scanoutpos' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: Daniel Vetter

Re: [PATCH 15/16] drm/vblank: Simplify the get_scanout_position helper hook

2017-03-24 Thread kbuild test robot
Hi Daniel, [auto build test WARNING on drm/drm-next] [cannot apply to v4.11-rc3 next-20170324] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/more-drmP-h-cleanup/20170325-030940

[PATCH 2/3] drm: Add new DRM_IOCTL_MODE_GETPLANE2

2017-03-24 Thread Ben Widawsky
Originally based off of a patch by Kristian. This new ioctl extends DRM_IOCTL_MODE_GETPLANE, by returning information about the modifiers that will work with each format. It's modified from Kristian's patch in that the modifiers and formats are setup by the driver, and then a callback is used to

[PATCH 3/3] drm/i915: Add format modifiers for Intel

2017-03-24 Thread Ben Widawsky
This was based on a patch originally by Kristian. It has been modified pretty heavily to use the new callbacks from the previous patch. v2: - Add LINEAR and Yf modifiers to list (Ville) - Combine i8xx and i965 into one list of formats (Ville) - Allow 1010102 formats for Y/Yf tiled (Ville) v

[PATCH 1/3] drm/i915: Use LINEAR modifier instead of NONE

2017-03-24 Thread Ben Widawsky
They're the same, so use the one which makes more sense. Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/intel_display.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_disp

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-24 Thread Rob Clark
On Fri, Mar 24, 2017 at 5:16 PM, Jose Fonseca wrote: > On 24/03/17 20:08, Kristian Høgsberg wrote: >> >> On Fri, Mar 24, 2017 at 12:44 PM, Jose Fonseca >> wrote: >>> >>> On 24/03/17 19:10, Kristian Høgsberg wrote: On Fri, Mar 24, 2017 at 6:42 AM, Jose Fonseca wrote: > >>>

Re: [PATCH 08/16] drm: document drm_ioctl.[hc]

2017-03-24 Thread kbuild test robot
Hi Daniel, [auto build test WARNING on drm/drm-next] [cannot apply to v4.11-rc3 next-20170324] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/more-drmP-h-cleanup/20170325-030940

  1   2   >