Re: [Intel-gfx] [RFC] splitting dri-devel to drm core and drivers lists?

2018-03-25 Thread Joonas Lahtinen
Quoting Daniel Vetter (2018-03-23 18:39:04) > On Fri, Mar 23, 2018 at 06:22:46PM +0200, Jani Nikula wrote: > > There was some discussion on the dim-tools list about splitting the > > dri-devel list to drm core and drivers lists [1]. Moving the discussion > > to the list in question seems prudent. ;

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

2018-03-25 Thread Stephen Rothwell
Hi all, On Thu, 22 Mar 2018 17:37:22 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the drm tree got conflicts in several amdgpu > files because there are a set of (mostly identical) patches that appear > Linus' tree and the drm tree. In each case I just used the version fo > the

linux-next: manual merge of the drm tree with Linus' tree

2018-03-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got conflicts in: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_kms.c between commit: 140bcaa23a1c ("drm/vmwgfx: Fix black screen and device errors when running without fbdev") from Linus' tree and commit: c3b9b1657

Re: [PATCH] drm/amd/pp: silence a static checker warning

2018-03-25 Thread Huang Rui
On Fri, Mar 23, 2018 at 02:39:03PM +0300, Dan Carpenter wrote: > This has a static checker warning because "frev" and "crev" can be > uninitialized if "info" is NULL. I just changed the order of the checks > so that we check "info" first. > > Signed-off-by: Dan Carpenter Reviewed-by: Huang Rui

[Bug 105018] Kernel panic when waking up after screen goes blank.

2018-03-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105018 --- Comment #27 from L.S.S. --- (In reply to Mez from comment #25) > (In reply to L.S.S. from comment #23) > > EDIT: It seems I'm experiencing some intermittent screen flicker with > > current 4.16 kernel (on the same system, with only Patch 3 a

Re: [Outreachy kernel] [PATCH] gpu: drm: Use list_{next/prev}_entry instead of list_entry

2018-03-25 Thread Julia Lawall
On Sun, 25 Mar 2018, Arushi Singhal wrote: > > > On Mon, Mar 19, 2018 at 12:44 PM, Julia Lawall wrote: > > > On Mon, 19 Mar 2018, Arushi Singhal wrote: > > > This patch replace list_entry with list_{next/prev}_entry as > it makes > > the code more clear to read. >

Re: [PATCH] dma-buf: use parameter structure for dma_buf_attach

2018-03-25 Thread kbuild test robot
Hi Christian, I love your patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on v4.16-rc6 next-20180323] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/comm

[Bug 105425] 3D & games produce periodic GPU crashes (Radeon R7 370)

2018-03-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105425 --- Comment #7 from MirceaKitsune --- I've been testing this crash using Xonotic during the past two days, granted it's a game I have a lot of experience customizing. What I found is pretty interesting and should be a good start in shedding ligh

Re: [PATCH v2 4/4] drm/vc4: Restrict active CTM to one CRTC

