OSDN Git Service

drm/amdgpu/vcn: Remove redundant indirect SRAM HW model check
authorGuilherme G. Piccoli <gpiccoli@igalia.com>
Tue, 17 Jan 2023 18:15:24 +0000 (15:15 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Jan 2023 03:46:27 +0000 (22:46 -0500)
commit09eb3ea3912644950eee3f8788796790ec0f022f
tree26670b26186d9df45dfc0379bf50eb187a86b15b
parent2ed9e22ed729d81f1f81b8e55957547828b01606
drm/amdgpu/vcn: Remove redundant indirect SRAM HW model check

The HW model validation that guards the indirect SRAM checking in the
VCN code path is redundant - there's no model that's not included in the
switch, making it useless in practice [0].

So, let's remove this switch statement for good.

[0] lore.kernel.org/amd-gfx/MN0PR12MB61013D20B8A2263B22AE1BCFE2C19@MN0PR12MB6101.namprd12.prod.outlook.com

Suggested-by: Alex Deucher <Alexander.Deucher@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Cc: James Zhu <James.Zhu@amd.com>
Cc: Lazar Lijo <Lijo.Lazar@amd.com>
Cc: Leo Liu <leo.liu@amd.com>
Cc: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c