dm: Change the PCI_EMUL_MEMBASE64 to workable address.

To enable GPU passthru, BAR2 allocation had problems when the allocation
is above the 4GB memory.This change is to accomodate the 256MB aperture
allocation in BAR2 to a more managable address.

v2: changed the MEMBASE64 address instead of increasing the mem_size.

Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
Reviewed-by: Gong Zhipeng <zhipeng.gong@intel.com>
This commit is contained in:
Anitha Chrisanthus 2018-06-19 06:03:11 -07:00 committed by Xie, nanlin
parent a69a36960a
commit 9d4cc5c11d
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ SYSRES_MEM(PCI_EMUL_ECFG_BASE, PCI_EMUL_ECFG_SIZE);
#define PCI_EMUL_MEMLIMIT32 PCI_EMUL_ECFG_BASE #define PCI_EMUL_MEMLIMIT32 PCI_EMUL_ECFG_BASE
#define PCI_EMUL_MEMBASE64 0xD000000000UL #define PCI_EMUL_MEMBASE64 0x7000000000UL
#define PCI_EMUL_MEMLIMIT64 0xFD00000000UL #define PCI_EMUL_MEMLIMIT64 0x8D00000000UL
static struct pci_vdev_ops *pci_emul_finddev(char *name); static struct pci_vdev_ops *pci_emul_finddev(char *name);
static void pci_lintr_route(struct pci_vdev *dev); static void pci_lintr_route(struct pci_vdev *dev);