4.1-rc3: i915-related crash

2015-05-26 Thread Pavel Machek
Hi! Debian 8 based system. X suddenly froze. Not quite reproducible, I'm afraid. Pavel [331445.592203] ftdi_sio 5-2:1.0: device disconnected [331447.063345] r8169 :03:00.0 eth0: link up [331447.930260] PM: resume of devices comp

[PATCH 88/88] drm/amdgpu: implement the allocation range (v2)

2015-05-26 Thread Alex Deucher
From: Chunming Zhou Pass a ttm_placement pointer to amdgpu_bo_create_restricted add min_offset to amdgpu_bo_pin_restricted. This makes it easier to allocate memory with address restrictions. With this patch we can also enable 2-ended allocation again. v2: fix rebase conflicts Reviewed-by: Jam

[PATCH 87/88] drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2)

2015-05-26 Thread Alex Deucher
From: yanyang1 The structure is renamed and moved to amd_shared.h to make the component independent. This makes it easier to add new components in the future. v2: fix include path Reviewed-by: Jammy Zhou Signed-off-by: yanyang1 Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/Mak

[PATCH 86/88] drm/amdgpu: drop allocation flag masks

2015-05-26 Thread Alex Deucher
From: Christian König Not needed any more. Signed-off-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Monk Liu --- include/uapi/drm/amdgpu_drm.h | 8 1 file changed, 8 deletions(-) diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index d9b9b6f

[PATCH 85/88] drm/amdgpu: drop AMDGPU_FENCE_SIGNALED_SEQ

2015-05-26 Thread Alex Deucher
From: Christian König It's causing issues with VMID handling and comparing the fence value two times actually doesn't make handling faster. Port of radeon commit "d6d5c5b8364bcc4d52cddc68bcb0a330d2af20f3". Signed-off-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Monk Liu ---

[PATCH 84/88] drm/amdgpu: port fault_reserve_notify changes from radeon

2015-05-26 Thread Alex Deucher
From: Christian König Signed-off-by: Christian König Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 55 +++--- 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd

[PATCH 83/88] drm/amdgpu: enable uvd dpm and powergating

2015-05-26 Thread Alex Deucher
From: Sonny Jiang Enable UVD dpm (dynamic power management) and powergating. UVD dpm dynamically scales the UVD clocks on demand. Powergating turns off the power to the block when it's not in use. Signed-off-by: Sonny Jiang Acked-by: Christian König Reviewed-by: Alex Deucher --- drivers

[PATCH 82/88] drm/amdgpu: implement VCE two instances support

2015-05-26 Thread Alex Deucher
From: Leo Liu VCE 3.0 has two indentical instances in the engine, they share the same registers name in differrent memory block distinguished by the grbm_gfx_index, we set to master instance after init, it will dispatch task to slave instance. These two instances will share the same firmware, but

[PATCH 81/88] drm/amdgpu: recalculate VCE firmware BO size

2015-05-26 Thread Alex Deucher
From: Leo Liu Firmware required BO size changes in terms of ASIC family Signed-off-by: Leo Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 -- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 5 + drivers/gpu/drm/amd/amdgpu/amdgpu_vc

[PATCH 80/88] drm/amdgpu: remove unused TRACE_SYSTEM_STRING define

2015-05-26 Thread Alex Deucher
Port of 77cb2fea1e5fc4b083dd967f231bbf6edd96150e to amdgpu. Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_t

[PATCH 79/88] drm/amdgpu: rework tiling flags

2015-05-26 Thread Alex Deucher
From: Marek Olšák Signed-off-by: Marek Olšák Reviewed-by: Alex Deucher Acked-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 43 +- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 92 ---

[PATCH 78/88] drm/amdgpu: don't set unused tiling flags

2015-05-26 Thread Alex Deucher
From: Marek Olšák Signed-off-by: Marek Olšák Reviewed-by: Alex Deucher Acked-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amd

