• Le Ma's avatar
    drm/amdgpu: add new doorbell assignment table for aqua_vanjaram · 6df442a0
    Le Ma authored
    Four basic reasons as below to do the change:
      1. number of ring expand a lot on aqua_vanjaram, and adjustment on old
         assignment cannot make each ring in a continuous doorbell space.
      2. the SDMA doorbell index should not exceed 0x1FF on aqua_vanjaram due to
         regDOORBELLx_CTRL_ENTRY.BIF_DOORBELLx_RANGE_OFFSET_ENTRY field width.
      3. re-design the doorbell assignment and unify the calculation as
         "start + ring/inst id" will make the code much concise.
      4. only defining the START/END makes the table look simple
    
    v2: (Lijo)
      1. replace name
      2. use num_inst_per_aid/sdma_doorbell_range instead of hardcoding
    Signed-off-by: default avatarLe Ma <le.ma@amd.com>
    Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    6df442a0
aqua_vanjaram_reg_init.c 2.15 KB