Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: Matthew Auld <matthew.auld@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
	Nirmoy Das <nirmoy.das@intel.com>, <stable@vger.kernel.org>
Subject: Re: [PATCH 2/2] drm/xe/migrate: use XE_BO_FLAG_PAGETABLE
Date: Tue, 26 Nov 2024 15:47:02 -0800	[thread overview]
Message-ID: <Z0Zd9sWX71AUrSS8@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20241126181259.159713-4-matthew.auld@intel.com>

On Tue, Nov 26, 2024 at 06:13:01PM +0000, Matthew Auld wrote:
> On some HW we want to avoid the host caching PTEs, since access from GPU
> side can be incoherent. However here the special migrate object is
> mapping PTEs which are written from the host and potentially cached. Use
> XE_BO_FLAG_PAGETABLE to ensure that non-cached mapping is used, on
> platforms where this matters.
> 
> Fixes: 7a060d786cc1 ("drm/xe/mtl: Map PPGTT as CPU:WC")
> Signed-off-by: Matthew Auld <matthew.auld@intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>

Reviewed-by: Matthew Brost <matthew.brost@intel.com>

> Cc: Nirmoy Das <nirmoy.das@intel.com>
> Cc: <stable@vger.kernel.org> # v6.8+
> ---
>  drivers/gpu/drm/xe/xe_migrate.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_migrate.c b/drivers/gpu/drm/xe/xe_migrate.c
> index 48e205a40fd2..1b97d90aadda 100644
> --- a/drivers/gpu/drm/xe/xe_migrate.c
> +++ b/drivers/gpu/drm/xe/xe_migrate.c
> @@ -209,7 +209,8 @@ static int xe_migrate_prepare_vm(struct xe_tile *tile, struct xe_migrate *m,
>  				  num_entries * XE_PAGE_SIZE,
>  				  ttm_bo_type_kernel,
>  				  XE_BO_FLAG_VRAM_IF_DGFX(tile) |
> -				  XE_BO_FLAG_PINNED);
> +				  XE_BO_FLAG_PINNED |
> +				  XE_BO_FLAG_PAGETABLE);
>  	if (IS_ERR(bo))
>  		return PTR_ERR(bo);
>  
> -- 
> 2.47.0
> 

  parent reply	other threads:[~2024-11-26 23:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-26 18:13 [PATCH 1/2] drm/xe/migrate: fix pat index usage Matthew Auld
2024-11-26 18:13 ` [PATCH 2/2] drm/xe/migrate: use XE_BO_FLAG_PAGETABLE Matthew Auld
2024-11-26 18:27   ` Nirmoy Das
2024-11-26 23:47   ` Matthew Brost [this message]
2024-11-26 18:25 ` [PATCH 1/2] drm/xe/migrate: fix pat index usage Nirmoy Das
2024-11-26 19:27 ` ✓ CI.Patch_applied: success for series starting with [1/2] " Patchwork
2024-11-26 19:27 ` ✓ CI.checkpatch: " Patchwork
2024-11-26 19:28 ` ✓ CI.KUnit: " Patchwork
2024-11-26 19:46 ` ✓ CI.Build: " Patchwork
2024-11-26 19:49 ` ✓ CI.Hooks: " Patchwork
2024-11-26 19:50 ` ✓ CI.checksparse: " Patchwork
2024-11-26 20:08 ` ✓ Xe.CI.BAT: " Patchwork
2024-11-26 21:41 ` ✗ Xe.CI.Full: failure " Patchwork
2024-11-26 23:45 ` [PATCH 1/2] " Matthew Brost

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=Z0Zd9sWX71AUrSS8@lstrano-desk.jf.intel.com \
    --to=matthew.brost@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    --cc=nirmoy.das@intel.com \
    --cc=stable@vger.kernel.org \
    /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