|
@@ -1,6 +1,7 @@
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
/*
|
|
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
|
|
|
+ * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <linux/pid.h>
|
|
#include <linux/pid.h>
|
|
@@ -73,13 +74,13 @@ int print_smem(u32 tag, const char *str, struct msm_cvp_inst *inst,
|
|
|
|
|
|
if (!atomic_read(&smem->refcount))
|
|
if (!atomic_read(&smem->refcount))
|
|
dprintk(tag,
|
|
dprintk(tag,
|
|
- " UNUSED mapping %s: 0x%llx %s size %d iova %#x idx %d pkt_type %s buf_idx %#x fd %d",
|
|
|
|
- str, smem->dma_buf, smem->dma_buf->name,
|
|
|
|
|
|
+ " UNUSED mapping %s: 0x%llx size %d iova %#x idx %d pkt_type %s buf_idx %#x fd %d",
|
|
|
|
+ str, smem->dma_buf,
|
|
smem->size, smem->device_addr, smem->bitmap_index, name, smem->buf_idx, smem->fd);
|
|
smem->size, smem->device_addr, smem->bitmap_index, name, smem->buf_idx, smem->fd);
|
|
else
|
|
else
|
|
dprintk(tag,
|
|
dprintk(tag,
|
|
- "%s: %x : 0x%llx %s size %d flags %#x iova %#x idx %d ref %d pkt_type %s buf_idx %#x fd %d",
|
|
|
|
- str, hash32_ptr(inst->session), smem->dma_buf, smem->dma_buf->name,
|
|
|
|
|
|
+ "%s: %x : 0x%llx size %d flags %#x iova %#x idx %d ref %d pkt_type %s buf_idx %#x fd %d",
|
|
|
|
+ str, hash32_ptr(inst->session), smem->dma_buf,
|
|
smem->size, smem->flags, smem->device_addr,
|
|
smem->size, smem->flags, smem->device_addr,
|
|
smem->bitmap_index, atomic_read(&smem->refcount),
|
|
smem->bitmap_index, atomic_read(&smem->refcount),
|
|
name, smem->buf_idx, smem->fd);
|
|
name, smem->buf_idx, smem->fd);
|
|
@@ -1968,7 +1969,6 @@ void msm_cvp_print_inst_bufs(struct msm_cvp_inst *inst, bool log)
|
|
dprintk(CVP_ERR, "unmapped dsp bufs\n");
|
|
dprintk(CVP_ERR, "unmapped dsp bufs\n");
|
|
for (i = 0; i < inst->unused_dsp_bufs.nr; i++)
|
|
for (i = 0; i < inst->unused_dsp_bufs.nr; i++)
|
|
_log_smem(snap, inst, &inst->unused_dsp_bufs.smem[i], log);
|
|
_log_smem(snap, inst, &inst->unused_dsp_bufs.smem[i], log);
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
struct cvp_internal_buf *cvp_allocate_arp_bufs(struct msm_cvp_inst *inst,
|
|
struct cvp_internal_buf *cvp_allocate_arp_bufs(struct msm_cvp_inst *inst,
|