[Intel-xe] [PATCH 02/26] drm/xe: Introduce xe_tile
Iddamsetty, Aravind
aravind.iddamsetty at intel.com
Fri May 12 05:45:57 UTC 2023
On 11-05-2023 09:16, Matt Roper wrote:
> Create a new xe_tile structure to begin separating the concept of "tile"
> from "GT." A tile is effectively a complete GPU, and a GT is just one
> part of that. On platforms like MTL, there's only a single full GPU
> (tile) which has its IP blocks provided by two GTs. In contrast, a
> "multi-tile" platform like PVC is basically multiple complete GPUs
> packed behind a single PCI device.
>
> For now, just create xe_tile as a simple wrapper around xe_gt. The
> items in xe_gt that are truly tied to the tile rather than the GT will
> be moved in future patches. Support for multiple GTs per tile (i.e.,
> the MTL standalone media case) will also be re-introduced in a future
> patch.
>
> Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
> ---
> drivers/gpu/drm/xe/xe_device.h | 11 +++++---
> drivers/gpu/drm/xe/xe_device_types.h | 40 +++++++++++++++++++++++++---
> drivers/gpu/drm/xe/xe_gt_types.h | 15 +++++++----
> drivers/gpu/drm/xe/xe_mmio.c | 13 ++++-----
> drivers/gpu/drm/xe/xe_pci.c | 5 +++-
> drivers/gpu/drm/xe/xe_vm.c | 2 +-
> drivers/gpu/drm/xe/xe_vm_types.h | 8 +++---
> 7 files changed, 71 insertions(+), 23 deletions(-)
>
>
<snip>
> +struct xe_tile {
> + /** @xe: Backpointer to tile's PCI device */
> + struct xe_device *xe;
> +
> + /** @id: ID of the tile */
> + u8 id;
> +
> + /**
> + * @primary_gt: Primary GT
> + */
> + struct xe_gt primary_gt;
can we have an array of GTs with primary always located at 0 and others
stored as per ID, that way we could properly retrieve a GT from a tile
using GT_ID assuming we keep GT id local to tile.
Thanks,
Aravind.
> +
> + /* TODO: Add media GT here */
> +};
> +
More information about the Intel-xe
mailing list