hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/gpu/host1x/hw/debug_hw.c
....@@ -1,18 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2010 Google, Inc.
34 * Author: Erik Gilling <konkers@android.com>
45 *
56 * Copyright (C) 2011-2013 NVIDIA Corporation
6
- *
7
- * This software is licensed under the terms of the GNU General Public
8
- * License version 2, as published by the Free Software Foundation, and
9
- * may be copied, distributed, and modified under those terms.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
167 */
178
189 #include "../dev.h"
....@@ -201,8 +192,14 @@
201192
202193 static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma)
203194 {
195
+ struct push_buffer *pb = &cdma->push_buffer;
204196 struct host1x_job *job;
205197
198
+ host1x_debug_output(o, "PUSHBUF at %pad, %u words\n",
199
+ &pb->dma, pb->size / 4);
200
+
201
+ show_gather(o, pb->dma, pb->size / 4, cdma, pb->dma, pb->mapped);
202
+
206203 list_for_each_entry(job, &cdma->sync_queue, list) {
207204 unsigned int i;
208205