Change to dynamically create and release hive info object,
which help driver support more hives in the future.
Signed-off-by: Dennis Li
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 8a55b0bc044a..fdfdc2f678c9 100644
--- a/drivers/gpu/
[AMD Official Use Only - Internal Distribution Only]
Series is reviewed-by: Evan Quan
-Original Message-
From: amd-gfx On Behalf Of Alex Deucher
Sent: Tuesday, August 18, 2020 3:53 AM
To: amd-gfx@lists.freedesktop.org
Cc: Deucher, Alexander
Subject: [PATCH 4/4] drm/amdgpu/pm: only hide
[AMD Public Use]
Reviewed-by: Tao Zhou
> -Original Message-
> From: Jiansong Chen
> Sent: Tuesday, August 18, 2020 11:01 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Feng, Kenneth ; Zhou1, Tao
> ; Chen, Jiansong (Simon)
> Subject: [PATCH] drm/amd/pm: update driver if version for navy_f
It's in accordance with pmfw 65.7.0 for navy_flounder.
Signed-off-by: Jiansong Chen
Change-Id: Iaac4c591f92c9a00891a29757d142c0109dcd676
---
drivers/gpu/drm/amd/pm/inc/smu_v11_0.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/pm/inc/smu_v11_0.h
b/driver
[AMD Official Use Only - Internal Distribution Only]
>-Original Message-
>From: Das, Nirmoy
>Sent: Wednesday, August 12, 2020 8:18 PM
>To: Deng, Emily ; amd-gfx@lists.freedesktop.org
>Subject: Re: [PATCH] drm/amdgpu: Fix repeatly flr issue
>
>
>On 8/12/20 11:19 AM, Emily.Deng wrote:
>> Fr
[AMD Official Use Only - Internal Distribution Only]
Reviewed-by: Kenneth Feng
-Original Message-
From: Jiansong Chen
Sent: Monday, August 17, 2020 10:46 PM
To: amd-gfx@lists.freedesktop.org
Cc: Zhou1, Tao ; Feng, Kenneth ; Chen,
Jiansong (Simon)
Subject: [PATCH] Revert "drm/amdgpu:
[AMD Public Use]
Reviewed-by: Tao Zhou
> -Original Message-
> From: Jiansong Chen
> Sent: Monday, August 17, 2020 10:46 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: Zhou1, Tao ; Feng, Kenneth
> ; Chen, Jiansong (Simon)
> Subject: [PATCH] Revert "drm/amdgpu: disable gfxoff for navy_flou
Sorry, more bike-shedding.
Am 2020-08-17 um 7:58 p.m. schrieb Mukul Joshi:
> Add __user annotation to fix related sparse warning while reading
> SDMA counters from userland.
>
> Reported-by: kernel test robot
> Signed-off-by: Mukul Joshi
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manag
Add __user annotation to fix related sparse warning while reading
SDMA counters from userland.
Reported-by: kernel test robot
Signed-off-by: Mukul Joshi
---
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers
Am 2020-08-17 um 4:45 p.m. schrieb Mukul Joshi:
> Add __user annotation to fix related sparse warning while reading
> SDMA counters from userland.
>
> Reported-by: kernel test robot
> Signed-off-by: Mukul Joshi
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 8 +---
> 1 file
Add __user annotation to fix related sparse warning while reading
SDMA counters from userland.
Reported-by: kernel test robot
Signed-off-by: Mukul Joshi
---
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/
On 2020-08-17 9:53 a.m., Christian König wrote:
> Am 15.08.20 um 04:48 schrieb Luben Tuikov:
>> Remove DRM_SCHED_PRIORITY_LOW, as it was used
>> in only one place.
>>
>> Rename and separate by a line
>> DRM_SCHED_PRIORITY_MAX to DRM_SCHED_PRIORITY_COUNT
>> as it represents a (total) count of said
>
FAMILY_KV is APUs and we already check for APUs.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index 5fc6a9a13096..f2e70655e8d9 1006
Grab the data from the SMU metrics table.
Signed-off-by: Alex Deucher
---
Can someone with a renoir system verify this?
.../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 21 +++
1 file changed, 21 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
b/driv
We can get this on RENOIR and newer via the SMU metrics
table.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index f2e70655e8
Grab the data from the SMU metrics table.
Signed-off-by: Alex Deucher
---
.../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 29 +++
1 file changed, 29 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
inde
On Mon, Aug 17, 2020 at 3:33 PM Bhawanpreet Lakha
wrote:
>
> Without this, enabling dsc will cause a nullptr
>
> Reviewed-by: Mikita Lipski
> Signed-off-by: Bhawanpreet Lakha
Acked-by: Alex Deucher
> ---
> drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c | 1 +
> 1 file changed, 1 inser
Without this, enabling dsc will cause a nullptr
Reviewed-by: Mikita Lipski
Signed-off-by: Bhawanpreet Lakha
---
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
b/drivers/gpu/drm/amd/
On Mon, Aug 17, 2020 at 3:09 AM Alexander Monakov wrote:
>
> Ping.
Patch looks good to me:
Reviewed-by: Alex Deucher
Nick, unless you have any objections, I'll go ahead and apply it.
Alex
>
> On Tue, 4 Aug 2020, Alexander Monakov wrote:
>
> > Documentation for sysfs backlight level interface
Am 2020-08-17 um 1:05 p.m. schrieb Mukul Joshi:
> To prevent reporting erroneous SDMA usage, initialize SDMA
> activity counter to 0 before using.
>
> Signed-off-by: Mukul Joshi
Reviewed-by: Felix Kuehling
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_process.c | 1 +
> 1 file changed, 1 insertion(+
To prevent reporting erroneous SDMA usage, initialize SDMA
activity counter to 0 before using.
Signed-off-by: Mukul Joshi
---
drivers/gpu/drm/amd/amdkfd/kfd_process.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
b/drivers/gpu/drm/amd/amdkfd/kfd_pr
From: Emil Velikov
[ Upstream commit 1a87f67a66de4ad0c0d79fd86b6c5273143387c3 ]
The driver does not hold struct_mutex, thus using the locked version of
the helper is incorrect.
Cc: Alex Deucher
Cc: Christian König
Cc: amd-gfx@lists.freedesktop.org
Fixes: a39414716ca0 ("drm/amdgpu: add indepen
From: Emil Velikov
[ Upstream commit 1a87f67a66de4ad0c0d79fd86b6c5273143387c3 ]
The driver does not hold struct_mutex, thus using the locked version of
the helper is incorrect.
Cc: Alex Deucher
Cc: Christian König
Cc: amd-gfx@lists.freedesktop.org
Fixes: a39414716ca0 ("drm/amdgpu: add indepen
Oh-just noticed this is also missing a CC for sta...@vger.kernel.org. I'll add
it before pushing but please make sure to follow the guidelines here when
submitting fixes, since otherwise they might not get backported automatically
to older kernels:
https://www.kernel.org/doc/html/latest/process/st
Reviewed-by: Lyude Paul
I will go ahead and push this to drm-misc-fixes, thanks!
On Fri, 2020-08-14 at 13:01 -0400, Bhawanpreet Lakha wrote:
> [Why]
> In certain cases the crtc can be NULL and returning -EINVAL causes
> atomic check to fail when it shouln't. This leads to valid
> configurations
[AMD Public Use]
Acked-by: Alex Deucher
From: amd-gfx on behalf of Jiansong
Chen
Sent: Monday, August 17, 2020 10:45 AM
To: amd-gfx@lists.freedesktop.org
Cc: Zhou1, Tao ; Feng, Kenneth ; Chen,
Jiansong (Simon)
Subject: [PATCH] Revert "drm/amdgpu: disable gfx
This reverts commit 6a72ad7e387c6fec821c230fda3460f79fc0f877.
Newly released sdma fw (51.52) provides a fix for the issue.
---
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0
[AMD Public Use]
You can probably just squash patches 2-5 into one patch. Either way, series is:
Reviewed-by: Alex Deucher
From: Quan, Evan
Sent: Monday, August 17, 2020 4:29 AM
To: amd-gfx@lists.freedesktop.org
Cc: Deucher, Alexander ; Quan, Evan
Subject:
[AMD Official Use Only - Internal Distribution Only]
You can probably just squash patches 2-5 into one patch. Either way, series is:
Reviewed-by: Alex Deucher
From: Quan, Evan
Sent: Monday, August 17, 2020 3:49 AM
To: amd-gfx@lists.freedesktop.org
Cc: Deucher,
Am 15.08.20 um 04:48 schrieb Luben Tuikov:
Remove DRM_SCHED_PRIORITY_LOW, as it was used
in only one place.
Rename and separate by a line
DRM_SCHED_PRIORITY_MAX to DRM_SCHED_PRIORITY_COUNT
as it represents a (total) count of said
priorities and it is used as such in loops
throughout the code. (0
Am 17.08.20 um 12:34 schrieb Kevin Wang:
v1:
add trace event enabled check to avoid nop loop when submit multi ibs
in amdgpu_cs_ioctl() function.
v2:
add a new wrapper function to trace all amdgpu cs ibs.
Signed-off-by: Kevin Wang
Reviewed-by: Christian König
---
drivers/gpu/drm/amd/amd
v1:
add trace event enabled check to avoid nop loop when submit multi ibs
in amdgpu_cs_ioctl() function.
v2:
add a new wrapper function to trace all amdgpu cs ibs.
Signed-off-by: Kevin Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 16 +---
1 file changed, 13 insertions(+), 3 del
Am 17.08.20 um 11:04 schrieb Kevin Wang:
add trace event enabled check to avoid nop loop when submit multi ibs
in amdgpu_cs_ioctl() function.
Maybe we should change the trace point instead to trace all IBs with
just a single call.
Signed-off-by: Kevin Wang
---
drivers/gpu/drm/amd/amdgpu
Am 17.08.20 um 09:35 schrieb Kevin Wang:
fix amdgpu_bo_release_notify() comment error.
Signed-off-by: Kevin Wang
Reviewed-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amd
add trace event enabled check to avoid nop loop when submit multi ibs
in amdgpu_cs_ioctl() function.
Signed-off-by: Kevin Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
b/drivers/gpu
Acked-by: Nirmoy Das
On 8/17/20 9:35 AM, Kevin Wang wrote:
fix amdgpu_bo_release_notify() comment error.
Signed-off-by: Kevin Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
[AMD Official Use Only - Internal Distribution Only]
Reviewed-by: Dennis Li
-Original Message-
From: amd-gfx On Behalf Of Kevin Wang
Sent: Monday, August 17, 2020 3:36 PM
To: amd-gfx@lists.freedesktop.org
Cc: Kuehling, Felix ; Wang, Kevin(Yang)
; Koenig, Christian
Subject: [PATCH] dr
Considering the same logic can be applied to Arcturus, Navi1X
and Sienna Cichlid.
Change-Id: I9b80956fee5b094ea0e102601add6c02e3429719
Signed-off-by: Evan Quan
---
drivers/gpu/drm/amd/pm/inc/smu_v11_0.h| 3 ++
.../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 35 +--
.../g
This is needed for UMD pstate switch.
Change-Id: I8e753c682c29fe420167b14b23f526ea9b0db42b
Signed-off-by: Evan Quan
---
.../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 34 +++
1 file changed, 34 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
b/driv
Add deep sleep disablement/enablement on UMD pstate entering/exiting.
Change-Id: I4fbc02bb4a390ab82293a5ff9c91f2a8beb0a3c9
Signed-off-by: Evan Quan
---
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 1 +
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 2 ++
drivers/gpu/drm/amd/pm/swsmu/smu_internal
This is needed for UMD pstate switch.
Change-Id: Icd5d207359b7b83c1dd689a41fd9b48f537cde9a
Signed-off-by: Evan Quan
---
.../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 34 +++
1 file changed, 34 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
b/driver
This is needed for UMD pstate switch.
Change-Id: I97ee3af60f4a3e4c2f575ce8c8e1a2866ed37f02
Signed-off-by: Evan Quan
---
.../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 34 +++
1 file changed, 34 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
Considering the same logic can be applied to Arcturus, Navi1X
and Sienna Cichlid.
Change-Id: I16958d114afbb2433789ca350019fea9b50e1218
Signed-off-by: Evan Quan
---
drivers/gpu/drm/amd/pm/inc/smu_v11_0.h | 3 +++
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 13 +
This is needed for UMD pstate switch.
Change-Id: I40e235add95d6abbf99186112673a411edf2bb39
Signed-off-by: Evan Quan
---
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 12
1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
b/drivers
This is needed for UMD pstate switch.
Change-Id: I23d68bc291960118c799366cbb3fc89ccb42f98c
Signed-off-by: Evan Quan
---
.../gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 12
1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
Add gfx ulv disablement/enablement on UMD pstate entering/exiting.
Change-Id: Ieb38fdb5975b563f24c0b172fedd01acf99afb10
Signed-off-by: Evan Quan
---
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 1 +
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 2 ++
drivers/gpu/drm/amd/pm/swsmu/smu_internal.h
This is needed for UMD pstate switch.
Change-Id: Id14399d3a5e4b24bb8a72a298ec4e96717444741
Signed-off-by: Evan Quan
---
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 12
1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
b/drivers/gpu
fix amdgpu_bo_release_notify() comment error.
Signed-off-by: Kevin Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 3d95b3edb635..
core_link_read_dpcd returns only DC_OK(1) and DC_ERROR_UNEXPECTED(-1),
the caller should check error using DC_OK instead of checking against 0
Signed-off-by: Tong Zhang
---
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
Ping.
On Tue, 4 Aug 2020, Alexander Monakov wrote:
> Documentation for sysfs backlight level interface requires that
> values in both 'brightness' and 'actual_brightness' files are
> interpreted to be in range from 0 to the value given in the
> 'max_brightness' file.
>
> With amdgpu, max_brightn
50 matches
Mail list logo