card_base.c (05909cd9a0c8811731b38697af13075e8954314f) | card_base.c (505b08777d78868e6c47051a4e7f011718a3aba1) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/** 3 * IBM Accelerator Family 'GenWQE' 4 * 5 * (C) Copyright IBM Corp. 2013 6 * 7 * Author: Frank Haverkamp <haver@linux.vnet.ibm.com> 8 * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com> --- 1075 unchanged lines hidden (view full) --- 1084 if (err) { 1085 dev_err(&pci_dev->dev, 1086 "[%s] err: request bars failed (%d)\n", __func__, err); 1087 err = -EIO; 1088 goto err_disable_device; 1089 } 1090 1091 /* check for 64-bit DMA address supported (DAC) */ | 1// SPDX-License-Identifier: GPL-2.0-only 2/** 3 * IBM Accelerator Family 'GenWQE' 4 * 5 * (C) Copyright IBM Corp. 2013 6 * 7 * Author: Frank Haverkamp <haver@linux.vnet.ibm.com> 8 * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com> --- 1075 unchanged lines hidden (view full) --- 1084 if (err) { 1085 dev_err(&pci_dev->dev, 1086 "[%s] err: request bars failed (%d)\n", __func__, err); 1087 err = -EIO; 1088 goto err_disable_device; 1089 } 1090 1091 /* check for 64-bit DMA address supported (DAC) */ |
1092 if (!pci_set_dma_mask(pci_dev, DMA_BIT_MASK(64))) { 1093 err = pci_set_consistent_dma_mask(pci_dev, DMA_BIT_MASK(64)); 1094 if (err) { 1095 dev_err(&pci_dev->dev, 1096 "err: DMA64 consistent mask error\n"); 1097 err = -EIO; 1098 goto out_release_resources; 1099 } | |
1100 /* check for 32-bit DMA address supported (SAC) */ | 1092 /* check for 32-bit DMA address supported (SAC) */ |
1101 } else if (!pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32))) { 1102 err = pci_set_consistent_dma_mask(pci_dev, DMA_BIT_MASK(32)); 1103 if (err) { 1104 dev_err(&pci_dev->dev, 1105 "err: DMA32 consistent mask error\n"); 1106 err = -EIO; 1107 goto out_release_resources; 1108 } 1109 } else { | 1093 if (dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(64)) || 1094 dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(32))) { |
1110 dev_err(&pci_dev->dev, 1111 "err: neither DMA32 nor DMA64 supported\n"); 1112 err = -EIO; 1113 goto out_release_resources; 1114 } 1115 1116 pci_set_master(pci_dev); 1117 pci_enable_pcie_error_reporting(pci_dev); --- 299 unchanged lines hidden --- | 1095 dev_err(&pci_dev->dev, 1096 "err: neither DMA32 nor DMA64 supported\n"); 1097 err = -EIO; 1098 goto out_release_resources; 1099 } 1100 1101 pci_set_master(pci_dev); 1102 pci_enable_pcie_error_reporting(pci_dev); --- 299 unchanged lines hidden --- |