Skip to content

Commit

Permalink
drm/amdgpu/nbio7.4: add hw bug workaround for vega20
Browse files Browse the repository at this point in the history
Configure PCIE_CI_CNTL to work around a hw bug that affects
some multi-GPU compute workloads.

Acked-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Alex Deucher committed Dec 20, 2018
1 parent 40978ac commit e01f2d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#define smnCPM_CONTROL 0x11180460
#define smnPCIE_CNTL2 0x11180070
#define smnPCIE_CI_CNTL 0x11180080

static u32 nbio_v7_4_get_rev_id(struct amdgpu_device *adev)
{
Expand Down Expand Up @@ -222,7 +223,13 @@ static void nbio_v7_4_detect_hw_virt(struct amdgpu_device *adev)

static void nbio_v7_4_init_registers(struct amdgpu_device *adev)
{
uint32_t def, data;

def = data = RREG32_PCIE(smnPCIE_CI_CNTL);
data = REG_SET_FIELD(data, PCIE_CI_CNTL, CI_SLV_ORDERING_DIS, 1);

if (def != data)
WREG32_PCIE(smnPCIE_CI_CNTL, data);
}

const struct amdgpu_nbio_funcs nbio_v7_4_funcs = {
Expand Down

0 comments on commit e01f2d4

Please sign in to comment.