Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ghimiray, Himal Prasad" <himal.prasad.ghimiray@intel.com>
To: Matthew Auld <matthew.auld@intel.com>,
	Matthew Brost <matthew.brost@intel.com>,
	<intel-xe@lists.freedesktop.org>
Cc: <michal.mrozek@intel.com>, <francois.dugast@intel.com>,
	<thomas.hellstrom@linux.intel.com>
Subject: Re: [PATCH 1/3] drm/xe: Disable compression on SVM
Date: Tue, 15 Jul 2025 13:56:42 +0530	[thread overview]
Message-ID: <cbec761a-4f18-45d1-8bf3-20791e0de82d@intel.com> (raw)
In-Reply-To: <338a3400-1202-4c12-a99b-6a45004ce548@intel.com>



On 15-07-2025 13:45, Matthew Auld wrote:
> On 14/07/2025 18:33, Matthew Brost wrote:
>> This is not yet supported, forcefully disable by setting pat_index to
>> zero for CPU address mirror VMAs.
>>
>> Cc: stable@vger.kernel.org
>> Fixes: b43e864af0d4 ("drm/xe/uapi: Add 
>> DRM_XE_VM_BIND_FLAG_CPU_ADDR_MIRROR")
>> Signed-off-by: Matthew Brost <matthew.brost@intel.com>
>> ---
>>   drivers/gpu/drm/xe/xe_vm.c | 5 ++++-
>>   1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
>> index 2035604121e6..73cb981c0956 100644
>> --- a/drivers/gpu/drm/xe/xe_vm.c
>> +++ b/drivers/gpu/drm/xe/xe_vm.c
>> @@ -2362,7 +2362,10 @@ vm_bind_ioctl_ops_create(struct xe_vm *vm, 
>> struct xe_vma_ops *vops,
>>               op->map.is_cpu_addr_mirror = flags &
>>                   DRM_XE_VM_BIND_FLAG_CPU_ADDR_MIRROR;
>>               op->map.dumpable = flags & DRM_XE_VM_BIND_FLAG_DUMPABLE;
>> -            op->map.pat_index = pat_index;
>> +            if (op->map.is_cpu_addr_mirror)
>> +                op->map.pat_index = 0;
> 
> Is this meant as a safe default or is this just a dummy value? If this 
> actually gets programmed in the hw, maybe XE_CACHE_WB would be better 
> here? That way we know exactly what it does from driver POV for a given 
> platform. Index zero for example might have no host coherency (might 
> then need WC on host). In some world index zero could enable compression.

+1

> 
>> +            else
>> +                op->map.pat_index = pat_index;
>>               op->map.invalidate_on_bind =
>>                   __xe_vm_needs_clear_scratch_pages(vm, flags);
>>           } else if (__op->op == DRM_GPUVA_OP_PREFETCH) {
> 


  reply	other threads:[~2025-07-15  8:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-14 17:33 [PATCH 0/3] SVM compression fixes Matthew Brost
2025-07-14 17:33 ` [PATCH 1/3] drm/xe: Disable compression on SVM Matthew Brost
2025-07-15  8:15   ` Matthew Auld
2025-07-15  8:26     ` Ghimiray, Himal Prasad [this message]
2025-07-15 15:55       ` Matthew Brost
2025-07-15  8:25   ` Ghimiray, Himal Prasad
2025-07-15 15:55     ` Matthew Brost
2025-07-14 17:33 ` [PATCH 2/3] drm/xe: Update xe_migrate_vram to support compression Matthew Brost
2025-07-15  8:37   ` Matthew Auld
2025-07-15  8:49     ` Matthew Auld
2025-07-15 15:58       ` Matthew Brost
2025-07-14 17:33 ` [PATCH 3/3] drm/xe: Enable compressed memory for SVM Matthew Brost
2025-07-14 17:43 ` ✗ CI.checkpatch: warning for SVM compression fixes Patchwork
2025-07-14 17:45 ` ✓ CI.KUnit: success " Patchwork
2025-07-14 18:25 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-14 20:20 ` ✗ Xe.CI.Full: failure " Patchwork
2025-07-15 12:59 ` [PATCH 0/3] " Matthew Auld
2025-07-15 16:25   ` 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=cbec761a-4f18-45d1-8bf3-20791e0de82d@intel.com \
    --to=himal.prasad.ghimiray@intel.com \
    --cc=francois.dugast@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=michal.mrozek@intel.com \
    --cc=thomas.hellstrom@linux.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