[PATCH 77/88] drm/amdgpu: actually use the VM map parameters

2015-05-26 Thread Alex Deucher
From: Christian König Signed-off-by: Christian König Reviewed-by: Jammy Zhou Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/a

[PATCH 76/88] drm/amdgpu: validate amdgpu_vm_bo_map parameters

2015-05-26 Thread Alex Deucher
From: Christian König Signed-off-by: Christian König Reviewed-by: Jammy Zhou Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index

[PATCH 75/88] drm/amdgpu: enforce AMDGPU_GEM_CREATE_NO_CPU_ACCESS

2015-05-26 Thread Alex Deucher
From: Christian König Deny user and kernel mapping if we said we never want to do so. Signed-off-by: Christian König Reviewed-by: Jammy Zhou Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c| 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 +++ 2 files changed

[PATCH 74/88] drm/amdgpu: fix VM_CONTEXT*_PAGE_TABLE_END_ADDR handling

2015-05-26 Thread Alex Deucher
From: Christian König Signed-off-by: Christian König Reviewed-by: Jammy Zhou Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgp

[PATCH 73/88] drm/amdgpu: retry dcpd fetch

2015-05-26 Thread Alex Deucher
Retry the dpcd fetch several times. Some eDP panels fail several times before the fetch is successful. bug: https://bugs.freedesktop.org/show_bug.cgi?id=73530 Ported from radeon. Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/atombios_dp.c | 20 +

[PATCH 72/88] drm/amdgpu: simplify DPCD debug output

2015-05-26 Thread Alex Deucher
Use %*ph rather than walking the array. Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/atombios_dp.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_dp.c b/drivers/gpu/drm/amd/amdgpu/atom

[PATCH 71/88] drm/amdgpu: make some DP parameters const

2015-05-26 Thread Alex Deucher
Ported from similar radeon patch. Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/atombios_dp.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_dp.c b/drivers/gpu/drm/amd/amdgpu/atom

[PATCH 70/88] drm/amdgpu: take the mode_config mutex when handling hpds

2015-05-26 Thread Alex Deucher
Since we may modify display state. Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index 2187960..b4d36f

[PATCH 69/88] drm/amdgpu: add and implement the GPU reset status query

2015-05-26 Thread Alex Deucher
From: Marek Olšák Signed-off-by: Marek Olšák Reviewed-by: Christian König Reviewed-by: Jammy Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 6 ++--- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c| 36 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +

[PATCH 68/88] drm/amdgpu: add some new tonga pci ids

2015-05-26 Thread Alex Deucher
Reviewed-by: Christian König Reviewed-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index c392812..6edacce 100644 --

[PATCH 67/88] drm/amdgpu: add new bonaire pci id

2015-05-26 Thread Alex Deucher
Reviewed-by: Christian König Reviewed-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index dfd4261..c392812 100644 ---

[PATCH 66/88] drm/amdgpu: rewording some left radeons

2015-05-26 Thread Alex Deucher
From: Jammy Zhou Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/d

[PATCH 65/88] drm/amdgpu: switch to amdgpu folder for firmware files v2

2015-05-26 Thread Alex Deucher
From: Jammy Zhou v2: keep using radeon folder for CIK Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 4 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 4 +-- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c| 52 ---

[PATCH 64/88] drm/amdgpu: do necessary NULL check

2015-05-26 Thread Alex Deucher
From: Jammy Zhou Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c index 855d56a..2

[PATCH 63/88] drm/amdgpu: expose the max virtual address

2015-05-26 Thread Alex Deucher
From: Jammy Zhou Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 1 + include/uapi/drm/amdgpu_drm.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgp

[PATCH 62/88] drm/amdgpu: fix context switch

2015-05-26 Thread Alex Deucher
From: Christian König Properly protect the state and also handle submission failures. Signed-off-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Jammy Zhou Reviewed-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 7 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 16

[PATCH 61/88] drm/amdgpu: fix dereference before check

