[PATCH libdrm v2] amdgpu: add REPLACE and CLEAR checking for VA op (v2)

2017-03-21 Thread Junwei Zhang
v2: fix indent Signed-off-by: Junwei Zhang --- amdgpu/amdgpu_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c index 71cd666..850fe8c 100644 --- a/amdgpu/amdgpu_bo.c +++ b/amdgpu/amdgpu_bo.c @@ -952,7 +952,9

Re: [PATCH 1/2] amdgpu: add new VA operations CLEAR and REPLACE

2017-03-21 Thread Zhang, Jerry (Junwei)
On 03/21/2017 09:30 PM, Nicolai Hähnle wrote: This should use the proper procedure for updating amdgpu_drm.h, as explained in include/drm/README. I can take care of this as soon as all the kernel patches for PRT are in a tree that doesn't rebase (i.e. agd5f/drm-next-4.12 or airlied/drm-next).

Re: [PATCH libdrm 2/7] amdgpu: update amdgpu_drm.h for Vega10

2017-03-21 Thread Michel Dänzer
On 22/03/17 06:46 AM, Marek Olšák wrote: > On Tue, Mar 21, 2017 at 10:27 PM, Nicolai Hähnle wrote: >> In the past, I was told off for patches that update this file without >> following the procedure described in include/drm/README. Tbh, that procedure >> causes some

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Alex Deucher
On Tue, Mar 21, 2017 at 3:42 AM, Christian König wrote: > Patches #1 - #5, #21, #23, #25, #27, #28, #31, #35-#38, #40, #41, #45 are > Acked-by: Christian König. > > Patches #6-#20, #22, #24, #32, #39, #42 didn't made it to the list (probably > to large). > > Patches #43,

Re: [PATCH libdrm 2/7] amdgpu: update amdgpu_drm.h for Vega10

2017-03-21 Thread Marek Olšák
On Tue, Mar 21, 2017 at 10:27 PM, Nicolai Hähnle wrote: > In the past, I was told off for patches that update this file without > following the procedure described in include/drm/README. Tbh, that procedure > causes some annoyances. > > Anyway, it's definitely useful to have

Re: [PATCH libdrm 2/7] amdgpu: update amdgpu_drm.h for Vega10

2017-03-21 Thread Nicolai Hähnle
In the past, I was told off for patches that update this file without following the procedure described in include/drm/README. Tbh, that procedure causes some annoyances. Anyway, it's definitely useful to have the patch out on the mailing list in any case. Cheers, Nicolai On 21.03.2017

RE: [PATCH libdrm 7/7] tests/amdgpu: add Polaris12 support for cs test

2017-03-21 Thread Deucher, Alexander
Series is: Reviewed-by: Alex Deucher > -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Marek Olšák > Sent: Tuesday, March 21, 2017 3:56 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH libdrm 7/7]

RE: [PATCH] drm/amdgpu: allow shifts >= 32 in AMDGPU_TILING_SET/GET

2017-03-21 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Marek Olšák > Sent: Tuesday, March 21, 2017 3:44 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH] drm/amdgpu: allow shifts >= 32 in > AMDGPU_TILING_SET/GET > > From: Marek Olšák

[PATCH libdrm 1/7] amdgpu: sync amdgpu_drm.h with kernel 4.11-rc2

2017-03-21 Thread Marek Olšák
From: Marek Olšák --- include/drm/amdgpu_drm.h | 396 ++- 1 file changed, 251 insertions(+), 145 deletions(-) diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h index d8f2497..5797283 100644 ---

[PATCH libdrm 4/7] tests/amdgpu: fix the count number for vega10

2017-03-21 Thread Marek Olšák
From: Huang Rui Signed-off-by: Huang Rui Reviewed-by: Ken Wang Reviewed-by: Christian König --- tests/amdgpu/basic_tests.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-)

[PATCH libdrm 5/7] tests/amdgpu: add uvd unit test support for vega10

2017-03-21 Thread Marek Olšák
From: Leo Liu Signed-off-by: Leo Liu Acked-by: Alex Deucher --- tests/amdgpu/cs_tests.c | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/tests/amdgpu/cs_tests.c

[PATCH libdrm 2/7] amdgpu: update amdgpu_drm.h for Vega10

2017-03-21 Thread Marek Olšák
From: Marek Olšák --- include/drm/amdgpu_drm.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h index 5797283..d702a95 100644 --- a/include/drm/amdgpu_drm.h +++ b/include/drm/amdgpu_drm.h @@

[PATCH libdrm 6/7] tests/amdgpu: add vce unit test support for vega10

2017-03-21 Thread Marek Olšák
From: Leo Liu swizzle mode needs reference and input picture luma and chroma pitch aligned with 256 Signed-off-by: Leo Liu Acked-by: Alex Deucher --- tests/amdgpu/vce_tests.c | 54 +--- 1

