.. | .. |
---|
125 | 125 | return; |
---|
126 | 126 | etnaviv_dump_core = false; |
---|
127 | 127 | |
---|
128 | | - mutex_lock(&gpu->mmu_context->lock); |
---|
| 128 | + mutex_lock(&submit->mmu_context->lock); |
---|
129 | 129 | |
---|
130 | | - mmu_size = etnaviv_iommu_dump_size(gpu->mmu_context); |
---|
| 130 | + mmu_size = etnaviv_iommu_dump_size(submit->mmu_context); |
---|
131 | 131 | |
---|
132 | 132 | /* We always dump registers, mmu, ring, hanging cmdbuf and end marker */ |
---|
133 | 133 | n_obj = 5; |
---|
.. | .. |
---|
157 | 157 | iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_NOWARN | |
---|
158 | 158 | __GFP_NORETRY); |
---|
159 | 159 | if (!iter.start) { |
---|
160 | | - mutex_unlock(&gpu->mmu_context->lock); |
---|
| 160 | + mutex_unlock(&submit->mmu_context->lock); |
---|
161 | 161 | dev_warn(gpu->dev, "failed to allocate devcoredump file\n"); |
---|
162 | 162 | return; |
---|
163 | 163 | } |
---|
.. | .. |
---|
169 | 169 | memset(iter.hdr, 0, iter.data - iter.start); |
---|
170 | 170 | |
---|
171 | 171 | etnaviv_core_dump_registers(&iter, gpu); |
---|
172 | | - etnaviv_core_dump_mmu(&iter, gpu->mmu_context, mmu_size); |
---|
| 172 | + etnaviv_core_dump_mmu(&iter, submit->mmu_context, mmu_size); |
---|
173 | 173 | etnaviv_core_dump_mem(&iter, ETDUMP_BUF_RING, gpu->buffer.vaddr, |
---|
174 | 174 | gpu->buffer.size, |
---|
175 | 175 | etnaviv_cmdbuf_get_va(&gpu->buffer, |
---|
176 | | - &gpu->mmu_context->cmdbuf_mapping)); |
---|
| 176 | + &submit->mmu_context->cmdbuf_mapping)); |
---|
177 | 177 | |
---|
178 | 178 | etnaviv_core_dump_mem(&iter, ETDUMP_BUF_CMD, |
---|
179 | 179 | submit->cmdbuf.vaddr, submit->cmdbuf.size, |
---|
180 | 180 | etnaviv_cmdbuf_get_va(&submit->cmdbuf, |
---|
181 | | - &gpu->mmu_context->cmdbuf_mapping)); |
---|
| 181 | + &submit->mmu_context->cmdbuf_mapping)); |
---|
182 | 182 | |
---|
183 | | - mutex_unlock(&gpu->mmu_context->lock); |
---|
| 183 | + mutex_unlock(&submit->mmu_context->lock); |
---|
184 | 184 | |
---|
185 | 185 | /* Reserve space for the bomap */ |
---|
186 | 186 | if (n_bomap_pages) { |
---|