RE: [PATCH 1/1] drm/amd/amdgpu: get maximum and used UVD handles (v3)

2016-12-14 Thread Nath, Arindam
>-Original Message- >From: Emil Velikov [mailto:emil.l.veli...@gmail.com] >Sent: Wednesday, December 14, 2016 9:26 PM >To: Nath, Arindam >Cc: David Airlie; Deucher, Alexander; amd-gfx mailing list; ML dri-devel; >Koenig, Christian >Subject: Re: [PATCH 1/1] drm/amd/amdgpu: get maximum and us

[PATCH 7/9] drm/amdgpu: update rev id for oland

2016-12-14 Thread Flora Cui
Change-Id: Ic59492ca6820ad6140b3c1c65622c76dadc5f6ae Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 8e2377b..d353af3 100644 --- a/drivers/gpu/drm/amd/amdgpu/si

[PATCH 6/9] drm/amdgpu: update golden setting for oland

2016-12-14 Thread Flora Cui
Change-Id: Ie67a7a7b7490cbda99f1f7132f342b0fa23d3a23 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 232ee89.

[PATCH 5/9] drm/amdgpu: update rev id for hainan

2016-12-14 Thread Flora Cui
Change-Id: I5cb930369b4683f8211040190fbf98af78ff8ffc Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 49e0fee..232ee89 100644 --- a/drivers/gpu/drm/amd/amdgpu/si

[PATCH 9/9] drm/amdgpu: update rev id for verde

2016-12-14 Thread Flora Cui
Change-Id: I9f2a140d635e9758f21a392ae2e976416de9453b Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 2a99a41..c46b015 100644 --- a/drivers/gpu/d

[PATCH 8/9] drm/amdgpu: update golden setting for verde

2016-12-14 Thread Flora Cui
Change-Id: I185932964b624f63309323c624ca051a6601875e Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 304 +++- 1 file changed, 142 insertions(+), 162 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c ind

[PATCH 4/9] drm/amdgpu: update golden setting for hainan

2016-12-14 Thread Flora Cui
Change-Id: I89c8fce38aa90b56b2e282839d13e5844a73bb98 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index cf8

[PATCH 3/9] drm/amdgpu: update rev id for pitcairn

2016-12-14 Thread Flora Cui
Change-Id: I7714f3754b4515c448ee21dc0b0a7bb2324a50cb Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 19b511e..cf8a0a1 100644 --- a/drivers/gpu/drm/amd/amdgpu/si

[PATCH 1/9] drm/amdgpu: update si kicker smc firmware

2016-12-14 Thread Flora Cui
Change-Id: I6cd5997844cfdf64a8a36147f03e70b3e5eb48fe Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 56 ++--- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dp

[PATCH 2/9] drm/amdgpu: update golden setting for pitcairn

2016-12-14 Thread Flora Cui
Change-Id: I337deeaec13aa9342353fe8617b534b1855663b1 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 2439875..19b51

RE: [PATCH 2/2] drm/amdgpu: update pitcairn golden setting

2016-12-14 Thread Cui, Flora
Yes. I'm working on this. Regards, Flora -Original Message- From: Zhang, Jerry Sent: Thursday, December 15, 2016 2:43 PM To: Cui, Flora ; amd-gfx@lists.freedesktop.org Cc: Cui, Flora Subject: RE: [PATCH 2/2] drm/amdgpu: update pitcairn golden setting Hi Flora, > @@ -1206,6 +1212,7 @@

[PATCH 2/2] drm/amdgpu: update pitcairn golden setting

2016-12-14 Thread Flora Cui
Change-Id: Ie52b73ac3618174b71a1dfb5e0f152705f72c616 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 2439875..cf8a

[PATCH 1/2] drm/amdgpu: update si kicker smc firmware

2016-12-14 Thread Flora Cui
Change-Id: I6cd5997844cfdf64a8a36147f03e70b3e5eb48fe Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 56 ++--- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dp

[PATCH 1/2] drm/amdgpu: update si kicker smc firmware

