Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: Matthew Auld <matthew.auld@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH] drm/xe/display: mark dpt as uncached
Date: Thu, 14 Mar 2024 21:17:38 +0200	[thread overview]
Message-ID: <a14651ca-1f4a-462d-b6d1-daa3694e47b8@gmail.com> (raw)
In-Reply-To: <4c12d45a-366d-454e-ba1d-af813732c551@intel.com>

On 14.3.2024 19.05, Matthew Auld wrote:
> On 14/03/2024 16:20, Juha-Pekka Heikkila wrote:
>> make dpt as uncached to avoid pipe faults on some devices
> 
> s/make/Mark/
> 
> Also missing full stop.
> 
>>
>> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> 
> Did this help on ADL btw? I don't think there are any PAT bits in the 
> GGTT on that hw so this just noops, right? Or am I misremembering...

adlp go through here setting up dpt..but turn out there was bit of 
mismatch is results. I don't have proper hw to test and my friend 
initially thought this fixed dpt issues on adlp. Turn out he had changed 
fbdev configs that affected results, which maybe point towards some 
issue on stolen. I'll yet need to ask for more logs from him.

> 
> In addition to this I think we might also want something like:
> https://patchwork.freedesktop.org/series/131148/
> 
>> ---
>>   drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +++++-----
>>   1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c 
>> b/drivers/gpu/drm/xe/display/xe_fb_pin.c
>> index 722c84a56607..98592994c8d4 100644
>> --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
>> +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
>> @@ -30,7 +30,7 @@ write_dpt_rotated(struct xe_bo *bo, struct iosys_map 
>> *map, u32 *dpt_ofs, u32 bo_
>>           for (row = 0; row < height; row++) {
>>               u64 pte = ggtt->pt_ops->pte_encode_bo(bo, src_idx * 
>> XE_PAGE_SIZE,
>> -                                  xe->pat.idx[XE_CACHE_WB]);
>> +                                  xe->pat.idx[XE_CACHE_NONE]);
>>               iosys_map_wr(map, *dpt_ofs, u64, pte);
>>               *dpt_ofs += 8;
>> @@ -62,7 +62,7 @@ write_dpt_remapped(struct xe_bo *bo, struct 
>> iosys_map *map, u32 *dpt_ofs,
>>           for (column = 0; column < width; column++) {
>>               iosys_map_wr(map, *dpt_ofs, u64,
>>                        pte_encode_bo(bo, src_idx * XE_PAGE_SIZE,
>> -                     xe->pat.idx[XE_CACHE_WB]));
>> +                     xe->pat.idx[XE_CACHE_NONE]));
>>               *dpt_ofs += 8;
>>               src_idx++;
>> @@ -119,7 +119,7 @@ static int __xe_pin_fb_vma_dpt(struct 
>> intel_framebuffer *fb,
>>           for (x = 0; x < size / XE_PAGE_SIZE; x++) {
>>               u64 pte = ggtt->pt_ops->pte_encode_bo(bo, x * XE_PAGE_SIZE,
>> -                                  xe->pat.idx[XE_CACHE_WB]);
>> +                                  xe->pat.idx[XE_CACHE_NONE]);
>>               iosys_map_wr(&dpt->vmap, x * 8, u64, pte);
>>           }
>> @@ -165,7 +165,7 @@ write_ggtt_rotated(struct xe_bo *bo, struct 
>> xe_ggtt *ggtt, u32 *ggtt_ofs, u32 bo
>>           for (row = 0; row < height; row++) {
>>               u64 pte = ggtt->pt_ops->pte_encode_bo(bo, src_idx * 
>> XE_PAGE_SIZE,
>> -                                  xe->pat.idx[XE_CACHE_WB]);
>> +                                  xe->pat.idx[XE_CACHE_NONE]);
>>               xe_ggtt_set_pte(ggtt, *ggtt_ofs, pte);
>>               *ggtt_ofs += XE_PAGE_SIZE;
>> @@ -211,7 +211,7 @@ static int __xe_pin_fb_vma_ggtt(struct 
>> intel_framebuffer *fb,
>>           for (x = 0; x < size; x += XE_PAGE_SIZE) {
>>               u64 pte = ggtt->pt_ops->pte_encode_bo(bo, x,
>> -                                  xe->pat.idx[XE_CACHE_WB]);
>> +                                  xe->pat.idx[XE_CACHE_NONE]);
> 
> This looks unrelated to DPT? Maybe tweak the commit title/message.
> 
> Anyway, I think change looks reasonable since you usually don't want to 
> mess around with caching for display stuff.
> 
> With commit title/message tweaked,
> Reviewed-by: Matthew Auld <matthew.auld@intel.com>

Thanks

/Juha-Pekka

> 
>>               xe_ggtt_set_pte(ggtt, vma->node.start + x, pte);
>>           }


  reply	other threads:[~2024-03-14 19:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-14 16:20 [PATCH] drm/xe/display: mark dpt as uncached Juha-Pekka Heikkila
2024-03-14 17:05 ` Matthew Auld
2024-03-14 19:17   ` Juha-Pekka Heikkila [this message]
2024-03-14 18:46 ` ✓ CI.Patch_applied: success for " Patchwork
2024-03-14 18:46 ` ✓ CI.checkpatch: " Patchwork
2024-03-14 18:47 ` ✓ CI.KUnit: " Patchwork
2024-03-14 18:58 ` ✓ CI.Build: " Patchwork
2024-03-14 19:00 ` ✓ CI.Hooks: " Patchwork
2024-03-14 19:02 ` ✓ CI.checksparse: " Patchwork
2024-03-14 19:12 ` ✗ CI.BAT: failure " Patchwork
2024-03-15  6:00 ` ✓ CI.Patch_applied: success for drm/xe/display: mark dpt as uncached (rev2) Patchwork
2024-03-15  6:01 ` ✓ CI.checkpatch: " Patchwork
2024-03-15  6:02 ` ✓ CI.KUnit: " Patchwork
2024-03-15  6:12 ` ✓ CI.Build: " Patchwork
2024-03-15  6:15 ` ✓ CI.Hooks: " Patchwork
2024-03-15  6:16 ` ✓ CI.checksparse: " Patchwork
2024-03-15  6:41 ` ✓ CI.BAT: " 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=a14651ca-1f4a-462d-b6d1-daa3694e47b8@gmail.com \
    --to=juhapekka.heikkila@gmail.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.auld@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