Skip to content

Commit aa5216a

Browse files
committed
Merge tag 'powerpc-6.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fixes from Madhavan Srinivasan: - Fix to handle PE state in pseries_eeh_get_state() - Handle unset of tce window if it was never set Thanks to Narayana Murty N, Ritesh Harjani (IBM), Shivaprasad G Bhat, and Vaishnavi Bhat. * tag 'powerpc-6.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/pseries/iommu: Don't unset window if it was never set powerpc/pseries/eeh: Fix get PE state translation
2 parents fed3819 + 17391cb commit aa5216a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

arch/powerpc/platforms/pseries/eeh_pseries.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,10 @@ static int pseries_eeh_get_state(struct eeh_pe *pe, int *delay)
580580

581581
switch(rets[0]) {
582582
case 0:
583-
result = EEH_STATE_MMIO_ACTIVE |
584-
EEH_STATE_DMA_ACTIVE;
583+
result = EEH_STATE_MMIO_ACTIVE |
584+
EEH_STATE_DMA_ACTIVE |
585+
EEH_STATE_MMIO_ENABLED |
586+
EEH_STATE_DMA_ENABLED;
585587
break;
586588
case 1:
587589
result = EEH_STATE_RESET_ACTIVE |

arch/powerpc/platforms/pseries/iommu.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,6 +2208,9 @@ static long spapr_tce_unset_window(struct iommu_table_group *table_group, int nu
22082208
const char *win_name;
22092209
int ret = -ENODEV;
22102210

2211+
if (!tbl) /* The table was never created OR window was never opened */
2212+
return 0;
2213+
22112214
mutex_lock(&dma_win_init_mutex);
22122215

22132216
if ((num == 0) && is_default_window_table(table_group, tbl))

0 commit comments

Comments
 (0)