.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2010 Google, Inc. |
---|
3 | 4 | * Author: Erik Gilling <konkers@android.com> |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (C) 2011-2017 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 | | - * |
---|
16 | 7 | */ |
---|
17 | 8 | |
---|
18 | 9 | #include "../dev.h" |
---|
.. | .. |
---|
62 | 53 | struct host1x_channel *ch, |
---|
63 | 54 | struct output *o) |
---|
64 | 55 | { |
---|
65 | | - u32 val, rd_ptr, wr_ptr, start, end; |
---|
| 56 | +#if HOST1X_HW <= 6 |
---|
| 57 | + u32 rd_ptr, wr_ptr, start, end; |
---|
66 | 58 | u32 payload = INVALID_PAYLOAD; |
---|
67 | 59 | unsigned int data_count = 0; |
---|
| 60 | +#endif |
---|
| 61 | + u32 val; |
---|
68 | 62 | |
---|
69 | 63 | host1x_debug_output(o, "%u: fifo:\n", ch->id); |
---|
70 | 64 | |
---|
.. | .. |
---|
78 | 72 | val = host1x_ch_readl(ch, HOST1X_CHANNEL_CMDFIFO_RDATA); |
---|
79 | 73 | host1x_debug_output(o, "CMDFIFO_RDATA %08x\n", val); |
---|
80 | 74 | |
---|
| 75 | +#if HOST1X_HW <= 6 |
---|
81 | 76 | /* Peek pointer values are invalid during SLCG, so disable it */ |
---|
82 | 77 | host1x_hypervisor_writel(host, 0x1, HOST1X_HV_ICG_EN_OVERRIDE); |
---|
83 | 78 | |
---|
.. | .. |
---|
127 | 122 | |
---|
128 | 123 | host1x_hypervisor_writel(host, 0x0, HOST1X_HV_CMDFIFO_PEEK_CTRL); |
---|
129 | 124 | host1x_hypervisor_writel(host, 0x0, HOST1X_HV_ICG_EN_OVERRIDE); |
---|
| 125 | +#endif |
---|
130 | 126 | } |
---|
131 | 127 | |
---|
132 | 128 | static void host1x_debug_show_mlocks(struct host1x *host, struct output *o) |
---|