forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/platforms/cell/spu_base.c
....@@ -1,23 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Low-level SPU handling
34 *
45 * (C) Copyright IBM Deutschland Entwicklung GmbH 2005
56 *
67 * 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.
218 */
229
2310 #undef DEBUG
....@@ -50,11 +37,11 @@
5037 EXPORT_SYMBOL_GPL(cbe_spu_info);
5138
5239 /*
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
5441 * on DMA errors. Export it here to avoid general kernel-wide access to this
5542 * function
5643 */
57
-EXPORT_SYMBOL_GPL(force_sig_info);
44
+EXPORT_SYMBOL_GPL(force_sig_fault);
5845
5946 /*
6047 * Protects cbe_spu_info and spu->number.
....@@ -194,7 +181,7 @@
194181 * faults need to be deferred to process context.
195182 */
196183 if ((dsisr & MFC_DSISR_PTE_NOT_FOUND) &&
197
- (REGION_ID(ea) != USER_REGION_ID)) {
184
+ (get_region_id(ea) != USER_REGION_ID)) {
198185
199186 spin_unlock(&spu->register_lock);
200187 ret = hash_page(ea,
....@@ -224,7 +211,7 @@
224211 unsigned long ea = (unsigned long)addr;
225212 u64 llp;
226213
227
- if (REGION_ID(ea) == KERNEL_REGION_ID)
214
+ if (get_region_id(ea) == LINEAR_MAP_REGION_ID)
228215 llp = mmu_psize_defs[mmu_linear_psize].sllp;
229216 else
230217 llp = mmu_psize_defs[mmu_virtual_psize].sllp;