drm/xe: Use BO's GT to determine dma_offset when programming PTEs
authorMatthew Brost <matthew.brost@intel.com>
Thu, 23 Mar 2023 16:25:00 +0000 (09:25 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:30:21 +0000 (18:30 -0500)
commit59ea53eecb7154a2ac8aa39f21f16a144be3eecc
tree127d08d4a705a6f1247791f9b1d48f335706c752
parent99c5952fe36107ee57fa0ad7115ffa76222a8810
drm/xe: Use BO's GT to determine dma_offset when programming PTEs

Rather than using the passed in GT, use the BO's GT determine dma_offset
when programming PTEs as these two GT's could differ (i.e. mapping a BO
from a remote GT). The BO's GT is correct GT to use as this where BO
resides, while the passed in GT is where the mapping is created.

v2:
  (Thomas)      - Kernel doc, extra new line
  (CI)          - Rebase to tip

Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_bo.c
drivers/gpu/drm/xe/xe_bo.h
drivers/gpu/drm/xe/xe_pt.c