Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Summers, Stuart" <stuart.summers@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"Pottumuttu, Sai Teja" <sai.teja.pottumuttu@intel.com>
Cc: "Roper, Matthew D" <matthew.d.roper@intel.com>
Subject: Re: [PATCH 2/2] drm/xe: Refactor max_remote_tiles
Date: Thu, 16 Jan 2025 19:16:26 +0000	[thread overview]
Message-ID: <8326b6f30df9fdfc13c44d4b26d00ea5c0c9dc0f.camel@intel.com> (raw)
In-Reply-To: <20250116125447.4025927-3-sai.teja.pottumuttu@intel.com>

On Thu, 2025-01-16 at 18:24 +0530, Sai Teja Pottumuttu wrote:
> max_remote_tiles is more related to the platform than the GT IP. Thus
> move it to platform descriptor from graphics descriptor. Note that
> the
> FIXME is no more required, thus it can be dropped.

I think we still want this FIXME. Has anything fundamentally changed in
the driver wrt tiles vs gts?

Thanks,
Stuart

> 
> Signed-off-by: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_pci.c       | 9 +++------
>  drivers/gpu/drm/xe/xe_pci_types.h | 2 --
>  2 files changed, 3 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_pci.c
> b/drivers/gpu/drm/xe/xe_pci.c
> index f59c1acae23f..7f17e5ea6edd 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -55,6 +55,7 @@ struct xe_device_desc {
>         enum xe_platform platform;
>  
>         u8 dma_mask_size;
> +       u8 max_remote_tiles:2;
>  
>         u8 require_force_probe:1;
>         u8 is_dgfx:1;
> @@ -136,7 +137,6 @@ static const struct xe_graphics_desc
> graphics_xehpc = {
>                 BIT(XE_HW_ENGINE_CCS2) | BIT(XE_HW_ENGINE_CCS3),
>  
>         XE_HP_FEATURES,
> -       .max_remote_tiles = 1,
>         .va_bits = 57,
>         .vm_max_level = 4,
>         .vram_flags = XE_VRAM_FLAGS_NEED64K,
> @@ -329,6 +329,7 @@ static const __maybe_unused struct xe_device_desc
> pvc_desc = {
>         .dma_mask_size = 52,
>         .has_display = false,
>         .has_heci_gscfi = 1,
> +       .max_remote_tiles = 1,
>         .require_force_probe = true,
>  };
>  
> @@ -635,6 +636,7 @@ static int xe_info_init_early(struct xe_device
> *xe,
>         xe->info.probe_display = IS_ENABLED(CONFIG_DRM_XE_DISPLAY) &&
>                                  xe_modparam.probe_display &&
>                                  desc->has_display;
> +       xe->info.tile_count = 1 + desc->max_remote_tiles;
>  
>         err = xe_tile_init_early(xe_device_get_root_tile(xe), xe, 0);
>         if (err)
> @@ -706,12 +708,7 @@ static int xe_info_init(struct xe_device *xe,
>          * version 13 or higher has an additional dedicated media
> GT.  And
>          * depending on the graphics IP there may be additional
> "remote tiles."
>          * All of these together determine the overall GT count.
> -        *
> -        * FIXME: 'tile_count' here is misnamed since the rest of the
> driver
> -        * treats it as the number of GTs rather than just the number
> of tiles.
>          */
> -       xe->info.tile_count = 1 + graphics_desc->max_remote_tiles;
> -
>         for_each_remote_tile(tile, xe, id) {
>                 int err;
>  
> diff --git a/drivers/gpu/drm/xe/xe_pci_types.h
> b/drivers/gpu/drm/xe/xe_pci_types.h
> index 7437415a54d5..b96423844952 100644
> --- a/drivers/gpu/drm/xe/xe_pci_types.h
> +++ b/drivers/gpu/drm/xe/xe_pci_types.h
> @@ -19,8 +19,6 @@ struct xe_graphics_desc {
>  
>         u64 hw_engine_mask;     /* hardware engines provided by
> graphics IP */
>  
> -       u8 max_remote_tiles:2;
> -
>         u8 has_asid:1;
>         u8 has_atomic_enable_pte_bit:1;
>         u8 has_flat_ccs:1;


  reply	other threads:[~2025-01-16 19:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-16 12:54 [PATCH 0/2] Refactor some graphics descriptor flags Sai Teja Pottumuttu
2025-01-16 12:54 ` [PATCH 1/2] drm/xe: Refactor dma_mask_size Sai Teja Pottumuttu
2025-01-16 13:28   ` Raag Jadav
2025-01-16 19:10   ` Summers, Stuart
2025-01-17  0:02     ` Matt Roper
2025-01-16 12:54 ` [PATCH 2/2] drm/xe: Refactor max_remote_tiles Sai Teja Pottumuttu
2025-01-16 19:16   ` Summers, Stuart [this message]
2025-01-17  0:09     ` Matt Roper
2025-01-16 14:21 ` ✗ CI.Patch_applied: failure for Refactor some graphics descriptor flags Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8326b6f30df9fdfc13c44d4b26d00ea5c0c9dc0f.camel@intel.com \
    --to=stuart.summers@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.d.roper@intel.com \
    --cc=sai.teja.pottumuttu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox