.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * EEH functionality support for VFIO devices. The feature is only |
---|
3 | 4 | * available on sPAPR compatible platforms. |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright Gavin Shan, IBM Corporation 2014. |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | */ |
---|
11 | 8 | |
---|
12 | 9 | #include <linux/module.h> |
---|
.. | .. |
---|
74 | 71 | ret = eeh_pe_get_state(pe); |
---|
75 | 72 | break; |
---|
76 | 73 | case VFIO_EEH_PE_RESET_DEACTIVATE: |
---|
77 | | - ret = eeh_pe_reset(pe, EEH_RESET_DEACTIVATE); |
---|
| 74 | + ret = eeh_pe_reset(pe, EEH_RESET_DEACTIVATE, true); |
---|
78 | 75 | break; |
---|
79 | 76 | case VFIO_EEH_PE_RESET_HOT: |
---|
80 | | - ret = eeh_pe_reset(pe, EEH_RESET_HOT); |
---|
| 77 | + ret = eeh_pe_reset(pe, EEH_RESET_HOT, true); |
---|
81 | 78 | break; |
---|
82 | 79 | case VFIO_EEH_PE_RESET_FUNDAMENTAL: |
---|
83 | | - ret = eeh_pe_reset(pe, EEH_RESET_FUNDAMENTAL); |
---|
| 80 | + ret = eeh_pe_reset(pe, EEH_RESET_FUNDAMENTAL, true); |
---|
84 | 81 | break; |
---|
85 | 82 | case VFIO_EEH_PE_CONFIGURE: |
---|
86 | 83 | ret = eeh_pe_configure(pe); |
---|