drm/amdgpu: fix the issue of checking on message mapping