• Le Ma's avatar
    drm/amdgpu: support get_cu_info for Arcturus · 857b82d0
    Le Ma authored
    This change is because SE/SH layout on Arcturus is 8*1, different from
    4*2(or 4*1) on Vega ASICs.
    
    Currently the cu bitmap array is 4x4 size, and besides the bitmap is used widely
    across SW stack. To mostly reduce the scale of impact, we make the cu bitmap
    array compatible with SE/SH layout on Arcturus. Then the store of cu bits of
    each shader array for Arcturus will be like below:
        SE0,SH0 --> bitmap[0][0]
        SE1,SH0 --> bitmap[1][0]
        SE2,SH0 --> bitmap[2][0]
        SE3,SH0 --> bitmap[3][0]
        SE4,SH0 --> bitmap[0][1]
        SE5,SH0 --> bitmap[1][1]
        SE6,SH0 --> bitmap[2][1]
        SE7,SH0 --> bitmap[3][1]
    Signed-off-by: default avatarLe Ma <le.ma@amd.com>
    Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    857b82d0
gfx_v9_0.c 213 KB