Re: [PATCH v2 0/3] ast, mgag200: Map console BO while it's being displayed

2019-09-05 Thread Gerd Hoffmann
Hi, > - imo we should fix this by using the io_mapping stuff, that avoids > the overhead of repeated pat checks for map/unmap. Another idea: IIRC ttm has a move_notify callback. So we could simply keep mappings active even when the refcount goes down to zero. Then do the actual unmap either

[PATCH 1/8] drm/ttm: turn ttm_bo_device.vma_manager into a pointer

2019-09-05 Thread Gerd Hoffmann
Rename the embedded struct vma_offset_manager, new name is _vma_manager. ttm_bo_device.vma_manager changed to a pointer. The ttm_bo_device_init() function gets an additional vma_manager argument which allows to initialize ttm with a different vma manager. When passing NULL the embedded _vma_manage

[PATCH 7/8] drm/vmwgfx: switch to own vma manager

2019-09-05 Thread Gerd Hoffmann
Add struct drm_vma_offset_manager to vma_private, initialize it and pass it to ttm_bo_device_init(). With this in place the last user of ttm's embedded vma offset manager is gone and we can remove it (in a separate patch). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 1

[PATCH 6/8] drm/qxl: switch to gem vma offset manager

2019-09-05 Thread Gerd Hoffmann
Pass gem vma_offset_manager to ttm_bo_device_init(), so ttm uses it instead of its own embedded struct. This makes some gem functions (specifically drm_gem_object_lookup) work on ttm objects. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_ttm.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 5/8] drm/amdgpu: switch to gem vma offset manager

2019-09-05 Thread Gerd Hoffmann
Pass gem vma_offset_manager to ttm_bo_device_init(), so ttm uses it instead of its own embedded struct. This makes some gem functions (specifically drm_gem_object_lookup) work on ttm objects. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- 1 file changed, 1 inse

[PATCH 0/8] drm/ttm: remove embedded vma_manager from ttm_bo_device

2019-09-05 Thread Gerd Hoffmann
Gerd Hoffmann (8): drm/ttm: turn ttm_bo_device.vma_manager into a pointer drm/nouveau: switch to gem vma offset manager drm/vram: switch to gem vma offset manager drm/radeon: switch to gem vma offset manager drm/amdgpu: switch to gem vma offset manager drm/qxl: switch to gem vma offse

[PATCH 8/8] drm/ttm: remove embedded vma_offset_manager

2019-09-05 Thread Gerd Hoffmann
No users left. Drivers either setup vma_offset_manager themself (vmwgfx) or pass the gem vma_offset_manager to ttm_bo_device_init (all other drivers). Signed-off-by: Gerd Hoffmann --- include/drm/ttm/ttm_bo_driver.h | 4 +--- drivers/gpu/drm/ttm/ttm_bo.c| 9 ++--- 2 files changed, 3 ins

[PATCH 3/8] drm/vram: switch to gem vma offset manager

2019-09-05 Thread Gerd Hoffmann
Pass gem vma_offset_manager to ttm_bo_device_init(), so ttm uses it instead of its own embedded struct. This makes some gem functions (specifically drm_gem_object_lookup) work on ttm objects. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/drm_vram_mm_helper.c | 2 +- 1 file changed, 1 inserti

[PATCH 4/8] drm/radeon: switch to gem vma offset manager

2019-09-05 Thread Gerd Hoffmann
Pass gem vma_offset_manager to ttm_bo_device_init(), so ttm uses it instead of its own embedded struct. This makes some gem functions (specifically drm_gem_object_lookup) work on ttm objects. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- 1 file changed, 1 insertio

[PATCH 2/8] drm/nouveau: switch to gem vma offset manager

2019-09-05 Thread Gerd Hoffmann
Pass gem vma_offset_manager to ttm_bo_device_init(), so ttm uses it instead of its own embedded struct. This makes some gem functions (specifically drm_gem_object_lookup) work on ttm objects. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +- 1 file changed, 1 insert

[PATCH] drm/amdgpu: Delete an unnecessary check before two function calls

2019-09-05 Thread Markus Elfring
From: Markus Elfring Date: Wed, 4 Sep 2019 12:30:23 +0200 The functions “debugfs_remove” and “kfree” test whether their argument is NULL and then return immediately. Thus the tests around the shown calls are not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Ma

[PATCH -next] fbdev: s3c-fb: use devm_platform_ioremap_resource() to simplify code

2019-09-05 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/video/fbdev/s3c-fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/s3c-fb.c b/drivers/video/

Re: [PATCH v18 15/15] selftests, arm64: add a selftest for passing tagged pointers to kernel

2019-09-05 Thread Andrey Konovalov
On Wed, Sep 4, 2019 at 6:22 PM Cristian Marussi wrote: > > Hi Andrey ! > > On 04/09/2019 15:52, Andrey Konovalov wrote: > > On Fri, Aug 23, 2019 at 7:49 PM Cristian Marussi > > wrote: > >> > >> > >> Hi > >> > >> On 23/08/2019 18:16, Andrey Konovalov wrote: > >>> On Fri, Aug 23, 2019 at 3:56 PM Cr

[PATCH] drm/ttm: let ttm_bo_wait timeout be configurable

2019-09-05 Thread Lepton Wu
When running dEQP against virgl driver, it turns out the default 15 seconds timeout for ttm_bo_wait is not big enough for GLES31.functional.ssbo.layout.random.nested_structs_arrays_instance_arrays.22 Change it to a configurable value so we can tune it before virgl performance gets improved. Signed

