drm/amdgpu: update the method to get fb_loc of memory training(V4)

The method of getting fb_loc changed from parsing VBIOS to
taking certain offset from top of VRAM

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Tianci.Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Tianci.Yin
2019-12-16 15:17:01 +08:00
committed by Alex Deucher
parent 7eca40066f
commit 8d40002fee
7 changed files with 23 additions and 53 deletions

View File

@@ -672,20 +672,6 @@ struct vram_usagebyfirmware_v2_1
uint16_t used_by_driver_in_kb;
};
/* This is part of vram_usagebyfirmware_v2_1 */
struct vram_reserve_block
{
uint32_t start_address_in_kb;
uint16_t used_by_firmware_in_kb;
uint16_t used_by_driver_in_kb;
};
/* Definitions for constance */
enum atomfirmware_internal_constants
{
ONE_KiB = 0x400,
ONE_MiB = 0x100000,
};
/*
***************************************************************************