| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. |
|---|
| 3 | 4 | * Copyright (C) 2017 Linaro Ltd. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License version 2 and |
|---|
| 7 | | - * only version 2 as published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | | - * |
|---|
| 14 | 5 | */ |
|---|
| 15 | 6 | #include <linux/hash.h> |
|---|
| 16 | 7 | #include <linux/list.h> |
|---|
| .. | .. |
|---|
| 147 | 138 | struct hfi_msg_event_notify_pkt *pkt) |
|---|
| 148 | 139 | { |
|---|
| 149 | 140 | if (pkt) |
|---|
| 150 | | - dev_dbg(core->dev, |
|---|
| 141 | + dev_dbg(core->dev, VDBGH |
|---|
| 151 | 142 | "sys error (session id:%x, data1:%x, data2:%x)\n", |
|---|
| 152 | 143 | pkt->shdr.session_id, pkt->event_data1, |
|---|
| 153 | 144 | pkt->event_data2); |
|---|
| .. | .. |
|---|
| 161 | 152 | { |
|---|
| 162 | 153 | struct device *dev = core->dev; |
|---|
| 163 | 154 | |
|---|
| 164 | | - dev_dbg(dev, "session error: event id:%x, session id:%x\n", |
|---|
| 155 | + dev_dbg(dev, VDBGH "session error: event id:%x, session id:%x\n", |
|---|
| 165 | 156 | pkt->event_data1, pkt->shdr.session_id); |
|---|
| 166 | 157 | |
|---|
| 167 | 158 | if (!inst) |
|---|
| .. | .. |
|---|
| 256 | 247 | /* bad packet */ |
|---|
| 257 | 248 | return; |
|---|
| 258 | 249 | |
|---|
| 259 | | - dev_dbg(dev, "F/W version: %s\n", (u8 *)&pkt->data[1]); |
|---|
| 250 | + dev_dbg(dev, VDBGL "F/W version: %s\n", (u8 *)&pkt->data[1]); |
|---|
| 260 | 251 | } |
|---|
| 261 | 252 | |
|---|
| 262 | 253 | static void hfi_sys_property_info(struct venus_core *core, |
|---|
| .. | .. |
|---|
| 266 | 257 | struct device *dev = core->dev; |
|---|
| 267 | 258 | |
|---|
| 268 | 259 | if (!pkt->num_properties) { |
|---|
| 269 | | - dev_dbg(dev, "%s: no properties\n", __func__); |
|---|
| 260 | + dev_dbg(dev, VDBGL "no properties\n"); |
|---|
| 270 | 261 | return; |
|---|
| 271 | 262 | } |
|---|
| 272 | 263 | |
|---|
| .. | .. |
|---|
| 275 | 266 | sys_get_prop_image_version(dev, pkt); |
|---|
| 276 | 267 | break; |
|---|
| 277 | 268 | default: |
|---|
| 278 | | - dev_dbg(dev, "%s: unknown property data\n", __func__); |
|---|
| 269 | + dev_dbg(dev, VDBGL "unknown property data\n"); |
|---|
| 279 | 270 | break; |
|---|
| 280 | 271 | } |
|---|
| 281 | 272 | } |
|---|
| .. | .. |
|---|
| 306 | 297 | static void hfi_sys_idle_done(struct venus_core *core, struct venus_inst *inst, |
|---|
| 307 | 298 | void *packet) |
|---|
| 308 | 299 | { |
|---|
| 309 | | - dev_dbg(core->dev, "sys idle\n"); |
|---|
| 300 | + dev_dbg(core->dev, VDBGL "sys idle\n"); |
|---|
| 310 | 301 | } |
|---|
| 311 | 302 | |
|---|
| 312 | 303 | static void hfi_sys_pc_prepare_done(struct venus_core *core, |
|---|
| .. | .. |
|---|
| 314 | 305 | { |
|---|
| 315 | 306 | struct hfi_msg_sys_pc_prep_done_pkt *pkt = packet; |
|---|
| 316 | 307 | |
|---|
| 317 | | - dev_dbg(core->dev, "pc prepare done (error %x)\n", pkt->error_type); |
|---|
| 308 | + dev_dbg(core->dev, VDBGL "pc prepare done (error %x)\n", |
|---|
| 309 | + pkt->error_type); |
|---|
| 318 | 310 | } |
|---|
| 319 | 311 | |
|---|
| 320 | 312 | static unsigned int |
|---|
| .. | .. |
|---|
| 396 | 388 | case HFI_PROPERTY_CONFIG_VDEC_ENTROPY: |
|---|
| 397 | 389 | break; |
|---|
| 398 | 390 | default: |
|---|
| 399 | | - dev_dbg(dev, "%s: unknown property id:%x\n", __func__, |
|---|
| 400 | | - pkt->data[0]); |
|---|
| 391 | + dev_dbg(dev, VDBGM "unknown property id:%x\n", pkt->data[0]); |
|---|
| 401 | 392 | return; |
|---|
| 402 | 393 | } |
|---|
| 403 | 394 | |
|---|
| .. | .. |
|---|
| 448 | 439 | |
|---|
| 449 | 440 | inst->error = pkt->error_type; |
|---|
| 450 | 441 | complete(&inst->done); |
|---|
| 442 | + if (inst->ops->flush_done) |
|---|
| 443 | + inst->ops->flush_done(inst); |
|---|
| 451 | 444 | } |
|---|
| 452 | 445 | |
|---|
| 453 | 446 | static void hfi_session_etb_done(struct venus_core *core, |
|---|