diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-09-13 16:41:57 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-14 10:38:03 -0400 |
commit | 741deade2a704a434bd5939118c43d38e9ddac25 (patch) | |
tree | 403036d4b55161c6d968ff2593e5ddfd47eb81eb /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |
parent | 23ecdc6187ef74e00b78e889446a309628719b6e (diff) |
drm/amdgpu: simplify Raven, Raven2, and Picasso handling
Treat them all as Raven rather than adding a new picasso
asic type. This simplifies a lot of code and also handles the
case of rv2 chips with the 0x15d8 pci id. It also fixes dmcu
fw handling for picasso.
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index a74498ce87ff..a73674f9a0f5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |||
@@ -63,14 +63,13 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev) | |||
63 | 63 | ||
64 | switch (adev->asic_type) { | 64 | switch (adev->asic_type) { |
65 | case CHIP_RAVEN: | 65 | case CHIP_RAVEN: |
66 | if (adev->rev_id >= 8) | 66 | if (adev->rev_id >= 8) |
67 | fw_name = FIRMWARE_RAVEN2; | 67 | fw_name = FIRMWARE_RAVEN2; |
68 | else if (adev->pdev->device == 0x15d8) | ||
69 | fw_name = FIRMWARE_PICASSO; | ||
68 | else | 70 | else |
69 | fw_name = FIRMWARE_RAVEN; | 71 | fw_name = FIRMWARE_RAVEN; |
70 | break; | 72 | break; |
71 | case CHIP_PICASSO: | ||
72 | fw_name = FIRMWARE_PICASSO; | ||
73 | break; | ||
74 | default: | 73 | default: |
75 | return -EINVAL; | 74 | return -EINVAL; |
76 | } | 75 | } |