hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/drivers/edac/xgene_edac.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * APM X-Gene SoC EDAC (error detection and correction)
34 *
45 * Copyright (c) 2015, Applied Micro Circuits Corporation
56 * Author: Feng Kan <fkan@apm.com>
67 * Loc Ho <lho@apm.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) 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, see <http://www.gnu.org/licenses/>.
208 */
219
2210 #include <linux/ctype.h>
....@@ -1361,7 +1349,6 @@
13611349 #define WORD_ALIGNED_ERR_MASK BIT(28)
13621350 #define PAGE_ACCESS_ERR_MASK BIT(27)
13631351 #define WRITE_ACCESS_MASK BIT(26)
1364
-#define RBERRADDR_RD(src) ((src) & 0x03FFFFFF)
13651352
13661353 static const char * const soc_mem_err_v1[] = {
13671354 "10GbE0",
....@@ -1495,13 +1482,11 @@
14951482 return;
14961483 if (reg & STICKYERR_MASK) {
14971484 bool write;
1498
- u32 address;
14991485
15001486 dev_err(edac_dev->dev, "IOB bus access error(s)\n");
15011487 if (regmap_read(ctx->edac->rb_map, RBEIR, &reg))
15021488 return;
15031489 write = reg & WRITE_ACCESS_MASK ? 1 : 0;
1504
- address = RBERRADDR_RD(reg);
15051490 if (reg & AGENT_OFFLINE_ERR_MASK)
15061491 dev_err(edac_dev->dev,
15071492 "IOB bus %s access to offline agent error\n",