[Intel-xe] [PATCH 1/3] drm/xe/vm: print the correct 'keep' when printing gpuva ops

Niranjana Vishwanathapura niranjana.vishwanathapura at intel.com
Sat Sep 30 05:21:40 UTC 2023


On Fri, Sep 29, 2023 at 10:31:02AM -0700, Paulo Zanoni wrote:
>Unions are cool, until they aren't.
>
>Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
>---
> drivers/gpu/drm/xe/xe_vm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
>index 57ffac324564..e72380cc832e 100644
>--- a/drivers/gpu/drm/xe/xe_vm.c
>+++ b/drivers/gpu/drm/xe/xe_vm.c
>@@ -2351,7 +2351,7 @@ static void print_op(struct xe_device *xe, struct drm_gpuva_op *op)
> 		vma = gpuva_to_vma(op->remap.unmap->va);
> 		vm_dbg(&xe->drm, "REMAP:UNMAP: addr=0x%016llx, range=0x%016llx, keep=%d",
> 		       (ULL)xe_vma_start(vma), (ULL)xe_vma_size(vma),
>-		       op->unmap.keep ? 1 : 0);
>+		       op->remap.unmap->keep ? 1 : 0);

Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>

> 		if (op->remap.prev)
> 			vm_dbg(&xe->drm,
> 			       "REMAP:PREV: addr=0x%016llx, range=0x%016llx",
>-- 
>2.39.2
>


More information about the Intel-xe mailing list