Commit dd81eede authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: add reset_method asic callback for si

SI always uses the legacy pci based reset.
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0cf3c64f
...@@ -1186,6 +1186,12 @@ static int si_asic_reset(struct amdgpu_device *adev) ...@@ -1186,6 +1186,12 @@ static int si_asic_reset(struct amdgpu_device *adev)
return 0; return 0;
} }
static enum amd_reset_method
si_asic_reset_method(struct amdgpu_device *adev)
{
return AMD_RESET_METHOD_LEGACY;
}
static u32 si_get_config_memsize(struct amdgpu_device *adev) static u32 si_get_config_memsize(struct amdgpu_device *adev)
{ {
return RREG32(mmCONFIG_MEMSIZE); return RREG32(mmCONFIG_MEMSIZE);
...@@ -1394,6 +1400,7 @@ static const struct amdgpu_asic_funcs si_asic_funcs = ...@@ -1394,6 +1400,7 @@ static const struct amdgpu_asic_funcs si_asic_funcs =
.read_bios_from_rom = &si_read_bios_from_rom, .read_bios_from_rom = &si_read_bios_from_rom,
.read_register = &si_read_register, .read_register = &si_read_register,
.reset = &si_asic_reset, .reset = &si_asic_reset,
.reset_method = &si_asic_reset_method,
.set_vga_state = &si_vga_set_state, .set_vga_state = &si_vga_set_state,
.get_xclk = &si_get_xclk, .get_xclk = &si_get_xclk,
.set_uvd_clocks = &si_set_uvd_clocks, .set_uvd_clocks = &si_set_uvd_clocks,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment