Change-Id: Ie932508ad6949f8bfc7c8db1f5874d3440d09fc6
Signed-off-by: Ken Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8
2 files changed, 11 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
sure, I will add the delay to io_wreg.
From: Deucher, Alexander
Sent: Tuesday, July 4, 2017 12:47:38 PM
To: Wang, Ken; amd-gfx@lists.freedesktop.org
Cc: Wang, Ken
Subject: RE: [PATCH] drm/amdgpu: fix S3 failure on specific platform
> -Original Message-
>
On 4 Jul. 2017 11:23, "Michel Dänzer" wrote:
Adding the dri-devel list, since this is a core DRM patch.
On 04/07/17 06:11 AM, Felix Kuehling wrote:
> From: Christian König
>
> This allows drivers to check if a DMA-buf contains a GEM object or
From: Ken Wang
Change-Id: Ie932508ad6949f8bfc7c8db1f5874d3440d09fc6
Signed-off-by: Ken Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8
2 files changed, 11 insertions(+)
diff
> -Original Message-
> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf
> Of Ken Wang
> Sent: Tuesday, July 04, 2017 12:26 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Wang, Ken
> Subject: [PATCH] drm/amdgpu: fix S3 failure on specific platform
>
> Change-Id:
Change-Id: Ie932508ad6949f8bfc7c8db1f5874d3440d09fc6
Signed-off-by: Ken Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8
2 files changed, 11 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
Distinguishing system vm and general vm is a good idea, but I'm not sure about
renaming GTT to sysvm part, especially TTM TT stays there. Maybe we just need
rename GART functions to SYSVM.
Regards,
David Zhou
-Original Message-
From: amd-gfx
Reviewed-by: Chunming Zhou
-Original Message-
From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Felix
Kuehling
Sent: Tuesday, July 04, 2017 5:11 AM
To: amd-gfx@lists.freedesktop.org
Cc: Kuehling, Felix
Subject: [PATCH
Acked-by: Chunming Zhou
-Original Message-
From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Felix
Kuehling
Sent: Tuesday, July 04, 2017 5:11 AM
To: amd-gfx@lists.freedesktop.org
Cc: Kuehling, Felix
Subject: [PATCH
On Mon, Jul 3, 2017 at 5:11 PM, Felix Kuehling wrote:
> From: Christian König
>
> They don't support VM mode yet.
>
> Signed-off-by: Christian König
> Reviewed-by: Felix Kuehling
This could
Adding the dri-devel list, since this is a core DRM patch.
On 04/07/17 06:11 AM, Felix Kuehling wrote:
> From: Christian König
>
> This allows drivers to check if a DMA-buf contains a GEM object or not.
>
> Signed-off-by: Christian König
>
On 03/07/17 08:47 PM, Christian König wrote:
> Am 03.07.2017 um 11:49 schrieb Michel Dänzer:
>>> Instead of messing with all this I suggest that we just add a jiffies
>>> based timeout to the BO when we can clear the flag. For kernel BOs this
>>> timeout is just infinity.
>>>
>>> Then we check in
On Tue, Jul 4, 2017 at 12:11 AM, Felix Kuehling wrote:
> From: Yong Zhao
>
> Signed-off-by: Yong Zhao
> Reviewed-by: Felix Kuehling
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++
>
From: Christian König
They don't support VM mode yet.
Signed-off-by: Christian König
Reviewed-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Jay Cornwall
A subset of VM fault types currently send retry XNACK to the client.
This causes a storm of interrupts from the VM to the host.
Until the storm is throttled by other means send no-retry XNACK for
all fault types instead. No change in behavior to the
Varios cleaned-up and some squashed patches from amd-kfg-staging
that are not necessarily KFD-on-dGPU-specific. The intention is to
minimize differences between amd-kfd-staging and upstream before
reviewing KFD-specific changes for upstreaming.
Patches 7-12 are a rebased (multiple times) patch
From: Christian König
This allows drivers to check if a DMA-buf contains a GEM object or not.
Signed-off-by: Christian König
Reviewed-by: Felix Kuehling
---
drivers/gpu/drm/drm_prime.c | 3 ++-
include/drm/drmP.h
From: Christian König
This allows us to have multiple GEM objects for one BO.
Signed-off-by: Christian König
Reviewed-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 12 +++--
Allows gdb to access contents of user mode mapped BOs.
Signed-off-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 130 +++-
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 2 +
2 files changed, 131 insertions(+), 1 deletion(-)
From: Christian König
Pinning them in other devices VRAM would obviously not work.
Signed-off-by: Christian König
Reviewed-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 6 ++
1 file
Enable SDMA context switching on CIK (copied from sdma_v3_0.c).
Signed-off-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 30 ++
1 file changed, 30 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
From: Yong Zhao
Signed-off-by: Yong Zhao
Reviewed-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++
drivers/gpu/drm/amd/amdgpu/cik.c | 9 +
2 files changed, 8 insertions(+), 8
Set a configurable SDMA phase quantum when enabling SDMA context
switching. The default value significantly reduces SDMA latency
in page table updates when user-mode SDMA queues have concurrent
activity, compared to the initial HW setting.
Signed-off-by: Felix Kuehling
From: Christian König
We should be able to handle BOs from other instances as well.
Signed-off-by: Christian König
Reviewed-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++
From: shaoyunl
For GFX context, the ATC bit in SDMA*_GFX_VIRTUAL_ADDRESS can be cleared
to perform in VM mode. For RLC context, to support ATC mode , ATC bit in
SDMA*_RLC*_VIRTUAL_ADDRESS should be set. SDMA_CNTL.ATC_L1_ENABLE bit is
global setting that enables the L1-L2
From: Amber Lin
Set the system bit for foreign BO mappings and use the remote VRAM
BAR address as the VRAM base offset.
Signed-off-by: Amber Lin
Reviewed-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 17
Rather than checking the CONGIG_MEMSIZE register as that may
not be reliable on some APUs.
v2: The scratch register is only used on CIK+
Reviewed-by: Christian König
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
I've gone ahead and pushed the two to our amd-staging-4.11 branch.
Alex will certainly pick that up for his next fixes pull request.
Thanks for the help,
Christian.
Am 03.07.2017 um 20:05 schrieb John Brooks:
We unref the man->move fence in ttm_bo_clean_mm() and then call
amd_powerplay_destroy() expects a handle pointing to a struct pp_instance.
On chips without PowerPlay, pp_handle points to a struct amdgpu_device. The
resulting attempt to kfree() fields of the wrong struct ends in fire:
[ 91.560405] BUG: unable to handle kernel paging request at
We unref the man->move fence in ttm_bo_clean_mm() and then call
ttm_bo_force_list_clean() which waits on it, except the refcount is now
zero so a warning is generated (or worse):
[149492.279301] refcount_t: increment on 0; use-after-free.
[149492.279309] [ cut here ]
> -Original Message-
> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf
> Of Christian König
> Sent: Monday, July 03, 2017 9:25 AM
> To: amd-gfx@lists.freedesktop.org
> Subject: [PATCH] drm/amdgpu: trace VM flags as 64bits
>
> From: Christian König
> -Original Message-
> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf
> Of Christian König
> Sent: Monday, July 03, 2017 9:22 AM
> To: amd-gfx@lists.freedesktop.org
> Subject: [PATCH] drm/amdgpu: remove stale TODO comment
>
> From: Christian König
> -Original Message-
> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf
> Of Rex Zhu
> Sent: Monday, July 03, 2017 6:14 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Zhu, Rex
> Subject: [PATCH 3/4] drm/amd/powerplay: move VI common AVFS code to
> smu7_smumgr.c
>
>
> -Original Message-
> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf
> Of Rex Zhu
> Sent: Monday, July 03, 2017 6:14 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Zhu, Rex
> Subject: [PATCH 1/4] drm/amd/powerplay: fix avfs state update error on
> polaris.
>
>
> -Original Message-
> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf
> Of Rex Zhu
> Sent: Monday, July 03, 2017 6:14 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Zhu, Rex
> Subject: [PATCH 4/4] drm/amd/powerplay: add avfs check for old asics on Vi.
>
>
> -Original Message-
> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf
> Of Rex Zhu
> Sent: Monday, July 03, 2017 6:13 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Zhu, Rex
> Subject: [PATCH] drm/amdgpu: fix vulkan test performance drop and hang
> on VI
>
> caused
Reviewed-by: Alex Xie
On 2017-07-03 09:25 AM, Christian König wrote:
From: Christian König
Otherwise the upper bits are lost.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 18
From: Christian König
Otherwise the upper bits are lost.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git
From: Christian König
That is already fixed.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
On Mon, Jul 3, 2017 at 12:08 PM, Michel Dänzer wrote:
> On 30/06/17 08:43 PM, Marek Olšák wrote:
>>
>> I don't know what is being talked about here anymore, but I wouldn't
>> like to use CPU_ACCESS_REQUIRED or CPU_ACCESS_REALLY_REQUIRED in
>> userspace. The reason is that
Hi Shaoyun
looks you want to make KIQ reg access be atomic & UN-interruptible,
I think most user of KIQ reg access is not in atomic context, so your patch
only benefit for the place using KIQ from IRQ.
why not implement another KIQ reg access function ? e.g. :
Am 03.07.2017 um 11:49 schrieb Michel Dänzer:
Instead of messing with all this I suggest that we just add a jiffies
based timeout to the BO when we can clear the flag. For kernel BOs this
timeout is just infinity.
Then we check in amdgpu_cs_bo_validate() before generating the
placements if we
Change-Id: I2bee3e700281a57ad77132794187ef45d2d79dcd
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/inc/smumgr.h | 3 +
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c| 6 +-
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c | 73 ++
1. simplify avfs state switch.
2. delete save/restore VFT table functions as not support
by fiji.
3. implement thermal_avfs_enable funciton.
Change-Id: I5e28672591d77b1ec9e3406d0fc7d42566831a08
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c|
Change-Id: I1737ba27ae2a8f5c579ccb541ced9cb979ffd1ff
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
caused by not program dynamic_cu_mask_addr in the KIQ MQD.
v2: create struct vi_mqd_allocation in FB which will contain
1. PM4 MQD structure.
2. Write Pointer Poll Memory.
3. Read Pointer Report Memory
4. Dynamic CU Mask.
5. Dynamic RB Mask.
Change-Id: I22c840f1bf8d365f7df33a27d6b11e1aea8f2958
On 30/06/17 08:43 PM, Marek Olšák wrote:
>
> I don't know what is being talked about here anymore, but I wouldn't
> like to use CPU_ACCESS_REQUIRED or CPU_ACCESS_REALLY_REQUIRED in
> userspace. The reason is that userspace doesn't and can't know whether
> CPU access will be required, and the
On 01/07/17 12:31 AM, John Brooks wrote:
> When a BO is moved to VRAM, clear AMDGPU_BO_FLAG_CPU_ACCESS. This allows it
> to potentially later move to invisible VRAM if the CPU does not access it
> again.
>
> Setting the CPU_ACCESS flag in amdgpu_bo_fault_reserve_notify() also means
> that we can
On 03/07/17 04:06 PM, Christian König wrote:
> Am 03.07.2017 um 03:34 schrieb Michel Dänzer:
>
>> [...] I suggested clearing the flag here to John on IRC. The
>> idea is briefly described in the commit log, let me elaborate a bit on
>> that:
>>
>> When a BO is moved to VRAM which has the
From: Christian König
Limit the size of the SYSVM. This saves us a bunch of visible VRAM,
but also limitates the maximum BO size we can swap out.
v2: rebased and cleaned up after GART to SYSVM rename.
Signed-off-by: Christian König
---
From: Christian König
Instead of relying on the sysvm_size to be the same as the module parameter.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
From: Christian König
No functional change.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 48 +--
drivers/gpu/drm/amd/amdgpu/amdgpu_sysvm.h | 77 +++
From: Christian König
This way we don't need to map the full BO at a time any more.
v2: use fixed windows for src/dst
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 125 +++-
From: Christian König
No intended functional change.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 -
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 36
From: Christian König
Just mass rename all names related to the hardware GART/GTT functions to SYSVM.
The name of symbols related to the TTM TT domain stay the same.
This should improve the distinction between the two.
Signed-off-by: Christian König
From: Christian König
No need to map BOs to GTT on eviction and intermediate transfers any more.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 19 ++-
1 file changed, 2 insertions(+), 17
From: Christian König
We want to use them as remap address space.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 5 -
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 3 +++
2 files changed, 7
From: Christian König
This allows us to write the mapped PTEs into
an IB instead of the table directly.
v2: fix build with debugfs enabled, remove unused assignment
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h
From: Christian König
We can finally remove this now.
v2: remove now unused max_size variable as well.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 12
1 file changed, 12 deletions(-)
diff --git
From: Christian König
Use the TTM values instead of the hardware config here.
Signed-off-by: Christian König
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git
Am 02.07.2017 um 11:13 schrieb Arvind Yadav:
ttm_place are not supposed to change at runtime. All functions
working with ttm_place provided by work
with const ttm_place. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav
Reviewed-by: Christian
Am 02.07.2017 um 11:06 schrieb Arvind Yadav:
ttm_place are not supposed to change at runtime. All functions
working with ttm_place provided by work
with const ttm_place. So mark the non-const structs as const.
File size before:
text data bss dec hex filename
9235
Am 01.07.2017 um 11:47 schrieb Arvind Yadav:
drm_prop_enum_lists are not supposed to change at runtime. All functions
working with drm_prop_enum_list provided by work with
const drm_prop_enum_list. So mark the non-const structs as const.
File size before:
text data bss
Am 03.07.2017 um 03:34 schrieb Michel Dänzer:
On 02/07/17 09:52 PM, Christian König wrote:
Am 30.06.2017 um 17:18 schrieb John Brooks:
When a BO is moved to VRAM, clear AMDGPU_BO_FLAG_CPU_ACCESS. This
allows it
to potentially later move to invisible VRAM if the CPU does not access it
again.
64 matches
Mail list logo