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 AC18CAC1862 for ; Mon, 21 Aug 2023 15:08:13 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=rwTC29yj4WpSnsHmfauMSJSoABRSVZPcijGzlVedHBU=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID: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=1692630492; v=1; b=VNRgwSKQLBjrRHFZmos1b6uktaup3beg13kak6EPAdM9SCrSPwijbFh23+FSx66/rY7oNSYJ 0lmDycqhfSHVe3cq6VuFgoVhIkFocL1C9+JpJ7BCzP/uf/U/huIeibOwowjS2nIKiQsYmlItoW9 lp7HTWlrYQaNNmZL6UFAd5ew= X-Received: by 127.0.0.2 with SMTP id LBdJYY7687511xzWeWe7hTyw; Mon, 21 Aug 2023 08:08:12 -0700 X-Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web10.1861.1692630491314534278 for ; Mon, 21 Aug 2023 08:08:11 -0700 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 74899260AD4; Mon, 21 Aug 2023 17:08:08 +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 aYPgoDSJmPFF; Mon, 21 Aug 2023 17:08:05 +0200 (CEST) X-Received: from applejack.lan (83.11.188.80.ipv4.supernova.orange.pl [83.11.188.80]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id E932326008A; Mon, 21 Aug 2023 17:08:04 +0200 (CEST) From: "Marcin Juszkiewicz" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Graeme Gregory , Marcin Juszkiewicz Subject: [edk2-devel] [PATCH edk2-platforms v4 0/3] Platform/QemuSbsa: add GIC ITS Date: Mon, 21 Aug 2023 17:07:54 +0200 Message-ID: <20230821150757.128280-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: GV2Dvh186Bmv7Xmpk2VkF4fgx7686176AA= 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=VNRgwSKQ; 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 SBSA Reference Platform can have GIC ITS present. And when it has then we can have complex PCI Express setup (and some other things). First patch adds support for GIC ITS. Address is read from TF-A via SMC call. IORT is generated, MADT has ITS information. Linux boots and sees GIC ITS as expected. SMMU information is also provided in IORT and used. Second patch introduces PcdSmmuBase variable to avoid using magic number in IORT generation. Third patch takes care of system where GIC ITS is not present (like QEMU 8.0). If GIC ITS address is not set then there is no mention of it in MADT and there is no IORT, Linux boots. Changes since v3: - use proper amount of nodes (3) in IORT Changes since v2: - no ITS =3D=3D no IORT Changes since v1: - IORT is generated in C - no ITS =3D=3D no ITS node in IORT - introduced PcdSmmuBase Marcin Juszkiewicz (2): Platform/QemuSbsa: add dynamic PcdSmmuBase Platform/SbsaQemu: handle systems without GIC ITS Shashi Mallela (1): Platform/SbsaQemu: add GIC ITS support Silicon/Qemu/SbsaQemu/SbsaQemu.dec | 4 + Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 4 + .../Qemu/SbsaQemu/AcpiTables/AcpiTables.inf | 1 + .../SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf | 2 + .../SbsaQemuPlatformDxe.inf | 1 + .../Include/IndustryStandard/SbsaQemuAcpi.h | 11 + .../Include/IndustryStandard/SbsaQemuSmc.h | 1 + .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 208 +++++++++++++++++- .../SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.c | 10 + 9 files changed, 241 insertions(+), 1 deletion(-) --=20 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107924): https://edk2.groups.io/g/devel/message/107924 Mute This Topic: https://groups.io/mt/100874751/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-