]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/ttm: Support 52-bit PAs in ttm_place
authorFelix Kuehling <felix.kuehling@amd.com>
Wed, 13 May 2026 14:12:53 +0000 (09:12 -0500)
committerArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Wed, 13 May 2026 14:44:24 +0000 (20:14 +0530)
fpfn and lpfn in struct ttm_place are 32-bit page numbers. With 4KB page
size this can support up to 44-bit physical addressing. Grow these to
64-bit (uint64_t) to support larger physical addresses.

Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Link: https://patch.msgid.link/20260513141253.20410-1-felix.kuehling@amd.com
include/drm/ttm/ttm_placement.h

index b510a4812609fa44a92b27a2350e3a30bc3486f5..ab2639e42c54652fb676347b3f9930b8f9e4b6ad 100644 (file)
@@ -81,8 +81,8 @@
  * Structure indicating a possible place to put an object.
  */
 struct ttm_place {
-       unsigned        fpfn;
-       unsigned        lpfn;
+       uint64_t        fpfn;
+       uint64_t        lpfn;
        uint32_t        mem_type;
        uint32_t        flags;
 };