dma.size = FW_WRITE_BUFSIZE;
        dma.virt = dma_alloc_coherent(&efct->pci->dev,
-                                     dma.size, &dma.phys, GFP_DMA);
+                                     dma.size, &dma.phys, GFP_KERNEL);
        if (!dma.virt)
                return -ENOMEM;
 
 
                dma = &hw->xfer_rdy;
                dma->size = sizeof(struct fcp_txrdy) * hw->config.n_io;
                dma->virt = dma_alloc_coherent(&efct->pci->dev,
-                                              dma->size, &dma->phys, GFP_DMA);
+                                              dma->size, &dma->phys, GFP_KERNEL);
                if (!dma->virt)
                        return -ENOMEM;
        }
                                        sizeof(struct sli4_sge);
                        dma->virt = dma_alloc_coherent(&efct->pci->dev,
                                                       dma->size, &dma->phys,
-                                                      GFP_DMA);
+                                                      GFP_KERNEL);
                        if (!dma->virt) {
                                efc_log_err(hw->os, "dma_alloc fail %d\n", i);
                                memset(&io->def_sgl, 0,
        memset(&req, 0, sizeof(struct efc_dma));
        req.size = 32 + sgls_per_request * 16;
        req.virt = dma_alloc_coherent(&efct->pci->dev, req.size, &req.phys,
-                                     GFP_DMA);
+                                     GFP_KERNEL);
        if (!req.virt) {
                kfree(sgls);
                return -ENOMEM;
        dma = &hw->loop_map;
        dma->size = SLI4_MIN_LOOP_MAP_BYTES;
        dma->virt = dma_alloc_coherent(&hw->os->pci->dev, dma->size, &dma->phys,
-                                      GFP_DMA);
+                                      GFP_KERNEL);
        if (!dma->virt)
                return -EIO;
 
                prq->dma.virt = dma_alloc_coherent(&efct->pci->dev,
                                                   prq->dma.size,
                                                   &prq->dma.phys,
-                                                  GFP_DMA);
+                                                  GFP_KERNEL);
                if (!prq->dma.virt) {
                        efc_log_err(hw->os, "DMA allocation failed\n");
                        kfree(rq_buf);
 
                io->rspbuf.size = SCSI_RSP_BUF_LENGTH;
                io->rspbuf.virt = dma_alloc_coherent(&efct->pci->dev,
                                                     io->rspbuf.size,
-                                                    &io->rspbuf.phys, GFP_DMA);
+                                                    &io->rspbuf.phys, GFP_KERNEL);
                if (!io->rspbuf.virt) {
                        efc_log_err(efct, "dma_alloc rspbuf failed\n");
                        efct_io_pool_free(io_pool);
 
        nport->dma.size = EFC_SPARAM_DMA_SZ;
        nport->dma.virt = dma_alloc_coherent(&efc->pci->dev,
                                             nport->dma.size, &nport->dma.phys,
-                                            GFP_DMA);
+                                            GFP_KERNEL);
        if (!nport->dma.virt) {
                efc_log_err(efc, "Failed to allocate DMA memory\n");
                efc_nport_free_resources(nport, EFC_EVT_NPORT_ALLOC_FAIL, data);
        domain->dma.size = EFC_SPARAM_DMA_SZ;
        domain->dma.virt = dma_alloc_coherent(&efc->pci->dev,
                                              domain->dma.size,
-                                             &domain->dma.phys, GFP_DMA);
+                                             &domain->dma.phys, GFP_KERNEL);
        if (!domain->dma.virt) {
                efc_log_err(efc, "Failed to allocate DMA memory\n");
                return -EIO;
 
        /* now allocate DMA for request and response */
        els->io.req.size = reqlen;
        els->io.req.virt = dma_alloc_coherent(&efc->pci->dev, els->io.req.size,
-                                             &els->io.req.phys, GFP_DMA);
+                                             &els->io.req.phys, GFP_KERNEL);
        if (!els->io.req.virt) {
                mempool_free(els, efc->els_io_pool);
                spin_unlock_irqrestore(&node->els_ios_lock, flags);
 
        els->io.rsp.size = rsplen;
        els->io.rsp.virt = dma_alloc_coherent(&efc->pci->dev, els->io.rsp.size,
-                                             &els->io.rsp.phys, GFP_DMA);
+                                             &els->io.rsp.phys, GFP_KERNEL);
        if (!els->io.rsp.virt) {
                dma_free_coherent(&efc->pci->dev, els->io.req.size,
                                  els->io.req.virt, els->io.req.phys);
 
 
        dma->size = payload_size;
        dma->virt = dma_alloc_coherent(&sli4->pci->dev, dma->size,
-                                      &dma->phys, GFP_DMA);
+                                      &dma->phys, GFP_KERNEL);
        if (!dma->virt)
                return -EIO;
 
 
        q->dma.size = size * n_entries;
        q->dma.virt = dma_alloc_coherent(&sli4->pci->dev, q->dma.size,
-                                        &q->dma.phys, GFP_DMA);
+                                        &q->dma.phys, GFP_KERNEL);
        if (!q->dma.virt) {
                memset(&q->dma, 0, sizeof(struct efc_dma));
                efc_log_err(sli4, "%s allocation failed\n", SLI4_QNAME[qtype]);
 
        dma->size = payload_size;
        dma->virt = dma_alloc_coherent(&sli4->pci->dev, dma->size,
-                                      &dma->phys, GFP_DMA);
+                                      &dma->phys, GFP_KERNEL);
        if (!dma->virt)
                return -EIO;
 
        psize = sizeof(struct sli4_rsp_cmn_get_cntl_addl_attributes);
        data.size = psize;
        data.virt = dma_alloc_coherent(&sli4->pci->dev, data.size,
-                                      &data.phys, GFP_DMA);
+                                      &data.phys, GFP_KERNEL);
        if (!data.virt) {
                memset(&data, 0, sizeof(struct efc_dma));
                efc_log_err(sli4, "Failed to allocate memory for GET_CNTL_ADDL_ATTR\n");
         */
        sli4->bmbx.size = SLI4_BMBX_SIZE + sizeof(struct sli4_mcqe);
        sli4->bmbx.virt = dma_alloc_coherent(&pdev->dev, sli4->bmbx.size,
-                                            &sli4->bmbx.phys, GFP_DMA);
+                                            &sli4->bmbx.phys, GFP_KERNEL);
        if (!sli4->bmbx.virt) {
                memset(&sli4->bmbx, 0, sizeof(struct efc_dma));
                efc_log_err(sli4, "bootstrap mailbox allocation failed\n");
        sli4->vpd_data.virt = dma_alloc_coherent(&pdev->dev,
                                                 sli4->vpd_data.size,
                                                 &sli4->vpd_data.phys,
-                                                GFP_DMA);
+                                                GFP_KERNEL);
        if (!sli4->vpd_data.virt) {
                memset(&sli4->vpd_data, 0, sizeof(struct efc_dma));
                /* Note that failure isn't fatal in this specific case */
                payload_dma->size = payload_size;
                payload_dma->virt = dma_alloc_coherent(&sli4->pci->dev,
                                                       payload_dma->size,
-                                            &payload_dma->phys, GFP_DMA);
+                                            &payload_dma->phys, GFP_KERNEL);
                if (!payload_dma->virt) {
                        memset(payload_dma, 0, sizeof(struct efc_dma));
                        efc_log_err(sli4, "mbox payload memory allocation fail\n");