Commit 65850a3b authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/cipher: switch to subdev printk macros

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1eed206f
...@@ -113,17 +113,18 @@ g84_cipher_intr(struct nvkm_subdev *subdev) ...@@ -113,17 +113,18 @@ g84_cipher_intr(struct nvkm_subdev *subdev)
u32 mthd = nvkm_rd32(device, 0x102190); u32 mthd = nvkm_rd32(device, 0x102190);
u32 data = nvkm_rd32(device, 0x102194); u32 data = nvkm_rd32(device, 0x102194);
u32 inst = nvkm_rd32(device, 0x102188) & 0x7fffffff; u32 inst = nvkm_rd32(device, 0x102188) & 0x7fffffff;
char msg[128];
int chid; int chid;
engctx = nvkm_engctx_get(engine, inst); engctx = nvkm_engctx_get(engine, inst);
chid = fifo->chid(fifo, engctx); chid = fifo->chid(fifo, engctx);
if (stat) { if (stat) {
nv_error(cipher, "%s", ""); nvkm_snprintbf(msg, sizeof(msg), g84_cipher_intr_mask, stat);
nvkm_bitfield_print(g84_cipher_intr_mask, stat); nvkm_error(subdev, "%08x [%s] ch %d [%010llx %s] "
pr_cont(" ch %d [0x%010llx %s] mthd 0x%04x data 0x%08x\n", "mthd %04x data %08x\n",
chid, (u64)inst << 12, nvkm_client_name(engctx), stat, msg, chid, (u64)inst << 12,
mthd, data); nvkm_client_name(engctx), mthd, data);
} }
nvkm_wr32(device, 0x102130, stat); nvkm_wr32(device, 0x102130, stat);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment