diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2019-07-24 00:46:12 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-07-31 00:24:10 -0400 |
commit | 9bc1932f5ce5cb601278b8a37d36d7939f3e2482 (patch) | |
tree | ffe6d8dda095117c14fa6c00a00a16b81b11aaee | |
parent | 6d0f50dafed4771121f674aef2db2c13ef526ad0 (diff) |
drm/amdgpu: add reset_method asic callback for vi
VI always uses the legacy pci based reset.
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index 6575ddcfcf00..5f8c8786cac5 100644 --- a/drivers/gpu/drm/amd/amdgpu/vi.c +++ b/drivers/gpu/drm/amd/amdgpu/vi.c | |||
@@ -711,6 +711,12 @@ static int vi_asic_reset(struct amdgpu_device *adev) | |||
711 | return r; | 711 | return r; |
712 | } | 712 | } |
713 | 713 | ||
714 | static enum amd_reset_method | ||
715 | vi_asic_reset_method(struct amdgpu_device *adev) | ||
716 | { | ||
717 | return AMD_RESET_METHOD_LEGACY; | ||
718 | } | ||
719 | |||
714 | static u32 vi_get_config_memsize(struct amdgpu_device *adev) | 720 | static u32 vi_get_config_memsize(struct amdgpu_device *adev) |
715 | { | 721 | { |
716 | return RREG32(mmCONFIG_MEMSIZE); | 722 | return RREG32(mmCONFIG_MEMSIZE); |
@@ -1023,6 +1029,7 @@ static const struct amdgpu_asic_funcs vi_asic_funcs = | |||
1023 | .read_bios_from_rom = &vi_read_bios_from_rom, | 1029 | .read_bios_from_rom = &vi_read_bios_from_rom, |
1024 | .read_register = &vi_read_register, | 1030 | .read_register = &vi_read_register, |
1025 | .reset = &vi_asic_reset, | 1031 | .reset = &vi_asic_reset, |
1032 | .reset_method = &vi_asic_reset_method, | ||
1026 | .set_vga_state = &vi_vga_set_state, | 1033 | .set_vga_state = &vi_vga_set_state, |
1027 | .get_xclk = &vi_get_xclk, | 1034 | .get_xclk = &vi_get_xclk, |
1028 | .set_uvd_clocks = &vi_set_uvd_clocks, | 1035 | .set_uvd_clocks = &vi_set_uvd_clocks, |