diff options
| author | Lijo Lazar <[email protected]> | 2023-09-28 03:15:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-10-05 21:59:35 +0000 |
| commit | 4365d2ed09db752b32137b8cc830efb8bb0eac0f (patch) | |
| tree | 03b87fde0bf627af9a4fd3aef997ed48f1e37ede | |
| parent | drm/amdgpu: fix ip count query for xcp partitions (diff) | |
| download | kernel-4365d2ed09db752b32137b8cc830efb8bb0eac0f.tar.gz kernel-4365d2ed09db752b32137b8cc830efb8bb0eac0f.zip | |
drm/amdgpu: Add more smuio v13.0.3 package types
Expand support to get other board types like OAM or CEM.
Signed-off-by: Lijo Lazar <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/smuio_v13_0_3.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/smuio_v13_0_3.c b/drivers/gpu/drm/amd/amdgpu/smuio_v13_0_3.c index 4368a5891eeb..5461b5289793 100644 --- a/drivers/gpu/drm/amd/amdgpu/smuio_v13_0_3.c +++ b/drivers/gpu/drm/amd/amdgpu/smuio_v13_0_3.c @@ -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; |
