drm/amdgpu: Add more smuio v13.0.3 package types
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 28 Sep 2023 03:15:26 +0000 (08:45 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Oct 2023 21:59:35 +0000 (17:59 -0400)
Expand support to get other board types like OAM or CEM.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/smuio_v13_0_3.c

index 4368a5891eebd24ae824fa55b627a85d8fddb080..5461b5289793eb4b3ef354d1b4761352974d65af 100644 (file)
@@ -84,6 +84,12 @@ static enum amdgpu_pkg_type smuio_v13_0_3_get_pkg_type(struct amdgpu_device *ade
         * b0100 - b1111 - Reserved
         */
        switch (data & PKG_TYPE_MASK) {
+       case 0x0:
+               pkg_type = AMDGPU_PKG_TYPE_CEM;
+               break;
+       case 0x1:
+               pkg_type = AMDGPU_PKG_TYPE_OAM;
+               break;
        case 0x2:
                pkg_type = AMDGPU_PKG_TYPE_APU;
                break;