]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_atomfirmware.c
index b4df6460e45a970dc038e5a99a352139d74a4701..306077884a6794e5709efcefea25dea0554b3a33 100644 (file)
@@ -70,7 +70,7 @@ int amdgpu_atomfirmware_allocate_fb_scratch(struct amdgpu_device *adev)
        struct atom_context *ctx = adev->mode_info.atom_context;
        int index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
                                                vram_usagebyfirmware);
-       struct vram_usagebyfirmware_v2_1 *      firmware_usage;
+       struct vram_usagebyfirmware_v2_1 *firmware_usage;
        uint32_t start_addr, size;
        uint16_t data_offset;
        int usage_bytes = 0;
@@ -149,6 +149,10 @@ static int convert_atom_mem_type_to_vram_type(struct amdgpu_device *adev,
                case LpDdr4MemType:
                        vram_type = AMDGPU_VRAM_TYPE_DDR4;
                        break;
+               case Ddr5MemType:
+               case LpDdr5MemType:
+                       vram_type = AMDGPU_VRAM_TYPE_DDR5;
+                       break;
                default:
                        vram_type = AMDGPU_VRAM_TYPE_UNKNOWN;
                        break;
@@ -544,6 +548,7 @@ int amdgpu_mem_train_support(struct amdgpu_device *adev)
                case HW_REV(11, 0, 5):
                case HW_REV(11, 0, 7):
                case HW_REV(11, 0, 11):
+               case HW_REV(11, 0, 12):
                        ret = 1;
                        break;
                default:
This page took 0.034416 seconds and 4 git commands to generate.