drm/amdgpu: bypass bios dependent operations
authorShiwu Zhang <shiwu.zhang@amd.com>
Wed, 17 May 2023 06:15:05 +0000 (14:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 15:02:12 +0000 (11:02 -0400)
commit9535a86a4072babc37dc6bdadae52bdbb88166f5
treece49d43acf4af9962e722b73b59c39b2c1322093
parentcfdce594171cea19ba033e8d7ff57a767c0ccd63
drm/amdgpu: bypass bios dependent operations

Since bios reading does not work currently so just bypass all operations
related to bios

v2: hardcode the vram info for APP_APU case (hawking)
v3: correct the vram_width with channel number * channel size (lijo)

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c