drm/amdgpu: Refine the way to get atom bios
authorKen Xue <Ken.Xue@amd.com>
Wed, 21 Dec 2016 10:35:28 +0000 (18:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:12:45 +0000 (11:12 -0500)
commit919db4c199127781cef99b7ea0b74e3a9572ea32
treef9a3b67354b1bd385d671790561ba811db6ba91c
parent33503e9e5a5a0ba64ce1e5a4115ec32a6a026fe4
drm/amdgpu: Refine the way to get atom bios

There are several ways to check out a ATOMBIOS. In previous codes, try
a new way to fetch out vbios/rom, until current vbios/rom is started with
0x55aa, then check if this vbios is ATOMBIOS. Now, try a new way to fetch
out vbios until all flags of ATOMBIOS are verified.

Signed-off-by: Ken Xue <Ken.Xue@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c