2016-12-14 Thread Flora Cui
Change-Id: I6cd5997844cfdf64a8a36147f03e70b3e5eb48fe Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 56 ++--- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dp

答复: [PATCH xf86-video-amdgpu] Simplify drmmode_handle_uevents

2016-12-14 Thread Qu, Jim
Reviewed-by: Jim Qu Thanks JimQu 发件人: amd-gfx 代表 Michel Dänzer 发送时间: 2016年12月15日 11:47 收件人: amd-gfx@lists.freedesktop.org 主题: [PATCH xf86-video-amdgpu] Simplify drmmode_handle_uevents From: Michel Dänzer No functional change intended. Signed-off-by

[PATCH xf86-video-amdgpu] Simplify drmmode_handle_uevents

2016-12-14 Thread Michel Dänzer
From: Michel Dänzer No functional change intended. Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index a5b43458..63b3b076 100644 --- a/src/drmmode_display.

Re: [PATCH] drm/amd/amdgpu: Widen mmio trace register address width

2016-12-14 Thread zhoucm1
On 2016年12月14日 23:53, Tom St Denis wrote: Support wider address spaces, make it 32-bit so we don't have to revisit this for a while. Signed-off-by: Tom St Denis Reviewed-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

Re: [PATCH] drm/amdgpu: Remove checking for atombios

2016-12-14 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan On 12/15/2016 07:52 AM, Nils Wallménius wrote: > This is a left over from radeon, amdgpu doesn't support any > non-atombios parts and amdgpu_device_init would bail if the > check for atombios failed anyway. > > Signed-off-by: Nils Wallménius > --- > drivers/gpu/

[PATCH 7/7] drm/amd/display: Add in/out transfer functions to DC

2016-12-14 Thread Harry Wentland
From: Anthony Koo Refactor part 1 of degamma/regamma programming. End goal is to have source and output transfer function in which dc can use to decide how to program the degamma and regamma HW. Gamma will be explicitly applied through dc_update_surfaces_for_target. Color module should build t

[PATCH 3/7] drm/amd/display: Retrieve windowed fullscreen state

2016-12-14 Thread Harry Wentland
From: Andrew Wong - Retrieve windowed fullscreen state when getting freesync params. Change-Id: Idde76f5c216016b24abc51e654a59ce473960be8 Signed-off-by: Andrew Wong Reviewed-by: Anthony Koo Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 3 +++ 1 file c

[PATCH 4/7] drm/amd/display: Fix HDMI scaling corruption issue.

2016-12-14 Thread Harry Wentland
From: Zeyu Fan Change-Id: Ifbb1d4d5ef34688df12c1055eb3ec222b46cd969 Signed-off-by: Zeyu Fan Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dce/dce_transform.c | 5 + drivers/gpu/drm/amd/display/dc/dce/dce_transform.h | 8 +++- 2 files changed, 12 i

[PATCH 2/7] drm/amd/display: Change locking of registers when flipping frames.

2016-12-14 Thread Harry Wentland
From: Andrew Wong - Introduce GRPH_UPDATE_LOCK around programming surface flip. - Remove the now unused graphic surface lock. - Add macros to get and set four registers - both immediate and H Retrace should not be enabled at the same time Change-Id: Id5e54253f3e104730386e1aea551c2835282fbeb Sign

[PATCH 6/7] drm/amd/display: Moved swizzle parameter translation to dc.

2016-12-14 Thread Harry Wentland
From: Yongqiang Sun Change-Id: I20ff413ea632082c302f531be0adba75a249ceaf Signed-off-by: Yongqiang Sun Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/basics/conversion.c | 9 + drivers/gpu/drm/amd/display/dc/basics/conversion.h | 2 ++ drivers/gpu

[PATCH 5/7] drm/amd/display: re gamma programming

2016-12-14 Thread Harry Wentland
From: Vitaly Prosyak Fix gamma update logic to avoid crash Change-Id: I24a742a25c523f4dc931f5fa3e50d67cac4aa564 Signed-off-by: Vitaly Prosyak Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 0/7] DC Patches Dec 14, 2016

