[Bug 108916] polaris11 d3d9 rendering issue

2019-01-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108916 --- Comment #3 from Roman Elshin --- I saw some reports with distortions which looks similar to this and it was fixed in llvm-8. Installing llvm-8 from http://apt.llvm.org/ and recompiling libdrm + mesa from git does't solve this issue. $

Re: [PATCH 19/26] drm/qxl: Use drm_fb_helper_fill_info

2019-01-25 Thread Daniel Vetter
On Fri, Jan 25, 2019 at 07:39:26AM +0100, Gerd Hoffmann wrote: > On Thu, Jan 24, 2019 at 05:58:24PM +0100, Daniel Vetter wrote: > > This should not result in any changes. > > I'd love to merge https://patchwork.freedesktop.org/series/53951/ > instead (which will -- among other things -- switch

[PATCH -fixes] drm/vmwgfx: Improve on IOMMU detection

2019-01-25 Thread Thomas Hellstrom
instead of relying on intel_iommu_enabled, use the fact that the dma_map:ops::map_page != dma_direct_map_page. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git

Re: [PATCH 02/26] drm: Switch DRIVER_ flags to an enum

2019-01-25 Thread Daniel Vetter
On Thu, Jan 24, 2019 at 06:38:33PM +0100, Sam Ravnborg wrote: > Hi Daniel. > > > + > > + /** > > +* @DRIVER_HAVE_DMA: > > +* > > +* Driver supports DMA, the userspace DMA API will be supported. Only > > +* for legacy drivers. Do not use. > > +*/ > > + DRIVER_HAVE_DMA

Re: [Xen-devel] [PATCH v2] drm/xen-front: Make shmem backed display buffer coherent

2019-01-25 Thread Julien Grall
On 24/01/2019 14:34, Oleksandr Andrushchenko wrote: Hello, Julien! Hi, On 1/22/19 1:44 PM, Julien Grall wrote: On 1/22/19 10:28 AM, Oleksandr Andrushchenko wrote: Hello, Julien! Hi, On 1/21/19 7:09 PM, Julien Grall wrote: Well, I didn't get the attributes of pages at the backend

Re: [PATCH] drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines

2019-01-25 Thread Nathan Chancellor
On Thu, Jan 24, 2019 at 04:52:59PM -0800, ndesaulni...@google.com wrote: > arch/x86/Makefile disables SSE and SSE2 for the whole kernel. The > AMDGPU drivers modified in this patch re-enable SSE but not SSE2. Turn > on SSE2 to support emitting double precision floating point instructions >

[PATCH 2/2] phy: Add driver for mixel dphy

2019-01-25 Thread Guido Günther
This adds support for the Mixel DPHY as found on i.MX8 CPUs but since this is an IP core it will likely be found on others in the future. So instead of adding this to the nwl host driver make it a generic PHY driver. The driver supports the i.MX8MQ. Support for i.MX8QM and i.MX8QXP can be added

Re: [v4,2/2] drm/panel: Add Feiyang FY07024DI26A30-D MIPI-DSI LCD panel

