[PATCH 06/11] drm/amdkfd: Use VMID bitmap from KGD

2017-09-15 Thread Felix Kuehling
From: Yong Zhao The hard-coded values related to VMID were removed in KFD, as those values can be calculated in the KFD initialization function. Signed-off-by: Yong Zhao Signed-off-by: Felix Kuehling ---

[PATCH 07/11] drm/amdkfd: Reuse CHIP_* from amdgpu

2017-09-15 Thread Felix Kuehling
From: Yong Zhao There are already CHIP_* definitions under amd_shared.h file on amdgpu side, so KFD should reuse them rather than defining new ones. Using enum for asic type requires default cases on switch statements to prevent compiler warnings. BUG on unsupported ASICs. It

[PATCH 11/11] drm/amdkfd: Set /dev/kfd permissions to 0666 by default

2017-09-15 Thread Felix Kuehling
From: Andres Rodriguez Set the default permissions of /dev/kfd to be more than just root accessible 600. Signed-off-by: Andres Rodriguez Reviewed-by: Felix Kuehling --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 10

[PATCH 04/11] drm/amdkfd: Adjust dequeue latencies and timeouts

2017-09-15 Thread Felix Kuehling
Adjust latencies and timeouts for dequeueing with HWS and consolidate them in one place. Make them longer to allow long running waves to complete without causing a timeout. The timeout is twice as long as the latency plus some buffer to make sure we don't detect a timeout prematurely. Change

[PATCH 10/11] drm/amdkfd: Print event limit messages only once per process

2017-09-15 Thread Felix Kuehling
To avoid spamming the log. Signed-off-by: Felix Kuehling --- drivers/gpu/drm/amd/amdkfd/kfd_events.c | 5 - drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_events.c

[PATCH 03/11] drm/amdkfd: Rectify the jiffies calculation error with milliseconds

2017-09-15 Thread Felix Kuehling
From: Yong Zhao The timeout in milliseconds should not be regarded as jiffies. This commit fixed that. Signed-off-by: Yong Zhao Signed-off-by: Felix Kuehling --- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 8 +---

[PATCH 02/11] drm/amdkfd: Fix suspend/resume issue on Carrizo

2017-09-15 Thread Felix Kuehling
From: Yong Zhao When we do suspend/resume through "sudo pm-suspend" while there is HSA activity running, upon resume we will encounter HWS hanging, which is caused by memory read/write failures. The root cause is that when suspend, we neglected to unbind pasid from kfd device.

Re: [PATCH] lib: Closed hash table with low overhead

2017-09-15 Thread Andrew Morton
On Mon, 28 Aug 2017 21:53:10 -0400 Felix Kuehling wrote: > This adds a statically sized closed hash table implementation with > low memory and CPU overhead. The API is inspired by kfifo. > > Storing, retrieving and deleting data does not involve any dynamic > memory

[PATCH] drm/radeon: properly initialize r600_audio_status() data

2017-09-15 Thread Arnd Bergmann
The structure returned from r600_audio_status() is only partially initialized, and older gcc versions (4.3 and 4.4) warn about this: drivers/gpu/drm/radeon/r600_hdmi.c: In function 'r600_audio_status': drivers/gpu/drm/radeon/r600_hdmi.c:108: error: 'status.id' is used uninitialized in this

Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Harry Wentland
On 2017-09-15 01:36 PM, Christian König wrote: > Am 15.09.2017 um 19:33 schrieb Harry Wentland: >> On 2017-09-15 01:26 PM, Christian König wrote: >>> Am 15.09.2017 um 17:35 schrieb Felix Kuehling: On 2017-09-15 11:28 AM, Christian König wrote: > Am 15.09.2017 um 17:26 schrieb Deucher,

Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Christian König
Am 15.09.2017 um 19:33 schrieb Harry Wentland: On 2017-09-15 01:26 PM, Christian König wrote: Am 15.09.2017 um 17:35 schrieb Felix Kuehling: On 2017-09-15 11:28 AM, Christian König wrote: Am 15.09.2017 um 17:26 schrieb Deucher, Alexander: -Original Message- From: Wentland, Harry

Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Harry Wentland
On 2017-09-15 01:26 PM, Christian König wrote: > Am 15.09.2017 um 17:35 schrieb Felix Kuehling: >> On 2017-09-15 11:28 AM, Christian König wrote: >>> Am 15.09.2017 um 17:26 schrieb Deucher, Alexander: > -Original Message- > From: Wentland, Harry > Sent: Friday, September 15,

Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Harry Wentland
On 2017-09-15 11:27 AM, Deucher, Alexander wrote: >> -Original Message- >> From: Wentland, Harry >> Sent: Friday, September 15, 2017 11:21 AM >> To: Koenig, Christian; amd-gfx@lists.freedesktop.org >> Cc: Deucher, Alexander; Grodzovsky, Andrey; Cheng, Tony >> Subject: Re: [PATCH 3/3]

Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Felix Kuehling
On 2017-09-15 11:28 AM, Christian König wrote: > Am 15.09.2017 um 17:26 schrieb Deucher, Alexander: >>> -Original Message- >>> From: Wentland, Harry >>> Sent: Friday, September 15, 2017 11:21 AM >>> To: Koenig, Christian; amd-gfx@lists.freedesktop.org >>> Cc: Deucher, Alexander;

Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Harry Wentland
On 2017-09-15 11:28 AM, Christian König wrote: > Am 15.09.2017 um 17:26 schrieb Deucher, Alexander: >>> -Original Message- >>> From: Wentland, Harry >>> Sent: Friday, September 15, 2017 11:21 AM >>> To: Koenig, Christian; amd-gfx@lists.freedesktop.org >>> Cc: Deucher, Alexander;