[PATCH libdrm 7/7] tests/amdgpu: add Polaris12 support for cs test

2017-03-21 Thread Marek Olšák
From: Junwei Zhang Signed-off-by: Junwei Zhang Reviewed-by: Ken Wang --- tests/amdgpu/cs_tests.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c

[PATCH libdrm 0/7] Vega10 bits for libdrm and more

2017-03-21 Thread Marek Olšák
Hi, These are mostly libdrm patches for Vega10. BTW, I do plan to push these before the kernel support lands (including the amdgpu_drm.h change), so that I can push the Mesa support. Please review. Marek ___ amd-gfx mailing list

[PATCH libdrm 3/7] amdgpu: don't read registers not present on Vega10

2017-03-21 Thread Marek Olšák
From: Huang Rui --- amdgpu/amdgpu_gpu_info.c | 48 ++-- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/amdgpu/amdgpu_gpu_info.c b/amdgpu/amdgpu_gpu_info.c index 66c7e0e..cd31e1b 100644 --- a/amdgpu/amdgpu_gpu_info.c

[PATCH] drm/amdgpu: allow shifts >= 32 in AMDGPU_TILING_SET/GET

2017-03-21 Thread Marek Olšák
From: Marek Olšák also adjust the comments Signed-off-by: Marek Olšák --- include/uapi/drm/amdgpu_drm.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Andres Rodriguez
On 2017-03-21 11:14 AM, Deucher, Alexander wrote: -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Christian König Sent: Tuesday, March 21, 2017 5:01 AM To: Edward O'Callaghan; StDenis, Tom; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH

RE: amd-iommu: can't boot with amdgpu, AMD-Vi: Completion-Wait loop timed out

2017-03-21 Thread Nath, Arindam
>-Original Message- >From: 'j...@8bytes.org' [mailto:j...@8bytes.org] >Sent: Tuesday, March 21, 2017 9:41 PM >To: Deucher, Alexander >Cc: Alex Deucher; Daniel Drake; Chris Chiu; amd-gfx@lists.freedesktop.org; >Nath, Arindam; io...@lists.linux-foundation.org; Suthikulpanit, Suravee; >Linux

Re: amd-iommu: can't boot with amdgpu, AMD-Vi: Completion-Wait loop timed out

2017-03-21 Thread Tom St Denis
On 21/03/17 12:25 PM, 'j...@8bytes.org' wrote: On Tue, Mar 21, 2017 at 04:17:40PM +, Deucher, Alexander wrote: -Original Message- From: 'j...@8bytes.org' [mailto:j...@8bytes.org] Sent: Tuesday, March 21, 2017 12:11 PM To: Deucher, Alexander Cc: Alex Deucher; Daniel Drake; Chris

RE: amd-iommu: can't boot with amdgpu, AMD-Vi: Completion-Wait loop timed out

2017-03-21 Thread Deucher, Alexander
> -Original Message- > From: 'j...@8bytes.org' [mailto:j...@8bytes.org] > Sent: Tuesday, March 21, 2017 12:11 PM > To: Deucher, Alexander > Cc: Alex Deucher; Daniel Drake; Chris Chiu; amd-gfx@lists.freedesktop.org; > Nath, Arindam; io...@lists.linux-foundation.org; Suthikulpanit, Suravee;

RE: amd-iommu: can't boot with amdgpu, AMD-Vi: Completion-Wait loop timed out

2017-03-21 Thread Deucher, Alexander
> -Original Message- > From: 'j...@8bytes.org' [mailto:j...@8bytes.org] > Sent: Tuesday, March 21, 2017 12:26 PM > To: Deucher, Alexander > Cc: Bridgman, John; Alex Deucher; Daniel Drake; Chris Chiu; amd- > g...@lists.freedesktop.org; Nath, Arindam; iommu@lists.linux- > foundation.org;

Re: amd-iommu: can't boot with amdgpu, AMD-Vi: Completion-Wait loop timed out

2017-03-21 Thread 'j...@8bytes.org'
On Tue, Mar 21, 2017 at 04:17:40PM +, Deucher, Alexander wrote: > > -Original Message- > > From: 'j...@8bytes.org' [mailto:j...@8bytes.org] > > Sent: Tuesday, March 21, 2017 12:11 PM > > To: Deucher, Alexander > > Cc: Alex Deucher; Daniel Drake; Chris Chiu;

Re: amd-iommu: can't boot with amdgpu, AMD-Vi: Completion-Wait loop timed out

