Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pci/pcireg.h
Show First 20 Lines • Show All 1,092 Lines • ▼ Show 20 Lines | |||||
#define PCIM_OSC_SUPPORT_SEG_GROUP 0x08 /* PCI Segment Groups supported */ | #define PCIM_OSC_SUPPORT_SEG_GROUP 0x08 /* PCI Segment Groups supported */ | ||||
#define PCIM_OSC_SUPPORT_MSI 0x10 /* MSI signalling supported */ | #define PCIM_OSC_SUPPORT_MSI 0x10 /* MSI signalling supported */ | ||||
#define PCI_OSC_CTL 2 | #define PCI_OSC_CTL 2 | ||||
#define PCIM_OSC_CTL_PCIE_HP 0x01 /* PCIe Native Hot Plug */ | #define PCIM_OSC_CTL_PCIE_HP 0x01 /* PCIe Native Hot Plug */ | ||||
#define PCIM_OSC_CTL_SHPC_HP 0x02 /* SHPC Native Hot Plug */ | #define PCIM_OSC_CTL_SHPC_HP 0x02 /* SHPC Native Hot Plug */ | ||||
#define PCIM_OSC_CTL_PCIE_PME 0x04 /* PCIe Native Power Mgt Events */ | #define PCIM_OSC_CTL_PCIE_PME 0x04 /* PCIe Native Power Mgt Events */ | ||||
#define PCIM_OSC_CTL_PCIE_AER 0x08 /* PCIe Advanced Error Reporting */ | #define PCIM_OSC_CTL_PCIE_AER 0x08 /* PCIe Advanced Error Reporting */ | ||||
#define PCIM_OSC_CTL_PCIE_CAP_STRUCT 0x10 /* Various Capability Structures */ | #define PCIM_OSC_CTL_PCIE_CAP_STRUCT 0x10 /* Various Capability Structures */ | ||||
/* | |||||
* PCI Vendors | |||||
*/ | |||||
#define PCI_VENDOR_INTEL 0x8086 | |||||
grehan: Does this value have to be fixed ? (ie.. for a 1:1 guest/host mapping) | |||||
Done Inline ActionsNormally this value is set to TOLUD - GSM_SIZE by BIOS. (TOLUD == Top of Low Usable DRAM) So, I think for bhyve it should be lowmem_limit - GSM_SIZE. The current implementation maps GPU_GSM_GPA into the PCI-Space (0xC0000000 - 0xE0000000) and works fine. Don't know if it's neccessary to set it to lowmem_limit - GSM_SIZE. corvink: Normally this value is set to //TOLUD - GSM_SIZE// by BIOS. (TOLUD == Top of Low Usable DRAM)… | |||||
Done Inline ActionsIs this the same as the value configured through BIOS ("DVMT Pre-Allocated" from the intro) ? Any value in having this configurable ? grehan: Is this the same as the value configured through BIOS ("DVMT Pre-Allocated" from the intro) ? | |||||
Done Inline ActionsYes, that's the "DVMT Pre-Allocated" setting. My updated revision detects this value. corvink: Yes, that's the "DVMT Pre-Allocated" setting.
My updated revision detects this value. |
Does this value have to be fixed ? (ie.. for a 1:1 guest/host mapping)