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

[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 ---

[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

[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

[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 ---

[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

[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

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

[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

[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

[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

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

[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

[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

[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:

[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 ---

[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 ---

[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):

[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

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

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

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,

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

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

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

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

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

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

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

[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