amdgpu: add SI support

v2: without the amdgpu_drm.h change

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
main
Ronie Salgado 2016-04-13 21:56:15 +02:00 committed by Marek Olšák
parent c653779775
commit a625ba8d2d
1 changed files with 11 additions and 7 deletions

View File

@ -187,21 +187,25 @@ drm_private int amdgpu_query_gpu_info_init(amdgpu_device_handle dev)
if (r) if (r)
return r; return r;
if (dev->info.family_id >= AMDGPU_FAMILY_CI) {
r = amdgpu_read_mm_registers(dev, 0xa0d5, 1, instance, 0, r = amdgpu_read_mm_registers(dev, 0xa0d5, 1, instance, 0,
&dev->info.pa_sc_raster_cfg1[i]); &dev->info.pa_sc_raster_cfg1[i]);
if (r) if (r)
return r; return r;
} }
}
r = amdgpu_read_mm_registers(dev, 0x2644, 32, 0xffffffff, 0, r = amdgpu_read_mm_registers(dev, 0x2644, 32, 0xffffffff, 0,
dev->info.gb_tile_mode); dev->info.gb_tile_mode);
if (r) if (r)
return r; return r;
if (dev->info.family_id >= AMDGPU_FAMILY_CI) {
r = amdgpu_read_mm_registers(dev, 0x2664, 16, 0xffffffff, 0, r = amdgpu_read_mm_registers(dev, 0x2664, 16, 0xffffffff, 0,
dev->info.gb_macro_tile_mode); dev->info.gb_macro_tile_mode);
if (r) if (r)
return r; return r;
}
r = amdgpu_read_mm_registers(dev, 0x263e, 1, 0xffffffff, 0, r = amdgpu_read_mm_registers(dev, 0x263e, 1, 0xffffffff, 0,
&dev->info.gb_addr_cfg); &dev->info.gb_addr_cfg);