Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH 0/1] Fix stolen memory size calculation
@ 2023-06-09 18:52 Aravind Iddamsetty
  2023-06-09 18:52 ` [Intel-xe] [PATCH 1/1] drm/xe: " Aravind Iddamsetty
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Aravind Iddamsetty @ 2023-06-09 18:52 UTC (permalink / raw)
  To: intel-xe; +Cc: matthew.d.roper

The stolen memory is not being calculated properly, DSMBASE is
considered as stolen base which is wrong. The stolen base should be
either GSMBASE or FLAT_CCS_BASE_ADDR when flat ccs is enabled.

debugfs output showing wrong stolen size as 8MiB while it should be 16MiB:
# cat /sys/kernel/debug/dri/1/stolen_mm
  use_type: 1
  use_tt: 0
  size: 8388608
  usage: 0
default_page_size: 64KiB
visible_avail: 8MiB
visible_size: 8MiB
chunk_size: 64KiB, total: 8MiB, free: 8MiB
order-7 free: 8MiB, pages: 1
order-6 free: 0KiB, pages: 0
order-5 free: 0KiB, pages: 0
order-4 free: 0KiB, pages: 0
order-3 free: 0KiB, pages: 0
order-2 free: 0KiB, pages: 0
order-1 free: 0KiB, pages: 0
order-0 free: 0KiB, pages: 0
man size:8388608

output with this patch:
# cat /sys/kernel/debug/dri/1/stolen_mm
  use_type: 1
  use_tt: 0
  size: 16777216
  usage: 0
default_page_size: 64KiB
visible_avail: 16MiB
visible_size: 16MiB
chunk_size: 64KiB, total: 16MiB, free: 16MiB
order-8 free: 16MiB, pages: 1
order-7 free: 0KiB, pages: 0
order-6 free: 0KiB, pages: 0
order-5 free: 0KiB, pages: 0
order-4 free: 0KiB, pages: 0
order-3 free: 0KiB, pages: 0
order-2 free: 0KiB, pages: 0
order-1 free: 0KiB, pages: 0
order-0 free: 0KiB, pages: 0
man size:16777216

Cc: Matt Roper <matthew.d.roper@intel.com>

Aravind Iddamsetty (1):
  drm/xe: Fix stolen memory size calculation

 drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-06-12 16:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-09 18:52 [Intel-xe] [PATCH 0/1] Fix stolen memory size calculation Aravind Iddamsetty
2023-06-09 18:52 ` [Intel-xe] [PATCH 1/1] drm/xe: " Aravind Iddamsetty
2023-06-12 14:29   ` Ruhl, Michael J
2023-06-12 15:04     ` Iddamsetty, Aravind
2023-06-12 15:55       ` Matthew Auld
2023-06-12 16:57         ` Ruhl, Michael J
2023-06-09 19:12 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-06-09 19:12 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-06-09 19:13 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-06-09 19:17 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-06-09 19:17 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-06-09 19:19 ` [Intel-xe] ✓ CI.checksparse: " Patchwork
2023-06-09 19:53 ` [Intel-xe] ○ CI.BAT: info " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox