| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2014 IBM Corp. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or |
|---|
| 5 | | - * modify it under the terms of the GNU General Public License |
|---|
| 6 | | - * as published by the Free Software Foundation; either version |
|---|
| 7 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 8 | 4 | */ |
|---|
| 9 | 5 | |
|---|
| 10 | 6 | #include <linux/spinlock.h> |
|---|
| .. | .. |
|---|
| 22 | 18 | #include <linux/sched/task.h> |
|---|
| 23 | 19 | |
|---|
| 24 | 20 | #include <asm/cputable.h> |
|---|
| 21 | +#include <asm/mmu.h> |
|---|
| 25 | 22 | #include <misc/cxl-base.h> |
|---|
| 26 | 23 | |
|---|
| 27 | 24 | #include "cxl.h" |
|---|
| .. | .. |
|---|
| 319 | 316 | { |
|---|
| 320 | 317 | int rc = 0; |
|---|
| 321 | 318 | |
|---|
| 319 | + if (!tlbie_capable) |
|---|
| 320 | + return -EINVAL; |
|---|
| 321 | + |
|---|
| 322 | 322 | if ((rc = cxl_file_init())) |
|---|
| 323 | 323 | return rc; |
|---|
| 324 | 324 | |
|---|