2017-03-21 Thread 'j...@8bytes.org'
On Tue, Mar 21, 2017 at 04:01:53PM +, Deucher, Alexander wrote: > It seems to only affect Stoney systems, but not others (Carrizo, > Bristol, etc.). Maybe we could just disable it on Stoney until we > root cause it. Completion-wait loop timeouts indicate something is seriously wrong. How can

RE: amd-iommu: can't boot with amdgpu, AMD-Vi: Completion-Wait loop timed out

2017-03-21 Thread Deucher, Alexander
> -Original Message- > From: j...@8bytes.org [mailto:j...@8bytes.org] > Sent: Tuesday, March 21, 2017 11:57 AM > To: Alex Deucher > Cc: Daniel Drake; Deucher, Alexander; Chris Chiu; amd- > g...@lists.freedesktop.org; Nath, Arindam; iommu@lists.linux- > foundation.org; Suthikulpanit,

Re: amd-iommu: can't boot with amdgpu, AMD-Vi: Completion-Wait loop timed out

2017-03-21 Thread j...@8bytes.org
On Fri, Mar 17, 2017 at 11:53:09AM -0400, Alex Deucher wrote: > On Fri, Mar 17, 2017 at 8:15 AM, Daniel Drake wrote: > > Hi, > > > > On Mon, Mar 13, 2017 at 2:01 PM, Deucher, Alexander > > wrote: > >> > We are unable to boot Acer Aspire E5-553G (AMD

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Alex Deucher
On Tue, Mar 21, 2017 at 8:18 AM, Christian König wrote: > In my Spam folder I've found: > > Patches #22, #24, #39, #50, #64, #69, #75, #78 which are Acked-by: Christian > König . > > Patches #32, #42 which are Reviewed-by: Christian König >

Re: [PATCH] drm: add check for plane functions

2017-03-21 Thread Harry Wentland
On 2017-03-20 05:42 AM, Shirish S wrote: On Mon, Mar 20, 2017 at 1:51 PM, Daniel Vetter wrote: On Mon, Mar 20, 2017 at 09:58:01AM +0530, Shirish S wrote: First of all, thanks for your comments/insights. On Sat, Mar 18, 2017 at 12:59 AM, Eric Anholt wrote:

RE: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Tuesday, March 21, 2017 5:01 AM > To: Edward O'Callaghan; StDenis, Tom; amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH 000/100] Add Vega10 Support > > Am

[PATCH umr] Try /dev/fmem first when reading system memory

2017-03-21 Thread Tom St Denis
On many platforms /dev/mem is restricted to PCI I/O space only. The /dev/fmem device driver can be found on github and it allows unrestricted access to physical memory. Signed-off-by: Tom St Denis --- src/lib/read_vram.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH umr] Add program memory dump to wave status.

2017-03-21 Thread Tom St Denis
It will display the leading 4 words up to the current PC value and then 4 words after. Signed-off-by: Tom St Denis --- src/app/print_waves.c | 44 +--- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git

[PATCH] drm/amd/display: Remove DCE12 guards

2017-03-21 Thread Alex Deucher
From: Jordan Lazare Signed-off-by: Jordan Lazare Reviewed-by: Harry Wentland --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 -- drivers/gpu/drm/amd/display/Kconfig| 7 ---

[PATCH] drm/amd/powerplay: Fix bug in vega10_get_fan_control_mode

2017-03-21 Thread Alex Deucher
From: Harry Wentland Signed-off-by: Harry Wentland Reviewed-by: Eric Huang Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 5 +++-- 1 file changed, 3

[PATCH] drm/amdgpu: remove the clearance of vce 4.0 interrupt mask

2017-03-21 Thread Alex Deucher
From: Leo Liu Requested by SRIOV, the clearance of the bit moved into firmware Signed-off-by: Leo Liu Acked-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 4 1 file changed, 4 deletions(-) diff --git

[PATCH] drm/amd/powerplay: fix issue dpm blocked by no led config.

2017-03-21 Thread Alex Deucher
From: Rex Zhu some cards don't support led config. so not return error in this case. Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH] drm/amdgpu: load mc firware in driver for Polaris.

2017-03-21 Thread Alex Deucher
On Tue, Mar 21, 2017 at 1:02 AM, Rex Zhu wrote: > load mc ucode in driver if VBIOS not loaded > a full version of MC ucode, > > Change-Id: I2aea697155f6b3916dc304a6bf198c3f8417bda5 > Signed-off-by: Rex Zhu > --- > drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 84 >

Re: [PATCH 2/2] amdgpu: add REPLACE and CLEAR checking for VA op

2017-03-21 Thread Nicolai Hähnle
On 17.03.2017 06:59, Junwei Zhang wrote: Signed-off-by: Junwei Zhang --- amdgpu/amdgpu_bo.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c index 71cd666..8fe3cfd 100644 --- a/amdgpu/amdgpu_bo.c +++

