Commit dde59b9c authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/imem: add some useful debug output

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 70433b90
...@@ -174,14 +174,20 @@ int ...@@ -174,14 +174,20 @@ int
nvkm_instobj_new(struct nvkm_instmem *imem, u32 size, u32 align, bool zero, nvkm_instobj_new(struct nvkm_instmem *imem, u32 size, u32 align, bool zero,
struct nvkm_memory **pmemory) struct nvkm_memory **pmemory)
{ {
struct nvkm_subdev *subdev = &imem->subdev;
struct nvkm_memory *memory = NULL; struct nvkm_memory *memory = NULL;
struct nvkm_instobj *iobj; struct nvkm_instobj *iobj;
u32 offset; u32 offset;
int ret; int ret;
ret = imem->func->memory_new(imem, size, align, zero, &memory); ret = imem->func->memory_new(imem, size, align, zero, &memory);
if (ret) if (ret) {
nvkm_error(subdev, "OOM: %08x %08x %d\n", size, align, ret);
goto done; goto done;
}
nvkm_trace(subdev, "new %08x %08x %d: %010llx %010llx\n", size, align,
zero, nvkm_memory_addr(memory), nvkm_memory_size(memory));
if (!imem->func->persistent) { if (!imem->func->persistent) {
if (!(iobj = kzalloc(sizeof(*iobj), GFP_KERNEL))) { if (!(iobj = kzalloc(sizeof(*iobj), GFP_KERNEL))) {
......
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