From patchwork Thu Mar 28 16:38:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 783617 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp2823721wrt; Thu, 28 Mar 2024 09:40:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUp21o2FSOY0Fc+IJMorOyKwSbhxXeWM9NTlh0z7NVASieeuXqoRVyz3km3k7SrccnzU4fE6OG8WGwUuk1X9Gcc X-Google-Smtp-Source: AGHT+IHKke2HkHnfQWz6t+bb0Ag6hbiqckUMjGctUOvtDVpZgdKQ0G+j+oZ3r87sTAWnfITch3Ye X-Received: by 2002:a05:6808:1211:b0:3c3:e61f:dc03 with SMTP id a17-20020a056808121100b003c3e61fdc03mr2998805oil.33.1711644016903; Thu, 28 Mar 2024 09:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711644016; cv=none; d=google.com; s=arc-20160816; b=InevoWi4SMRedB5sc0Dx2GwPQGG2BS+S4ZOGwzbf2C6d0nwiC/GaxXFmIHTwQkbUcR DQyexZ/iBVWgjEKHlUgoiF9Y5h5uiQBxRWbunCpqpcOpppN8sD5TTeVtNUQz36zGsq/v UsaVjjQiWSI/JVBJupLBqT7XCkYl41rhrUFFFRUkRiMZVkMbiRw6cpjB2NDyxN4PvtTP 9kUIXf1Rq2GDroGtUKDsvMZAEHc8e9NHOguqPnpdNgXc8vn+lXyg6AzfagrwEv2jMYao uEFN5nqFbBHqgYSJlHOqkD/wdq76fN5VaM+uP/r/FuhmNIGZ2I5EHhBE98bmm7TNfRj1 7Afw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=vTfoCqm8IVvO3K0QLln0b2QSZ9galsk6SsAbcDclhmE=; fh=mEZyouRtxfiyfuPooUBunR13dbh3J4hBhCqVSpYjthI=; b=ZBgJuNxLGPg+h3hHyhD6X1cmnaleGcsaWXsrDTc6+T4H5EaLbLhtPlQTyQ51EgFHGA NignkqVWo8u65a1LiFun7PH/U75Hqy5fxnD5HXr7qByK5UYn0cCNUK6//OQYKlurKbY0 PdcvcHkflIf3iaSzRgYsm5ord8oio6WDXBpB0iNIJfPw9rWefnug/jAcK43PQo1484N/ KJV/GCVqjSGgNb2sJqSePLDwRRNGDkq0ZAz3wq09Ke0Ol+5vMR9oN37xLiYw5XLyycRW uPmK/owvCcIdyKSE2ltVEVQcRANbI4je44SwxstpCOoQpaVTqVWllQvYWqfPW+mJR1my chiA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bp39-20020a05622a1ba700b00430d4942c48si1743341qtb.365.2024.03.28.09.40.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Mar 2024 09:40:16 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpsmT-0006aw-Kx; Thu, 28 Mar 2024 12:39:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpsmR-0006aR-U2; Thu, 28 Mar 2024 12:39:07 -0400 Received: from muminek.juszkiewicz.com.pl ([213.251.184.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpsmQ-0003JZ-1E; Thu, 28 Mar 2024 12:39:07 -0400 Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id F30CB260836; Thu, 28 Mar 2024 17:39:01 +0100 (CET) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl 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 TWqNmQbt-Rtw; Thu, 28 Mar 2024 17:38:59 +0100 (CET) Received: from applejack.lan (83.11.22.169.ipv4.supernova.orange.pl [83.11.22.169]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 60F1A2600D1; Thu, 28 Mar 2024 17:38:59 +0100 (CET) From: Marcin Juszkiewicz To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Leif Lindholm , Peter Maydell , Radoslaw Biernacki , Marcin Juszkiewicz Subject: [PATCH v2 1/1] docs: sbsa: update specs, add dt note Date: Thu, 28 Mar 2024 17:38:51 +0100 Message-ID: <20240328163851.1386176-1-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Received-SPF: softfail client-ip=213.251.184.221; envelope-from=marcin.juszkiewicz@linaro.org; helo=muminek.juszkiewicz.com.pl X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Hardware of sbsa-ref board is nowadays defined by both BSA and SBSA specifications. Then BBR defines firmware interface. Added note about DeviceTree data passed from QEMU to firmware. It is very minimal and provides only data we use in firmware. Added NUMA information to list of things reported by DeviceTree. Signed-off-by: Marcin Juszkiewicz Reviewed-by: Leif Lindholm --- docs/system/arm/sbsa.rst | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/docs/system/arm/sbsa.rst b/docs/system/arm/sbsa.rst index bca61608ff..2bf22a1d0b 100644 --- a/docs/system/arm/sbsa.rst +++ b/docs/system/arm/sbsa.rst @@ -1,12 +1,16 @@ Arm Server Base System Architecture Reference board (``sbsa-ref``) ================================================================== -While the ``virt`` board is a generic board platform that doesn't match -any real hardware the ``sbsa-ref`` board intends to look like real -hardware. The `Server Base System Architecture -`_ defines a -minimum base line of hardware support and importantly how the firmware -reports that to any operating system. +The ``sbsa-ref`` board intends to look like real hardware (while the ``virt`` +board is a generic board platform that doesn't match any real hardware). + +The hardware part is defined by two specifications: + + - `Base System Architecture `__ (BSA) + - `Server Base System Architecture `__ (SBSA) + +The `Arm Base Boot Requirements `__ (BBR) +specification defines how the firmware reports that to any operating system. It is intended to be a machine for developing firmware and testing standards compliance with operating systems. @@ -35,16 +39,29 @@ includes both internal hardware and parts affected by the qemu command line (i.e. CPUs and memory). As a result it must have a firmware specifically built to expect a certain hardware layout (as you would in a real machine). +Note +'''' + +QEMU provides the guest EL3 firmware with minimal information about hardware +platform using minimalistic devicetree. This is not a Linux devicetree. It is +not even a firmware devicetree. + +It is information passed from QEMU to describe the information a hardware +platform would have other mechanisms to discover at runtime, that are affected +by the QEMU command line. + +Ultimately this devicetree may be replaced by IPC calls to an emulated SCP. + DeviceTree information '''''''''''''''''''''' -The devicetree provided by the board model to the firmware is not intended -to be a complete compliant DT. It currently reports: +The devicetree reports: - CPUs - memory - platform version - GIC addresses + - NUMA node id for CPUs and memory Platform version '''''''''''''''' @@ -70,4 +87,4 @@ Platform version changes: GIC ITS information is present in devicetree. 0.3 - The USB controller is an XHCI device, not EHCI + The USB controller is an XHCI device, not EHCI.