From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) by mx.groups.io with SMTP id smtpd.web09.30713.1606107910155308193 for ; Sun, 22 Nov 2020 21:05:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bsdio.com header.s=xmission header.b=Ob6XE984; spf=none, err=SPF record not found (domain: bsdio.com, ip: 166.70.13.231, mailfrom: rebecca@bsdio.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=bsdio.com; s=xmission; h=Subject:Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gwH4GXYgEOKc+nT/GpaGBWjw7G3akshwMsLDsudeMnU=; b=Ob6XE984d+wepLkjLShEmDVeTl 6bay3kBdxSpCaK0v+ZCzjqRWdgmpX8shKOyIQji/MTcnA3un8R2XU1+9uLJIKDWTR3OnRQM+tD0WD odnkYy57W522iopZVVfZd2yOs6qub/aeJa/0/1hTwcBoktrNl67JLlUv9Tae6NbJ2b9k=; Received: from in02.mta.xmission.com ([166.70.13.52]) by out01.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kh42F-00A3Pe-LN; Sun, 22 Nov 2020 22:05:07 -0700 Received: from mta5.zcs.xmission.com ([166.70.13.69]) by in02.mta.xmission.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kh42E-001NXz-QT; Sun, 22 Nov 2020 22:05:07 -0700 Received: from localhost (localhost [127.0.0.1]) by mta5.zcs.xmission.com (Postfix) with ESMTP id 97C3012801E1; Sun, 22 Nov 2020 22:05:06 -0700 (MST) X-Amavis-Modified: Mail body modified (using disclaimer) - mta5.zcs.xmission.com Received: from mta5.zcs.xmission.com ([127.0.0.1]) by localhost (mta5.zcs.xmission.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Bs0Ppf_jd18N; Sun, 22 Nov 2020 22:05:06 -0700 (MST) Received: from smic.int.bluestop.org (c-174-52-16-57.hsd1.ut.comcast.net [174.52.16.57]) by mta5.zcs.xmission.com (Postfix) with ESMTPSA id 44EEF12803D3; Sun, 22 Nov 2020 22:05:06 -0700 (MST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Peter Grehan Date: Sun, 22 Nov 2020 22:05:02 -0700 Message-Id: <20201123050502.96793-1-rebecca@bsdio.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-XM-SPF: eid=1kh42E-001NXz-QT;;;mid=<20201123050502.96793-1-rebecca@bsdio.com>;;;hst=in02.mta.xmission.com;;;ip=166.70.13.69;;;frm=rebecca@bsdio.com;;;spf=none X-SA-Exim-Connect-IP: 166.70.13.69 X-SA-Exim-Mail-From: rebecca@bsdio.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa06.xmission.com X-Spam-Level: ** X-Spam-Status: No, score=2.0 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,XMNoVowels,XMSubLong autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.7 XMSubLong Long Subject * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; IP=ok Body=1 Fuz1=1] [Fuz2=1] X-Spam-DCC: XMission; sa06 1397; IP=ok Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: **;devel@edk2.groups.io X-Spam-Relay-Country: X-Spam-Timing: total 342 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 11 (3.2%), b_tie_ro: 9 (2.8%), parse: 1.03 (0.3%), extract_message_metadata: 13 (3.9%), get_uri_detail_list: 1.22 (0.4%), tests_pri_-1000: 13 (3.7%), tests_pri_-950: 1.32 (0.4%), tests_pri_-900: 1.08 (0.3%), tests_pri_-90: 55 (16.2%), check_bayes: 54 (15.7%), b_tokenize: 9 (2.6%), b_tok_get_all: 6 (1.8%), b_comp_prob: 1.80 (0.5%), b_tok_touch_all: 34 (9.9%), b_finish: 0.96 (0.3%), tests_pri_0: 232 (67.9%), check_dkim_signature: 0.61 (0.2%), check_dkim_adsp: 37 (10.9%), poll_dns_idle: 34 (9.9%), tests_pri_10: 3.0 (0.9%), tests_pri_500: 9 (2.5%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH 1/1] OvmfPkg/Bhyve: Add support for the AMD host bridge X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Content-Transfer-Encoding: 8bit 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 --- 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); // -- 2.29.2