drm/rockchip: update iommu pagefault debug log style

Change-Id: Ifda2f19f2ce2d2051996de846ffac1bc1c851fa1
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
Sandy Huang
2020-08-13 17:13:18 +08:00
committed by Tao Huang
parent 3c79843de5
commit 8d7e60f319
2 changed files with 5 additions and 4 deletions

View File

@@ -1188,6 +1188,7 @@ static int rockchip_drm_fault_handler(struct iommu_domain *iommu,
struct rockchip_drm_private *priv = drm_dev->dev_private;
struct drm_crtc *crtc;
DRM_ERROR("iommu fault handler flags: 0x%x\n", flags);
drm_for_each_crtc(crtc, drm_dev) {
int pipe = drm_crtc_index(crtc);

View File

@@ -2388,10 +2388,10 @@ static void vop_crtc_regs_dump(struct drm_crtc *crtc, struct seq_file *s)
if (!crtc_state->active)
return;
for (i = 0; i < dump_len; i += 4) {
if (i % 16 == 0)
DEBUG_PRINT("\n0x%08x: ", i);
DEBUG_PRINT("%08x ", vop_readl(vop, i));
for (i = 0; i < dump_len; i += 16) {
DEBUG_PRINT("0x%08x: %08x %08x %08x %08x\n", i,
vop_readl(vop, i), vop_readl(vop, i + 4),
vop_readl(vop, i + 8), vop_readl(vop, i + 12));
}
}