drm/buddy: check range allocation matches alignment
authorMatthew Auld <matthew.auld@intel.com>
Mon, 19 Feb 2024 12:18:53 +0000 (12:18 +0000)
committerChristian König <christian.koenig@amd.com>
Wed, 28 Feb 2024 07:02:53 +0000 (08:02 +0100)
commit2986314aa811c8a23aeb292edd30315495d54966
tree771120d06be2bcb2be693b4b4b9e6e7edf9d9e02
parentf41900e4a6ef019d64a70394b0e0c3bd048d4ec8
drm/buddy: check range allocation matches alignment

Likely not a big deal for real users, but for consistency we should
respect the min_page_size here. Main issue is that bias allocations
turns into normal range allocation if the range and size matches
exactly, and in the next patch we want to add some unit tests for this
part of the api.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240219121851.25774-5-matthew.auld@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/drm_buddy.c