2019-01-25 Thread Bhushan Shah
On Fri, Jan 25, 2019 at 12:13:13AM +0530, Jagan Teki wrote: > Feiyang FY07024DI26A30-D is 1024x600, 4-lane MIPI-DSI LCD panel. > > Add panel driver for it. > > Signed-off-by: Jagan Teki Tested-by: Bhushan Shah -- Bhushan Shah http://blog.bshah.in IRC Nick : bshah on Freenode GPG key

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-25 Thread Ard Biesheuvel
On Thu, 24 Jan 2019 at 12:23, Koenig, Christian wrote: > > Am 24.01.19 um 10:59 schrieb Ard Biesheuvel: > > [SNIP] > > This is *exactly* my point the whole time. > > > > The current code has > > > > static inline bool drm_arch_can_wc_memory(void) > > { > > #if defined(CONFIG_PPC) &&

[PATCH] drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines

2019-01-25 Thread ndesaulniers
arch/x86/Makefile disables SSE and SSE2 for the whole kernel. The AMDGPU drivers modified in this patch re-enable SSE but not SSE2. Turn on SSE2 to support emitting double precision floating point instructions rather than calls to non-existent (usually available from gcc_s or compiler_rt)

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-25 Thread Ard Biesheuvel
On Thu, 24 Jan 2019 at 10:25, Koenig, Christian wrote: > > Am 24.01.19 um 10:13 schrieb Christoph Hellwig: > > On Wed, Jan 23, 2019 at 05:52:50PM +0100, Ard Biesheuvel wrote: > >> But my concern is that it seems likely that non-cache coherent > >> implementations are relying on this hack as well.

Re: [PATCH 04/26] drm/fb-helper: Add fill_info() functions

2019-01-25 Thread Daniel Vetter
On Fri, Jan 25, 2019 at 10:46 AM Noralf Trønnes wrote: > > > > Den 25.01.2019 09.48, skrev Daniel Vetter: > > On Thu, Jan 24, 2019 at 06:40:52PM +0100, Noralf Trønnes wrote: > >> > >> > >> Den 24.01.2019 17.58, skrev Daniel Vetter: > >>> The fbdev split between fix and var information is kinda >

Re: [PATCH 4/5] drm/tegra: Restrict IOVA space to DMA mask

2019-01-25 Thread Dmitry Osipenko
24.01.2019 13:24, Mikko Perttunen пишет: > On 23.1.2019 21.42, Dmitry Osipenko wrote: >> 23.01.2019 18:55, Dmitry Osipenko пишет: >>> 23.01.2019 17:04, Thierry Reding пишет: On Wed, Jan 23, 2019 at 04:41:44PM +0300, Dmitry Osipenko wrote: > 23.01.2019 12:39, Thierry Reding пишет: >>

Re: [PATCH 4/5] drm/tegra: Restrict IOVA space to DMA mask

2019-01-25 Thread Dmitry Osipenko
24.01.2019 16:27, Mikko Perttunen пишет: > On 24.1.2019 15.15, Dmitry Osipenko wrote: >> 24.01.2019 13:24, Mikko Perttunen пишет: >>> On 23.1.2019 21.42, Dmitry Osipenko wrote: 23.01.2019 18:55, Dmitry Osipenko пишет: > 23.01.2019 17:04, Thierry Reding пишет: >> On Wed, Jan 23, 2019

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-25 Thread Ard Biesheuvel
On Thu, 24 Jan 2019 at 14:54, Alex Deucher wrote: > > On Thu, Jan 24, 2019 at 6:45 AM Ard Biesheuvel > wrote: > > > > On Thu, 24 Jan 2019 at 12:37, Koenig, Christian > > wrote: > > > > > > Am 24.01.19 um 12:26 schrieb Ard Biesheuvel: > > > > On Thu, 24 Jan 2019 at 12:23, Koenig, Christian > > >

Re: [PATCH v2 00/13] drm/tegra: Fix IOVA space on Tegra186 and later

2019-01-25 Thread Dmitry Osipenko
24.01.2019 21:02, Thierry Reding пишет: > From: Thierry Reding > > Tegra186 and later are different from earlier generations in that they > use an ARM SMMU rather than the Tegra SMMU. The ARM SMMU driver behaves > slightly differently in that the geometry for IOMMU domains is set only > after a

Re: [PATCH 0/5] tda998x updates

2019-01-25 Thread Brian Starkey
Hi, On Fri, Jan 25, 2019 at 11:56:09AM +, Russell King - ARM Linux admin wrote: > (Removed what I assume is a typo on the Cc line - n...@arm.com) Sadly not. I have to Cc (not Bcc!) n...@arm.com to remove the confidentiality disclaimer which would otherwise be added. Ugly, but my only

Re: [PATCH 04/26] drm/fb-helper: Add fill_info() functions

2019-01-25 Thread Daniel Vetter
On Thu, Jan 24, 2019 at 06:40:52PM +0100, Noralf Trønnes wrote: > > > Den 24.01.2019 17.58, skrev Daniel Vetter: > > The fbdev split between fix and var information is kinda > > pointless for drm drivers since everything is fixed: The fbdev > > emulation doesn't support changing modes at all. >

Re: [PATCH v2 00/13] drm/tegra: Fix IOVA space on Tegra186 and later

2019-01-25 Thread Thierry Reding
On Fri, Jan 25, 2019 at 12:38:01AM +0300, Dmitry Osipenko wrote: > 24.01.2019 21:02, Thierry Reding пишет: > > From: Thierry Reding > > > > Tegra186 and later are different from earlier generations in that they > > use an ARM SMMU rather than the Tegra SMMU. The ARM SMMU driver behaves > >

Re: [PATCH 01/26] drm/irq: Don't check for DRIVER_HAVE_IRQ in drm_irq_(un)install

2019-01-25 Thread Sam Ravnborg
Hi Daniel. On Thu, Jan 24, 2019 at 05:58:06PM +0100, Daniel Vetter wrote: > If a non-legacy driver calls these it's valid to assume there is > interrupt support. The flag is really only needed for legacy drivers. > > Also remove all the flag usage from non-legacy drivers. > > Signed-off-by:

Re: [PATCH v2 0/7] Replace ttm_bo_{unref,reference} with ttm_bo_{get|put}

2019-01-25 Thread Koenig, Christian
Reviewed-by: Christian König If there are no objections over the weekend I'm going to push that into upstream direction on monday. Thanks for the work, Christian. Am 25.01.19 um 12:02 schrieb Thomas Zimmermann: > This patchset cleans up the last remaining callers of ttm_bo_reference > and

Re: [PATCH 03/11] drm/simple-kms-helper: Add drm_simple_connector_create()

2019-01-25 Thread Noralf Trønnes
Den 24.01.2019 15.53, skrev Hans de Goede: > Hi, > > On 24-01-19 15:38, Noralf Trønnes wrote: >> [cc:Hans] >> >> Den 21.01.2019 10.22, skrev Daniel Vetter: >>> On Sun, Jan 20, 2019 at 12:43:10PM +0100, Noralf Trønnes wrote: This adds a function that creates a simple connector that has only

[PATCH 0/4] Fix DMA ops layering violations in vmwgfx v2

2019-01-25 Thread Thomas Hellstrom
This is a patch set from Christoph Hellwig. Patch 2 has been updated by me to not remove checks for TTM coherent pool presence. Ideally, we should query TTM for this instead and I'll have a patch set intended for 5.1 so that we can do that. But I don't want to introduce cross-module API additions

[PATCH 4/4] drm/vmwgfx: unwind spaghetti code in vmw_dma_select_mode

2019-01-25 Thread Thomas Hellstrom
From: Christoph Hellwig Just use a simple if/else chain to select the DMA mode. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

Re: [PATCH 06/26] drm/fb_helper: set info->par in fill_info()

2019-01-25 Thread Daniel Vetter
On Thu, Jan 24, 2019 at 06:45:52PM +0100, Sam Ravnborg wrote: > Hi Daniel. > > On Thu, Jan 24, 2019 at 05:58:11PM +0100, Daniel Vetter wrote: > > The fbdev emulation helpers pretty much assume that this is set. > > Let's do it for everyone. > > I do not know this code at all. > But I failed to

[PATCH 1/2] dt-bindings: display: tegra: Support SOR crossbar configuration

2019-01-25 Thread Thierry Reding
From: Thierry Reding The SOR has a crossbar that can map each lane of the SOR to each of the SOR pads. The mapping is usually the same across designs for a specific SoC generation, but every now and then there's a design that doesn't. Allow the crossbar configuration to be specified in device

[PATCH 2/2] drm/tegra: sor: Support device tree crossbar configuration

2019-01-25 Thread Thierry Reding
From: Thierry Reding The crossbar configuration is usually the same across all designs for a given SoC generation. But sometimes there are designs that require some other configuration. Implement support for parsing the crossbar configuration from a device tree. If the crossbar configuration is

Re: [PATCH V2,4/8] drm/mediatek: fix the rate and divder of hdmi phy for MT2701

2019-01-25 Thread mtk14994
Dear CK, OK,I will modify according your comments in V3. Best Regards Wangyan Wang On Thu, 2019-01-24 at 14:17 +0800, CK Hu wrote: > On Fri, 2019-01-18 at 20:59 +0800, Wangyan Wang wrote: > > From: chunhui dai > > Describe something here. > > > > > Fixes: 0fc721b2968e ("drm/mediatek:

[PATCH 1/2] dt-bindings: phy: Add documentation for mixel dphy

2019-01-25 Thread Guido Günther
Signed-off-by: Guido Günther --- .../bindings/phy/mixel,mipi-dsi-phy.txt | 29 +++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.txt diff --git a/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.txt

Re: [Xen-devel] [PATCH v2] drm/xen-front: Make shmem backed display buffer coherent

2019-01-25 Thread Oleksandr Andrushchenko
Hello, Julien! Sorry for the late reply - it took quite some time to collect the data requested. On 1/22/19 1:44 PM, Julien Grall wrote: > > > On 1/22/19 10:28 AM, Oleksandr Andrushchenko wrote: >> Hello, Julien! > > Hi, > >> On 1/21/19 7:09 PM, Julien Grall wrote: >> Well, I didn't get the

Re: [PATCH v2 00/13] drm/tegra: Fix IOVA space on Tegra186 and later

2019-01-25 Thread Dmitry Osipenko
24.01.2019 21:02, Thierry Reding пишет: > From: Thierry Reding > > Tegra186 and later are different from earlier generations in that they > use an ARM SMMU rather than the Tegra SMMU. The ARM SMMU driver behaves > slightly differently in that the geometry for IOMMU domains is set only > after a

[PATCH 0/2] RFC: Mixel DPHY support for i.MX8

2019-01-25 Thread Guido Günther
This adds initial support for the Mixel IP based mipi dphy as found on i.MX8 processors. It has support for the i.MX8MQ, support for other variants can be added - once the necessary parts are in - via the provided hooks. The driver is somewhat based on what's found in NXPs BSP. Documentation on

[PATCH v2] drm/bridge: sil_sii8620: make remote control optional.

2019-01-25 Thread Ronald Tschalär
commit d6abe6df706c (drm/bridge: sil_sii8620: do not have a dependency of RC_CORE) changed the driver to select both RC_CORE and INPUT. However, this causes problems with other drivers, in particular an input driver that depends on MFD_INTEL_LPSS_PCI (to be added in a separate commit):

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-25 Thread Ard Biesheuvel
On Thu, 24 Jan 2019 at 10:31, Michel Dänzer wrote: > > On 2019-01-23 5:52 p.m., Ard Biesheuvel wrote: > > On Wed, 23 Jan 2019 at 17:44, Christoph Hellwig wrote: > >> > >> I think we just want a driver-local check for those combinations > >> where we know this hack actually works, which really

Re: [PATCH] drm: enable uncached DMA optimization for ARM and arm64

2019-01-25 Thread Ard Biesheuvel
On Thu, 24 Jan 2019 at 15:01, Alex Deucher wrote: > > On Thu, Jan 24, 2019 at 9:00 AM Ard Biesheuvel > wrote: > > > > On Thu, 24 Jan 2019 at 13:31, Koenig, Christian > > wrote: > > > > > > Am 24.01.19 um 13:06 schrieb Ard Biesheuvel: > > > > The DRM driver stack is designed to work with cache

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-25 Thread Ard Biesheuvel
On Thu, 24 Jan 2019 at 10:45, Koenig, Christian wrote: > > Am 24.01.19 um 10:28 schrieb Ard Biesheuvel: > > On Thu, 24 Jan 2019 at 10:25, Koenig, Christian > > wrote: > >> Am 24.01.19 um 10:13 schrieb Christoph Hellwig: > >>> On Wed, Jan 23, 2019 at 05:52:50PM +0100, Ard Biesheuvel wrote: >

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-25 Thread Ard Biesheuvel
On Thu, 24 Jan 2019 at 12:37, Koenig, Christian wrote: > > Am 24.01.19 um 12:26 schrieb Ard Biesheuvel: > > On Thu, 24 Jan 2019 at 12:23, Koenig, Christian > > wrote: > >> Am 24.01.19 um 10:59 schrieb Ard Biesheuvel: > >>> [SNIP] > >>> This is *exactly* my point the whole time. > >>> > >>> The

Re: [PATCH v2 03/13] gpu: host1x: Support 40-bit addressing

2019-01-25 Thread Mikko Perttunen
On 24.1.2019 20.02, Thierry Reding wrote: From: Thierry Reding Tegra186 and later support 40 bits of address space. Additional registers need to be programmed to store the full 40 bits of push buffer addresses. Since command stream gathers can also reside in buffers in a 40-bit address space,

Re: [PATCH 04/26] drm/fb-helper: Add fill_info() functions

2019-01-25 Thread Noralf Trønnes
Den 25.01.2019 09.48, skrev Daniel Vetter: > On Thu, Jan 24, 2019 at 06:40:52PM +0100, Noralf Trønnes wrote: >> >> >> Den 24.01.2019 17.58, skrev Daniel Vetter: >>> The fbdev split between fix and var information is kinda >>> pointless for drm drivers since everything is fixed: The fbdev >>>

[Bug 109456] KVM VFIO guest X hang with guest kernel > 4.15

2019-01-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109456 Bug ID: 109456 Summary: KVM VFIO guest X hang with guest kernel > 4.15 Product: DRI Version: XOrg git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW

Re: [PATCH 09/26] drm/ast: Use drm_fb_helper_fill_info

2019-01-25 Thread Daniel Vetter
On Thu, Jan 24, 2019 at 07:00:11PM +0100, Sam Ravnborg wrote: > Hi Daniel. > > On Thu, Jan 24, 2019 at 05:58:14PM +0100, Daniel Vetter wrote: > > Should not result in any changes. > > > > Signed-off-by: Daniel Vetter > > Cc: Dave Airlie > > Cc: Junwei Zhang > > Cc: Alex Deucher > > Cc:

Re: [PATCH v2 03/13] gpu: host1x: Support 40-bit addressing

2019-01-25 Thread Mikko Perttunen
On 25.1.2019 11.32, Mikko Perttunen wrote: On 25.1.2019 11.20, Thierry Reding wrote: On Fri, Jan 25, 2019 at 11:13:41AM +0200, Mikko Perttunen wrote: On 24.1.2019 20.02, Thierry Reding wrote: From: Thierry Reding Tegra186 and later support 40 bits of address space. Additional registers

Re: [PATCH v2 03/13] gpu: host1x: Support 40-bit addressing

2019-01-25 Thread Mikko Perttunen
On 25.1.2019 11.20, Thierry Reding wrote: On Fri, Jan 25, 2019 at 11:13:41AM +0200, Mikko Perttunen wrote: On 24.1.2019 20.02, Thierry Reding wrote: From: Thierry Reding Tegra186 and later support 40 bits of address space. Additional registers need to be programmed to store the full 40

Re: [PATCH 00/11] ARM: sun8i: a23: Enable display pipeline

2019-01-25 Thread Maxime Ripard
On Fri, Jan 25, 2019 at 11:23:03AM +0800, Chen-Yu Tsai wrote: > Hi everyone, > > This series enables the display pipeline on the Allwinner A23 SoC. > A few fixes are included for corner cases when the frontend isn't > enabled. > > The A23 display pipeline is very much the same as the A33, except

RE: [PATCH 1/3] treewide: Lift switch variables out of switches

2019-01-25 Thread Edwin Zimmerman
On Wednesday, January 23, 2019 6:04 AM, Kees Cook wrote > > Variables declared in a switch statement before any case statements > cannot be initialized, so move all instances out of the switches. > After this, future always-initialized stack variables will work > and not throw warnings like this:

[PATCH] drm: enable uncached DMA optimization for ARM and arm64

2019-01-25 Thread Ard Biesheuvel
The DRM driver stack is designed to work with cache coherent devices only, but permits an optimization to be enabled in some cases, where for some buffers, both the CPU and the GPU use uncached mappings, removing the need for DMA snooping and allocation in the CPU caches. The use of uncached GPU

Re: [PATCH] drm: enable uncached DMA optimization for ARM and arm64

2019-01-25 Thread Ard Biesheuvel
On Thu, 24 Jan 2019 at 13:31, Koenig, Christian wrote: > > Am 24.01.19 um 13:06 schrieb Ard Biesheuvel: > > The DRM driver stack is designed to work with cache coherent devices > > only, but permits an optimization to be enabled in some cases, where > > for some buffers, both the CPU and the GPU

[PATCH 3/4] drm/vmwgfx: fix the check when to use dma_alloc_coherent

2019-01-25 Thread Thomas Hellstrom
From: Christoph Hellwig Since Linux 4.21 we merged the swiotlb ops into the DMA direct ops, so they would always have a the sync_single methods. But late in the cicle we also removed the direct ops entirely, so we'd see NULL DMA ops. Switch vmw_dma_select_mode to only detect swiotlb presence

[PATCH 2/4] drm/vmwgfx: remove CONFIG_INTEL_IOMMU ifdefs v2

2019-01-25 Thread Thomas Hellstrom
From: Christoph Hellwig intel_iommu_enabled is defined as always false for !CONFIG_INTEL_IOMMU, so remove the ifdefs around it. Signed-off-by: Christoph Hellwig Reviewed-by: Thomas Hellstrom --- v2: Retain the check for TTM dma page pool presence. --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 21

[PATCH 1/4] drm/vmwgfx: remove CONFIG_X86 ifdefs

2019-01-25 Thread Thomas Hellstrom
From: Christoph Hellwig The driver depends on CONFIG_X86 so these are dead code. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index

Re: [PATCH 24/26] staging/vboxvideo: Use drm_fb_helper_fill_info

2019-01-25 Thread Greg Kroah-Hartman
On Thu, Jan 24, 2019 at 05:58:29PM +0100, Daniel Vetter wrote: > This should not result in any changes. > > v2: Rebase over vbox changes - vbox gained it's own line to fill > fix.id. > > Signed-off-by: Daniel Vetter > Cc: Greg Kroah-Hartman > Cc: Hans de Goede > Cc: Daniel Vetter > Cc:

Re: [PATCH v2 00/13] drm/tegra: Fix IOVA space on Tegra186 and later

2019-01-25 Thread Mikko Perttunen
On 24.1.2019 23.53, Dmitry Osipenko wrote: 24.01.2019 21:02, Thierry Reding пишет: From: Thierry Reding Tegra186 and later are different from earlier generations in that they use an ARM SMMU rather than the Tegra SMMU. The ARM SMMU driver behaves slightly differently in that the geometry for

Re: [PATCH v2 03/13] gpu: host1x: Support 40-bit addressing

2019-01-25 Thread Thierry Reding
On Fri, Jan 25, 2019 at 11:13:41AM +0200, Mikko Perttunen wrote: > On 24.1.2019 20.02, Thierry Reding wrote: > > From: Thierry Reding > > > > Tegra186 and later support 40 bits of address space. Additional > > registers need to be programmed to store the full 40 bits of push > > buffer

[PATCH 0/5] tda998x updates

2019-01-25 Thread Russell King - ARM Linux admin
Hi, This series adds support for programming the SPD and vendor infoframes. It also adds support for pixel repeated modes - we were not rejecting these modes, but we also didn't have the implementation to support them. As their implementation is simple, add it rather than rejecting the modes.

Re: [PATCH 0/5] tda998x updates

2019-01-25 Thread Russell King - ARM Linux admin
(Removed what I assume is a typo on the Cc line - n...@arm.com) On Fri, Jan 25, 2019 at 11:45:10AM +, Brian Starkey wrote: > Hi Russell, > > On Fri, Jan 25, 2019 at 09:40:38AM +, Russell King - ARM Linux admin > wrote: > > Hi, > > > > This series adds support for programming the SPD

[Bug 105733] Amdgpu randomly hangs and only ssh works. Mouse cursor moves sometimes but does nothing. Keyboard stops working.

2019-01-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105733 --- Comment #62 from l...@protonmail.ch --- What changes happened in 5.0rc3 that could have fixed this? I will try to see if I still experience problems with 5.0rc3 when I can check. Also, can you elaborate on what you mean by draining the

[PATCH v2 6/7] drm/mgag200: Replace ttm_bo_unref with ttm_bo_put

2019-01-25 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL.

[PATCH v2 0/7] Replace ttm_bo_{unref, reference} with ttm_bo_{get|put}

2019-01-25 Thread Thomas Zimmermann
This patchset cleans up the last remaining callers of ttm_bo_reference and ttm_bo_unref. Calls are replaced with ttm_bo_get and ttm_bo_put, which follow Linux' get/put semantics more closely. The most notable difference is that ttm_bo_get does not clear the supplied pointer's value. This

[PATCH v2 1/7] drm/ast: Replace ttm_bo_unref with ttm_bo_put

2019-01-25 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL.

[PATCH v2 5/7] drm/vmwgfx: Replace ttm_bo_unref with ttm_bo_put

2019-01-25 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL.

[PATCH v2 7/7] drm/ttm: Remove ttm_bo_reference and ttm_bo_unref

2019-01-25 Thread Thomas Zimmermann
Both functions are obsolete and all calls have been replaced by ttm_bo_get and ttm_bo_put. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ttm/ttm_bo.c | 9 - include/drm/ttm/ttm_bo_api.h | 28 2 files changed, 37 deletions(-) diff --git

[PATCH v2 3/7] drm/nouveau: Replace ttm_bo_unref with ttm_bo_put

2019-01-25 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL.

[PATCH v2 4/7] drm/vmwgfx: Replace ttm_bo_reference with ttm_bo_get

2019-01-25 Thread Thomas Zimmermann
The function ttm_bo_get acquires a reference on a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 5 +++--

[PATCH v2 2/7] drm/nouveau: Replace ttm_bo_reference with ttm_bo_get

2019-01-25 Thread Thomas Zimmermann
The function ttm_bo_get acquires a reference on a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/nouveau/nouveau_bo.h | 7 ++- 1 file changed, 6

Re: [PATCH] drm/panel: simple: fix AUO g185han01 horizontal blanking

2019-01-25 Thread Philipp Zabel
On Mon, 2018-11-12 at 18:41 +0100, Lucas Stach wrote: > The horizontal blanking periods are too short, as the values are > specified for a single LVDS channel. Since this panel is dual LVDS > they need to be doubled. With this change the panel reaches its > nominal vrefresh rate of 60Fps, instead

Re: [PATCH] drm: enable uncached DMA optimization for ARM and arm64

2019-01-25 Thread Christian König
Am 25.01.19 um 09:43 schrieb Ard Biesheuvel: On Thu, 24 Jan 2019 at 15:01, Alex Deucher wrote: On Thu, Jan 24, 2019 at 9:00 AM Ard Biesheuvel wrote: On Thu, 24 Jan 2019 at 13:31, Koenig, Christian wrote: Am 24.01.19 um 13:06 schrieb Ard Biesheuvel: The DRM driver stack is designed to work

Re: [PATCH 0/5] tda998x updates

2019-01-25 Thread Brian Starkey
Hi Russell, On Fri, Jan 25, 2019 at 09:40:38AM +, Russell King - ARM Linux admin wrote: > Hi, > > This series adds support for programming the SPD and vendor infoframes. > > It also adds support for pixel repeated modes - we were not rejecting > these modes, but we also didn't have the

Re: [PATCH 01/26] drm/irq: Don't check for DRIVER_HAVE_IRQ in drm_irq_(un)install

2019-01-25 Thread Emil Velikov
On Thu, 24 Jan 2019 at 16:58, Daniel Vetter wrote: > > If a non-legacy driver calls these it's valid to assume there is > interrupt support. The flag is really only needed for legacy drivers. ... legacy drivers which issue the IRQ via the DRM_IOCTL_CONTROL legacy IOCTL. At a later stage, we

[PATCH v2] i2c: of: Try to find an I2C adapter matching the parent

2019-01-25 Thread Thierry Reding
From: Thierry Reding If an I2C adapter doesn't match the provided device tree node, also try matching the parent's device tree node. This allows finding an adapter based on the device node of the parent device that was used to register it. This fixes a regression on Tegra124-based Chromebooks

Re: [PATCH libdrm 2/2] xf85drm: de-duplicate drmParse{Platform.Host1x}{Bus, Device}Info

2019-01-25 Thread Eric Engestrom
On Wednesday, 2019-01-23 10:45:18 +, Emil Velikov wrote: > From: Emil Velikov > > The functions are virtually identical, fold them up. > > Signed-off-by: Emil Velikov Assuming patch 1 is OK, and `foo` gets renamed to something better: Reviewed-by: Eric Engestrom I don't know enough to

Re: [PATCH v3 2/4] drm/vc4: Report underrun errors

2019-01-25 Thread Paul Kocialkowski
Hi Eric, On Wed, 2019-01-23 at 10:47 -0800, Eric Anholt wrote: > Paul Kocialkowski writes: > > > From: Boris Brezillon > > > > The DRM framework provides a generic way to report underrun errors. > > Let's implement the necessary hooks to support it in the VC4 driver. > > > > Signed-off-by:

Re: [PATCH v3 1/4] drm/vc4: Wait for display list synchronization when completing commit

2019-01-25 Thread Paul Kocialkowski
Hi, On Wed, 2019-01-23 at 10:34 -0800, Eric Anholt wrote: > Paul Kocialkowski writes: > > > During an atomic commit, the HVS is configured with a display list > > for the channel matching the associated CRTC. The Pixel Valve (CRTC) > > and encoder are also configured for the new setup at that

Re: [Intel-gfx] [PATCH 03/26] drm/irq: Ditch DRIVER_IRQ_SHARED

2019-01-25 Thread Emil Velikov
On Thu, 24 Jan 2019 at 16:58, Daniel Vetter wrote: > > This is only used by drm_irq_install(), which is an optional helper. > And the right choice is to set it for all pci devices, and not for > everything else. > Can you please add some information (or reference) why it's the right choice?

Re: [PATCH] drm/rockchip: rgb: update SPDX license identifier

2019-01-25 Thread Heiko Stuebner
Am Mittwoch, 23. Januar 2019, 11:14:39 CET schrieb Sandy Huang: > update SPDX License Identifier from GPL-2.0+ to GPL-2.0 > and drop some GPL text. > > Signed-off-by: Sandy Huang I've added Fixes, Cc-stable and Reported-by (for Thomas) tags and applied it to drm-misc-fixes Thanks Heiko

Re: [PATCH] drm/vkms: Fix flush_work() without INIT_WORK().

2019-01-25 Thread Sean Paul
On Sat, Jan 19, 2019 at 01:43:43AM +0900, Tetsuo Handa wrote: > syzbot is hitting a lockdep warning [1] because flush_work() is called > without INIT_WORK() after kzalloc() at vkms_atomic_crtc_reset(). > > Commit 6c234fe37c57627a ("drm/vkms: Implement CRC debugfs API") added > INIT_WORK() to only

[PATCH] drm/fb-helper: generic: Fix drm_fbdev_client_restore()

2019-01-25 Thread Noralf Trønnes
If fbdev setup has failed, lastclose will give a NULL pointer deref: [ 77.794295] [drm:drm_lastclose] [ 77.794414] [drm:drm_lastclose] driver lastclose completed [ 77.794660] Unable to handle kernel NULL pointer dereference at virtual address 0014 [ 77.809460] pgd = b376b71b [

Re: [PATCH 26/26] drm/: Don't set FBINFO_(FLAG_)DEFAULT

2019-01-25 Thread Thierry Reding
On Thu, Jan 24, 2019 at 05:58:31PM +0100, Daniel Vetter wrote: > It's 0. > > Signed-off-by: Daniel Vetter > Cc: Inki Dae > Cc: Joonyoung Shim > Cc: Seung-Woo Kim > Cc: Kyungmin Park > Cc: Kukjin Kim > Cc: Krzysztof Kozlowski > Cc: Patrik Jakobsson > Cc: Ben Skeggs > Cc: Sandy Huang >

Re: [PATCH 22/26] drm/qxl: Use drm_fb_helper_fill_info

2019-01-25 Thread Thierry Reding
On Thu, Jan 24, 2019 at 05:58:27PM +0100, Daniel Vetter wrote: > Another driver that didn't set fbinfo->fix.id before. > > Signed-off-by: Daniel Vetter > Cc: Thierry Reding > Cc: Jonathan Hunter > Cc: linux-te...@vger.kernel.org > --- > drivers/gpu/drm/tegra/fb.c | 4 +--- > 1 file changed, 1

[PATCH 2/2] drm/vmwgfx: Use ttm_dma_page_alloc_enabled

2019-01-25 Thread Thomas Hellstrom
Instead of guessing whether TTM has the dma page allocator enabled, ask TTM. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

[PATCH 1/2] drm/ttm: Implement and export ttm_dma_page_alloc_enabled

2019-01-25 Thread Thomas Hellstrom
The vmwgfx driver needs to know whether the dma page pool is enabled to determine whether to refuse loading if the dma mode logic requests coherent memory from the dma page pool. Cc: "Koenig, Christian" Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 11

Re: [Intel-gfx] [PATCH 26/26] drm/: Don't set FBINFO_(FLAG_)DEFAULT

2019-01-25 Thread Emil Velikov
On Thu, 24 Jan 2019 at 17:00, Daniel Vetter wrote: > > It's 0. > I'd add a bit more information here. Feel free to reuse as much/little of the following: Both macros evaluate to 0. At the same time flag is already set to zero since the struct is kzalloc'd in framebuffer_alloc(). As called by

Re: [PATCH v3 10/23] drm/qxl: move qxl_primary_apply_cursor to correct place

2019-01-25 Thread Noralf Trønnes
Den 18.01.2019 13.20, skrev Gerd Hoffmann: > The cursor must be set again after creating the primary surface. > Also drop the error message. > > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/qxl/qxl_display.c | 10 +++--- > 1 file changed, 3 insertions(+), 7 deletions(-) > > diff

[Bug 107978] [amdgpu] Switching to tty fails with DisplayPort 1.2 monitor going to sleep (REG_WAIT timeout / dce110_stream_encoder_dp_blank)

2019-01-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107978 --- Comment #50 from Shmerl --- I think I know what happened. When I was rebooting, I still had the older kernel running (without the fix), to actually test the new one, so probably the bug still kicked in after reboot. I now rebooted a few

Re: [PATCH v3 17/23] drm/qxl: use generic fbdev emulation

2019-01-25 Thread Noralf Trønnes
Den 18.01.2019 13.20, skrev Gerd Hoffmann: > Switch qxl over to the new generic fbdev emulation. > > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/qxl/qxl_display.c | 7 --- > drivers/gpu/drm/qxl/qxl_drv.c | 2 ++ > 2 files changed, 2 insertions(+), 7 deletions(-) > > diff

Re: [PATCH v3 18/23] drm/qxl: remove dead qxl fbdev emulation code

2019-01-25 Thread Noralf Trønnes
Den 18.01.2019 13.20, skrev Gerd Hoffmann: > Lovely diffstat, thanks to the new generic fbdev emulation. > > drm/qxl/Makefile |2 > drm/qxl/qxl_draw.c | 232 > drm/qxl/qxl_drv.h | 21 --- > drm/qxl/qxl_fb.c | 300 >

[Bug 108854] [polaris11] - GPU Hang - ring gfx timeout

2019-01-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108854 Alex Deucher changed: What|Removed |Added Component|DRM/AMDgpu |Drivers/Gallium/radeonsi

Re: [PATCH v3 19/23] drm/qxl: implement qxl_gem_prime_(un)pin

2019-01-25 Thread Noralf Trønnes
Den 18.01.2019 13.20, skrev Gerd Hoffmann: > Signed-off-by: Gerd Hoffmann > --- Acked-by: Noralf Trønnes ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 21/23] drm/qxl: add qxl_add_mode helper function

2019-01-25 Thread Noralf Trønnes
Den 18.01.2019 13.20, skrev Gerd Hoffmann: > Add a helper function to add custom video modes to a connector. > > Signed-off-by: Gerd Hoffmann > --- Acked-by: Noralf Trønnes ___ dri-devel mailing list dri-devel@lists.freedesktop.org

Re: [PATCH v3 04/23] drm/qxl: change the way slot is detected

2019-01-25 Thread Noralf Trønnes
Den 18.01.2019 13.20, skrev Gerd Hoffmann: > From: Frediano Ziglio > > Instead of relaying on surface type use the actual placement. > This allow to have different placement for a single type of > surface. > > Signed-off-by: Frediano Ziglio > > [ kraxel: rebased, adapted to upstream changes

Re: [PATCH v6 14/22] dt-bindings: sun6i-dsi: Add A64 DSI compatible (w/ A31 fallback)

2019-01-25 Thread Maxime Ripard
On Fri, Jan 25, 2019 at 01:28:52AM +0530, Jagan Teki wrote: > The MIPI DSI controller in Allwinner A64 is similar to A33. > > But unlike A33, A64 doesn't have DSI_SCLK gating which eventually > set the mod clock rate for the controller. > > So, use the DSI_DPHY gating for the similar purpose of

Re: [PATCH v6 15/22] dt-bindings: sun6i-dsi: Add A64 DPHY compatible (w/ A31 fallback)

2019-01-25 Thread Maxime Ripard
On Fri, Jan 25, 2019 at 01:28:53AM +0530, Jagan Teki wrote: > The MIPI DSI PHY controller on Allwinner A64 is similar > on the one on A31. > > Add A64 compatible and append A31 compatible as fallback. > > Signed-off-by: Jagan Teki > Reviewed-by: Rob Herring > --- >

Re: [PATCH 2/2] phy: Add driver for mixel dphy

2019-01-25 Thread Sam Ravnborg
Hi Guido. Patch looks good but a few comments below. Sam On Fri, Jan 25, 2019 at 11:14:46AM +0100, Guido Günther wrote: > This adds support for the Mixel DPHY as found on i.MX8 CPUs but since > this is an IP core it will likely be found on others in the future. So > instead of adding

[Bug 108854] [polaris11] - GPU Hang - ring gfx timeout

2019-01-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108854 --- Comment #11 from Alex Deucher --- The reset was actually successful. The problem is, userspace components need to be aware of the reset and recreate their contexts. As a workaround, you can kill the problematic app or restart X. -- You

Re: [PATCH v3 20/23] drm/qxl: add mode/framebuffer check functions

2019-01-25 Thread Noralf Trønnes
Den 18.01.2019 13.20, skrev Gerd Hoffmann: > Add a helper functions to check video modes. Also add a helper to check > framebuffer buffer objects, using the former for consistency. That way > we should not fail in qxl_primary_atomic_check() because video modes > which are too big will not be

Re: [PATCH v3 2/4] drm/vc4: Report underrun errors

2019-01-25 Thread Eric Anholt
Paul Kocialkowski writes: > Hi Eric, > > On Wed, 2019-01-23 at 10:47 -0800, Eric Anholt wrote: >> Paul Kocialkowski writes: >> > +void vc4_hvs_mask_underrun(struct drm_device *dev) >> > +{ >> > + struct vc4_dev *vc4 = to_vc4_dev(dev); >> > + u32 dispctrl = HVS_READ(SCALER_DISPCTRL); >> > + >>

Re: [PATCH] drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines

2019-01-25 Thread Wentland, Harry
On 2019-01-24 7:52 p.m., ndesaulni...@google.com wrote: > arch/x86/Makefile disables SSE and SSE2 for the whole kernel. The > AMDGPU drivers modified in this patch re-enable SSE but not SSE2. Turn > on SSE2 to support emitting double precision floating point instructions > rather than calls to

Re: [PATCH v6 12/22] dt-bindings: sun6i-dsi: Add VCC-DSI supply property

2019-01-25 Thread Maxime Ripard
On Fri, Jan 25, 2019 at 01:28:50AM +0530, Jagan Teki wrote: > Most of the Allwinner MIPI DSI controllers are supply with > VCC-DSI pin. which need to supply for some of the boards to > trigger the power. > > So, document the supply property so-that the required board > can eable it via device

Re: [PATCH v3 06/23] drm/qxl: use separate offset spaces for the two slots / ttm memory types.

2019-01-25 Thread Noralf Trønnes
Den 18.01.2019 13.20, skrev Gerd Hoffmann: > Without that ttm offsets are not unique, they can refer to objects > in both VRAM and PRIV memory (aka main and surfaces slot). > > One of those "why things didn't blow up without this" moments. > Probably offset conflicts are rare enough by pure

Re: [PATCH] drm/vkms: Fix flush_work() without INIT_WORK().

2019-01-25 Thread Daniel Vetter
On Fri, Jan 25, 2019 at 09:46:15AM -0500, Sean Paul wrote: > On Sat, Jan 19, 2019 at 01:43:43AM +0900, Tetsuo Handa wrote: > > syzbot is hitting a lockdep warning [1] because flush_work() is called > > without INIT_WORK() after kzalloc() at vkms_atomic_crtc_reset(). > > > > Commit

Re: [Intel-gfx] [PATCH 03/26] drm/irq: Ditch DRIVER_IRQ_SHARED

2019-01-25 Thread Daniel Vetter
On Fri, Jan 25, 2019 at 02:46:55PM +, Emil Velikov wrote: > On Thu, 24 Jan 2019 at 16:58, Daniel Vetter wrote: > > > > This is only used by drm_irq_install(), which is an optional helper. > > And the right choice is to set it for all pci devices, and not for > > everything else. > > > Can you

  1   2   >