Re: [PATCH 1/2] amdgpu: add new VA operations CLEAR and REPLACE

2017-03-21 Thread Nicolai Hähnle
This should use the proper procedure for updating amdgpu_drm.h, as explained in include/drm/README. I can take care of this as soon as all the kernel patches for PRT are in a tree that doesn't rebase (i.e. agd5f/drm-next-4.12 or airlied/drm-next). Nicolai On 17.03.2017 06:59, Junwei Zhang

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Christian König
In my Spam folder I've found: Patches #22, #24, #39, #50, #64, #69, #75, #78 which are Acked-by: Christian König . Patches #32, #42 which are Reviewed-by: Christian König . And patches #80, #85, #89, #90, #91, #100 which already had

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Marek Olšák
It would be better to keep the headers as-is, because changing them wouldn't fix anybody's problems, but it would take time from us that we don't have. Marek On Mar 21, 2017 9:46 AM, "Edward O'Callaghan" wrote: > > > On 03/21/2017 05:36 PM, Christian König wrote: >

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Christian König
Patches #48, #49, #52-#63, #65-#68, #70-#72, #74, #76, #77, #79, #81-#84 are Acked-by: Christian König . Patches #50, #64, #69, #75, #78, #80, #85, #89-#91, #100 didn't made it to the list. Patch #73 probably needs to be moved to the end of the set or at least

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Christian König
Am 21.03.2017 um 09:45 schrieb Edward O'Callaghan: On 03/21/2017 05:36 PM, Christian König wrote: Am 21.03.2017 um 00:38 schrieb Tom St Denis: On 03/20/2017 06:34 PM, Jan Ziak wrote: On Mon, Mar 20, 2017 at 10:41 PM, Alex Deucher > wrote:

Re: [PATCH 046/100] drm/amdgpu: Add GMC 9.0 support

2017-03-21 Thread Christian König
Am 20.03.2017 um 21:29 schrieb Alex Deucher: From: Alex Xie On SOC-15 parts, the GMC (Graphics Memory Controller) consists of two hubs: GFX (graphics and compute) and MM (sdma, uvd, vce). Signed-off-by: Alex Xie Reviewed-by: Alex Deucher

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Edward O'Callaghan
On 03/21/2017 05:36 PM, Christian König wrote: > Am 21.03.2017 um 00:38 schrieb Tom St Denis: >> On 03/20/2017 06:34 PM, Jan Ziak wrote: >>> On Mon, Mar 20, 2017 at 10:41 PM, Alex Deucher >> > wrote: >>> >>> On Mon, Mar 20, 2017 at 5:36

Re: [PATCH umr] sync up registers/bits with staging tree

2017-03-21 Thread Edward O'Callaghan
On 03/21/2017 02:31 AM, Tom St Denis wrote: > Signed-off-by: Tom St Denis > --- > scripts/parse_bits.sh| 4 +++- > src/lib/ip/dce60_bits.i | 1 + > src/lib/ip/smu712_regs.i | 1 + > src/lib/ip/smu713_regs.i | 1 + > 4 files changed, 6 insertions(+), 1 deletion(-) > >

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Christian König
Patches #1 - #5, #21, #23, #25, #27, #28, #31, #35-#38, #40, #41, #45 are Acked-by: Christian König. Patches #6-#20, #22, #24, #32, #39, #42 didn't made it to the list (probably to large). Patches #43, #44 are Reviewed-by: Christian König . Patch #26: That stuff

Re: [PATCH 000/100] Add Vega10 Support

2017-03-21 Thread Christian König
Am 21.03.2017 um 00:38 schrieb Tom St Denis: On 03/20/2017 06:34 PM, Jan Ziak wrote: On Mon, Mar 20, 2017 at 10:41 PM, Alex Deucher > wrote: On Mon, Mar 20, 2017 at 5:36 PM, Jan Ziak <0xe2.0x9a.0...@gmail.com

[PATCH] drm/amdgpu: load mc firware in driver for Polaris.

2017-03-21 Thread Rex Zhu
load mc ucode in driver if VBIOS not loaded a full version of MC ucode, Change-Id: I2aea697155f6b3916dc304a6bf198c3f8417bda5 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 84 +-- 1 file changed, 81 insertions(+), 3

Re: [PATCH] drm/amdgpu: fix duplicated code

2017-03-21 Thread Christian König
Am 21.03.2017 um 03:34 schrieb Jerry Zhang: On 03/21/2017 10:10 AM, Chunming Zhou wrote: it could come from branch merge. Change-Id: I16959aad6ca6d64cb8330f23ee6472eec4cf2a3e Signed-off-by: Chunming Zhou Reviewed-by: Junwei Zhang Reviewed-by: