[PATCH v2 1/5] drm/ttm: add helper structures for bulk moves on lru list

2018-08-10 Thread Huang Rui
From: Christian König Add bulk move pos to store the pointer of first and last buffer object. The list in between will be bulk moved on lru list. Signed-off-by: Christian König Signed-off-by: Huang Rui --- include/drm/ttm/ttm_bo_driver.h | 28 1 file changed, 28 i

[PATCH v2 2/5] drm/ttm: revise ttm_bo_move_to_lru_tail to support bulk moves

2018-08-10 Thread Huang Rui
From: Christian König When move a BO to the end of LRU, it need remember the BO positions. Make sure all moved bo in between "first" and "last". And they will be bulk moving together. Signed-off-by: Christian König Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 8 -

[PATCH v2 3/5] drm/ttm: add bulk move function on LRU

2018-08-10 Thread Huang Rui
This function allow us to bulk move a group of BOs to the tail of their LRU. The positions of group of BOs are stored on the (first, last) bulk_move_pos structure. Signed-off-by: Christian König Signed-off-by: Huang Rui --- drivers/gpu/drm/ttm/ttm_bo.c | 52 +

[PATCH v2 4/5] drm/amdgpu: use bulk moves for efficient VM LRU handling (v2)

2018-08-10 Thread Huang Rui
I continue to work for bulk moving that based on the proposal by Christian. Background: amdgpu driver will move all PD/PT and PerVM BOs into idle list. Then move all of them on the end of LRU list one by one. Thus, that cause so many BOs moved to the end of the LRU, and impact performance seriousl

[PATCH v2 5/5] drm/amdgpu: move PD/PT bos on LRU again

2018-08-10 Thread Huang Rui
The new bulk moving functionality is ready, the overhead of moving PD/PT bos to LRU is fixed. So move them on LRU again. Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

Re: [Intel-gfx] [v3] drm/i915: Add detection of changing of edid on between suspend and resume

2018-08-10 Thread Lisovskiy, Stanislav
On Thu, 2018-08-09 at 14:13 +0300, Gwan-gyeong Mun wrote: > The hotplug detection routine of i915 uses > drm_helper_hpd_irq_event(). This > helper can detect changing of status of connector, but it can not > detect > changing of edid. > > Following scenario requires detection of changing of edid.

Re: [PATCH 2/2] drm/scheduler: stop setting rq to NULL

2018-08-10 Thread Christian König
Am 09.08.2018 um 19:39 schrieb Andrey Grodzovsky: [SNIP] SIGKILL isn't processed as long as any thread of the application is still inside the kernel. That's why we have wait_event_killable(). Can you tell me where is this happening ? What i see is in the code is that do_group_exit calls zap_o

[PATCH v5 0/2] Add XYUV format support

2018-08-10 Thread StanLis
From: Stanislav Lisovskiy Introduced new XYUV scan-in format for framebuffer and added support for it to i915 driver. Stanislav Lisovskiy (2): drm: Introduce new DRM_FORMAT_XYUV drm/i915: Adding YUV444 packed format(DRM_FORMAT_XYUV) support. drivers/gpu/drm/drm_fourcc.c | 1 + driv

[PATCH v5 1/2] drm: Introduce new DRM_FORMAT_XYUV

2018-08-10 Thread StanLis
From: Stanislav Lisovskiy v5: This is YUV444 packed format same as AYUV, but without alpha, as supported by i915. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/drm_fourcc.c | 1 + include/uapi/drm/drm_fourcc.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/

[radeon-alex:drm-next-4.19 52/60] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:352:1-14: code aligned with following code on line 354 (fwd)

2018-08-10 Thread Julia Lawall
It seems that line 352 should have one more tab at the beginning of the line. julia -- Forwarded message -- Date: Fri, 10 Aug 2018 21:01:50 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: [radeon-alex:drm-next-4.19 52/60] drivers/gpu/drm/amd/amdgpu/

