AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: "Timur Kristóf" <timur.kristof@gmail.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/amdgpu/uapi: Clarify comment on AMDGPU_VM_PAGE_PRT
Date: Wed, 19 Nov 2025 09:33:34 +0100	[thread overview]
Message-ID: <29631fec-eccf-43dc-8d88-a899cab6322b@amd.com> (raw)
In-Reply-To: <20251118165620.216753-2-timur.kristof@gmail.com>

On 11/18/25 17:56, Timur Kristóf wrote:
> In the context of the amdgpu uAPI, the PRT flag is referring only
> to unmapped pages of a partially resident texture (aka. sparse
> resource), but not the full resource.
> 
> Virtual addresses marked with this flag behave as follows:
> - Reads return zero
> - Writes are discarded
> 
> Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>

Reviewed-by: Christian König <christian.koenig@amd.com>

> ---
>  include/uapi/drm/amdgpu_drm.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
> index 406a42be429b..f43592997b49 100644
> --- a/include/uapi/drm/amdgpu_drm.h
> +++ b/include/uapi/drm/amdgpu_drm.h
> @@ -883,7 +883,7 @@ struct drm_amdgpu_gem_list_handles_entry {
>  #define AMDGPU_VM_PAGE_WRITEABLE	(1 << 2)
>  /* executable mapping, new for VI */
>  #define AMDGPU_VM_PAGE_EXECUTABLE	(1 << 3)
> -/* partially resident texture */
> +/* unmapped page of partially resident textures */
>  #define AMDGPU_VM_PAGE_PRT		(1 << 4)
>  /* MTYPE flags use bit 5 to 8 */
>  #define AMDGPU_VM_MTYPE_MASK		(0xf << 5)


  reply	other threads:[~2025-11-19  8:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-18 16:56 [PATCH 1/3] drm/amdgpu/vm: Check PRT uAPI flag instead of PTE flag Timur Kristóf
2025-11-18 16:56 ` [PATCH 2/3] drm/amdgpu/uapi: Clarify comment on AMDGPU_VM_PAGE_PRT Timur Kristóf
2025-11-19  8:33   ` Christian König [this message]
2025-11-18 16:56 ` [PATCH 3/3] Documentation/gpu: Add PRT, PTE to amdgpu glossary Timur Kristóf
2025-11-19  8:34   ` Christian König
2025-11-19  8:32 ` [PATCH 1/3] drm/amdgpu/vm: Check PRT uAPI flag instead of PTE flag Christian König
  -- strict thread matches above, loose matches on Subject: below --
2025-11-19  9:25 Timur Kristóf
2025-11-19  9:25 ` [PATCH 2/3] drm/amdgpu/uapi: Clarify comment on AMDGPU_VM_PAGE_PRT Timur Kristóf

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=29631fec-eccf-43dc-8d88-a899cab6322b@amd.com \
    --to=christian.koenig@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=timur.kristof@gmail.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