drm/amdgpu: Fix size calculation when init onchip memory