OSDN Git Service

drm/amdgpu/psp: add some missing cases to psp_check_pmfw_centralized_cstate_management
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Oct 2021 15:47:56 +0000 (11:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Oct 2021 02:51:41 +0000 (22:51 -0400)
Missed a few asics.

v2: update comment

Fixes: 82d05736c47b19 ("drm/amdgpu/amdgpu_psp: convert to IP version checking")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 6b39e6c..2bfe068 100644 (file)
@@ -65,7 +65,6 @@ static int psp_securedisplay_terminate(struct psp_context *psp);
  *
  * This new sequence is required for
  *   - Arcturus and onwards
- *   - Navi12 and onwards
  */
 static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp)
 {
@@ -77,7 +76,9 @@ static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp
        }
 
        switch (adev->ip_versions[MP0_HWIP][0]) {
+       case IP_VERSION(11, 0, 0):
        case IP_VERSION(11, 0, 4):
+       case IP_VERSION(11, 0, 5):
        case IP_VERSION(11, 0, 7):
        case IP_VERSION(11, 0, 9):
        case IP_VERSION(11, 0, 11):