amdgpu: add SI support
v2: without the amdgpu_drm.h change Signed-off-by: Marek Olšák <marek.olsak@amd.com>main
parent
c653779775
commit
a625ba8d2d
|
@ -187,10 +187,12 @@ drm_private int amdgpu_query_gpu_info_init(amdgpu_device_handle dev)
|
||||||
if (r)
|
if (r)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
r = amdgpu_read_mm_registers(dev, 0xa0d5, 1, instance, 0,
|
if (dev->info.family_id >= AMDGPU_FAMILY_CI) {
|
||||||
|
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,
|
||||||
|
@ -198,10 +200,12 @@ drm_private int amdgpu_query_gpu_info_init(amdgpu_device_handle dev)
|
||||||
if (r)
|
if (r)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
r = amdgpu_read_mm_registers(dev, 0x2664, 16, 0xffffffff, 0,
|
if (dev->info.family_id >= AMDGPU_FAMILY_CI) {
|
||||||
dev->info.gb_macro_tile_mode);
|
r = amdgpu_read_mm_registers(dev, 0x2664, 16, 0xffffffff, 0,
|
||||||
if (r)
|
dev->info.gb_macro_tile_mode);
|
||||||
return r;
|
if (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);
|
||||||
|
|
Loading…
Reference in New Issue