From: Alex Deucher <alexander.deucher@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Alex Deucher <alexander.deucher@amd.com>
Subject: [PATCH] drm/amdgpu: simplify amdgpu_ucode_get_load_type()
Date: Tue, 24 May 2022 22:09:22 -0400 [thread overview]
Message-ID: <20220525020926.1951685-3-alexander.deucher@amd.com> (raw)
In-Reply-To: <20220525020926.1951685-1-alexander.deucher@amd.com>
This is the same as the default case, so drop the extra
logic.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
index ffa4c0d207db..c312577df596 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
@@ -486,26 +486,6 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
case CHIP_POLARIS12:
case CHIP_VEGAM:
return AMDGPU_FW_LOAD_SMU;
- case CHIP_VEGA10:
- case CHIP_RAVEN:
- case CHIP_VEGA12:
- case CHIP_VEGA20:
- case CHIP_ARCTURUS:
- case CHIP_RENOIR:
- case CHIP_NAVI10:
- case CHIP_NAVI14:
- case CHIP_NAVI12:
- case CHIP_SIENNA_CICHLID:
- case CHIP_NAVY_FLOUNDER:
- case CHIP_VANGOGH:
- case CHIP_DIMGREY_CAVEFISH:
- case CHIP_ALDEBARAN:
- case CHIP_BEIGE_GOBY:
- case CHIP_YELLOW_CARP:
- if (!load_type)
- return AMDGPU_FW_LOAD_DIRECT;
- else
- return AMDGPU_FW_LOAD_PSP;
case CHIP_CYAN_SKILLFISH:
if (!(load_type &&
adev->apu_flags & AMD_APU_IS_CYAN_SKILLFISH2))
--
2.35.3
next prev parent reply other threads:[~2022-05-25 2:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 2:09 [PATCH] drm/amdgpu: convert sienna_cichlid_populate_umd_state_clk() to use IP version Alex Deucher
2022-05-25 2:09 ` [PATCH] drm/amdgpu: simplify the logic in amdgpu_device_parse_gpu_info_fw() Alex Deucher
2022-05-31 21:13 ` Alex Deucher
2022-06-01 2:00 ` Chen, Guchun
2022-05-25 2:09 ` Alex Deucher [this message]
2022-06-06 18:40 ` [PATCH] drm/amdgpu: simplify amdgpu_ucode_get_load_type() Alex Deucher
2022-06-07 0:37 ` Chen, Guchun
2022-05-25 2:09 ` [PATCH] drm/amdgpu: simplify amdgpu_device_asic_has_dc_support() Alex Deucher
2022-05-25 5:58 ` Chen, Guchun
2022-05-25 2:09 ` [PATCH] drm/amdgpu: fix up comment in amdgpu_device_asic_has_dc_support() Alex Deucher
2022-05-31 21:13 ` Alex Deucher
2022-06-02 7:53 ` Quan, Evan
2022-05-25 2:09 ` [PATCH] drm/amdgpu: convert sienna_cichlid_get_default_config_table_settings() to IP version Alex Deucher
2022-05-25 5:59 ` Chen, Guchun
2022-05-25 2:09 ` [PATCH] drm/amdgpu: convert nbio_v2_3_clear_doorbell_interrupt() " Alex Deucher
2022-05-31 21:13 ` Alex Deucher
2022-06-01 2:20 ` Chen, Guchun
2022-05-31 21:13 ` [PATCH] drm/amdgpu: convert sienna_cichlid_populate_umd_state_clk() to use " Alex Deucher
2022-06-01 1:59 ` Chen, Guchun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220525020926.1951685-3-alexander.deucher@amd.com \
--to=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox