Re: [PATCH] drm/amdkfd: Fix EXT_COHERENT memory allocation crash

2023-10-03 Thread Francis, David
mapping_flags |= AMDGPU_VM_MTYPE_UC; > else if (svm_nodes_in_same_hive(bo_node, node)) > mapping_flags |= AMDGPU_VM_MTYPE_NC; > /* PCIe P2P */ ________ From: amd-gfx on behalf o

Re: [PATCH] drm/amdkfd: Fix EXT_COHERENT memory allocation crash

2023-10-03 Thread Felix Kuehling
On 2023-10-03 12:57, Philip Yang wrote: If there is no VRAM domain, bo_node is NULL and this causes crash. Move the EXT_COHERENT support change to VRAM domain path. Need another patch to support override PTE flag on APU. Fixes: 55d7e2001c7e ("drm/amdgpu: Add EXT_COHERENT memory allocation flags

RE: [PATCH] drm/amdkfd: Fix EXT_COHERENT memory allocation crash

2023-10-03 Thread Kasiviswanathan, Harish
[AMD Official Use Only - General] Acked-by: Harish Kasiviswanathan -Original Message- From: amd-gfx On Behalf Of Philip Yang Sent: Tuesday, October 3, 2023 12:57 PM To: amd-gfx@lists.freedesktop.org Cc: Yang, Philip ; Kuehling, Felix Subject: [PATCH] drm/amdkfd: Fix EXT_COHERENT

[PATCH] drm/amdkfd: Fix EXT_COHERENT memory allocation crash

2023-10-03 Thread Philip Yang
If there is no VRAM domain, bo_node is NULL and this causes crash. Move the EXT_COHERENT support change to VRAM domain path. Need another patch to support override PTE flag on APU. Fixes: 55d7e2001c7e ("drm/amdgpu: Add EXT_COHERENT memory allocation flags") Signed-off-by: Philip Yang --- driver