diff options
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_init_chip.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_init_chip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_init_chip.c b/drivers/infiniband/hw/ipath/ipath_init_chip.c index 49951d583804..9dd0bacf8461 100644 --- a/drivers/infiniband/hw/ipath/ipath_init_chip.c +++ b/drivers/infiniband/hw/ipath/ipath_init_chip.c | |||
@@ -782,7 +782,7 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit) | |||
782 | * Follows early_init because some chips have to initialize | 782 | * Follows early_init because some chips have to initialize |
783 | * PIO buffers in early_init to avoid false parity errors. | 783 | * PIO buffers in early_init to avoid false parity errors. |
784 | */ | 784 | */ |
785 | ipath_cancel_sends(dd); | 785 | ipath_cancel_sends(dd, 0); |
786 | 786 | ||
787 | /* early_init sets rcvhdrentsize and rcvhdrsize, so this must be | 787 | /* early_init sets rcvhdrentsize and rcvhdrsize, so this must be |
788 | * done after early_init */ | 788 | * done after early_init */ |
@@ -851,13 +851,14 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit) | |||
851 | ipath_write_kreg(dd, dd->ipath_kregs->kr_hwerrmask, | 851 | ipath_write_kreg(dd, dd->ipath_kregs->kr_hwerrmask, |
852 | dd->ipath_hwerrmask); | 852 | dd->ipath_hwerrmask); |
853 | 853 | ||
854 | dd->ipath_maskederrs = dd->ipath_ignorederrs; | ||
855 | /* clear all */ | 854 | /* clear all */ |
856 | ipath_write_kreg(dd, dd->ipath_kregs->kr_errorclear, -1LL); | 855 | ipath_write_kreg(dd, dd->ipath_kregs->kr_errorclear, -1LL); |
857 | /* enable errors that are masked, at least this first time. */ | 856 | /* enable errors that are masked, at least this first time. */ |
858 | ipath_write_kreg(dd, dd->ipath_kregs->kr_errormask, | 857 | ipath_write_kreg(dd, dd->ipath_kregs->kr_errormask, |
859 | ~dd->ipath_maskederrs); | 858 | ~dd->ipath_maskederrs); |
860 | /* clear any interrups up to this point (ints still not enabled) */ | 859 | dd->ipath_errormask = ipath_read_kreg64(dd, |
860 | dd->ipath_kregs->kr_errormask); | ||
861 | /* clear any interrupts up to this point (ints still not enabled) */ | ||
861 | ipath_write_kreg(dd, dd->ipath_kregs->kr_intclear, -1LL); | 862 | ipath_write_kreg(dd, dd->ipath_kregs->kr_intclear, -1LL); |
862 | 863 | ||
863 | /* | 864 | /* |