diff options
author | Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> | 2024-04-19 12:05:38 +0530 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2024-04-22 19:44:16 +0200 |
commit | c1696bf8d5f5389c5312aebf9e3ad0267149cdea (patch) | |
tree | d2bf849a481a155da2d2b6ce3eee140a7a67e57e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | a68c7eaa7a8ffdec9287ba1561a668d674c20a13 (diff) | |
download | linux-c1696bf8d5f5389c5312aebf9e3ad0267149cdea.tar.gz linux-c1696bf8d5f5389c5312aebf9e3ad0267149cdea.tar.bz2 linux-c1696bf8d5f5389c5312aebf9e3ad0267149cdea.zip |
drm/tests: Add a test case for drm buddy clear allocation
Add a new test case for the drm buddy clear and dirty
allocation.
v2:(Matthew)
- make size as u32
- rename PAGE_SIZE with SZ_4K
- dont fragment the address space for all the order allocation
iterations. we can do it once and just increment and allocate
the size.
- create new mm with non power-of-two size to ensure the multi-root
force_merge during fini.
v3:
- add randomness in size calculation(Matthew)
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419063538.11957-3-Arunpravin.PaneerSelvam@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions