Skip to content

Commit 3ca3a9e

Browse files
committed
Merge tag 'drm-misc-next-fixes-2019-11-06' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
msm: Fix up a6xx debugbus register names (Sharat) mst: Avoid u64 division (Sean) Cc: Sharat Masetty <[email protected]> Cc: Sean Paul <[email protected]> Signed-off-by: Dave Airlie <[email protected]> From: Sean Paul <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20191106202730.GA199896@art_vandelay
2 parents 23aae18 + b149cbf commit 3ca3a9e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

drivers/gpu/drm/drm_dp_mst_topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,12 +1507,12 @@ __dump_topology_ref_history(struct drm_dp_mst_topology_ref_history *history,
15071507
ulong *entries;
15081508
uint nr_entries;
15091509
u64 ts_nsec = entry->ts_nsec;
1510-
u64 rem_nsec = do_div(ts_nsec, 1000000000);
1510+
u32 rem_nsec = do_div(ts_nsec, 1000000000);
15111511

15121512
nr_entries = stack_depot_fetch(entry->backtrace, &entries);
15131513
stack_trace_snprint(buf, PAGE_SIZE, entries, nr_entries, 4);
15141514

1515-
drm_printf(&p, " %d %ss (last at %5llu.%06llu):\n%s",
1515+
drm_printf(&p, " %d %ss (last at %5llu.%06u):\n%s",
15161516
entry->count,
15171517
topology_ref_type_to_str(entry->type),
15181518
ts_nsec, rem_nsec / 1000, buf);

drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -352,26 +352,26 @@ static void a6xx_get_debugbus(struct msm_gpu *gpu,
352352
cxdbg = ioremap(res->start, resource_size(res));
353353

354354
if (cxdbg) {
355-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_CNTLT,
355+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_CNTLT,
356356
A6XX_DBGC_CFG_DBGBUS_CNTLT_SEGT(0xf));
357357

358-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_CNTLM,
358+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_CNTLM,
359359
A6XX_DBGC_CFG_DBGBUS_CNTLM_ENABLE(0xf));
360360

361-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_IVTL_0, 0);
362-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_IVTL_1, 0);
363-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_IVTL_2, 0);
364-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_IVTL_3, 0);
361+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_0, 0);
362+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_1, 0);
363+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_2, 0);
364+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_3, 0);
365365

366-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_BYTEL_0,
366+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_BYTEL_0,
367367
0x76543210);
368-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_BYTEL_1,
368+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_BYTEL_1,
369369
0xFEDCBA98);
370370

371-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_MASKL_0, 0);
372-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_MASKL_1, 0);
373-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_MASKL_2, 0);
374-
cxdbg_write(cxdbg, REG_A6XX_DBGC_CFG_DBGBUS_MASKL_3, 0);
371+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_0, 0);
372+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_1, 0);
373+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_2, 0);
374+
cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_3, 0);
375375
}
376376

377377
a6xx_state->debugbus = state_kcalloc(a6xx_state,

0 commit comments

Comments
 (0)