All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] tests/amdgpu: Exercise MMIO_REMAP remap page (alloc/map + HDP flush)
@ 2025-09-18  8:46 Srinivasan Shanmugam
  2025-09-18  8:46 ` [PATCH 1/2] tests/amdgpu/amd_bo: Add mmio_remap_gem_create_close subtest Srinivasan Shanmugam
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Srinivasan Shanmugam @ 2025-09-18  8:46 UTC (permalink / raw)
  To: Christian König, Alex Deucher, Vitaly Prosyak
  Cc: igt-dev, Srinivasan Shanmugam, David Yat Sin

This series adds two IGT subtests in amd_bo.c to exercise the MMIO_REMAP
remap page:

  1) mmio_remap_gem_create_close
     - Allocates a 4 KiB, page-aligned BO in
       AMDGPU_GEM_DOMAIN_MMIO_REMAP and immediately frees it. Skips
       gracefully when the domain is not supported
       (-EOPNOTSUPP/-ENODEV/-EINVAL) or system PAGE_SIZE > 4K.

  2) mmio_remap_map_and_poke
     - Allocates and CPU-maps the 4 KiB remap page, then write-1 to
       HDP_MEM_FLUSH_CNTL (offset 0) twice, followed by a dummy read to
       post the writes. Unmaps and frees on exit.
	   
These tests help cover the basic KGD/KFD MMIO_REMAP path (allocation and
BAR-mapped MMIO access).

TODO: A kernel patch enabling this path is pending merge; once it lands,
the Link below can serve as the stable reference.

Link: https://patchwork.freedesktop.org/series/153209/#rev5
Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>
Cc: David Yat Sin <David.YatSin@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>

Srinivasan Shanmugam (2):
  tests/amdgpu/amd_bo: Add mmio_remap_gem_create_close subtest
  tests/amdgpu/amd_bo: Add mmio_remap_map_and_poke (HDP flush) subtest

 tests/amdgpu/amd_bo.c | 144 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 144 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-09-22  1:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-18  8:46 [PATCH 0/2] tests/amdgpu: Exercise MMIO_REMAP remap page (alloc/map + HDP flush) Srinivasan Shanmugam
2025-09-18  8:46 ` [PATCH 1/2] tests/amdgpu/amd_bo: Add mmio_remap_gem_create_close subtest Srinivasan Shanmugam
2025-09-18  8:46 ` [PATCH 2/2] tests/amdgpu/amd_bo: Add mmio_remap_map_and_poke (HDP flush) subtest Srinivasan Shanmugam
2025-09-18 13:46 ` ✓ Xe.CI.BAT: success for tests/amdgpu: Exercise MMIO_REMAP remap page (alloc/map + HDP flush) Patchwork
2025-09-18 18:44 ` ✓ i915.CI.BAT: " Patchwork
2025-09-18 21:47 ` ✗ Xe.CI.Full: failure " Patchwork
2025-09-19  1:27 ` ✓ i915.CI.Full: success " Patchwork
2025-09-20  4:55 ` [PATCH 0/2] " vitaly prosyak
2025-09-22  1:37 ` vitaly prosyak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.