diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-10-12 23:11:21 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-10-12 23:11:21 +0200 |
commit | 680b5b3c5d34b22695357e17b6bdd0abd83e6b1c (patch) | |
tree | 50d9629f39d8a1c8ad0fb3e80c8d4bf8e6512841 /drivers/gpu | |
parent | Merge tag 's390-5.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/... (diff) | |
parent | xen: Stop abusing DT of_dma_configure API (diff) | |
download | linux-680b5b3c5d34b22695357e17b6bdd0abd83e6b1c.tar.xz linux-680b5b3c5d34b22695357e17b6bdd0abd83e6b1c.zip |
Merge tag 'for-linus-5.4-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen fixes from Juergen Gross:
- correct panic handling when running as a Xen guest
- cleanup the Xen grant driver to remove printing a pointer being
always NULL
- remove a soon to be wrong call of of_dma_configure()
* tag 'for-linus-5.4-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
xen: Stop abusing DT of_dma_configure API
xen/grant-table: remove unnecessary printing
x86/xen: Return from panic notifier
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/xen/xen_drm_front.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/gpu/drm/xen/xen_drm_front.c b/drivers/gpu/drm/xen/xen_drm_front.c index ba1828acd8c9..4be49c1aef51 100644 --- a/drivers/gpu/drm/xen/xen_drm_front.c +++ b/drivers/gpu/drm/xen/xen_drm_front.c @@ -718,17 +718,9 @@ static int xen_drv_probe(struct xenbus_device *xb_dev, struct device *dev = &xb_dev->dev; int ret; - /* - * The device is not spawn from a device tree, so arch_setup_dma_ops - * is not called, thus leaving the device with dummy DMA ops. - * This makes the device return error on PRIME buffer import, which - * is not correct: to fix this call of_dma_configure() with a NULL - * node to set default DMA ops. - */ - dev->coherent_dma_mask = DMA_BIT_MASK(32); - ret = of_dma_configure(dev, NULL, true); + ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(64)); if (ret < 0) { - DRM_ERROR("Cannot setup DMA ops, ret %d", ret); + DRM_ERROR("Cannot setup DMA mask, ret %d", ret); return ret; } |