vphb.c (82ffd0454bd9bd57780966d47bfd56d579dd4fb3) | vphb.c (68005b67d15a1ee5b5ddff965175728e65fa73e7) |
---|---|
1/* 2 * Copyright 2014 IBM Corp. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 */ --- 29 unchanged lines hidden (view full) --- 38 phb = pci_bus_to_host(dev->bus); 39 afu = (struct cxl_afu *)phb->private_data; 40 41 if (!cxl_ops->link_ok(afu->adapter, afu)) { 42 dev_warn(&dev->dev, "%s: Device link is down, refusing to enable AFU\n", __func__); 43 return false; 44 } 45 | 1/* 2 * Copyright 2014 IBM Corp. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 */ --- 29 unchanged lines hidden (view full) --- 38 phb = pci_bus_to_host(dev->bus); 39 afu = (struct cxl_afu *)phb->private_data; 40 41 if (!cxl_ops->link_ok(afu->adapter, afu)) { 42 dev_warn(&dev->dev, "%s: Device link is down, refusing to enable AFU\n", __func__); 43 return false; 44 } 45 |
46 set_dma_ops(&dev->dev, &dma_nommu_ops); | |
47 set_dma_offset(&dev->dev, PAGE_OFFSET); 48 49 /* 50 * Allocate a context to do cxl things too. If we eventually do real 51 * DMA ops, we'll need a default context to attach them to 52 */ 53 ctx = cxl_dev_context_init(dev); 54 if (IS_ERR(ctx)) --- 267 unchanged lines hidden --- | 46 set_dma_offset(&dev->dev, PAGE_OFFSET); 47 48 /* 49 * Allocate a context to do cxl things too. If we eventually do real 50 * DMA ops, we'll need a default context to attach them to 51 */ 52 ctx = cxl_dev_context_init(dev); 53 if (IS_ERR(ctx)) --- 267 unchanged lines hidden --- |