hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/vfio/vfio_spapr_eeh.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * EEH functionality support for VFIO devices. The feature is only
34 * available on sPAPR compatible platforms.
45 *
56 * 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.
107 */
118
129 #include <linux/module.h>
....@@ -74,13 +71,13 @@
7471 ret = eeh_pe_get_state(pe);
7572 break;
7673 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);
7875 break;
7976 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);
8178 break;
8279 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);
8481 break;
8582 case VFIO_EEH_PE_CONFIGURE:
8683 ret = eeh_pe_configure(pe);