2015-05-26 Thread Alex Deucher
From: Christian König Signed-off-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Jammy Zhou Reviewed-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/driver

[PATCH 60/88] drm/amdgpu: cleanup HDP flush handling

2015-05-26 Thread Alex Deucher
From: Christian König Signed-off-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Jammy Zhou Reviewed-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 6 +++--- drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 15 +++

[PATCH 59/88] drm/amdgpu: always emit GDS switch

2015-05-26 Thread Alex Deucher
From: Christian König Otherwise a process can access the GDS data of another process. Signed-off-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Jammy Zhou Reviewed-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 58/88] drm/amdgpu: add CE preamble flag v3

2015-05-26 Thread Alex Deucher
From: Jammy Zhou The CE preamble IB can be dropped for the same context v2: use the flags directly v3: remove 'CE' for potential preamble usage by other rings Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 7 +++ drivers/gpu/drm/amd/am

[PATCH 57/88] drm/amdgpu: add flags for amdgpu_ib structure

2015-05-26 Thread Alex Deucher
From: Jammy Zhou Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 2 +- drivers/gpu/drm/amd/am

[PATCH 56/88] drm/amdgpu: check context id for context switching (v2)

2015-05-26 Thread Alex Deucher
From: Jammy Zhou check the filp is not robust, and sometimes different contexts may have same filp value. v2: check both filp and ctx_id Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 +++-

[PATCH 55/88] drm/amdgpu: add ctx_id to the WAIT_CS IOCTL (v4)

2015-05-26 Thread Alex Deucher
From: Jammy Zhou It is required to support fence per context. v2: add amdgpu_ctx_get/put v3: improve get/put v4: squash hlock fix Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 ++

[PATCH 54/88] drm/amdgpu: allow unaligned memory access (v2)

2015-05-26 Thread Alex Deucher
From: Jack Xiao Set up the CP and SDMA for proper unaligned memory access. Required for OpenCL 2.x v2: udpate commit message Signed-off-by: Jack Xiao Reviewed-by: Monk Liu Reviewed-by: Jammy Zhou --- drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 6 +- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c |

[PATCH 53/88] drm/amdgpu: make the CTX ioctl thread-safe

2015-05-26 Thread Alex Deucher
From: Marek Olšák The existing locks were protecting the list, but not the elements. v2: rename hlock to lock Signed-off-by: Marek Olšák Reviewed-by: Christian König Reviewed-by: Jammy Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 2

[PATCH 52/88] drm/amdgpu: remove unsafe context releasing

2015-05-26 Thread Alex Deucher
From: Marek Olšák If ctx was released between put and get, then "get" would crash. Signed-off-by: Marek Olšák Reviewed-by: Christian König Reviewed-by: Jammy Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git

[PATCH 51/88] drm/amdgpu: fix userptr lockup

2015-05-26 Thread Alex Deucher
From: Christian König Signed-off-by: Christian König Reviewed-by: Jammy Zhou Reviewed-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c index b3a17a9

[PATCH 50/88] drm/amdgpu: fix userptr BO unpin bug (v2)