2016-12-14 Thread Harry Wentland
* Bunch of bug fixes * First step for change on how gamma is programmed Amy Zhang (1): drm/amd/display: Fix Gamma Adjustment Andrew Wong (2): drm/amd/display: Change locking of registers when flipping frames. drm/amd/display: Retrieve windowed fullscreen state Anthony Koo (1): drm/amd/di

[PATCH 1/7] drm/amd/display: Fix Gamma Adjustment

2016-12-14 Thread Harry Wentland
From: Amy Zhang - Gamma correction is not properly copied to the surface after refactor - Make sure gamma correction is copied with correct retain Change-Id: I26ab634e270e73b77683b63dc448044d2c825285 Signed-off-by: Amy Zhang Reviewed-by: Anthony Koo Acked-by: Harry Wentland --- drivers/gpu/d

Re: [PATCH 2/8] dal: remove some unused wrappers

2016-12-14 Thread Dave Airlie
On 15 Dec. 2016 02:27, "Harry Wentland" wrote: They are still used all over the place (e.g. dc/dce110/dce110_resource.c:41 3). We should at least do an spatch to use kzalloc/krealloc/kfree across the board if the wrappers are an issue. Some are used, these 3 defines are not, there is another h

[PATCH] drm/amdgpu: Remove checking for atombios

2016-12-14 Thread Nils Wallménius
This is a left over from radeon, amdgpu doesn't support any non-atombios parts and amdgpu_device_init would bail if the check for atombios failed anyway. Signed-off-by: Nils Wallménius --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 10

Re: [PATCH] amdgpu: get maximum and used UVD handles

2016-12-14 Thread Emil Velikov
On 12 December 2016 at 18:51, wrote: > From: Arindam Nath > > User might want to query the maximum number of UVD > instances supported by firmware. In addition to that, > if there are multiple applications using UVD handles > at the same time, he might also want to query the > currently used num

RE: [RFC] Using DC in amdgpu for upcoming GPU

2016-12-14 Thread Cheng, Tony
Thanks Alex my reply was a little off topic :) -Original Message- From: Alex Deucher [mailto:alexdeuc...@gmail.com] Sent: Wednesday, December 14, 2016 1:02 PM To: Cheng, Tony Cc: Jani Nikula ; Lukas Wunner ; Bridgman, John ; Deucher, Alexander ; Grodzovsky, Andrey ; amd-gfx mailing li

Re: [RFC] Using DC in amdgpu for upcoming GPU

2016-12-14 Thread Alex Deucher
On Wed, Dec 14, 2016 at 12:23 PM, Cheng, Tony wrote: > > > On 12/14/2016 4:57 AM, Jani Nikula wrote: >> >> On Tue, 13 Dec 2016, "Cheng, Tony" wrote: >>> >>> I am struggling with that these comminty contributions to DC would be. >>> >>> Us AMD developer has access to HW docs and designer and we ar

Re: [RFC] Using DC in amdgpu for upcoming GPU

2016-12-14 Thread Cheng, Tony
On 12/14/2016 4:57 AM, Jani Nikula wrote: On Tue, 13 Dec 2016, "Cheng, Tony" wrote: I am struggling with that these comminty contributions to DC would be. Us AMD developer has access to HW docs and designer and we are still spending 50% of our time figuring out why our HW doesn't work right.

Re: [PATCH 2/8] dal: remove some unused wrappers

2016-12-14 Thread Alex Deucher
On Wed, Dec 14, 2016 at 11:26 AM, Harry Wentland wrote: > They are still used all over the place (e.g. > dc/dce110/dce110_resource.c:413). > > We should at least do an spatch to use kzalloc/krealloc/kfree across the > board if the wrappers are an issue. Please do. Alex > > NAKed > > Harry > > O

Re: [RFC] Using DC in amdgpu for upcoming GPU

