aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-09-11 23:40:47 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-10-02 23:13:11 -0400
commitda07e52cf10c9584c7e197ac3d49455e1a4d4756 (patch)
tree3b33b2ebcbb41bed17de48e8a101cd5a3a4b1f17 /drivers/gpu
parentaa74c3755ecc24914f9b3aaf5ba1436836697a7d (diff)
drm/nouveau: log channel debug/error messages from client object rather than drm client
This will make it more obvious which application caused particular messages. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_chan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_chan.c b/drivers/gpu/drm/nouveau/nouveau_chan.c
index 3b3791453178..c1d7301c0e9c 100644
--- a/drivers/gpu/drm/nouveau/nouveau_chan.c
+++ b/drivers/gpu/drm/nouveau/nouveau_chan.c
@@ -47,7 +47,7 @@ module_param_named(vram_pushbuf, nouveau_vram_pushbuf, int, 0400);
47int 47int
48nouveau_channel_idle(struct nouveau_channel *chan) 48nouveau_channel_idle(struct nouveau_channel *chan)
49{ 49{
50 struct nouveau_drm *drm = chan->drm; 50 struct nouveau_cli *cli = chan->cli;
51 struct nouveau_fence *fence = NULL; 51 struct nouveau_fence *fence = NULL;
52 int ret; 52 int ret;
53 53
@@ -58,7 +58,7 @@ nouveau_channel_idle(struct nouveau_channel *chan)
58 } 58 }
59 59
60 if (ret) 60 if (ret)
61 NV_ERROR(drm, "failed to idle channel 0x%08x\n", chan->handle); 61 NV_ERROR(cli, "failed to idle channel 0x%08x\n", chan->handle);
62 return ret; 62 return ret;
63} 63}
64 64
@@ -381,17 +381,17 @@ nouveau_channel_new(struct nouveau_drm *drm, struct nouveau_cli *cli,
381 381
382 ret = nouveau_channel_ind(drm, cli, parent, handle, arg0, pchan); 382 ret = nouveau_channel_ind(drm, cli, parent, handle, arg0, pchan);
383 if (ret) { 383 if (ret) {
384 NV_DEBUG(drm, "ib channel create, %d\n", ret); 384 NV_DEBUG(cli, "ib channel create, %d\n", ret);
385 ret = nouveau_channel_dma(drm, cli, parent, handle, pchan); 385 ret = nouveau_channel_dma(drm, cli, parent, handle, pchan);
386 if (ret) { 386 if (ret) {
387 NV_DEBUG(drm, "dma channel create, %d\n", ret); 387 NV_DEBUG(cli, "dma channel create, %d\n", ret);
388 return ret; 388 return ret;
389 } 389 }
390 } 390 }
391 391
392 ret = nouveau_channel_init(*pchan, arg0, arg1); 392 ret = nouveau_channel_init(*pchan, arg0, arg1);
393 if (ret) { 393 if (ret) {
394 NV_ERROR(drm, "channel failed to initialise, %d\n", ret); 394 NV_ERROR(cli, "channel failed to initialise, %d\n", ret);
395 nouveau_channel_del(pchan); 395 nouveau_channel_del(pchan);
396 return ret; 396 return ret;
397 } 397 }