2015-05-26 Thread Alex Deucher
From: "monk.liu" sg could point to array of contigiouse page*, only free page could lead to memory leak. v2: use iterator Signed-off-by: monk.liu Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 8 +++- 1 file changed, 3 insertions(

[PATCH 49/88] drm/amdgpu: remove AMDGPU_GEM_CREATE_CPU_GTT_UC

2015-05-26 Thread Alex Deucher
From: Jammy Zhou This flag isn't used by user mode drivers, remove it to avoid confusion. And rename GTT_WC to GTT_USWC to make it clear. Signed-off-by: Jammy Zhou Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 10 ++ include/uapi/drm/amdgpu_drm.h

[PATCH 48/88] drm/amdgpu fix amdgpu.dpm=0 (v2)

2015-05-26 Thread Alex Deucher
From: Sonny Jiang Fix crash when disabling dpm. v2: agd5f: fix coding style, cleanup commit message Signed-off-by: Sonny Jiang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/

[PATCH 47/88] drm/amdgpu: memset gds_info struct in info ioctl

2015-05-26 Thread Alex Deucher
Avoids possibility that info may leak via the uninitialized _pad element. Noticed-by: Dan Carpenter Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

[PATCH 46/88] drm/amdgpu: fix error handling in cz_dpm_hw_fini/cz_dpm_suspend

2015-05-26 Thread Alex Deucher
Need to unlock the mutex on error. Noticed-by: Dan Carpenter Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c b/drivers/gpu/drm/amd/

[PATCH 45/88] drm/amdgpu: let bo_list handler start from 1

2015-05-26 Thread Alex Deucher
From: "monk.liu" this could prevent mis-understanding, because libdrm side will consider no bo_list created if handleis zero Signed-off-by: monk.liu Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 2 +- 1 file changed, 1 insertion(+

[PATCH 44/88] drm/amdgpu: fix bug occurs when bo_list is NULL

2015-05-26 Thread Alex Deucher
From: "monk.liu" Still need to handle ibs BO and validate them even bo_list is NULL Signed-off-by: Monk.Liu Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --gi

[PATCH 43/88] drm/amdgpu: fix error check issue in amdgpu_mn_invalidate_range_start

2015-05-26 Thread Alex Deucher
From: Jack Xiao Signed-off-by: Jack Xiao Reviewed-by: Monk Liu Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c b/drivers

[PATCH 42/88] drm/amdgpu: drop ttm two ended allocation

2015-05-26 Thread Alex Deucher
amdgpu_bo_create() calls amdgpu_ttm_placement_from_domain() before ttm_bo_init() is called. amdgpu_ttm_placement_from_domain() uses the ttm bo size to determine when to select top down allocation but since the ttm bo is not initialized yet the check is always false. It only took affect when buffe

[PATCH 41/88] drm/amdgpu: add VI pci ids

2015-05-26 Thread Alex Deucher
Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 632a8d1..dfd

[PATCH 40/88] drm/amdgpu: add CIK pci ids

2015-05-26 Thread Alex Deucher
Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 83 + 1 file changed, 83 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index

[PATCH 37/88] drm/amdgpu: Do not directly dereference pointers to BIOS area.

2015-05-26 Thread Alex Deucher
Use readb() and memcpy_fromio() accessors instead. Ported from radeon commit: f2c9e560b406f2f6b14b345c7da33467dee9cdf2 Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 10 +++--- 1 file changed, 7 insertions(+), 3 d

[PATCH 36/88] drm/amdgpu: fix const warnings in amdgpu_connectors.c

2015-05-26 Thread Alex Deucher
Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_c

[PATCH 34/88] drm/amdgpu: add amdgpu.h (v2)

2015-05-26 Thread Alex Deucher
This is the main header file for amdgpu. v2: remove stable comments Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2387 +++ 1 file changed, 2387 insertions(+) create mode 100644 drivers/gp

[PATCH 33/88] drm/amdgpu: add amdgpu_family.h

2015-05-26 Thread Alex Deucher
This header defines asic families and attributes. Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_family.h | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 drivers/gpu/drm/amd/amdgpu/amdg

[PATCH 32/88] drm/amdgpu: add ppsmc.h

2015-05-26 Thread Alex Deucher
This header provides the smc message interface for the driver. Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/ppsmc.h | 196 + 1 file changed, 196 insertions(+) create mode 100644 drivers/gpu/drm/a

[PATCH 31/88] drm/amdgpu: add clearstate_defs.h

2015-05-26 Thread Alex Deucher
This header provides for format for the GCA blocks clear state (i.e., default state). Each GCA version has a specific clear state. Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/clearstate_defs.h | 44 1

[PATCH 30/88] drm/amdgpu: add atombios headers

2015-05-26 Thread Alex Deucher
These headers define the atombios table structure and driver interface. Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/ObjectID.h | 736 +++ drivers/gpu/drm/amd/amdgpu/atombios.h | 8555 + drivers/gpu/

[PATCH 29/88] drm/amdgpu: add amdgpu uapi header (v4)

2015-05-26 Thread Alex Deucher
This header defines the ioctl interface to the driver. v2: remove stale tiling defines v3: add appropriate padding v4: remove executable bits on header Acked-by: Christian König Acked-by: Jammy Zhou Signed-off-by: Alex Deucher --- include/uapi/drm/amdgpu_drm.h | 590 +

[PATCH 00/88] amdgpu driver updates

2015-05-26 Thread Alex Deucher
The amdgpu driver has been out now for over a month. We've integrated the feedback we have received so far. I'd like to get the driver upstream for kernel 4.2. Patches 1-28 just add register headers and are too big to send out. Patches 35, 38, 39 add the core of the driver and are also a bit big

[Bug 90668] vertical stripes/glitches on secondary screen r9 280x

2015-05-26 Thread bugzilla-dae...@freedesktop.org
dia, fglrx, vboxvideo -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/dba03662/attachment-0001.html>

[Bug 90668] vertical stripes/glitches on secondary screen r9 280x

2015-05-26 Thread bugzilla-dae...@freedesktop.org
are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/4fd0b95d/attachment.html>

[Bug 90668] vertical stripes/glitches on secondary screen r9 280x

2015-05-26 Thread bugzilla-dae...@freedesktop.org
68051/ -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/8cf8e1e0/attachment.html>

[Nouveau] [PATCH 8/8] acpi: Use booleans when probing different _DSM types

2015-05-26 Thread Samuel Pitoiset
On 05/26/2015 02:46 PM, Pierre Moreau wrote: > I'm thinking of re-writing this patch to just OR the different returned > retval and test for individual bits directly in the final conditionals. > So this would give something like: > > > int retval = 0; > > while ((pdev = pci_get_class(PCI_CLASS_D

[Bug 98751] radeon: multihead "no signal" on one of the monitors - regression

2015-05-26 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=98751 --- Comment #11 from Mikkel Oscar Lyderik --- It's working for me! -- You are receiving this mail because: You are watching the assignee of the bug.

[PATCH] drm/radeon: don't share plls if monitors differ in audio support

2015-05-26 Thread Alex Deucher
Enabling audio may enable different pll dividers. Don't share plls if the monitors differ in audio support. bug: https://bugzilla.kernel.org/show_bug.cgi?id=98751 Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 4 +++- 1 file changed, 3 in

[Nouveau] [PATCH v2] nouveau: add coherent BO attribute

2015-05-26 Thread Alexandre Courbot
On Sun, May 24, 2015 at 3:26 PM, Maarten Lankhorst wrote: > Op 23-05-15 om 08:45 schreef Alexandre Courbot: >> On Fri, May 22, 2015 at 3:23 AM, Martin Peres >> wrote: >>> On 21/05/2015 11:47, Ben Skeggs wrote: On 21 May 2015 at 16:08, Alexandre Courbot wrote: > Add a flag allowing Nouv

[Bug 90668] vertical stripes/glitches on secondary screen r9 280x

2015-05-26 Thread bugzilla-dae...@freedesktop.org
HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/009cddcf/attachment.html>

[Nouveau] [PATCH v2] nouveau: add coherent BO attribute

2015-05-26 Thread Martin Peres
On 26/05/2015 16:23, Alexandre Courbot wrote: > On Sun, May 24, 2015 at 3:26 PM, Maarten Lankhorst > wrote: >> Op 23-05-15 om 08:45 schreef Alexandre Courbot: >>> On Fri, May 22, 2015 at 3:23 AM, Martin Peres >>> wrote: On 21/05/2015 11:47, Ben Skeggs wrote: > On 21 May 2015 at 16:08, A

[Bug 98751] radeon: multihead "no signal" on one of the monitors - regression

2015-05-26 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=98751 --- Comment #10 from Alex Deucher --- Created attachment 178001 --> https://bugzilla.kernel.org/attachment.cgi?id=178001&action=edit possible fix Does the attached patch help? -- You are receiving this mail because: You are watching the assig

[PATCH RFC v2 7/7] ARM: dts: am335x-boneblack: Add HDMI audio support DO NOT MERGE

2015-05-26 Thread Jyri Sarha
This patch is here only to demonstrate HDMI codec functionality on Beaglebone-Black. Adds mcasp0_pins, clk_mcasp0_fixed, clk_mcasp0, mcasp0, sound node, and changes the tda19988 node to follow the new binding. Signed-off-by: Jyri Sarha --- arch/arm/boot/dts/am335x-boneblack.dts | 78 +++

[PATCH RFC v2 6/7] drm/i2c: tda998x: Register ASoC HDMI codec for audio functionality DO NOT MERGE

2015-05-26 Thread Jyri Sarha
This patch is here to demonstrate how to use the ASoC hdmi-codec to implement ASoC codec API in tda998x driver. I do not have proper documentation for tda998x family chips so I lack the necessary information for making a decent binding for audio part of the chip. In stead I use binding from Jean-F

[PATCH RFC v2 5/7] drm/i2c: tda998x: Add support of a DT graph of ports DO NOT MERGE

2015-05-26 Thread Jyri Sarha
From: Jean-Francois Moine Two kinds of ports may be declared in a DT graph of ports: video and audio. This patch accepts the port value from a video port as an alternative to the video-ports property. It also accepts audio ports in the case the transmitter is not used as a slave encoder. The new

[PATCH RFC v2 4/7] ASoC: hdmi-codec: Add ELD based audio pcm rules DO NOT MERGE

2015-05-26 Thread Jyri Sarha
This patch is mostly just a copy paste from Russel King's generic patchs[1] for the same thing. The patche is included only for testing purposes. Do not merge! [1] http://lists.freedesktop.org/archives/dri-devel/2015-April/080525.html Signed-off-by: Jyri Sarha --- sound/soc/codecs/hdmi-codec.c

[PATCH RFC v2 3/7] ASoC: hdmi-codec: Add hdmi-codec for external HDMI-encoders

2015-05-26 Thread Jyri Sarha
The hdmi-codec is a platform device driver to be registered from drivers of external HDMI encoders with I2S and/or spdif interface. The driver in turn registers an ASoC codec for the encoder's audio functionality. The structures and definitions in the API header are mostly redundant copies of simi

[PATCH RFC v2 2/7] ASoC: hdmi: Remove obsolete dummy HDMI codec

2015-05-26 Thread Jyri Sarha
The hdmi stub codec has not been used since refactoring of OMAP HDMI audio support. Signed-off-by: Jyri Sarha --- sound/soc/codecs/Kconfig | 4 -- sound/soc/codecs/Makefile | 2 - sound/soc/codecs/hdmi.c | 109 -- 3 files changed, 115 deletions(

[PATCH RFC v2 1/7] ASoC: core: If component doesn't have of_node use parent's node instead

2015-05-26 Thread Jyri Sarha
If an ASoC component device does not have a device tree node, use its parent's node instead, when looking for a matching DAI based on a device tree reference. This allows video device drivers to register a separate child device for their ASoC side audio functionality. Signed-off-by: Jyri Sarha -

[PATCH RFC v2 0/7] Implement generic ASoC HDMI codec

2015-05-26 Thread Jyri Sarha
Only the first three patches are meant for serious review. The ASoC part should be ready for review in other respects but the EDID SADs handling is waiting for Russell King's DRM ELD helper patches. There is a copy-pasted not-to-be-merged patch with the same functionality in the patch series. The

[Bug 90668] vertical stripes/glitches on secondary screen r9 280x

2015-05-26 Thread bugzilla-dae...@freedesktop.org
|| -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/5b0ac9c7/attachment.html>

[Bug 90668] vertical stripes/glitches on secondary screen r9 280x

2015-05-26 Thread bugzilla-dae...@freedesktop.org
/dri-devel/attachments/20150526/8b0c1500/attachment-0001.html>

[PATCH 3/3] drm: rcar-du: Convert rcar_du_encoders_init_one() return value to 0/<0

2015-05-26 Thread Geert Uytterhoeven
On Tue, May 26, 2015 at 5:01 PM, Laurent Pinchart wrote: > --- a/drivers/gpu/drm/rcar-du/rcar_du_kms.c > +++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.c > @@ -640,14 +640,14 @@ static int rcar_du_encoders_init_one(struct > rcar_du_device *rcdu, > of_node_put(connector); > > if (!ret)

[Bug 89987] Slow VDPAU (rv770_restrict_performance_levels_before_switch failed)

2015-05-26 Thread bugzilla-dae...@freedesktop.org
: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/9340a0c5/attachment.html>

[Nouveau] [PATCH v2] nouveau: add coherent BO attribute

2015-05-26 Thread Emil Velikov
On 26/05/15 19:06, Martin Peres wrote: > On 26/05/2015 16:23, Alexandre Courbot wrote: >> On Sun, May 24, 2015 at 3:26 PM, Maarten Lankhorst >> wrote: >>> Op 23-05-15 om 08:45 schreef Alexandre Courbot: On Fri, May 22, 2015 at 3:23 AM, Martin Peres wrote: > On 21/05/2015 11:47, Ben

[Bug 90666] Stacktrace / Warning during switch (ctrl+alt+f1) to console on zbook 14 (Radeon/intel)

2015-05-26 Thread bugzilla-dae...@freedesktop.org
ceiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/c78c8ae3/attachment.html>

[Bug 90666] Stacktrace / Warning during switch (ctrl+alt+f1) to console on zbook 14 (Radeon/intel)

2015-05-26 Thread bugzilla-dae...@freedesktop.org
l/attachments/20150526/dace950c/attachment.html>

[Bug 90666] Stacktrace / Warning during switch (ctrl+alt+f1) to console on zbook 14 (Radeon/intel)

2015-05-26 Thread bugzilla-dae...@freedesktop.org
ttachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/011cc123/attachment.html>

[Bug 90666] Stacktrace / Warning during switch (ctrl+alt+f1) to console on zbook 14 (Radeon/intel)

2015-05-26 Thread bugzilla-dae...@freedesktop.org
l/attachments/20150526/c8ca9083/attachment.html>

2 questions about git and merging

2015-05-26 Thread Jani Nikula
On Tue, 26 May 2015, Daniel Vetter wrote: > On Tue, May 26, 2015 at 03:09:04PM +0200, Rainer Koenig wrote: >> Hi, >> >> a week ago I experienced problems on the skylake platform and got the >> adivce to try out the drm-intel-nightly branch. I tried and it was a >> success. >> >> So after the ini

[PATCH] drm: Remove misleading paragraph from drm_vblank_pre_modeset kerneldoc comment

2015-05-26 Thread Michel Dänzer
From: Michel Dänzer drm_vblank_pre/post_modeset work fine for the radeon driver even though it uses hardware counters, including suspend/resume. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/drm_irq.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/drm_irq.c b/dr

[Bug 90537] radeonsi bo/va conflict on RADEON_GEM_VA (rscreen->ws->buffer_from_handle returns NULL)

2015-05-26 Thread bugzilla-dae...@freedesktop.org
An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/c5680d4c/attachment.html>

[Bug 90537] radeonsi bo/va conflict on RADEON_GEM_VA (rscreen->ws->buffer_from_handle returns NULL)

2015-05-26 Thread bugzilla-dae...@freedesktop.org
g/archives/dri-devel/attachments/20150526/94be4a07/attachment.html>

[PATCH 3/3] drm: rcar-du: Convert rcar_du_encoders_init_one() return value to 0/<0

2015-05-26 Thread Laurent Pinchart
The function returns 1 on success, and either 0 or a negative error code on failure. As the 0 and negative values don't need to be differentiated by the caller, convert it to the usual scheme of returning 0 on success and a negative error code on failure. Signed-off-by: Laurent Pinchart --- driv

[PATCH 2/3] drm: rcar-du: Clarify error message when encoder initialization fails

2015-05-26 Thread Laurent Pinchart
A failure to initialize an encoder currently prints an error message in the kernel log without mentioning which encoder failed to initialize. To help debugging initialization issues print the encoder DT node name. This requires moving the error message to the rcar_du_encoders_init_one function and

[PATCH 1/3] drm: rcar-du: Fix crash with groups that have less than 9 planes

2015-05-26 Thread Laurent Pinchart
Commit 917de180379d ("drm: rcar-du: Implement universal plane support") made the number of planes per group dynamic, but didn't update all loops over the planes array, resulting in out-of-bound accesses on DU instances that have an odd number of CRTCs (such as the R8A7790). Fix it. Fixes: 917de180

[PATCH 0/3] R-Car DU fixes

2015-05-26 Thread Laurent Pinchart
Hello, This patch set fixes a crash in the R-Car DU driver (1/3) and adds two other small cleanups (2/3 and 3/3). Please see individual patches for details. Laurent Pinchart (3): drm: rcar-du: Fix crash with groups that have less than 9 planes drm: rcar-du: Clarify error message when encoder

[PATCH 2/2] drm/radeon: Fix max_vblank_count value for current display engines

2015-05-26 Thread Michel Dänzer
From: Michel Dänzer The value was much too low, which could cause the userspace visible vblank counter to move backwards when the hardware counter wrapped around. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/radeon/radeon_irq_kms.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletio

[PATCH 1/2] drm: Fix off-by-one in vblank hardware counter wraparound handling

2015-05-26 Thread Michel Dänzer
From: Michel Dänzer dev->max_vblank_count contains the largest value that can be represented by the hardware counter. When the hardware counter wraps around, we have to add that value + 1 to get the same value as if the hardware counter didn't wrap around. Signed-off-by: Michel Dänzer --- dr

[Bug 90655] [drm:radeon_get_bios] *ERROR* Unable to locate a BIOS ROM

2015-05-26 Thread bugzilla-dae...@freedesktop.org
the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150526/823ecf50/attachment-0001.html>

[PATCH] drm/nouveau/platform: fix compilation if !CONFIG_IOMMU

2015-05-26 Thread Alexandre Courbot
On Wed, May 20, 2015 at 4:07 PM, Arnd Bergmann wrote: > On Wednesday 20 May 2015 15:10:24 Alexandre Courbot wrote: >> The lack of IOMMU API support can make nouveau_platform_probe_iommu() >> fail to compile because struct iommu_ops is then empty. Fix this by >> skipping IOMMU probe in that case -

[PATCH] drm/atomic: fix out of bounds read in for_each_*_in_state helpers

2015-05-26 Thread Daniel Vetter
On Mon, May 25, 2015 at 01:29:44PM +0300, Andrey Ryabinin wrote: > for_each_*_in_state validate array index after > access to array elements, thus perform out of bounds read. > > Fix this by validating index in the first place and read > array element iff validation was successful. > > Fixes: df6

drm: imx: multi-display support questions

2015-05-26 Thread Gary Bisson
Hi all, After a few days of experimentation on multi-display support on i.MX6, I have some questions regarding the status of the imx-drm driver. Here is description of my testing setup: - Nitrogen6x (a SabreLite would work the same) - Mainline kernel 4.1-rc2 + a few patches for display support (s

  1   2   >