From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 2EB477803ED for ; Wed, 20 Sep 2023 08:25:22 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=qTWLrQD7p9hoNZ8F8Ipgb4nEuGKel4V7GYy9VFk/HUQ=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1695198320; v=1; b=Q6QF8PIbcd9PO/NCychuqefsCnxyGVBmEi7H5iA6Umj9oNzXjOZGGGdPRZLsPaPUMHyaT+Iy rXVqaR1BGyPTXeDiEUGiJqoO2QAJylQHdUQ4rMbYUqe3SnoLQzfwMJSBg0EVzL3sD98HAoD0dXn WJGWUIHUPLOx+eDRCsh+dzuw= X-Received: by 127.0.0.2 with SMTP id scNJYY7687511x3zeiUbjeeh; Wed, 20 Sep 2023 01:25:20 -0700 X-Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web11.32531.1695198319826522337 for ; Wed, 20 Sep 2023 01:25:20 -0700 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id BD90F2601CE; Wed, 20 Sep 2023 10:25:17 +0200 (CEST) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl X-Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id Q7JEJc6P5KjB; Wed, 20 Sep 2023 10:25:15 +0200 (CEST) X-Received: from applejack.lan (83.11.3.58.ipv4.supernova.orange.pl [83.11.3.58]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 28557260662; Wed, 20 Sep 2023 10:25:14 +0200 (CEST) From: "Marcin Juszkiewicz" To: devel@edk2.groups.io Cc: Leif Lindholm , Graeme Gregory , Ard Biesheuvel , Marcin Juszkiewicz Subject: [edk2-devel] [PATCH edk2-platforms 1/1] Platform/QemuSbsa: define NS EL2 virtual timer in GTDT Date: Wed, 20 Sep 2023 10:25:09 +0200 Message-ID: <20230920082509.383643-2-marcin.juszkiewicz@linaro.org> In-Reply-To: <20230920082509.383643-1-marcin.juszkiewicz@linaro.org> References: <20230920082509.383643-1-marcin.juszkiewicz@linaro.org> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: jwG2nGnjHlbdOIFEyuDVby0Ox7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=Q6QF8PIb; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Armv8.1+ cpus have Virtual Host Extension (VHE) which added non-secure EL2 virtual timer. This change adds it into GTDT to fullfil Arm BSA (Base System Architecture) requirements. Signed-off-by: Marcin Juszkiewicz --- Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 2 ++ Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf | 1 + Silicon/Qemu/SbsaQemu/AcpiTables/Gtdt.aslc | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc b/Platform/Qemu/SbsaQemu= /SbsaQemu.dsc index be406144c242..8bea9793451a 100644 --- a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc +++ b/Platform/Qemu/SbsaQemu/SbsaQemu.dsc @@ -447,6 +447,8 @@ [PcdsFixedAtBuild.common] gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|27 # PPI #10 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|26 + # PPI #12 + gArmTokenSpaceGuid.PcdArmArchTimerHypVirtIntrNum|28 =20 ## PL031 RealTimeClock gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x60010000 diff --git a/Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf b/Silicon/Qe= mu/SbsaQemu/AcpiTables/AcpiTables.inf index 97021f7971c7..343c75f0b4ec 100644 --- a/Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf +++ b/Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf @@ -36,6 +36,7 @@ [FixedPcd] gArmTokenSpaceGuid.PcdArmArchTimerIntrNum gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum + gArmTokenSpaceGuid.PcdArmArchTimerHypVirtIntrNum =20 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorId gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorRevision diff --git a/Silicon/Qemu/SbsaQemu/AcpiTables/Gtdt.aslc b/Silicon/Qemu/Sb= saQemu/AcpiTables/Gtdt.aslc index ba145aff6413..b5e8f8405d61 100644 --- a/Silicon/Qemu/SbsaQemu/AcpiTables/Gtdt.aslc +++ b/Silicon/Qemu/SbsaQemu/AcpiTables/Gtdt.aslc @@ -91,8 +91,8 @@ SBSA_PLATFORM_TIMER_COUNT, // UINT32 PlatformT= imerCount sizeof(EFI_ACPI_6_3_GENERIC_TIMER_DESCRIPTION_TABLE), // UINT32 PlatformT= imerOffset - 0, // UINT32 VirtualPL= 2TimerGSIV - 0 // UINT32 VirtualPL= 2TimerFlags + FixedPcdGet32 (PcdArmArchTimerHypVirtIntrNum),// UINT32 VirtualPL= 2TimerGSIV + GTDT_GTIMER_FLAGS // UINT32 VirtualPL= 2TimerFlags }, EFI_ACPI_6_3_SBSA_GENERIC_WATCHDOG_STRUCTURE_INIT( SBSAQEMU_WDT_REFRESH_FRAME_BASE, --=20 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108902): https://edk2.groups.io/g/devel/message/108902 Mute This Topic: https://groups.io/mt/101474460/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-