mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
xen: fixes for 5.4-rc3
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRTLbB6QfY48x44uB6AXGG7T9hjvgUCXaGvDgAKCRCAXGG7T9hj vjeDAPoDg9Gn0zDiej0jWWX6ZFXPQDdzWwhK9iEuwH9U7+GgOQEA6BeTPSIxvXUm gicOPWs6QGGQ0m3CGN2UGKc74pFh9ww= =wcya -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
680b5b3c5d
5 changed files with 34 additions and 26 deletions
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
|
@ -34,9 +35,6 @@
|
|||
#include <linux/slab.h>
|
||||
#include <linux/highmem.h>
|
||||
#include <linux/refcount.h>
|
||||
#ifdef CONFIG_XEN_GRANT_DMA_ALLOC
|
||||
#include <linux/of_device.h>
|
||||
#endif
|
||||
|
||||
#include <xen/xen.h>
|
||||
#include <xen/grant_table.h>
|
||||
|
|
@ -625,14 +623,7 @@ static int gntdev_open(struct inode *inode, struct file *flip)
|
|||
flip->private_data = priv;
|
||||
#ifdef CONFIG_XEN_GRANT_DMA_ALLOC
|
||||
priv->dma_dev = gntdev_miscdev.this_device;
|
||||
|
||||
/*
|
||||
* 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.
|
||||
* Fix this by calling of_dma_configure() with a NULL node to set
|
||||
* default DMA ops.
|
||||
*/
|
||||
of_dma_configure(priv->dma_dev, NULL, true);
|
||||
dma_coerce_mask_and_coherent(priv->dma_dev, DMA_BIT_MASK(64));
|
||||
#endif
|
||||
pr_debug("priv %p\n", priv);
|
||||
|
||||
|
|
|
|||
|
|
@ -1363,8 +1363,7 @@ static int gnttab_setup(void)
|
|||
if (xen_feature(XENFEAT_auto_translated_physmap) && gnttab_shared.addr == NULL) {
|
||||
gnttab_shared.addr = xen_auto_xlat_grant_frames.vaddr;
|
||||
if (gnttab_shared.addr == NULL) {
|
||||
pr_warn("gnttab share frames (addr=0x%08lx) is not mapped!\n",
|
||||
(unsigned long)xen_auto_xlat_grant_frames.vaddr);
|
||||
pr_warn("gnttab share frames is not mapped!\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue