drm/amdgpu: fall back to RCC_HW_DEBUG for VF frame buffer size

On some SR-IOV VFs RCC_CONFIG_MEMSIZE reads back 0. Fall back to
RCC_HW_DEBUG for the frame buffer size in the nbif get_memsize()
callback and in the early-init paths that read the register directly.
Only VFs that read back 0 are affected.

Signed-off-by: ZhenGuo Yin <zhenguo.yin@amd.com>
Reviewed-by: Frank Min <frank.min@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
ZhenGuo Yin 2026-08-05 03:34:09 +00:00 • committed by Alex Deucher
commit b34364d359
3 changed files with 25 additions and 3 deletions