RE: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Deucher, Alexander
> -Original Message- > From: Wentland, Harry > Sent: Friday, September 15, 2017 11:21 AM > To: Koenig, Christian; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander; Grodzovsky, Andrey; Cheng, Tony > Subject: Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness > > > > On

RE: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Deucher, Alexander
> -Original Message- > From: Wentland, Harry > Sent: Friday, September 15, 2017 11:21 AM > To: Koenig, Christian; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander; Grodzovsky, Andrey; Cheng, Tony > Subject: Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness > > > > On

Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Harry Wentland
On 2017-09-15 11:08 AM, Christian König wrote: > Am 15.09.2017 um 16:32 schrieb Harry Wentland: >> Log DC init but default log level to 0 (default for >> amdgpu_dc_log) otherwise. Bug reporters can still make >> DC more chatty like so >> amdgpu.dc_log = 1 > > Which is exactly the reason

Re: [PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Christian König
Am 15.09.2017 um 16:32 schrieb Harry Wentland: Log DC init but default log level to 0 (default for amdgpu_dc_log) otherwise. Bug reporters can still make DC more chatty like so amdgpu.dc_log = 1 Which is exactly the reason why I think this patch is superfluous. Either have a compile time

Re: [PATCH v2 1/1] drm/amdgpu: Add gem_prime_mmap support

2017-09-15 Thread Christian König
Am 14.09.2017 um 00:39 schrieb Samuel Li: v2: drop hdp invalidate/flush. Signed-off-by: Samuel Li --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 77

Re: RE: Can you tell me which driver supports AMD's sriov?

2017-09-15 Thread maok...@126.com
hi: Do you have amdgpu hypervisor driver patches or compiled module available to us? We do the testing and we feed back the test results. We're very interested in this. When does it fit into the kernel? maok...@126.com From: Yu, Xiangliang Date: 2017-09-15 10:15 To:

[PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread kenwan
From: Ken Wang Signed-off-by: Ken Wang Change-Id: I6fd2c216a84747313f18db25a444be5ed43b4f4b --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 10 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h| 3

[PATCH 2/3] drm/amd/display: Pass log_mask from DM

2017-09-15 Thread Harry Wentland
Linux and Windows often desire different log levels. Change-Id: Idd3c672e8b36f41de240e94d0c2d4b56ce60376e Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +- drivers/gpu/drm/amd/display/dc/basics/logger.c | 41

RE: [PATCH] drm/amd/powerplay: Simplify smu7_voting_clients()

2017-09-15 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Rex Zhu > Sent: Friday, September 15, 2017 8:00 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex > Subject: [PATCH] drm/amd/powerplay: Simplify smu7_voting_clients() > > Change-Id:

[PATCH 3/3] drm/amd/display: Reduce DC chattiness

2017-09-15 Thread Harry Wentland
Log DC init but default log level to 0 (default for amdgpu_dc_log) otherwise. Bug reporters can still make DC more chatty like so amdgpu.dc_log = 1 Change-Id: Icdfb849fa678225e2460519fbd8066540feb451a Signed-off-by: Harry Wentland ---

[PATCH 1/3] drm/amdgpu: Add dc_log module parameter

2017-09-15 Thread Harry Wentland
We want to make DC less chatty but still allow bug reporters to provide more detailed logs. Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 2 files changed, 5 insertions(+) diff --git

[PATCH 0/3] Make DC logging more configurable

2017-09-15 Thread Harry Wentland
We shouldn't be as chatty as we are, sitting in the kernel. This patchset reduces the default log levels greatly but still allows bug reporters and internal teams run with previous log levels. To do that we use a module parameter and also make it a compile time option. One possibility would've

RE: [PATCH] drm/amdgpu: fix checkpatch.pl error to amdgpu_drv.c

2017-09-15 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Friday, September 15, 2017 8:19 AM > To: Zhu, Rex; amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH] drm/amdgpu: fix checkpatch.pl error to amdgpu_drv.c > > Am

RE: [PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of ken.w...@amd.com > Sent: Friday, September 15, 2017 3:58 AM > To: amd-gfx@lists.freedesktop.org > Cc: Wang, Ken > Subject: [PATCH] drm/amdgpu: Add GPU reset functionality for Vega10 > >

RE: [PATCH] drm/amdgpu: add powerplay support for CI asics

2017-09-15 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Rex Zhu > Sent: Friday, September 15, 2017 2:29 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex > Subject: [PATCH] drm/amdgpu: add powerplay support for CI asics > > currently, for CI

Re: [PATCH] drm/amdgpu: fix checkpatch.pl error to amdgpu_drv.c

2017-09-15 Thread Christian König
Am 15.09.2017 um 13:58 schrieb Rex Zhu: fix checkpatch.pl error and warning: 1. ERROR: do not initialise globals to NULL 2. ERROR: do not initialise globals to 0 3. WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Change-Id: I7029087efcfa88c968be9d7ae42f2453bc4b1da0 Signed-off-by: Rex

[PATCH] drm/amd/powerplay: Simplify smu7_voting_clients()

2017-09-15 Thread Rex Zhu
Change-Id: I78533929e1bbd60d5dca0edbfc62a402ca5c1bd1 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 59 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h | 9 +--- 2 files changed, 19 insertions(+), 49 deletions(-) diff

[PATCH] drm/amdgpu: fix checkpatch.pl error to amdgpu_drv.c

2017-09-15 Thread Rex Zhu
fix checkpatch.pl error and warning: 1. ERROR: do not initialise globals to NULL 2. ERROR: do not initialise globals to 0 3. WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Change-Id: I7029087efcfa88c968be9d7ae42f2453bc4b1da0 Signed-off-by: Rex Zhu ---

Re: [PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread Wang, Ken
sure, thanks. From: Christian König Sent: Friday, September 15, 2017 4:13:45 PM To: Wang, Ken; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: Add GPU reset functionality for Vega10 Am 15.09.2017 um 09:57 schrieb

Re: [PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread Christian König
Am 15.09.2017 um 09:57 schrieb ken.w...@amd.com: From: Ken Wang V2 Signed-off-by: Ken Wang Acked-by: Christian König I would give an rb, but I can't judge if the PSP stuff is actually correct, maybe wait for Alex to have a

[PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread Ken.Wang
From: Ken Wang V2 Signed-off-by: Ken Wang Change-Id: I6fd2c216a84747313f18db25a444be5ed43b4f4b --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 21 +-

Fw: [PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread Wang, Ken
From: ken.w...@amd.com Sent: Friday, September 15, 2017 14:57 To: amd-gfx@lists.freedesktop.org Cc: Wang, Ken Subject: [PATCH] drm/amdgpu: Add GPU reset functionality for Vega10 From: Ken Wang Signed-off-by: Ken Wang

[PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread ken.wang
From: Ken Wang Signed-off-by: Ken Wang Change-Id: I6fd2c216a84747313f18db25a444be5ed43b4f4b --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 10 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h| 3

Re: [PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread Wang, Ken
sorry about sending duplicated review, email server seems not working properly. From: amd-gfx on behalf of qingqing.w...@amd.com Sent: Friday, September 15, 2017 3:05:56 PM To:

Re: [PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread Christian König
Am 15.09.2017 um 08:57 schrieb ken.w...@amd.com: From: Ken Wang Signed-off-by: Ken Wang Change-Id: I6fd2c216a84747313f18db25a444be5ed43b4f4b --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 10

[PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread Ken.Wang
From: Ken Wang Signed-off-by: Ken Wang Change-Id: I6fd2c216a84747313f18db25a444be5ed43b4f4b --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 10 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h| 3

[PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread qingqing.wang
From: Ken Wang Signed-off-by: Ken Wang Change-Id: I6fd2c216a84747313f18db25a444be5ed43b4f4b --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 10 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h| 3

[PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread ken.wang
From: Ken Wang Signed-off-by: Ken Wang Change-Id: I6fd2c216a84747313f18db25a444be5ed43b4f4b --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 10 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h| 3

[PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread ken.wang
From: Ken Wang Signed-off-by: Ken Wang Change-Id: I6fd2c216a84747313f18db25a444be5ed43b4f4b --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 10 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h| 3

[PATCH] drm/amdgpu: Add GPU reset functionality for Vega10

2017-09-15 Thread Ken.Wang
From: Ken Wang Signed-off-by: Ken Wang Change-Id: I6fd2c216a84747313f18db25a444be5ed43b4f4b --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 10 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h| 3

[PATCH] drm/amdgpu: add powerplay support for CI asics

2017-09-15 Thread Rex Zhu
currently, for CI asics, use dpm by default, amdgpu.dpm=-1. when set amdgpu.dpm=1, enable powplay. when set amdgpu.dpm=0, disable both dpm and powerplay. when powerplay is stable on CI asics, ci_dpm will be removed. Signed-off-by: Rex Zhu ---