2016-12-14 Thread Alex Deucher
On Tue, Dec 13, 2016 at 7:22 AM, Daniel Stone wrote: > Hi Harry, > I've been loathe to jump in here, not least because both cop roles > seem to be taken, but ... > > On 13 December 2016 at 01:49, Harry Wentland wrote: >> On 2016-12-11 09:57 PM, Dave Airlie wrote: >>> On 8 December 2016 at 12:02,

Re: [PATCH 2/8] dal: remove some unused wrappers

2016-12-14 Thread Harry Wentland
They are still used all over the place (e.g. dc/dce110/dce110_resource.c:413). We should at least do an spatch to use kzalloc/krealloc/kfree across the board if the wrappers are an issue. NAKed Harry On 2016-12-13 01:41 AM, Dave Airlie wrote: From: Dave Airlie Signed-off-by: Dave Airlie

Re: Raciness with page table shadows being swapped out

2016-12-14 Thread Nicolai Hähnle
On 14.12.2016 15:56, Christian König wrote: Am 14.12.2016 um 15:22 schrieb Nicolai Hähnle: On 13.12.2016 10:48, Christian König wrote: The attached patch has fixed these crashes for me so far, but it's very heavy-handed: it collects all page table shadows and the page directory shadow and adds

Re: [PATCH 1/1] drm/amd/amdgpu: get maximum and used UVD handles (v3)

2016-12-14 Thread Emil Velikov
On 12 December 2016 at 18:49, wrote: > From: Arindam Nath > > Change History > -- > > v3: changes suggested by Christian > - Add a check for UVD IP block using AMDGPU_HW_IP_UVD > query type. > - Add a check for asic_type to be less than > CHIP_POLARIS10 since starting Polaris, we

[PATCH] drm/amd/amdgpu: Widen mmio trace register address width

2016-12-14 Thread Tom St Denis
Support wider address spaces, make it 32-bit so we don't have to revisit this for a while. Signed-off-by: Tom St Denis --- drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/dr

Re: [RFC] Using DC in amdgpu for upcoming GPU

2016-12-14 Thread Harry Wentland
On 2016-12-13 08:50 PM, Michel Dänzer wrote: On 13/12/16 09:59 PM, Daniel Vetter wrote: On Tue, Dec 13, 2016 at 12:22:59PM +, Daniel Stone wrote: Hi Harry, I've been loathe to jump in here, not least because both cop roles seem to be taken, but ... On 13 December 2016 at 01:49, Harry Wentl

Re: Raciness with page table shadows being swapped out

2016-12-14 Thread Christian König
Am 14.12.2016 um 15:22 schrieb Nicolai Hähnle: On 13.12.2016 10:48, Christian König wrote: The attached patch has fixed these crashes for me so far, but it's very heavy-handed: it collects all page table shadows and the page directory shadow and adds them all to the reservations for the callers

Re: Raciness with page table shadows being swapped out

2016-12-14 Thread Nicolai Hähnle
On 13.12.2016 10:48, Christian König wrote: The attached patch has fixed these crashes for me so far, but it's very heavy-handed: it collects all page table shadows and the page directory shadow and adds them all to the reservations for the callers of amdgpu_vm_update_page_directory. That is mo

Re: [RFC] Using DC in amdgpu for upcoming GPU

2016-12-14 Thread Jani Nikula
On Tue, 13 Dec 2016, "Cheng, Tony" wrote: > I am struggling with that these comminty contributions to DC would be. > > Us AMD developer has access to HW docs and designer and we are still > spending 50% of our time figuring out why our HW doesn't work right. I > can't image community doing much

[PATCH 1/2] drm/amdgpu: update golden setting/tiling table of tahiti

2016-12-14 Thread Flora Cui
Change-Id: I7007d77b1518cd4ddde4cfca3d649c3ef405dc55 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 344 +++--- drivers/gpu/drm/amd/amdgpu/si.c | 38 ++-- 2 files changed, 221 insertions(+), 161 deletions(-) diff --git a/drivers/gpu/drm/am