Re: [BACKPORT 4.14.y 1/8] drm/i915/fbdev: Actually configure untiled displays

2019-09-05 Thread Baolin Wang
On Thu, 5 Sep 2019 at 01:25, Greg KH wrote: > > On Tue, Sep 03, 2019 at 02:55:26PM +0800, Baolin Wang wrote: > > From: Chris Wilson > > > > If we skipped all the connectors that were not part of a tile, we would > > leave conn_seq=0 and conn_configured=0, convincing ourselves that we > > had stag

Re: drm/amdgpu: Delete an unnecessary check before two function calls

2019-09-05 Thread Markus Elfring
> The functions “debugfs_remove” and “kfree” test whether their argument > is NULL and then return immediately. > Thus the tests around the shown calls are not needed. > > This issue was detected by using the Coccinelle software. I suggest to take another look at a similar patch. drm/amdgpu: remo

[PATCH v2 3/3] drm/edid: no CEA v3 extension is not an error

2019-09-05 Thread Jean Delvare
It is fine for displays without audio functionality to not implement CEA v3 extension in their EDID. Do not return an error in that case, instead return 0 as if there was a CEA v3 extension with no audio or speaker block. This fixes half of bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi

Re: linux-next: Tree for Sep 4 (amd/display/)

2019-09-05 Thread Randy Dunlap
On 9/4/19 6:34 AM, Stephen Rothwell wrote: > Hi all, > > News: this will be the last linux-next I will release until Sept 30. > > Changes since 20190903: > on x86_64: In file included from ../drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c:77:0: ../drivers/gpu/dr

RE: [EXT] Re: [v2 1/3] drm/arm/mali-dp: Add display QoS interface configuration for Mali DP500

2019-09-05 Thread Wen He
> -Original Message- > From: Liviu Dudau > Sent: 2019年9月5日 0:13 > To: Wen He > Cc: dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel.org; > brian.star...@arm.com; airl...@linux.ie; dan...@ffwll.ch; Leo Li > > Subject: Re: [EXT] Re: [v2 1/3] drm/arm/mali-dp: Add display QoS inte

[PATCH v2 2/3] drm/radeon: be quiet when no SAD block is found

2019-09-05 Thread Jean Delvare
It is fine for displays without audio functionality to not provide any SAD block in their EDID. Do not log an error in that case, just return quietly. Inspired by a similar fix to the amdgpu driver in the context of bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=107825 Signed-off-by

Re: [PATCH v18 15/15] selftests, arm64: add a selftest for passing tagged pointers to kernel

2019-09-05 Thread Andrey Konovalov
On Fri, Aug 23, 2019 at 7:49 PM Cristian Marussi wrote: > > > Hi > > On 23/08/2019 18:16, Andrey Konovalov wrote: > > On Fri, Aug 23, 2019 at 3:56 PM Cristian Marussi > > wrote: > >> > >> Hi Andrey > >> > >> On 24/06/2019 15:33, Andrey Konovalov wrote: > >>> This patch is a part of a series that

[PATCH v2 1/3] drm/amd: be quiet when no SAD block is found

2019-09-05 Thread Jean Delvare
It is fine for displays without audio functionality to not provide any SAD block in their EDID. Do not log an error in that case, just return quietly. This fixes half of bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=107825 Signed-off-by: Jean Delvare Cc: Alex Deucher Cc: "Christi

Re: [PATCH v2 0/3] ast, mgag200: Map console BO while it's being displayed

2019-09-05 Thread Davidlohr Bueso
On Wed, 04 Sep 2019, Daniel Vetter wrote: I'm also not sure whether we have a real problem here, it's just debug noise that we're fighting here? It is non stop debug noise as the memory range in question is being added + deleted over and over. I doubt we want to be burning cycles like this. Th

Re: Xorg indefinitely hangs in kernelspace

2019-09-05 Thread Gerd Hoffmann
On Tue, Aug 06, 2019 at 09:00:10PM +0300, Jaak Ristioja wrote: > Hello! > > I'm writing to report a crash in the QXL / DRM code in the Linux kernel. > I originally filed the issue on LaunchPad and more details can be found > there, although I doubt whether these details are useful. Any change wit

Re: [BACKPORT 4.14.y 1/8] drm/i915/fbdev: Actually configure untiled displays

2019-09-05 Thread Baolin Wang
On Wed, 4 Sep 2019 at 21:19, Jani Nikula wrote: > > On Tue, 03 Sep 2019, Baolin Wang wrote: > > From: Chris Wilson > > > > If we skipped all the connectors that were not part of a tile, we would > > leave conn_seq=0 and conn_configured=0, convincing ourselves that we > > had stagnated in our con

[PATCH v2 0/3] drm/edid: don't log errors on absent or old CEA SAD blocks

2019-09-05 Thread Jean Delvare
Hi all, This is my attempt to fix bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=107825 [PATCH 1/3] drm/amd: be quiet when no SAD block is found [PATCH 2/3] drm/radeon: be quiet when no SAD block is found [PATCH 3/3] drm/edid: no CEA extension is not an error Changes since v1: * F

Re: [PATCH v18 15/15] selftests, arm64: add a selftest for passing tagged pointers to kernel

2019-09-05 Thread Cristian Marussi
Hi Andrey ! On 04/09/2019 15:52, Andrey Konovalov wrote: > On Fri, Aug 23, 2019 at 7:49 PM Cristian Marussi > wrote: >> >> >> Hi >> >> On 23/08/2019 18:16, Andrey Konovalov wrote: >>> On Fri, Aug 23, 2019 at 3:56 PM Cristian Marussi >>> wrote: Hi Andrey On 24/06/2019 15:33, A

Re: linux-next: manual merge of the drm tree with the kbuild tree

2019-09-05 Thread Nick Desaulniers
On Tue, Sep 3, 2019 at 11:46 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the drm tree got conflicts in: > > drivers/gpu/drm/amd/display/dc/calcs/Makefile > drivers/gpu/drm/amd/display/dc/dml/Makefile > drivers/gpu/drm/amd/display/dc/dsc/Makefile > > between commit:

Re: [PATCH v5, 32/32] drm/mediatek: add support for mediatek SOC MT8183

2019-09-05 Thread CK Hu
Hi, Yongqiang: On Thu, 2019-08-29 at 22:50 +0800, yongqiang@mediatek.com wrote: > From: Yongqiang Niu > > This patch add support for mediatek SOC MT8183 > 1.ovl_2l share driver with ovl > 2.rdma1 share drive with rdma0, but fifo size is different > 3.add mt8183 mutex private data, and mmsys

Re: [PATCH v2 0/3] ast, mgag200: Map console BO while it's being displayed

2019-09-05 Thread Daniel Vetter
On Thu, Sep 5, 2019 at 9:01 AM Gerd Hoffmann wrote: > > Hi, > > > - imo we should fix this by using the io_mapping stuff, that avoids > > the overhead of repeated pat checks for map/unmap. > > Another idea: IIRC ttm has a move_notify callback. So we could simply > keep mappings active even whe

Re: gnome-shell stuck because of amdgpu driver [5.3 RC5]

2019-09-05 Thread Daniel Vetter
On Thu, Sep 5, 2019 at 12:27 AM Mikhail Gavrilov wrote: > > On Wed, 4 Sep 2019 at 13:37, Daniel Vetter wrote: > > > > Extend your backtrac warning slightly like > > > > WARN(r, "we're stuck on fence %pS\n", fence->ops); > > > > Also adding Harry and Alex, I'm not really working on amdgpu

Re: [PATCH v2 0/3] ast, mgag200: Map console BO while it's being displayed

2019-09-05 Thread Thomas Zimmermann
Hi Am 05.09.19 um 09:56 schrieb Daniel Vetter: > On Thu, Sep 5, 2019 at 9:01 AM Gerd Hoffmann wrote: >> >> Hi, >> >>> - imo we should fix this by using the io_mapping stuff, that avoids >>> the overhead of repeated pat checks for map/unmap. >> >> Another idea: IIRC ttm has a move_notify callba

Re: [PATCH] drm/panfrost: Fix regulator_get_optional() misuse

2019-09-05 Thread Rob Herring
+Steven On Wed, Sep 4, 2019 at 1:30 PM Mark Brown wrote: > > The panfrost driver requests a supply using regulator_get_optional() > but both the name of the supply and the usage pattern suggest that it is > being used for the main power for the device and is not at all optional > for the device f

[PATCH v3] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-09-05 Thread Wei Hu
Without deferred IO support, hyperv_fb driver informs the host to refresh the entire guest frame buffer at fixed rate, e.g. at 20Hz, no matter there is screen update or not. This patch supports deferred IO for screens in graphics mode and also enables the frame buffer on-demand refresh. The highest

Re: [PATCH 7/8] drm/vmwgfx: switch to own vma manager

2019-09-05 Thread Thomas Hellstrom
On Thu, 2019-09-05 at 09:05 +0200, Gerd Hoffmann wrote: > Add struct drm_vma_offset_manager to vma_private, initialize it and > pass it to ttm_bo_device_init(). > > With this in place the last user of ttm's embedded vma offset manager > is gone and we can remove it (in a separate patch). > > Sign

Re: [PATCH AUTOSEL 4.19 147/167] drm/panel: Add support for Armadeus ST0700 Adapt

2019-09-05 Thread Rob Herring
On Tue, Sep 3, 2019 at 5:31 PM Sasha Levin wrote: > > From: Sébastien Szymanski > > [ Upstream commit c479450f61c7f1f248c9a54aedacd2a6ca521ff8 ] > > This patch adds support for the Armadeus ST0700 Adapt. It comes with a > Santek ST0700I5Y-RBSLW 7.0" WVGA (800x480) TFT and an adapter board so > th

Re: [PATCH AUTOSEL 4.19 147/167] drm/panel: Add support for Armadeus ST0700 Adapt

2019-09-05 Thread Greg KH
On Thu, Sep 05, 2019 at 09:55:58AM +0100, Rob Herring wrote: > On Tue, Sep 3, 2019 at 5:31 PM Sasha Levin wrote: > > > > From: Sébastien Szymanski > > > > [ Upstream commit c479450f61c7f1f248c9a54aedacd2a6ca521ff8 ] > > > > This patch adds support for the Armadeus ST0700 Adapt. It comes with a >

[PATCH v4] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host

2019-09-05 Thread Wei Hu
Beginning from Windows 10 RS5+, VM screen resolution is obtained from host. The "video=hyperv_fb" boot time option is not needed, but still can be used to overwrite what the host specifies. The VM resolution on the host could be set by executing the powershell "set-vmvideo" command. Signed-off-by:

Re: [PATCH] drm/nouveau: add missing single_release()

2019-09-05 Thread Karol Herbst
Reviewed-by: Karol Herbst On Thu, Sep 5, 2019 at 9:14 AM Wei Yongjun wrote: > > When using single_open() for opening, single_release() should be > used, otherwise there is a memory leak. > > This is detected by Coccinelle semantic patch. > > Fixes: 6e9fc177399f ("drm/nouveau/debugfs: add copy of

Re: [PATCH AUTOSEL 4.19 147/167] drm/panel: Add support for Armadeus ST0700 Adapt

2019-09-05 Thread Rob Herring
On Thu, Sep 5, 2019 at 10:03 AM Greg KH wrote: > > On Thu, Sep 05, 2019 at 09:55:58AM +0100, Rob Herring wrote: > > On Tue, Sep 3, 2019 at 5:31 PM Sasha Levin wrote: > > > > > > From: Sébastien Szymanski > > > > > > [ Upstream commit c479450f61c7f1f248c9a54aedacd2a6ca521ff8 ] > > > > > > This pa

Re: [PATCH 5/7] drm/omap: Enable COLOR_ENCODING and COLOR_RANGE properties for planes

2019-09-05 Thread Jyri Sarha
On 03/09/2019 18:32, Laurent Pinchart wrote: > Hi Tomi, > > Thank you for the patch. > > On Mon, Sep 02, 2019 at 03:53:57PM +0300, Tomi Valkeinen wrote: >> From: Jyri Sarha >> >> Adds support for COLOR_ENCODING and COLOR_RANGE properties to >> omap_plane.c and dispc.c. The supported encodings an

Re: [PATCH v2 0/3] ast, mgag200: Map console BO while it's being displayed

2019-09-05 Thread Gerd Hoffmann
On Thu, Sep 05, 2019 at 10:19:40AM +0200, Thomas Zimmermann wrote: > Hi > > Am 05.09.19 um 09:56 schrieb Daniel Vetter: > > On Thu, Sep 5, 2019 at 9:01 AM Gerd Hoffmann wrote: > >> > >> Hi, > >> > >>> - imo we should fix this by using the io_mapping stuff, that avoids > >>> the overhead of repe

Re: [PATCH 7/8] drm/vmwgfx: switch to own vma manager

2019-09-05 Thread kra...@redhat.com
On Thu, Sep 05, 2019 at 08:31:34AM +, Thomas Hellstrom wrote: > On Thu, 2019-09-05 at 09:05 +0200, Gerd Hoffmann wrote: > > Add struct drm_vma_offset_manager to vma_private, initialize it and > > pass it to ttm_bo_device_init(). > > > > With this in place the last user of ttm's embedded vma of

Re: [PATCH] drm/panfrost: Fix regulator_get_optional() misuse

2019-09-05 Thread Steven Price
On 05/09/2019 09:21, Rob Herring wrote: > +Steven > > On Wed, Sep 4, 2019 at 1:30 PM Mark Brown wrote: >> >> The panfrost driver requests a supply using regulator_get_optional() >> but both the name of the supply and the usage pattern suggest that it is >> being used for the main power for the de

[PATCH v2] drm: bridge/dw_hdmi: add audio sample channel status setting

2019-09-05 Thread Cheng-Yi Chiang
From: Yakir Yang When transmitting IEC60985 linear PCM audio, we configure the Aduio Sample Channel Status information of all the channel status bits in the IEC60958 frame. Refer to 60958-3 page 10 for frequency, original frequency, and wordlength setting. This fix the issue that audio does not

Re: [PATCH 5/7] drm/omap: Enable COLOR_ENCODING and COLOR_RANGE properties for planes

2019-09-05 Thread Laurent Pinchart
Hi Jyri, On Thu, Sep 05, 2019 at 12:24:37PM +0300, Jyri Sarha wrote: > On 03/09/2019 18:32, Laurent Pinchart wrote: > > On Mon, Sep 02, 2019 at 03:53:57PM +0300, Tomi Valkeinen wrote: > >> From: Jyri Sarha > >> > >> Adds support for COLOR_ENCODING and COLOR_RANGE properties to > >> omap_plane.c a

Re: [PATCH v2] drm: bridge/dw_hdmi: add audio sample channel status setting

2019-09-05 Thread Cheng-yi Chiang
Sorry for the noise. Removed original author y...@rock-chips.com from the thread because that mail is obsolete. Yakir is now using kuankua...@gmail.com. On Thu, Sep 5, 2019 at 5:43 PM Cheng-Yi Chiang wrote: > > From: Yakir Yang > > When transmitting IEC60985 linear PCM audio, we configure the >

Re: [PATCH v3 08/14] drm: rcar-du: Add support for CMM

2019-09-05 Thread Jacopo Mondi
Hi Laurent, On Tue, Aug 27, 2019 at 07:34:23PM +0300, Laurent Pinchart wrote: > Hi Laurent, > > On Tue, Aug 27, 2019 at 04:56:19PM +0200, Jacopo Mondi wrote: > > On Tue, Aug 27, 2019 at 03:24:22AM +0300, Laurent Pinchart wrote: > > > On Sun, Aug 25, 2019 at 03:51:48PM +0200, Jacopo Mondi wrote: >

Re: [PATCH 4/7] drm/omap: Implement CTM property for CRTC using OVL managers CPR matrix

2019-09-05 Thread Jyri Sarha
On 05/09/2019 00:52, Laurent Pinchart wrote: >> static void omap_crtc_write_crtc_properties(struct drm_crtc *crtc) >> { >> struct omap_drm_private *priv = crtc->dev->dev_private; >> @@ -402,7 +428,16 @@ static void omap_crtc_write_crtc_properties(struct >> drm_crtc *

Re: [PATCH 4/7] drm/omap: Implement CTM property for CRTC using OVL managers CPR matrix

2019-09-05 Thread Laurent Pinchart
Hi Jyri, On Thu, Sep 05, 2019 at 01:00:51PM +0300, Jyri Sarha wrote: > On 05/09/2019 00:52, Laurent Pinchart wrote: > >> static void omap_crtc_write_crtc_properties(struct drm_crtc *crtc) > >> { > >>struct omap_drm_private *priv = crtc->dev->dev_private; > >> @@ -402,7 +4

Re: [LKP] [drm/mgag200] 90f479ae51: vm-scalability.median -18.8% regression

2019-09-05 Thread Daniel Vetter
On Thu, Sep 5, 2019 at 8:58 AM Feng Tang wrote: > > Hi Vetter, > > On Wed, Sep 04, 2019 at 01:20:29PM +0200, Daniel Vetter wrote: > > On Wed, Sep 4, 2019 at 1:15 PM Dave Airlie wrote: > > > > > > On Wed, 4 Sep 2019 at 19:17, Daniel Vetter wrote: > > > > > > > > On Wed, Sep 4, 2019 at 10:35 AM Fe

[PATCH v4 2/3] drm: Introduce change counter to drm_connector

2019-09-05 Thread Stanislav Lisovskiy
This counter will be used by drm_helper_probe_detect caller to determine if something else had changed except connection status, like for example edid. Hardware specific drivers are responsible for updating this counter when some change is detected to notify the drm part, which can trigger for exam

[PATCH v4 0/3] Send a hotplug when edid changes

2019-09-05 Thread Stanislav Lisovskiy
This series introduce to drm a way to determine if something else except connection_status had changed during probing, which can be used by other drivers as well. Another i915 specific part uses this approach to determine if edid had changed without changing the connection status and send a hotplug

[PATCH v4 3/3] drm/i915: Send hotplug event if edid had changed.

2019-09-05 Thread Stanislav Lisovskiy
Added edid checking to dp and hdmi edid setting functions, which are called from detect hooks. The result currently is propagated to calling layer using drm_connector->change_counter(proposed by Daniel Vetter). drm_helper_hpd_irq_event and intel_encoder_hotplug are currently both responsible for ch

[PATCH v4 1/3] drm: Add helper to compare edids.

2019-09-05 Thread Stanislav Lisovskiy
Many drivers would benefit from using drm helper to compare edid, rather than bothering with own implementation. v2: Added documentation for this function. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/drm_edid.c | 33 + include/drm/drm_edid.h | 9 +

Re: [PATCH] drm: damage_helper: Fix race checking plane->state->fb

2019-09-05 Thread Daniel Vetter
On Wed, Sep 4, 2019 at 10:29 PM Sean Paul wrote: > > From: Sean Paul > > Since the dirtyfb ioctl doesn't give us any hints as to which plane is > scanning out the fb it's marking as damaged, we need to loop through > planes to find it. > > Currently we just reach into plane state and check, but t

Re: [PATCH v2 0/4] Have TTM support SEV encryption with coherent memory

2019-09-05 Thread VMware
On 9/3/19 3:15 PM, Thomas Hellström (VMware) wrote: With SEV memory encryption and in some cases also with SME memory encryption, coherent memory is unencrypted. In those cases, TTM doesn't set up the correct page protection. Fix this by having the TTM coherent page allocator call into the platfo

Re: [LKP] [drm/mgag200] 90f479ae51: vm-scalability.median -18.8% regression

2019-09-05 Thread Feng Tang
On Thu, Sep 05, 2019 at 06:37:47PM +0800, Daniel Vetter wrote: > On Thu, Sep 5, 2019 at 8:58 AM Feng Tang wrote: > > > > Hi Vetter, > > > > On Wed, Sep 04, 2019 at 01:20:29PM +0200, Daniel Vetter wrote: > > > On Wed, Sep 4, 2019 at 1:15 PM Dave Airlie wrote: > > > > > > > > On Wed, 4 Sep 2019 at

[PATCH v5 0/3] Send a hotplug when edid changes

2019-09-05 Thread Stanislav Lisovskiy
This series introduce to drm a way to determine if something else except connection_status had changed during probing, which can be used by other drivers as well. Another i915 specific part uses this approach to determine if edid had changed without changing the connection status and send a hotplug

[PATCH v5 1/3] drm: Add helper to compare edids.

2019-09-05 Thread Stanislav Lisovskiy
Many drivers would benefit from using drm helper to compare edid, rather than bothering with own implementation. v2: Added documentation for this function. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/drm_edid.c | 33 + include/drm/drm_edid.h | 9 +

[PATCH v5 2/3] drm: Introduce change counter to drm_connector

2019-09-05 Thread Stanislav Lisovskiy
This counter will be used by drm_helper_probe_detect caller to determine if something else had changed except connection status, like for example edid. Hardware specific drivers are responsible for updating this counter when some change is detected to notify the drm part, which can trigger for exam

[PATCH v5 3/3] drm/i915: Send hotplug event if edid had changed.

2019-09-05 Thread Stanislav Lisovskiy
Added edid checking to dp and hdmi edid setting functions, which are called from detect hooks. The result currently is propagated to calling layer using drm_connector->change_counter(proposed by Daniel Vetter). drm_helper_hpd_irq_event and intel_encoder_hotplug are currently both responsible for ch

Re: [PATCH v3 14/14] drm: rcar-du: Force CMM enablement when resuming

2019-09-05 Thread Jacopo Mondi
Hi Laurent, On Tue, Aug 27, 2019 at 03:05:17AM +0300, Laurent Pinchart wrote: > Hi Jacopo, > > (Question for Daniel below) > > Thank you for the patch. > > On Sun, Aug 25, 2019 at 03:51:54PM +0200, Jacopo Mondi wrote: > > When resuming from system suspend, the DU driver is responsible for > > repr

Re: [PATCH 02/19] drm/atomic-helper: Make crtc helper funcs optional

2019-09-05 Thread Ville Syrjälä
On Thu, Sep 05, 2019 at 06:38:30AM +, Lisovskiy, Stanislav wrote: > On Mon, 2019-07-08 at 15:53 +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Allow drivers to call drm_atomic_helper_check_modeset() without > > having the crtc helper funcs specified. i915 doesn't need those > > a

Re: [PATCH v4 2/3] drm: Introduce change counter to drm_connector

2019-09-05 Thread Maarten Lankhorst
Op 05-09-2019 om 12:37 schreef Stanislav Lisovskiy: > This counter will be used by drm_helper_probe_detect caller to determine > if something else had changed except connection status, > like for example edid. Hardware specific drivers are responsible > for updating this counter when some change is

[Bug 109380] [CI][BAT] igt@kms_chamelium@*- warn/fail - Last errno: 113, No route to host

2019-09-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109380 --- Comment #8 from Arek Hiler --- Merged and fixed, issues not seen in 2 weekd :-) -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lists

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-09-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #29 from Marko Popovic --- (In reply to Mathieu Belanger from comment #27) > It did fix it for me too. (In reply to Pierre-Eric Pelloux-Prayer from comment #28) > Regarding sdma ring hangs: if you still have access to the affected m

[PATCH] drm/msm/adreno: Do not print error on "qcom, gpu-pwrlevels" absence

2019-09-05 Thread Fabio Estevam
Booting the adreno driver on a imx53 board leads to the following error message: adreno 3000.gpu: [drm:adreno_gpu_init] *ERROR* Could not find the GPU powerlevels As the "qcom,gpu-pwrlevels" property is optional and never present on i.MX5, turn the message into debug level instead. Signed-o

Re: [PATCH v3 08/14] drm: rcar-du: Add support for CMM

2019-09-05 Thread Laurent Pinchart
Hi Jacopo, On Thu, Sep 05, 2019 at 11:57:57AM +0200, Jacopo Mondi wrote: > On Tue, Aug 27, 2019 at 07:34:23PM +0300, Laurent Pinchart wrote: > > On Tue, Aug 27, 2019 at 04:56:19PM +0200, Jacopo Mondi wrote: > >> On Tue, Aug 27, 2019 at 03:24:22AM +0300, Laurent Pinchart wrote: > >>> On Sun, Aug 25

Re: [PATCH v4 2/3] drm: Introduce change counter to drm_connector

2019-09-05 Thread Lisovskiy, Stanislav
On Thu, 2019-09-05 at 13:01 +0200, Maarten Lankhorst wrote: > Op 05-09-2019 om 12:37 schreef Stanislav Lisovskiy: > > This counter will be used by drm_helper_probe_detect caller to > > determine > > if something else had changed except connection status, > > like for example edid. Hardware specific

Re: [PATCH v3 14/14] drm: rcar-du: Force CMM enablement when resuming

2019-09-05 Thread Laurent Pinchart
Hi Jacopo, On Thu, Sep 05, 2019 at 12:58:09PM +0200, Jacopo Mondi wrote: > On Tue, Aug 27, 2019 at 03:05:17AM +0300, Laurent Pinchart wrote: > > Hi Jacopo, > > > > (Question for Daniel below) > > > > Thank you for the patch. > > > > On Sun, Aug 25, 2019 at 03:51:54PM +0200, Jacopo Mondi wrote: > >

Re: [PATCH v3 01/14] dt-bindings: display: renesas,cmm: Add R-Car CMM documentation

2019-09-05 Thread Laurent Pinchart
Hi Jacopo, On Fri, Aug 30, 2019 at 08:01:09PM +0200, Jacopo Mondi wrote: > On Mon, Aug 26, 2019 at 01:15:50PM +0300, Laurent Pinchart wrote: > > On Mon, Aug 26, 2019 at 09:59:43AM +0200, Jacopo Mondi wrote: > >> On Mon, Aug 26, 2019 at 09:34:41AM +0200, Geert Uytterhoeven wrote: > >>> On Sun, Aug

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-09-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #30 from Mathieu Belanger --- I will disable the workaround friday after work. Then I will report when it will crash. -- You are receiving this mail because: You are the assignee for the bug.___

Re: [PATCH] drm/vmwgfx: Fix double free in vmw_recv_msg()

2019-09-05 Thread Thomas Hellstrom
On Thu, 2019-08-15 at 09:38 +0100, Colin Ian King wrote: > On 15/08/2019 09:30, Dan Carpenter wrote: > > We recently added a kfree() after the end of the loop: > > > > if (retries == RETRIES) { > > kfree(reply); > > return -EINVAL; > > } > > > > There are two probl

Re: [PATCH v3 01/14] dt-bindings: display: renesas,cmm: Add R-Car CMM documentation

2019-09-05 Thread Geert Uytterhoeven
Hi Laurent, On Thu, Sep 5, 2019 at 1:50 PM Laurent Pinchart wrote: > On Fri, Aug 30, 2019 at 08:01:09PM +0200, Jacopo Mondi wrote: > > On Mon, Aug 26, 2019 at 01:15:50PM +0300, Laurent Pinchart wrote: > > > How about converting this binding to yaml alreay ? It should be fairly > > > simple. > > >

[Bug 204683] amdgpu: ring sdma0 timeout

2019-09-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204683 --- Comment #6 from Matthias Heinz (m...@familie-heinz.name) --- I had to switch to drm-next to do further bisecting and I think 634092b1b9f67bea23a87b77880df5e8012a411a is causing the problem. I might be wrong though. -- You are receiving this

[PATCH] drm/panfrost: Prevent race when handling page fault

2019-09-05 Thread Steven Price
When handling a GPU page fault addr_to_drm_mm_node() is used to translate the GPU address to a buffer object. However it is possible for the buffer object to be freed after the function has returned resulting in a use-after-free of the BO. Change addr_to_drm_mm_node to return the panfrost_gem_obje

Re: [PATCH v2] drm/mcde: Some fixes to handling video mode

2019-09-05 Thread Linus Walleij
On Tue, Sep 3, 2019 at 4:38 PM Stephan Gerhold wrote: > On Tue, Sep 03, 2019 at 11:15:12AM +0200, Linus Walleij wrote: > > /* > >* This is the time to perform LP->HS on D-PHY > >* FIXME: nowhere to get this from: DT property on the DSI? > > + * values like 48 and 72 see

Re: [PATCH v3 01/14] dt-bindings: display: renesas,cmm: Add R-Car CMM documentation

2019-09-05 Thread Laurent Pinchart
Hi Geert, On Thu, Sep 05, 2019 at 02:05:34PM +0200, Geert Uytterhoeven wrote: > On Thu, Sep 5, 2019 at 1:50 PM Laurent Pinchart wrote: > > On Fri, Aug 30, 2019 at 08:01:09PM +0200, Jacopo Mondi wrote: > > > On Mon, Aug 26, 2019 at 01:15:50PM +0300, Laurent Pinchart wrote: > > > > How about convert

[PATCH 01/15] drm/edid: Add drm_hdmi_avi_infoframe_bars()

2019-09-05 Thread Ville Syrjala
From: Ville Syrjälä Add a function to fill the AVI infoframe bar information from the standard tv margin properties. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_edid.c | 17 + include/drm/drm_edid.h | 4 2 files changed, 21 insertions(+) diff --git a/drivers

[PATCH] drm/exynos: Move static keyword to the front of declaration

2019-09-05 Thread Krzysztof Wilczynski
Move the static keyword to the front of declaration of modes, and resolve the following compiler warning that can be seen when building with warnings enabled (W=1): drivers/gpu/drm/exynos/exynos_mixer.c:1074:2: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] Signe

[GIT PULL] etnaviv-next-fixes for 5.4

2019-09-05 Thread Lucas Stach
Hi Daniel, hi Dave, a single fix for a error path issue in the newly introduced per-process address space code. Regards, Lucas The following changes since commit 578d2342ec702e5fb8a77983fabb3754ae3e9660: Merge tag 'drm-next-5.4-2019-08-23' of git://people.freedesktop.org/~agd5f/linux into d

Re: [PATCH 3/3] drm/atomic: Rename crtc_state->pageflip_flags to async_flip

2019-09-05 Thread Mario Kleiner
On Wed, Sep 4, 2019 at 2:57 PM Kazlauskas, Nicholas wrote: > > On 2019-09-03 3:06 p.m., Daniel Vetter wrote: > > It's the only flag anyone actually cares about. Plus if we're unlucky, > > the atomic ioctl might need a different flag for async flips. So > > better to abstract this away from the uap

Re: Xorg indefinitely hangs in kernelspace

2019-09-05 Thread Jaak Ristioja
On 05.09.19 10:14, Gerd Hoffmann wrote: > On Tue, Aug 06, 2019 at 09:00:10PM +0300, Jaak Ristioja wrote: >> Hello! >> >> I'm writing to report a crash in the QXL / DRM code in the Linux kernel. >> I originally filed the issue on LaunchPad and more details can be found >> there, although I doubt whe

Re: [PATCH] drm/panfrost: Fix regulator_get_optional() misuse

2019-09-05 Thread Mark Brown
On Thu, Sep 05, 2019 at 10:37:53AM +0100, Steven Price wrote: > Ah, I didn't realise that regulator_get() will return a dummy regulator > if none is provided in the DT. In theory that seems like a nicer > solution to my two commits. However there's still a problem - the dummy > regulator returned

Re: [PATCH] drm/vgem: Added page prefaulting

2019-09-05 Thread Szymon Andrzejuk
Thank you for the review Andrzej. I'll update the patch to v2 shortly, it should cover all your comments. FYI, I'll be on holiday until September 16 so I might not be able to respond in the following days. Regards, Szymon On 03.09.2019 15:19, Andrzej Hajda wrote: > +CC: $(./script/get_maintaine

[git pull] vmwgfx-fixes-5.3

2019-09-05 Thread VMware
From: Thomas Hellström Dave, Daniel A single fix from Dan for a previous fix that generated a regression. The following changes since commit 6b7c3b86f0b63134b2ab56508921a0853ffa687a: drm/vmwgfx: fix memory leak when too many retries have occurred (2019-08-08 11:22:54 +0200) are available

Re: [PATCH] drm/panfrost: Fix regulator_get_optional() misuse

2019-09-05 Thread Steven Price
On 05/09/2019 13:40, Mark Brown wrote: > On Thu, Sep 05, 2019 at 10:37:53AM +0100, Steven Price wrote: > >> Ah, I didn't realise that regulator_get() will return a dummy regulator >> if none is provided in the DT. In theory that seems like a nicer >> solution to my two commits. However there's sti

[PATCH v2] drm/vgem: Added page prefaulting

2019-09-05 Thread Szymon Andrzejuk
Page fault handler inside vgem driver now preallocates pages in advance when fault occurs for the first time. Pages can be allocated in direction of increasing/decreasing addresses, depending on memory access profile. In case of random access no preallocation occurs. Synthetic benchmark showed ove

Re: [PATCH v3 08/14] drm: rcar-du: Add support for CMM

2019-09-05 Thread Jacopo Mondi
Hi Laurent, On Thu, Sep 05, 2019 at 02:17:12PM +0300, Laurent Pinchart wrote: > Hi Jacopo, > > > +/** > > + * rcar_cmm_enable() - enable the CMM unit > > + * > > + * @pdev: The platform device associated with the CMM instance > > + * > > + * Enable the CMM unit by ena

Re: linux-next: Tree for Sep 4 (amd/display/)

2019-09-05 Thread Harry Wentland
On 2019-09-04 4:58 p.m., Randy Dunlap wrote: > On 9/4/19 6:34 AM, Stephen Rothwell wrote: >> Hi all, >> >> News: this will be the last linux-next I will release until Sept 30. >> >> Changes since 20190903: >> > > on x86_64: > > In file included from > ../drivers/gpu/drm/amd/amdgpu/../display/d

Re: [PATCH v3 01/14] dt-bindings: display: renesas,cmm: Add R-Car CMM documentation

2019-09-05 Thread Jacopo Mondi
Hi Laurent, Geert, On Thu, Sep 05, 2019 at 03:20:59PM +0300, Laurent Pinchart wrote: > Hi Geert, > > On Thu, Sep 05, 2019 at 02:05:34PM +0200, Geert Uytterhoeven wrote: > > On Thu, Sep 5, 2019 at 1:50 PM Laurent Pinchart wrote: > > > On Fri, Aug 30, 2019 at 08:01:09PM +0200, Jacopo Mondi wrote: >

Re: [PATCH v3 08/14] drm: rcar-du: Add support for CMM

2019-09-05 Thread Laurent Pinchart
Hi Jacopo, On Thu, Sep 05, 2019 at 03:14:53PM +0200, Jacopo Mondi wrote: > On Thu, Sep 05, 2019 at 02:17:12PM +0300, Laurent Pinchart wrote: > > Hi Jacopo, > > > >> +/** > >> + * rcar_cmm_enable() - enable the CMM unit > >> + * > >> + * @pdev: The platform device associated with th

Re: [PATCH 4/7] drm/omap: Implement CTM property for CRTC using OVL managers CPR matrix

2019-09-05 Thread Jyri Sarha
On 05/09/2019 13:05, Laurent Pinchart wrote: > Hi Jyri, > > On Thu, Sep 05, 2019 at 01:00:51PM +0300, Jyri Sarha wrote: >> On 05/09/2019 00:52, Laurent Pinchart wrote: static void omap_crtc_write_crtc_properties(struct drm_crtc *crtc) { struct omap_drm_private *

Re: [PATCH] drm/panfrost: Fix regulator_get_optional() misuse

2019-09-05 Thread Neil Armstrong
On 05/09/2019 15:02, Steven Price wrote: > On 05/09/2019 13:40, Mark Brown wrote: >> On Thu, Sep 05, 2019 at 10:37:53AM +0100, Steven Price wrote: >> >>> Ah, I didn't realise that regulator_get() will return a dummy regulator >>> if none is provided in the DT. In theory that seems like a nicer >>>

Re: [PATCH 3/3] drm/atomic: Rename crtc_state->pageflip_flags to async_flip

2019-09-05 Thread Daniel Vetter
On Thu, Sep 5, 2019 at 2:33 PM Mario Kleiner wrote: > On Wed, Sep 4, 2019 at 2:57 PM Kazlauskas, Nicholas > wrote: > > > > On 2019-09-03 3:06 p.m., Daniel Vetter wrote: > > > It's the only flag anyone actually cares about. Plus if we're unlucky, > > > the atomic ioctl might need a different flag

RE: [PATCH v4] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host

2019-09-05 Thread Michael Kelley
From: Wei Hu Sent: Thursday, September 5, 2019 2:12 AM > > Beginning from Windows 10 RS5+, VM screen resolution is obtained from host. > The "video=hyperv_fb" boot time option is not needed, but still can be > used to overwrite what the host specifies. The VM resolution on the host > could be set

RE: [PATCH v3] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-09-05 Thread Michael Kelley
From: Wei Hu Sent: Thursday, September 5, 2019 1:29 AM > > Without deferred IO support, hyperv_fb driver informs the host to refresh > the entire guest frame buffer at fixed rate, e.g. at 20Hz, no matter there > is screen update or not. This patch supports deferred IO for screens in > graphics mo

Re: [PATCH 1/3] drm/atomic: Take the atomic toys away from X

2019-09-05 Thread Maarten Lankhorst
Op 03-09-2019 om 21:06 schreef Daniel Vetter: > The -modesetting ddx has a totally broken idea of how atomic works: > - doesn't disable old connectors, assuming they get auto-disable like > with the legacy setcrtc > - assumes ASYNC_FLIP is wired through for the atomic ioctl > - not a single call

[Bug 111482] Sapphire Pulse RX 5700 XT power consumption

2019-09-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111482 --- Comment #12 from Robert --- Andrew, you're my hero ;-) While I'm even more sad now (because I now think that this issue will be indeed never be fixed) I now at least can imagine what's going on. As you recommended I changed resolution to 19

  1   2   >