2018-03-25 Thread Stefan Schake
Hey Daniel, On Sun, Mar 25, 2018 at 10:01 AM, Daniel Stone wrote: > Hi Stefan, > > On 25 March 2018 at 02:52, Stefan Schake wrote: >> +static int vc4_crtc_get_ctm_fifo(struct vc4_dev *vc4) >> +{ >> + return VC4_GET_FIELD(HVS_READ(SCALER_OLEDOFFS), >> +SCALER_OLE

[PATCH v2 2/2] gpu: drm: nouveau: Use list_{next/prev}_entry instead of list_entry

2018-03-25 Thread Arushi Singhal
It's better to use list_entry instead of list_{next/prev}_entry as it makes the code more clear to read. This patch replace list_entry with list_{next/prev}_entry. Signed-off-by: Arushi Singhal --- drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[PATCH v2 1/2] gpu: drm/lease:: Use list_{next/prev}_entry instead of list_entry

2018-03-25 Thread Arushi Singhal
It's better to use list_entry instead of list_{next/prev}_entry as it makes the code more clear to read. This patch replace list_entry with list_{next/prev}_entry. Signed-off-by: Arushi Singhal --- drivers/gpu/drm/drm_lease.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

[PATCH v2 0/2] drm: Replace list_entry

2018-03-25 Thread Arushi Singhal
Replace list_entry with list_{next/prev}_entry. Arushi Singhal (2): gpu: drm/lease:: Use list_{next/prev}_entry instead of list_entry gpu: drm: nouveau: Use list_{next/prev}_entry instead of list_entry drivers/gpu/drm/drm_lease.c| 2 +- drivers/gpu/drm/nouveau/nvkm/subdev

[Bug 104193] [radeonsi] The Witcher 3 freezes the system (POLARIS10)

2018-03-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104193 --- Comment #9 from Lukas Jirkovsky --- For the record - the freeze also happens when using R600_DEBUG=nir on current mesa from git (5a75019ad0). I also have RX 480. -- You are receiving this mail because: You are the assignee for the bug.

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

2018-03-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105733 --- Comment #2 from Allan --- Tried getting all binaries available here https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/amdgpu . Even that I included the polaris binaries in the kernel, some binaries were missin

Re: [PATCH] drm: udl: Properly check framebuffer mmap offsets

2018-03-25 Thread Kees Cook
On Thu, Mar 22, 2018 at 2:54 AM, Daniel Vetter wrote: > On Thu, Mar 22, 2018 at 9:03 AM, Greg Kroah-Hartman > wrote: >> On Thu, Mar 22, 2018 at 07:59:59AM +0100, Daniel Vetter wrote: >>> Does anyone working on overflow-proof integers? That would make a lot of >>> this code so much simpler if we c

Re: [PATCH v3 0/7] drm/sun4i: Allwinner MIPI-DSI support

2018-03-25 Thread Jagan Teki
Hi Maxime, On Tue, Mar 6, 2018 at 7:25 PM, Maxime Ripard wrote: > Hi, > > Here is an preliminary version of the MIPI-DSI support for the Allwinner > SoCs. > > This controller can be found on a number of recent SoCs, such as the > A31, A33 or the A64. > > Given the sparse documentation, there's a

Re: [PATCHv2 0/3] dw-hdmi: add property to disable CEC

2018-03-25 Thread Martin Blumenstingl
Hello Hans, Hi Neil, (apologies in advance if any of this is wrong, I don't have any CEC capable TV so I can't test it) On Fri, Mar 23, 2018 at 1:59 PM, Hans Verkuil wrote: > From: Hans Verkuil > > Some boards (amlogic) have two CEC controllers: the DesignWare controller > and their own CEC con

Re: [PATCH v6] ARM: dts: wheat: Fix ADV7513 address usage

2018-03-25 Thread Simon Horman
On Thu, Mar 22, 2018 at 09:30:40PM +, Kieran Bingham wrote: > The r8a7792 Wheat board has two ADV7513 devices sharing a single I2C > bus, however in low power mode the ADV7513 will reset it's slave maps to > use the hardware defined default addresses. > > The ADV7511 driver was adapted to allo

Re: [PATCHv2 0/3] dw-hdmi: add property to disable CEC

2018-03-25 Thread Martin Blumenstingl
Hi Neil, On Sat, Mar 24, 2018 at 2:41 PM, Neil Armstrong wrote: > Hi Martin, > >> Le 24 mars 2018 à 12:00, Martin Blumenstingl >> a écrit : >> >> Hello Hans, Hi Neil, >> >> (apologies in advance if any of this is wrong, I don't have any CEC >> capable TV so I can't test it) >> >> On Fri, Mar 23

Re: [PATCH] [RFC] drm: rcar-du: keep temporary dtb files around during build

2018-03-25 Thread Frank Rowand
Hi Geert, On 03/22/18 07:26, Geert Uytterhoeven wrote: > Hi Frank, > > On Fri, Mar 16, 2018 at 2:39 AM, wrote: >> On Thursday, March 15, 2018 8:37 AM, Arnd Bergmann [mailto:a...@arndb.de] >> wrote: >>> >>> The *.dtb and *.dtb.S files get removed by 'make' during the build >>> process, >>> and

Re: [PATCH] [RFC] drm: rcar-du: keep temporary dtb files around during build

2018-03-25 Thread Masahiro Yamada
2018-03-23 0:13 GMT+09:00 Geert Uytterhoeven : > Hi Laurent, > > CC Yamada-san > > On Thu, Mar 22, 2018 at 3:50 PM, Laurent Pinchart > wrote: >> On Thursday, 22 March 2018 16:26:22 EET Geert Uytterhoeven wrote: >>> On Fri, Mar 16, 2018 at 2:39 AM, wrote: >>> > On Thursday, March 15, 2018 8:37 AM

Re: [RFC PATCH 2/3] drm: bridge: panel: allow override of the bus format

2018-03-25 Thread Peter Rosin
Hi Laurent, Thanks for the feedback! On 2018-03-20 14:56, Laurent Pinchart wrote: > Hi Peter, > > Thank you for the patch. > > On Sunday, 18 March 2018 00:15:24 EET Peter Rosin wrote: >> Useful if the bridge does some kind of conversion of the bus format. >> >> Signed-off-by: Peter Rosin >> --

Re: [Outreachy kernel] [PATCH] gpu: drm: Use list_{next/prev}_entry instead of list_entry

2018-03-25 Thread Julia Lawall
On Sun, 25 Mar 2018, Arushi Singhal wrote: > > > On Mon, Mar 19, 2018 at 12:44 PM, Julia Lawall wrote: > > > On Mon, 19 Mar 2018, Arushi Singhal wrote: > > > This patch replace list_entry with list_{next/prev}_entry as > it makes > > the code more clear to read. >

Re: [PATCH 4/7] ARM: dts: sun7i: Add pinmux settings for LCD0 RGB888 output.

2018-03-25 Thread Paul Kocialkowski
Hi, Le mercredi 21 mars 2018 à 21:03 +0100, Giulio Benetti a écrit : > The A20 supports RGB888 with H/V sync from LCD0. Add a pinmux setting > for the needed pins. > > Signed-off-by: Giulio Benetti > --- > arch/arm/boot/dts/sun7i-a20.dtsi | 8 > 1 file changed, 8 insertions(+) > > dif

Re: [Outreachy kernel] [PATCH] gpu: drm: Use list_{next/prev}_entry instead of list_entry

2018-03-25 Thread Arushi Singhal
On Mon, Mar 19, 2018 at 12:44 PM, Julia Lawall wrote: > > > On Mon, 19 Mar 2018, Arushi Singhal wrote: > > > This patch replace list_entry with list_{next/prev}_entry as it makes > > the code more clear to read. > > Done using coccinelle: > > > > @@ > > expression e1; > > identifier e3; > > type

[Bug 59681] Sony VAIO VPCZ23A4R: radeon doesn't like undocking

2018-03-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=59681 Alexander E. Patrakov (patra...@gmail.com) changed: What|Removed |Added Status|NEW |RESOLVED

[git pull] amdkfd fixes for 4.16 final

2018-03-25 Thread Oded Gabbay
Hi Dave, Two small fixes for the final 4.16 release: - Programming VMID correctly for scratch memory with HWS - deallocating SDMA queues correctly in various situations Thanks, Oded The following changes since commit 5a9f698feb11b198f17b2acebbfe0e2716a3beed: drm/ast: Fixed 1280x800 Display

[PATCH] dma-buf: use parameter structure for dma_buf_attach

2018-03-25 Thread Christian König
Move the parameters into a structure to make it simpler to extend it in follow up patches. This also adds the importer private as parameter so that we can directly work with a completely filled in attachment structure. Signed-off-by: Christian König --- drivers/dma-buf/dma-buf.c

Re: [PATCH] drm/scheduler: remove incorrect param documentation

2018-03-25 Thread Christian König
Am 25.03.2018 um 13:21 schrieb Nayan Deshmukh: On Sun, Mar 25, 2018 at 4:44 PM, Christian König wrote: Am 25.03.2018 um 13:09 schrieb Nayan Deshmukh: Signed-off-by: Nayan Deshmukh --- drivers/gpu/drm/scheduler/gpu_scheduler.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu

Re: [Outreachy kernel] [PATCH] gpu: drm: Use list_{next/prev}_entry instead of list_entry

2018-03-25 Thread Arushi Singhal
On Mon, Mar 19, 2018 at 12:44 PM, Julia Lawall wrote: > > > On Mon, 19 Mar 2018, Arushi Singhal wrote: > > > This patch replace list_entry with list_{next/prev}_entry as it makes > > the code more clear to read. > > Done using coccinelle: > > > > @@ > > expression e1; > > identifier e3; > > type

Re: [PATCH] drm/scheduler: remove incorrect param documentation

2018-03-25 Thread Nayan Deshmukh
On Sun, Mar 25, 2018 at 4:44 PM, Christian König wrote: > Am 25.03.2018 um 13:09 schrieb Nayan Deshmukh: >> >> Signed-off-by: Nayan Deshmukh >> --- >> drivers/gpu/drm/scheduler/gpu_scheduler.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/gpu/drm/scheduler/gpu_scheduler.c

Re: [PATCH] drm/scheduler: remove incorrect param documentation

2018-03-25 Thread Christian König
Am 25.03.2018 um 13:09 schrieb Nayan Deshmukh: Signed-off-by: Nayan Deshmukh --- drivers/gpu/drm/scheduler/gpu_scheduler.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/scheduler/gpu_scheduler.c b/drivers/gpu/drm/scheduler/gpu_scheduler.c index 0d95888ccc3e..27fdda1264f7

[PATCH] drm/scheduler: remove incorrect param documentation

2018-03-25 Thread Nayan Deshmukh
Signed-off-by: Nayan Deshmukh --- drivers/gpu/drm/scheduler/gpu_scheduler.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/scheduler/gpu_scheduler.c b/drivers/gpu/drm/scheduler/gpu_scheduler.c index 0d95888ccc3e..27fdda1264f7 100644 --- a/drivers/gpu/drm/scheduler/gpu_schedul

[PATCH 7/8] drm/amdgpu: add amdgpu_gem_attach

2018-03-25 Thread Christian König
Check if we can do peer2peer on the PCIe bus. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c index 25

[PATCH 8/8] drm/amdgpu: add support for exporting VRAM using DMA-buf

2018-03-25 Thread Christian König
We should be able to do this now after checking all the prerequisites. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c| 44 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 9 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 91 +++

[PATCH 1/8] lib/scatterlist: add sg_set_dma_addr() helper

2018-03-25 Thread Christian König
Use this function to set an sg entry to point to device resources mapped using dma_map_resource(). The page pointer is set to NULL and only the DMA address, length and offset values are valid. Signed-off-by: Christian König --- include/linux/scatterlist.h | 23 +++ 1 file cha

[PATCH 6/8] drm/amdgpu: note that we can handle peer2peer DMA-buf

2018-03-25 Thread Christian König
Importing should work out of the box. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c index fb43faf88eb0..2566268806c3 100644 --

[PATCH 3/8] PCI: Add pci_peer_traffic_supported()

2018-03-25 Thread Christian König
From: "wda...@nvidia.com" Add checks for topology and ACS configuration to determine whether or not peer traffic should be supported between two PCI devices. Signed-off-by: Will Davis Signed-off-by: Christian König --- drivers/pci/pci.c | 112

[PATCH 2/8] PCI: Add pci_find_common_upstream_dev()

2018-03-25 Thread Christian König
From: "wda...@nvidia.com" Add an interface to find the first device which is upstream of both devices. Signed-off-by: Will Davis Signed-off-by: Christian König --- drivers/pci/search.c | 24 include/linux/pci.h | 2 ++ 2 files changed, 26 insertions(+) diff --git a

[PATCH 4/8] dma-buf: add peer2peer flag

2018-03-25 Thread Christian König
Add a peer2peer flag noting that the importer can deal with device resources which are not backed by pages. Signed-off-by: Christian König --- drivers/dma-buf/dma-buf.c | 1 + include/linux/dma-buf.h | 4 2 files changed, 5 insertions(+) diff --git a/drivers/dma-buf/dma-buf.c b/drivers/d

[PATCH 5/8] drm/amdgpu: print DMA-buf status in debugfs

2018-03-25 Thread Christian König
Just note if a BO was imported/exported. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 46b9ea4e6103..7c1f761bb1a5

[PATCH 2/5] drm/ttm: keep a reference to transfer pipelined BOs

2018-03-25 Thread Christian König
Make sure the transfered BO is never destroy before the transfer BO. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo_util.c | 50 +++ 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu

[PATCH 4/5] drm/amdgpu: add independent DMA-buf export v2

2018-03-25 Thread Christian König
Instead of relying on the DRM functions just implement our own export functions. This adds support for taking care of unpinned DMA-buf. v2: fix unintended recursion, remove debugging leftovers Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 - drivers/gpu/drm

[PATCH 3/5] drm/ttm: remove the backing store if no placement is given

2018-03-25 Thread Christian König
Pipeline removal of the BOs backing store when the placement is given during validation. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 98e06f8bf23

[PATCH 5/5] drm/amdgpu: add independent DMA-buf import v3

2018-03-25 Thread Christian König
Instead of relying on the DRM functions just implement our own import functions. This adds support for taking care of unpinned DMA-buf. v2: enable for all exporters, not just amdgpu, fix invalidation handling, lock reservation object while setting callback v3: change to new dma_buf attach inte

[PATCH 1/5] dma-buf: add optional invalidate_mappings callback v3

2018-03-25 Thread Christian König
Each importer can now provide an invalidate_mappings callback. This allows the exporter to provide the mappings without the need to pin the backing store. v2: don't try to invalidate mappings when the callback is NULL, lock the reservation obj while using the attachments, add helper to se

Re: [PATCH v2 4/4] drm/vc4: Restrict active CTM to one CRTC

2018-03-25 Thread Daniel Stone
Hi Stefan, On 25 March 2018 at 02:52, Stefan Schake wrote: > +static int vc4_crtc_get_ctm_fifo(struct vc4_dev *vc4) > +{ > + return VC4_GET_FIELD(HVS_READ(SCALER_OLEDOFFS), > +SCALER_OLEDOFFS_DISPFIFO); > +} This needs to be managed as a global resource through