Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nirmoy Das <nirmoy.das@linux.intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>,
	Nirmoy Das <nirmoy.das@intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org,
	Andi Shyti <andi.shyti@linux.intel.com>,
	 Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>,
	Jonathan Cavitt <jonathan.cavitt@intel.com>
Subject: Re: [PATCH] drm/i915/selftests: Set always_coherent to false when reading from CPU
Date: Fri, 17 May 2024 10:40:19 +0200	[thread overview]
Message-ID: <2034982a-6cdf-43d9-a41f-8cb1c9e071c5@linux.intel.com> (raw)
In-Reply-To: <87bk54c2fx.fsf@intel.com>

Hi Jani,

On 5/17/2024 9:39 AM, Jani Nikula wrote:
> On Thu, 16 May 2024, Nirmoy Das <nirmoy.das@intel.com> wrote:
>> The previous commit 'commit 8d4ba9fc1c6c ("drm/i915/selftests: Pick
> "previous commit" is a fairly vague reference once this gets
> committed. It's not going to be "previous" in any meaningful sense.
>
> Please just start with:
>
> Commit 8d4ba9fc1c6c ("drm/i915/selftests: Pick correct caching mode.")
> was not complete...

Will do that.


>
> And probably add:
>
> Fixes: 8d4ba9fc1c6c ("drm/i915/selftests: Pick correct caching mode.")

Do we need Fixes for selftest ? I always assumed it is not required as 
this code is for debug/CI


Thanks,

Nirmoy

>
> BR,
> Jani.
>
>> correct caching mode.")' was not complete as for non LLC  sharing platforms
>> cpu read can happen from LLC which probably doesn't have the latest
>> changes made by GPU.
>>
>> Cc: Andi Shyti <andi.shyti@linux.intel.com>
>> Cc: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
>> Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
>> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
>> ---
>>   drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
>> index 65a931ea80e9..3527b8f446fe 100644
>> --- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
>> +++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
>> @@ -196,7 +196,7 @@ static int verify_access(struct drm_i915_private *i915,
>>   	if (err)
>>   		goto out_file;
>>   
>> -	mode = intel_gt_coherent_map_type(to_gt(i915), native_obj, true);
>> +	mode = intel_gt_coherent_map_type(to_gt(i915), native_obj, false);
>>   	vaddr = i915_gem_object_pin_map_unlocked(native_obj, mode);
>>   	if (IS_ERR(vaddr)) {
>>   		err = PTR_ERR(vaddr);

  reply	other threads:[~2024-05-17  8:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-16 15:14 [PATCH] drm/i915/selftests: Set always_coherent to false when reading from CPU Nirmoy Das
2024-05-16 16:22 ` Cavitt, Jonathan
2024-05-16 18:44 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-05-17  7:39 ` [PATCH] " Jani Nikula
2024-05-17  8:40   ` Nirmoy Das [this message]
2024-05-17 11:53     ` Jani Nikula
2024-05-17 12:45       ` Nirmoy Das
2024-05-17  8:46 ` ✗ Fi.CI.IGT: failure for " Patchwork
2024-05-17 12:47   ` Nirmoy Das
2024-05-17 10:30 ` [PATCH] " Andi Shyti

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=2034982a-6cdf-43d9-a41f-8cb1c9e071c5@linux.intel.com \
    --to=nirmoy.das@linux.intel.com \
    --cc=andi.shyti@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=janusz.krzysztofik@linux.intel.com \
    --cc=jonathan.cavitt@intel.com \
    --cc=nirmoy.das@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