| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Low-level SPU handling |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * (C) Copyright IBM Deutschland Entwicklung GmbH 2005 |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: Arnd Bergmann <arndb@de.ibm.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 10 | | - * the Free Software Foundation; either version 2, or (at your option) |
|---|
| 11 | | - * any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * You should have received a copy of the GNU General Public License |
|---|
| 19 | | - * along with this program; if not, write to the Free Software |
|---|
| 20 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 21 | 8 | */ |
|---|
| 22 | 9 | |
|---|
| 23 | 10 | #undef DEBUG |
|---|
| .. | .. |
|---|
| 50 | 37 | EXPORT_SYMBOL_GPL(cbe_spu_info); |
|---|
| 51 | 38 | |
|---|
| 52 | 39 | /* |
|---|
| 53 | | - * The spufs fault-handling code needs to call force_sig_info to raise signals |
|---|
| 40 | + * The spufs fault-handling code needs to call force_sig_fault to raise signals |
|---|
| 54 | 41 | * on DMA errors. Export it here to avoid general kernel-wide access to this |
|---|
| 55 | 42 | * function |
|---|
| 56 | 43 | */ |
|---|
| 57 | | -EXPORT_SYMBOL_GPL(force_sig_info); |
|---|
| 44 | +EXPORT_SYMBOL_GPL(force_sig_fault); |
|---|
| 58 | 45 | |
|---|
| 59 | 46 | /* |
|---|
| 60 | 47 | * Protects cbe_spu_info and spu->number. |
|---|
| .. | .. |
|---|
| 194 | 181 | * faults need to be deferred to process context. |
|---|
| 195 | 182 | */ |
|---|
| 196 | 183 | if ((dsisr & MFC_DSISR_PTE_NOT_FOUND) && |
|---|
| 197 | | - (REGION_ID(ea) != USER_REGION_ID)) { |
|---|
| 184 | + (get_region_id(ea) != USER_REGION_ID)) { |
|---|
| 198 | 185 | |
|---|
| 199 | 186 | spin_unlock(&spu->register_lock); |
|---|
| 200 | 187 | ret = hash_page(ea, |
|---|
| .. | .. |
|---|
| 224 | 211 | unsigned long ea = (unsigned long)addr; |
|---|
| 225 | 212 | u64 llp; |
|---|
| 226 | 213 | |
|---|
| 227 | | - if (REGION_ID(ea) == KERNEL_REGION_ID) |
|---|
| 214 | + if (get_region_id(ea) == LINEAR_MAP_REGION_ID) |
|---|
| 228 | 215 | llp = mmu_psize_defs[mmu_linear_psize].sllp; |
|---|
| 229 | 216 | else |
|---|
| 230 | 217 | llp = mmu_psize_defs[mmu_virtual_psize].sllp; |
|---|