diff options
author | Philip Yang <Philip.Yang@amd.com> | 2020-07-27 10:03:22 -0400 |
---|---|---|
committer | Philip Yang <Philip.Yang@amd.com> | 2020-08-04 21:22:33 -0400 |
commit | 045248a3e5c640a88deea1664245125780b770df (patch) | |
tree | 27c874ddec3b88d98ee5fcfe8842553ce2aa1d15 /include | |
parent | e06057b27750c21ed954f7f8abd9750eee848772 (diff) |
drm/amdkcl: increase drm vma offset size limit
For 8 processes share 256GB system memory application case, 1T Bytes drm
vma offset limit is not big enough. Increase the limit to 16TB, for max
44bits address space because the upper bit is encoded with gpu_id.
Remove the 64GB size condition check to handle all kernels, 64GB is
Ubuntu kernel default setting, CentOS, Redhat kernel default is 1TB.
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Flora Cui <flora.cui@amd.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/kcl/backport/kcl_drm_vma_manager_backport.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/kcl/backport/kcl_drm_vma_manager_backport.h b/include/kcl/backport/kcl_drm_vma_manager_backport.h index 4ec91ed23c24..a25c892e02ed 100644 --- a/include/kcl/backport/kcl_drm_vma_manager_backport.h +++ b/include/kcl/backport/kcl_drm_vma_manager_backport.h @@ -9,9 +9,7 @@ #include <drm/drm_vma_manager.h> #include <kcl/header/kcl_drmP_h.h> -#if (BITS_PER_LONG == 64) && \ - (!defined(DRM_FILE_PAGE_OFFSET_SIZE) || \ - (DRM_FILE_PAGE_OFFSET_SIZE == ((0xFFFFFFFUL >> PAGE_SHIFT) * 16))) +#if (BITS_PER_LONG == 64) #ifdef DRM_FILE_PAGE_OFFSET_START #undef DRM_FILE_PAGE_OFFSET_START #endif @@ -19,8 +17,8 @@ #undef DRM_FILE_PAGE_OFFSET_SIZE #endif -#define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFFUL >> PAGE_SHIFT) + 1) -#define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFFUL >> PAGE_SHIFT) * 256) +#define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFFULL >> PAGE_SHIFT) + 1) +#define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFFULL >> PAGE_SHIFT) * 4096) static inline void kcl_drm_vma_offset_manager_init(struct drm_vma_offset_manager *mgr) |