|
@@ -1607,19 +1607,6 @@ static void gfx_v7_0_select_se_sh(struct amdgpu_device *adev,
|
|
|
WREG32(mmGRBM_GFX_INDEX, data);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * gfx_v7_0_create_bitmask - create a bitmask
|
|
|
- *
|
|
|
- * @bit_width: length of the mask
|
|
|
- *
|
|
|
- * create a variable length bit mask (CIK).
|
|
|
- * Returns the bitmask.
|
|
|
- */
|
|
|
-static u32 gfx_v7_0_create_bitmask(u32 bit_width)
|
|
|
-{
|
|
|
- return (u32)((1ULL << bit_width) - 1);
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* gfx_v7_0_get_rb_active_bitmap - computes the mask of enabled RBs
|
|
|
*
|
|
@@ -1638,8 +1625,8 @@ static u32 gfx_v7_0_get_rb_active_bitmap(struct amdgpu_device *adev)
|
|
|
data &= CC_RB_BACKEND_DISABLE__BACKEND_DISABLE_MASK;
|
|
|
data >>= GC_USER_RB_BACKEND_DISABLE__BACKEND_DISABLE__SHIFT;
|
|
|
|
|
|
- mask = gfx_v7_0_create_bitmask(adev->gfx.config.max_backends_per_se /
|
|
|
- adev->gfx.config.max_sh_per_se);
|
|
|
+ mask = amdgpu_gfx_create_bitmask(adev->gfx.config.max_backends_per_se /
|
|
|
+ adev->gfx.config.max_sh_per_se);
|
|
|
|
|
|
return (~data) & mask;
|
|
|
}
|
|
@@ -4157,7 +4144,7 @@ static u32 gfx_v7_0_get_cu_active_bitmap(struct amdgpu_device *adev)
|
|
|
data &= CC_GC_SHADER_ARRAY_CONFIG__INACTIVE_CUS_MASK;
|
|
|
data >>= CC_GC_SHADER_ARRAY_CONFIG__INACTIVE_CUS__SHIFT;
|
|
|
|
|
|
- mask = gfx_v7_0_create_bitmask(adev->gfx.config.max_cu_per_sh);
|
|
|
+ mask = amdgpu_gfx_create_bitmask(adev->gfx.config.max_cu_per_sh);
|
|
|
|
|
|
return (~data) & mask;
|
|
|
}
|