amdgpu/gmc_v9: Warn if SDPIF_MMIO_CNTRL_0 is not set
authorShirish S <shirish.s@amd.com>
Mon, 14 Sep 2020 04:41:23 +0000 (10:11 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Sep 2020 21:49:04 +0000 (17:49 -0400)
commit0eaa80124271966c595322ec0ac4b9c54f6aa7ee
treed79ad0e86724f7d0d3c10672010d8a5c6e26bafd
parent92e005936e8a34b16d6e40be114ad263cded49bc
amdgpu/gmc_v9: Warn if SDPIF_MMIO_CNTRL_0 is not set

With IOMMU enabled, if SDPIF_MMIO_CNTRL_0 is not set
appropriately the system hangs without any trace
during S3.

To ease debug and to ensure that the failure, if any,
was caused by a race conditions that disabled write access to
SDPIF_MMIO_CNTRL_0 register, warn the user about it.

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c