On 2018-03-22 11:23 AM, Ville Syrjala wrote:
> From: Ville Syrjälä
>
> We want to get rid of plane->fb on atomic drivers. Stop setting it.
>
> Cc: Alex Deucher
> Cc: "Christian König"
> Cc: "David (ChunMing) Zhou"
> Cc: Harry Wentland
> Cc: amd-gfx@lists.freedesktop.org
> Signed-off-by: Vill
On 2018-03-23 03:35 PM, Christian König wrote:
> Am 23.03.2018 um 20:30 schrieb Felix Kuehling:
>> On large-BAR systems the VM page tables for compute are accessed by
>> the CPU. Always allow CPU access to the page directory so that it can
>> be used later by the CPU when a VM is converted to a com
Am 23.03.2018 um 20:30 schrieb Felix Kuehling:
On large-BAR systems the VM page tables for compute are accessed by
the CPU. Always allow CPU access to the page directory so that it can
be used later by the CPU when a VM is converted to a compute VM.
NAK, that means we initial place the PD in th
This adds support for allocating, mapping, unmapping and freeing
userptr BOs, and for handling MMU notifiers.
v2: updated a comment
Signed-off-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 11 +
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 567
These interfaces allow KGD to stop and resume all GPU user mode queue
access to a process address space. This is needed for handling MMU
notifiers of userptrs mapped for GPU access in KFD VMs.
Signed-off-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdkfd/kfd_device.c | 38
Update of remaining patches from the GPUVM patch series. This should apply
on top of the fixes I just sent out.
Felix Kuehling (6):
drm/amdgpu: Add MMU notifier type for KFD userptr
drm/amdgpu: Enable amdgpu_ttm_tt_get_user_pages in worker threads
drm/amdgpu: Avoid reclaim while holding lock
When an MMU notifier runs in memory reclaim context, it can deadlock
trying to take locks that are already held in the thread causing the
memory reclaim. The solution is to avoid memory reclaim while holding
locks that are taken in MMU notifiers by using GFP_NOIO.
This commit fixes memory allocati
When an MMU notifier runs in memory reclaim context, it can deadlock
trying to take locks that are already held in the thread causing the
memory reclaim. The solution is to avoid memory reclaim while holding
locks that are taken in MMU notifiers.
This commit fixes kmalloc while holding rmn->lock b
This commit allows amdgpu_ttm_tt_get_user_pages to work in a worker
thread rather than regular process context. This will be used when
KFD userptr BOs are restored after an MMU-notifier eviction.
v2: Manage task reference with get_task_struct/put_task_struct
Signed-off-by: Felix Kuehling
---
dr
This commit adds the notion of MMU notifier types GFX and HSA. GFX
continues to work like MMU notifiers did before. HSA adds support for
KFD userptr BOs. The implementation of KFD userptr eviction is a stub
for now.
Signed-off-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
Deallocate SDMA queues during abnormal process termination and when
queue creation fails after the SDMA allocation.
Signed-off-by: Felix Kuehling
---
.../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c| 20 ++--
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/dri
Restoring multiple processes concurrently can lead to live-locks
where each process prevents the other from validating all its BOs.
Signed-off-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdkfd/kfd_module.c | 6 +-
drivers/gpu/drm/amd/amdkfd/kfd_priv.h| 2 +-
drivers/gpu/drm/amd/amdkfd
On large-BAR systems the VM page tables for compute are accessed by
the CPU. Always allow CPU access to the page directory so that it can
be used later by the CPU when a VM is converted to a compute VM.
Signed-off-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +--
1 file chan
Program sh_hidden_private_base_vmid correctly in the map-process
PM4 packet.
Signed-off-by: Felix Kuehling
---
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
b/drivers/gpu/drm/
Patches 1 and 2 should be OK for drm-fixes. Patch 1 in particular is
important as it fixes VM faults in applications that rely on scratch memory.
Patches 3 and 4 are based on recently upstreamed GPUVM changes for dGPUs
and should be applied to the same drm-next branch if it's not too late.
Felix
Hi Dave,
Last pull for 4.17. Highlights:
- Vega12 support
- A few more bug fixes and cleanups for powerplay
The following changes since commit 6da2b9332c572fcda94de9631f8fa514f574388a:
amdgpu/dm: Default PRE_VEGA ASIC support to 'y' (2018-03-16 16:16:50 -0500)
are available in the git reposi
Am 23.03.2018 um 12:10 schrieb Rex Zhu:
[SNIP]
-int amdgpu_device_ip_set_powergating_state(struct amdgpu_device *adev,
+int amdgpu_device_ip_set_powergating_state(void *dev,
enum amd_ip_block_type block_type,
en
Am 23.03.2018 um 11:43 schrieb Chunming Zhou:
Change-Id: I71c01f1526db785463af0ba3747fbd2ab8291d1f
Signed-off-by: Chunming Zhou
Ups, patch is Reviewed-by: Christian König .
---
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/d
This has a static checker warning because "frev" and "crev" can be
uninitialized if "info" is NULL. I just changed the order of the checks
so that we check "info" first.
Signed-off-by: Dan Carpenter
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/h
so we can deprecate the cgs interface
Change-Id: Icac15ed7b46aa11009fb6845344fe6de7e6ce5d1
Signed-off-by: Rex Zhu
---
.../gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | 13 ++---
.../gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c | 63 --
2 files changed, 42 insertions(+),
In order to remove the cgs wrapper function
Change-Id: Ieb771ddfbd57def9b2a5b0fc124b496444f1fd7b
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
b/drivers/g
Change-Id: I567f3f3085bb59601b44bf8590ba4bdf1bb4df94
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c| 45 --
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 ++-
drivers/gpu/drm/
Change-Id: I3517bc4402114890d7a2a6b16f1d98bbfcfb524d
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile |2 +-
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 23 +-
.../gpu/drm/amd/powerplay/hwmgr/vega12_powertune.c | 1364
.../gpu/drm/a
Drop cgs wrappers that are no longer uses.
1. cgs_rel_firmware
2. cgs_is_virtualization_enabled
3. cgs_notify_dpm_enabled
Change-Id: I1253ed9c3a48658766cb4253b1baaba258e96a07
Reviewed-by: Alex Deucher
Signed-off-by: Rex Zhu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 96 -
Change-Id: I71c01f1526db785463af0ba3747fbd2ab8291d1f
Signed-off-by: Chunming Zhou
---
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 ea7c7
25 matches
Mail list logo