[edk2-devel] [PATCH 1/1] OvmfPkg/Bhyve: Add support for the AMD host bridge

Laszlo Ersek lersek at redhat.com
Tue Nov 24 00:05:03 UTC 2020


On 11/23/20 06:05, Rebecca Cran wrote:
> On bhyve, either an Intel or AMD host bridge can be specified, with the
> default being Intel.
> Both are identical, except the AMD one uses a PCI vendor ID of AMD.
> 
> Signed-off-by: Rebecca Cran <rebecca at bsdio.com>
> ---
>  OvmfPkg/Bhyve/PlatformPei/Platform.c                      | 3 ++-
>  OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c | 6 ++++--
>  2 files changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/OvmfPkg/Bhyve/PlatformPei/Platform.c b/OvmfPkg/Bhyve/PlatformPei/Platform.c
> index 11658d478c3b..9f1900626d6b 100644
> --- a/OvmfPkg/Bhyve/PlatformPei/Platform.c
> +++ b/OvmfPkg/Bhyve/PlatformPei/Platform.c
> @@ -349,7 +349,8 @@ MiscInitialization (
>    // Determine platform type and save Host Bridge DID to PCD
>    //
>    switch (mHostBridgeDevId) {
> -    case 0x1275: // BHYVE
> +    case 0x7432: // BHYVE (AMD hostbridge)
> +    case 0x1275: // BHYVE (Intel hostbridge)
>      case INTEL_82441_DEVICE_ID:
>        PmCmd      = POWER_MGMT_REGISTER_PIIX4 (PCI_COMMAND_OFFSET);
>        Pmba       = POWER_MGMT_REGISTER_PIIX4 (PIIX4_PMBA);
> diff --git a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> index 3b94630ac732..eaade4adeae2 100644
> --- a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> +++ b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> @@ -1066,7 +1066,8 @@ SetPciIntLine (
>      // and should match SeaBIOS src/fw/pciinit.c *_pci_slot_get_irq()
>      //
>      switch (mHostBridgeDevId) {
> -      case 0x1275: // BHYVE
> +      case 0x7432: // BHYVE (AMD hostbridge)
> +      case 0x1275: // BHYVE (Intel hostbridge)
>        case INTEL_82441_DEVICE_ID:
>          Idx -= 1;
>          break;
> @@ -1143,7 +1144,8 @@ PciAcpiInitialization (
>    //
>    mHostBridgeDevId = PcdGet16 (PcdOvmfHostBridgePciDevId);
>    switch (mHostBridgeDevId) {
> -    case 0x1275: // BHYVE
> +    case 0x7432: // BHYVE (AMD hostbridge)
> +    case 0x1275: // BHYVE (Intel hostbridge)
>      case INTEL_82441_DEVICE_ID:
>        Pmba = POWER_MGMT_REGISTER_PIIX4 (PIIX4_PMBA);
>        //
> 

Acked-by: Laszlo Ersek <lersek at redhat.com>



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#67840): https://edk2.groups.io/g/devel/message/67840
Mute This Topic: https://groups.io/mt/78447316/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list