diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-09-11 23:40:47 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-02 23:13:11 -0400 |
commit | da07e52cf10c9584c7e197ac3d49455e1a4d4756 (patch) | |
tree | 3b33b2ebcbb41bed17de48e8a101cd5a3a4b1f17 | |
parent | aa74c3755ecc24914f9b3aaf5ba1436836697a7d (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>
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_chan.c | 10 |
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); | |||
47 | int | 47 | int |
48 | nouveau_channel_idle(struct nouveau_channel *chan) | 48 | nouveau_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 | } |