[PATCH v5 2/2] drm/i915: Adding YUV444 packed format(DRM_FORMAT_XYUV) support.

2018-08-10 Thread StanLis
From: Stanislav Lisovskiy PLANE_CTL_FORMAT_AYUV is already supported, according to hardware specification. v2: Edited commit message, removed redundant whitespaces. v3: Fixed fallthrough logic for the format switch cases. v4: Yet again fixed fallthrough logic, to reuse code from other case

Re: [PATCH] drm/scheduler: Remove entity->rq NULL check

2018-08-10 Thread Christian König
Crap, yeah indeed that needs to be protected by some lock. Going to prepare a patch for that, Christian. Am 09.08.2018 um 21:49 schrieb Andrey Grodzovsky: Reviewed-by: Andrey Grodzovsky But I still  have questions about entity->last_user (didn't notice this before) - Looks to me there is

[PATCH 0/3] Exynos DRM IPP: add support for 16x16 tiled formats

2018-08-10 Thread Marek Szyprowski
Dear all, This patchset is a result of further improving Exynos DRM IPP drivers. Graphics and codec hardware modules found in Samsung Exynos5250/542x/5433 SoCs supports 16x16 tiled formats. This patchset adds support for it. Best regards Marek Szyprowski Samsung R&D Institute Poland Patch summa

[PATCH 2/3] drm/exynos: scaler: Add support for tiled formats

2018-08-10 Thread Marek Szyprowski
From: Andrzej Pietrasiewicz Add support for 16x16 tiled formats: NV12/NV21, YUYV and YUV420. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_scaler.c | 133 - 1 file changed, 75 insertions(+), 58 deletions(-) diff

[PATCH 1/3] drm: drm_fourcc: add Samsung 16x16 tile format

2018-08-10 Thread Marek Szyprowski
From: Andrzej Pietrasiewicz Add modifier for tiled formats used by graphics modules found in Samsung Exynos5250/542x/5433 SoCs. This is a simple tiled layout using tiles of 16x16 pixels in a row-major layout. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Marek Szyprowski --- include/uap

[PATCH 3/3] drm/exynos: gsc: Add support for tiled formats

2018-08-10 Thread Marek Szyprowski
Add support for 16x16 tiled NV12 and NV21 formats. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_gsc.c | 46 ++--- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_

Re: [PATCH] drm/scheduler: Remove entity->rq NULL check

2018-08-10 Thread Andrey Grodzovsky
I can take care of this. Andrey On 08/10/2018 09:27 AM, Christian König wrote: Crap, yeah indeed that needs to be protected by some lock. Going to prepare a patch for that, Christian. Am 09.08.2018 um 21:49 schrieb Andrey Grodzovsky: Reviewed-by: Andrey Grodzovsky But I still  have ques

Re: [PATCH v2 4/5] drm/amdgpu: use bulk moves for efficient VM LRU handling (v2)

2018-08-10 Thread Christian König
Am 10.08.2018 um 13:55 schrieb Huang Rui: I continue to work for bulk moving that based on the proposal by Christian. Background: amdgpu driver will move all PD/PT and PerVM BOs into idle list. Then move all of them on the end of LRU list one by one. Thus, that cause so many BOs moved to the end

Re: RFC: Add write flag to reservation object fences

2018-08-10 Thread Christian König
Am 10.08.2018 um 11:21 schrieb Daniel Vetter: [SNIP] Then don't track _any_ of the amdgpu internal fences in the reservation object: - 1 reservation object that you hand to ttm, for use internally within amdgpu - 1 reservation object that you attach to the dma-buf (or get from the imported dma-bu

[Bug 107518] polaris powerplay init fails: There must be 1 or more PCIE levels defined in PPTable

2018-08-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107518 --- Comment #7 from Alex Deucher --- amdgpu_pmops_freeze() calls amdgpu_device_suspend() which calls amdgpu_asic_reset() at the end. amdgpu_asic_reset() is a macro which calls an asic specific callback to reset the GPU. vi_asic_reset() in vi.

[RFC PATCH] drm/fourcc: Add remaining fourccs for Mali

2018-08-10 Thread Brian Starkey
This RFC adds the remaining fourcc codes which are needed to cover all currently supported formats in Mali IPs. There was quite a lengthy discussion on IRC about it - please treat this as RFC and read the commentary below! This patch is on-top of https://lists.freedesktop.org/archives/dri-devel/2

Re: [PATCH fix for 4.19 0/3] fbcon: Fix VT switching being broken in combination with vgacon

2018-08-10 Thread Bartlomiej Zolnierkiewicz
On Thursday, August 02, 2018 01:28:38 PM Hans de Goede wrote: > Hi Bartlomiej, > > After backporting the deferred fbcon takeover patches to the 4.18 > kernel for the upcoming Fedora 29 release, Fedora QA found a serious > bug caused by the fbcon takeover support. > > When using classic (non EFI)

Re: [PATCH] Documentation/fb: corrections for fbcon.txt

2018-08-10 Thread Bartlomiej Zolnierkiewicz
On Tuesday, August 07, 2018 09:27:52 AM Randy Dunlap wrote: > From: Randy Dunlap > > Fix grammar, spacing, indentation, and Kconfig menu locations > in fbcon.txt. > > Signed-off-by: Randy Dunlap Patch queued for 4.19, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Po

Re: [PATCH v3] fbcon: Do not takeover the console from atomic context

2018-08-10 Thread Bartlomiej Zolnierkiewicz
On Friday, August 10, 2018 01:27:57 PM Hans de Goede wrote: > Taking over the console involves allocating mem with GFP_KERNEL, talking > to drm drivers, etc. So this should not be done from an atomic context. > > But the console-output trigger deferred console takeover may happen from an > atomic

Re: [PATCH] drm/panel: sn65dsi86: Implement AUX channel

2018-08-10 Thread Sean Paul
On Fri, Aug 10, 2018 at 10:22:58AM +0530, spa...@codeaurora.org wrote: > Hi Sean, > > Thanks for your patch. > I also made this similar change as part of my PSR support changes (yet to be > posted for review). But since this patch is posted now, i will pick this for > my PSR changes. Hi Sandeep,

[PATCH v2] drm/bridge: sn65dsi86: Implement AUX channel

2018-08-10 Thread Sean Paul
This was hand-rolled in the first version, and will surely be useful as we expand the driver to support more varied use cases. Changes in v2: - Change subject prefix s/panel/bridge/ - Downgrade warning in poll function to error message - Fix DP_EDP_CONFIGURATION_SET write value (Sandeep) - Mask up

Re: [PATCH v2 4/7] drm/i2c: tda998x: convert to bridge driver

2018-08-10 Thread Sean Paul
On Wed, Aug 08, 2018 at 11:15:47PM +0100, Russell King - ARM Linux wrote: > On Wed, Aug 08, 2018 at 03:09:30PM -0400, Sean Paul wrote: > > > -static const struct drm_encoder_helper_funcs > > > tda998x_encoder_helper_funcs = { > > > - .dpms = tda998x_encoder_dpms, > > > - .prepare = tda998x_encoder

Re: [PATCH v2 4/7] drm/i2c: tda998x: convert to bridge driver

2018-08-10 Thread Sean Paul
On Fri, Aug 10, 2018 at 05:50:37PM +0100, Russell King - ARM Linux wrote: > On Fri, Aug 10, 2018 at 12:11:05PM -0400, Sean Paul wrote: > > On Wed, Aug 08, 2018 at 11:15:47PM +0100, Russell King - ARM Linux wrote: > > > In any case, bridges are buggy with unbinding/rebinding as I've pointed > > > ou

[PATCH] drm: Clarify DRM_MODE_REFLECT_X/Y documentation

2018-08-10 Thread Alexandru Gheorghe
DRM_MODE_REFLECT_X and DRM_MODE_REFLECT_Y meaning seems a bit unclear to me, so try to clarify that with a bit of ascii graphics. Signed-off-by: Alexandru Gheorghe --- include/uapi/drm/drm_mode.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/uapi/drm/drm

Re: [PATCH v5 1/2] drm: Introduce new DRM_FORMAT_XYUV

2018-08-10 Thread Alexandru-Cosmin Gheorghe
Hi Stanislav, FYI, we are trying to add same format under a slightly different name. See https://lists.freedesktop.org/archives/dri-devel/2018-July/184598.html On Fri, Aug 10, 2018 at 04:19:03PM +0300, StanLis wrote: > From: Stanislav Lisovskiy > > v5: This is YUV444 packed format same as AYUV,

[PATCH 1/2] drm/bridge: sn65dsi86: Move panel_prepare() to pre_enable()

2018-08-10 Thread Sean Paul
prepare() is the old-timey way to say pre_enable(). It should be called before modeset. This fixes an issue where the panel on cheza must have the regulator always-on/boot-on for it to work. Cc: Sandeep Panda Cc: Stephen Boyd Signed-off-by: Sean Paul --- drivers/gpu/drm/bridge/ti-sn65dsi86.c |

[PATCH 2/2] drm/panel: simple: tv123wam: Add unprepare delay

2018-08-10 Thread Sean Paul
The panel datasheet specifies a 500ms delay after power-down before re-enabling. Cc: Sandeep Panda Cc: Stephen Boyd Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-simple.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/p

Re: [PATCH] drm: Clarify DRM_MODE_REFLECT_X/Y documentation

2018-08-10 Thread Sean Paul
On Fri, Aug 10, 2018 at 06:50:31PM +0100, Alexandru Gheorghe wrote: > DRM_MODE_REFLECT_X and DRM_MODE_REFLECT_Y meaning seems a bit unclear > to me, so try to clarify that with a bit of ascii graphics. > > Signed-off-by: Alexandru Gheorghe Reviewed-by: Sean Paul > --- > include/uapi/drm/drm_m

Re: [PATCH 2/2] arm64: dts: sdm845: Add gpu and gmu device nodes

2018-08-10 Thread Stephen Boyd
Quoting Jordan Crouse (2018-08-08 15:47:01) > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi > b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index cdaabeb3c995..9fb90bb4ea1f 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -323,5 +323,126 @@ >

Re: [Nouveau] [PATCH v5 06/13] drm/nouveau: Call optimus_dsm functions after nouveau_do_suspend()

2018-08-10 Thread Karol Herbst
Reviewed-by: Karol Herbst On Tue, Aug 7, 2018 at 10:39 PM, Lyude Paul wrote: > It's not necessary to call these before we call nouveau_do_suspend(). > Ideally; we shouldn't have to call this at all here, but getting that to > work will take a bit more effort. So for the time being, just move thi

Re: [Nouveau] [PATCH v5 07/13] drm/nouveau: Add missing unroll functions in nouveau_do_suspend()

2018-08-10 Thread Karol Herbst
Reviewed-by: Karol Herbst On Tue, Aug 7, 2018 at 10:39 PM, Lyude Paul wrote: > Currently, it appears that nouveau_do_suspend() forgets to roll back > suspending fbcon and suspending the device LEDs. We also currently skip > the entire rollback process if nouveau_display_suspend() fails. So, fix

Re: [Nouveau] [PATCH v5 08/13] drm/nouveau: Don't ignore nouveau_do_suspend() ret value

2018-08-10 Thread Karol Herbst
Reviewed-by: Karol Herbst On Tue, Aug 7, 2018 at 10:39 PM, Lyude Paul wrote: > Otherwise, how will we roll everything back? > > Signed-off-by: Lyude Paul > Cc: sta...@vger.kernel.org > Cc: Lukas Wunner > Cc: Karol Herbst > --- > drivers/gpu/drm/nouveau/nouveau_drm.c | 3 +++ > 1 file changed

Re: [Nouveau] [PATCH v5 10/13] drm/nouveau: Use pm_runtime_get_noresume() in connector_detect()

2018-08-10 Thread Karol Herbst
Reviewed-by: Karol Herbst On Tue, Aug 7, 2018 at 10:39 PM, Lyude Paul wrote: > It's true we can't resume the device from poll workers in > nouveau_connector_detect(). We can however, prevent the autosuspend > timer from elapsing immediately if it hasn't already without risking any > sort of dead

Re: [PATCH libdrm v2] libdrm: add msm drm uapi header

2018-08-10 Thread Eric Anholt
Tanmay Shah writes: > msm_drm.h file derived from drm-next kernel uapi header. > > Remove freedreno/msm/msm_drm.h to maintain only > one copy of msm_drm.h and change freedreno Makefile > accordingly. > > Signed-off-by: Tanmay Shah Looks like this is missing the meson.build update, and leaves a

[Bug 107545] radeon - ring 0 stalled - GPU lockup - SI

2018-08-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107545 Bug ID: 107545 Summary: radeon - ring 0 stalled - GPU lockup - SI Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal

[pull] drm/msm: msm-fixes for 4.19

2018-08-10 Thread Rob Clark
Hi Dave, A couple small fixes for v4.19. I have a 2nd optional follow-up PR that I'll send on top of this which adds a6xx support. See the following PR for details. The following changes since commit a7663a79343658f9362dc0655f1a06723c7014e3: dt-bindings: msm/disp: Add bindings for Snapdragon

[pull] drm/msm: msm-next++ for 4.19

2018-08-10 Thread Rob Clark
Hi Dave, An optional follow-on PR for 4.19, on top of previous -fixes PR, which brings in a6xx support. These patches have been on list since earlier in the year (mostly waiting for userspace). They have been in linux-next since earlier in the week, now that we have freedreno userspace working o

Re: [PATCH v2 4/5] drm/amdgpu: use bulk moves for efficient VM LRU handling (v2)

2018-08-10 Thread Huang Rui
On Fri, Aug 10, 2018 at 10:18:24PM +0800, Koenig, Christian wrote: > Am 10.08.2018 um 13:55 schrieb Huang Rui: > > I continue to work for bulk moving that based on the proposal by Christian. > > > > Background: > > amdgpu driver will move all PD/PT and PerVM BOs into idle list. Then move > > all o

Re: [PATCH 2/6] dma-buf: add reservation object shared fence accessor

2018-08-10 Thread Huang Rui
On Thu, Aug 09, 2018 at 01:37:09PM +0200, Christian König wrote: > Add a helper to access the shared fences in an reservation object. > > Signed-off-by: Christian König Reviewed-by: Huang Rui > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 7 ++- > drivers/gpu/drm/amd/amdgpu/a

Re: [PATCH 4/4] drm/meson: convert to the new canvas module

2018-08-10 Thread Neil Armstrong
On 10/08/2018 08:35, Maxime Jourdan wrote: > 2018-08-10 0:41 GMT+02:00 Rob Herring : >> Hi, this is an automated email from Rob's (experimental) review bot. I >> found a couple of common problems with your patch. Please see below. >> >> On Wed, 1 Aug 2018 20:51:28 +0200, Maxime Jourdan wrote: >>>

Re: [Intel-gfx] RFC: Add write flag to reservation object fences

2018-08-10 Thread Chris Wilson
Quoting Christian König (2018-08-09 15:54:31) > Am 09.08.2018 um 16:22 schrieb Daniel Vetter: > > On Thu, Aug 9, 2018 at 3:58 PM, Christian König > > wrote: > >> Am 09.08.2018 um 15:38 schrieb Daniel Vetter: > >>> On Thu, Aug 09, 2018 at 01:37:07PM +0200, Christian König wrote: > >>> [SNIP] > >> S

[Bug 107539] Inverted colours after screen blank/unblank

2018-08-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107539 Bug ID: 107539 Summary: Inverted colours after screen blank/unblank Product: DRI Version: XOrg git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW S

Re: [Intel-gfx] RFC: Add write flag to reservation object fences

2018-08-10 Thread Christian König
Am 10.08.2018 um 09:51 schrieb Chris Wilson: Quoting Christian König (2018-08-09 15:54:31) Am 09.08.2018 um 16:22 schrieb Daniel Vetter: On Thu, Aug 9, 2018 at 3:58 PM, Christian König wrote: Am 09.08.2018 um 15:38 schrieb Daniel Vetter: On Thu, Aug 09, 2018 at 01:37:07PM +0200, Christian Kö

Re: drm/imx: ipu-v3 plane offset and IPU id fixes

2018-08-10 Thread Philipp Zabel
On Fri, 2018-08-10 at 11:39 +1000, Dave Airlie wrote: > > > > I've resent the pull requests with the missing [GIT PULL] tag added, > > sorry for the noise. > > Since we are at -rc8 and this is late, I've just dropped these fixes > into drm-next, once they land in Linus, > you might want to nomina

Re: RFC: Add write flag to reservation object fences

2018-08-10 Thread Daniel Vetter
On Thu, Aug 9, 2018 at 4:54 PM, Christian König wrote: > Am 09.08.2018 um 16:22 schrieb Daniel Vetter: >> >> On Thu, Aug 9, 2018 at 3:58 PM, Christian König >> wrote: >>> >>> Am 09.08.2018 um 15:38 schrieb Daniel Vetter: On Thu, Aug 09, 2018 at 01:37:07PM +0200, Christian König wrote: >

Re: [Intel-gfx] RFC: Add write flag to reservation object fences

2018-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2018 at 10:24 AM, Christian König wrote: > Am 10.08.2018 um 09:51 schrieb Chris Wilson: >> >> Quoting Christian König (2018-08-09 15:54:31) >>> >>> Am 09.08.2018 um 16:22 schrieb Daniel Vetter: On Thu, Aug 9, 2018 at 3:58 PM, Christian König wrote: > > Am 09

Re: [PATCH v2] fbcon: Do not takeover the console from atomic context

2018-08-10 Thread Hans de Goede
Hi, On 09-08-18 15:29, Daniel Vetter wrote: On Thu, Aug 9, 2018 at 1:42 PM, Hans de Goede wrote: Taking over the console involves allocating mem with GFP_KERNEL, talking to drm drivers, etc. So this should not be done from an atomic context. But the console-output trigger deferred console tak

Re: [PATCH v5 1/2] drm/panel: Add support for Truly NT35597 panel

2018-08-10 Thread Linus Walleij
On Thu, Aug 9, 2018 at 12:53 PM Thierry Reding wrote: [Me] > > I suspect this is indeed a panel driver and not a panel with integrated > > driver. I think the best is to define two compatible strings like > > we do for ILI9322: > > "truly,nt35597", "qcom,reference-design-name-display"; > > I don'

Re: [PATCH v2] fbcon: Do not takeover the console from atomic context

2018-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2018 at 10:42 AM, Hans de Goede wrote: > Hi, > > > On 09-08-18 15:29, Daniel Vetter wrote: >> >> On Thu, Aug 9, 2018 at 1:42 PM, Hans de Goede wrote: >>> >>> Taking over the console involves allocating mem with GFP_KERNEL, talking >>> to drm drivers, etc. So this should not be don

Re: [Intel-gfx] RFC: Add write flag to reservation object fences

2018-08-10 Thread Christian König
Am 10.08.2018 um 10:32 schrieb Daniel Vetter: On Fri, Aug 10, 2018 at 10:24 AM, Christian König wrote: Am 10.08.2018 um 09:51 schrieb Chris Wilson: Quoting Christian König (2018-08-09 15:54:31) Am 09.08.2018 um 16:22 schrieb Daniel Vetter: On Thu, Aug 9, 2018 at 3:58 PM, Christian König wro

Re: [PATCH 4/5] drm/amdgpu: use bulk moves for efficient VM LRU handling

2018-08-10 Thread Huang Rui
On Thu, Aug 09, 2018 at 08:27:10PM +0800, Koenig, Christian wrote: > Am 09.08.2018 um 14:25 schrieb Huang Rui: > > On Thu, Aug 09, 2018 at 03:18:55PM +0800, Koenig, Christian wrote: > >> Am 09.08.2018 um 08:18 schrieb Huang Rui: > >>> On Wed, Aug 08, 2018 at 06:47:49PM +0800, Christian König wrote:

Re: RFC: Add write flag to reservation object fences

2018-08-10 Thread Christian König
Am 10.08.2018 um 10:29 schrieb Daniel Vetter: [SNIP] I'm only interested in the case of shared buffers. And for those you _do_ pessimistically assume that all access must be implicitly synced. Iirc amdgpu doesn't support EGL_ANDROID_native_fence_sync, so this makes sense that you don't bother wit

Re: RFC: Add write flag to reservation object fences

2018-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2018 at 11:14 AM, Christian König wrote: > Am 10.08.2018 um 10:29 schrieb Daniel Vetter: >> >> [SNIP] >> I'm only interested in the case of shared buffers. And for those you >> _do_ pessimistically assume that all access must be implicitly synced. >> Iirc amdgpu doesn't support EGL

Re: [Intel-gfx] RFC: Add write flag to reservation object fences

2018-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2018 at 10:51 AM, Christian König wrote: > Am 10.08.2018 um 10:32 schrieb Daniel Vetter: >> >> On Fri, Aug 10, 2018 at 10:24 AM, Christian König >> wrote: >>> >>> Am 10.08.2018 um 09:51 schrieb Chris Wilson: Quoting Christian König (2018-08-09 15:54:31) > > Am 09

Re: RFC: Add write flag to reservation object fences

2018-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2018 at 11:14 AM, Christian König wrote: > Am 10.08.2018 um 10:29 schrieb Daniel Vetter: >> >> [SNIP] >> I'm only interested in the case of shared buffers. And for those you >> _do_ pessimistically assume that all access must be implicitly synced. >> Iirc amdgpu doesn't support EGL

Re: [PATCH v2] fbcon: Do not takeover the console from atomic context

2018-08-10 Thread Hans de Goede
HI, On 10-08-18 10:50, Daniel Vetter wrote: On Fri, Aug 10, 2018 at 10:42 AM, Hans de Goede wrote: Hi, On 09-08-18 15:29, Daniel Vetter wrote: On Thu, Aug 9, 2018 at 1:42 PM, Hans de Goede wrote: Taking over the console involves allocating mem with GFP_KERNEL, talking to drm drivers, et

[PATCH v3] fbcon: Do not takeover the console from atomic context

2018-08-10 Thread Hans de Goede
Taking over the console involves allocating mem with GFP_KERNEL, talking to drm drivers, etc. So this should not be done from an atomic context. But the console-output trigger deferred console takeover may happen from an atomic context, which leads to "BUG: sleeping function called from invalid co

[PATCH v2 0/5] drm/ttm,amdgpu: Introduce LRU bulk move functionality

2018-08-10 Thread Huang Rui
The idea and proposal is originally from Christian, and I continue to work to deliver it. Background: amdgpu driver will move all PD/PT and PerVM BOs into idle list. Then move all of them on the end of LRU list one by one. Thus, that cause so many BOs moved to the end of the LRU, and impact perfor