Re: [PATCH 2/7] drm/amdgpu: add a new identifier for amdgpu_bo

2021-05-21 Thread Nirmoy
On 5/21/21 2:58 PM, Christian König wrote: Am 21.05.21 um 14:45 schrieb Nirmoy Das: Add has_shadow to identify if a BO is shadowed. Ok that is not going into the right direction. I was expecting this :) but wasn't sure how to handle it. Instead of identifying which BOs have a shadow

Re: [PATCH 2/7] drm/amdgpu: add a new identifier for amdgpu_bo

2021-05-21 Thread Christian König
Am 21.05.21 um 14:45 schrieb Nirmoy Das: Add has_shadow to identify if a BO is shadowed. Ok that is not going into the right direction. Instead of identifying which BOs have a shadow we need to identify if this is a VM BO or not. I think the first think you need to do is to move the shadow

[PATCH 2/7] drm/amdgpu: add a new identifier for amdgpu_bo

2021-05-21 Thread Nirmoy Das
Add has_shadow to identify if a BO is shadowed. Signed-off-by: Nirmoy Das --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c