drm/buddy: Fix the warn on's during force merge
authorArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Fri, 17 May 2024 14:33:05 +0000 (20:03 +0530)
committerDave Airlie <airlied@redhat.com>
Sun, 19 May 2024 20:42:12 +0000 (06:42 +1000)
commit5a5a10d9db77939a22e1d65fc0a4ba6b5d8f4fce
treef2c171c7e10ec7666ea4a25c6d37e663cf5939e6
parent431c590c3ab0469dfedad3a832fe73556396ee52
drm/buddy: Fix the warn on's during force merge

Move the fallback and block incompatible checks
above, so that we dont unnecessarily split the blocks
and leaving the unmerged. This resolves the unnecessary
warn on's thrown during force_merge call.

v2:(Matthew)
  - Move the fallback and block incompatible checks above
    the contains check.

Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Fixes: 96950929eb23 ("drm/buddy: Implement tracking clear page feature")
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240517135015.17565-1-Arunpravin.PaneerSelvam@amd.com/
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240517143305.17894-1-Arunpravin.PaneerSelvam@amd.com
drivers/gpu/drm/drm_buddy.c