public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ardb@kernel.org>
To: Pete Batard <pete@akeo.ie>
Cc: edk2-devel-groups-io <devel@edk2.groups.io>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	 Leif Lindholm <leif@nuviainc.com>,
	Jeremy Linton <jeremy.linton@arm.com>,
	 Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Subject: Re: [edk2-non-osi][PATCH 1/1] Platform/RaspberryPi: Update TF-A to v2.6 to enable the PCI SMCCC interface
Date: Mon, 10 Jan 2022 15:01:31 +0100	[thread overview]
Message-ID: <CAMj1kXE7G8d4_W+tT-R-uW_=76a3D3-8QjtzTr-ekGmBcByq_w@mail.gmail.com> (raw)
In-Reply-To: <20220110134241.866-1-pete@akeo.ie>

On Mon, 10 Jan 2022 at 14:43, Pete Batard <pete@akeo.ie> wrote:
>
> The RPi4 has a single nonstandard PCI config region. It is broken into two
> pieces, the root port config registers and a window to a single device's
> config space which can move between devices. However there isn't (yet) an
> authoritative public document on this since the available BCM2711 reference
> notes that there is a PCIe root port in the memory map but doesn't describe
> it.
>
> Considering that it's not ECAM compliant, yet relatively simple, it is
> however possible to make use of the newly introduced PCI SMCCC interface
> that was added for the RPi4 platform as part of the TF-A 2.6 release.
>
> As a result, we update the RPi4 TF-A to the 2.6 release version, and, for
> good measure, the RPi3 also, using binaries that were built in an open and
> verifiable manner through the GitHub Actions build script located at
> https://github.com/pftf/pitf.
>
> For more details on the SMCCC interface, see DEN0115 available from:
> https://developer.arm.com/documentation/den0115/latest
>
> Tested for regression on Pi 3 Model B and Pi 4 Model B.
>
> Signed-off-by: Pete Batard <pete@akeo.ie>

Thanks Pete

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>

Pushed as d02501aaa8d9..c1075e9ddd64 (after fixing up the GitHub
Actions log links)

-- 
Ard.


> ---
>  Platform/RaspberryPi/RPi3/TrustedFirmware/Readme.md |   6 +++---
>  Platform/RaspberryPi/RPi3/TrustedFirmware/bl1.bin   | Bin 18853 -> 18853 bytes
>  Platform/RaspberryPi/RPi3/TrustedFirmware/fip.bin   | Bin 53988 -> 53988 bytes
>  Platform/RaspberryPi/RPi4/TrustedFirmware/Readme.md |   6 +++---
>  Platform/RaspberryPi/RPi4/TrustedFirmware/bl31.bin  | Bin 41067 -> 45163 bytes
>  5 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/Platform/RaspberryPi/RPi3/TrustedFirmware/Readme.md b/Platform/RaspberryPi/RPi3/TrustedFirmware/Readme.md
> index cd88e0345c91..a136cfb9e413 100644
> --- a/Platform/RaspberryPi/RPi3/TrustedFirmware/Readme.md
> +++ b/Platform/RaspberryPi/RPi3/TrustedFirmware/Readme.md
> @@ -2,14 +2,14 @@ ARM Trusted Firmware for Raspberry Pi 3
>  =======================================
>
>  The `bl1.bin` and `fip.bin` TF-A binaries found in this directory were built from the
> -[official TF-A 2.5 release](https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tag/?h=v2.5)
> +[official TF-A 2.6 release](https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tag/?h=v2.6)
>  through a [GitHub build script](https://github.com/pftf/pitf/blob/master/.github/workflows/build.yml)
>  that is designed to provide evidence that these binaries match the vanilla TF-A source.
>
>  Per the [GitHub Actions log](https://github.com/pftf/pitf/runs/2822874196),
>  the SHA-256 sums for the blobs can be validated to be as follows:
> -- `bl1.bin`: `5ba701a7e977d308a19928e19937107387677d52a1a4d628a5c2bb4e795aae8b`
> -- `fip.bin`: `0c3f8a3e8192e5dcb3bdc5867976e4277e9d948159a92ee71a54e92cb8dce9a3`
> +- `bl1.bin`: `787acb2ca1c99678dcdec70a64b9602f8f8f658a4abb0b3f7edfa5f5efb22f73`
> +- `fip.bin`: `fd85f9a230aad88f6a59cf0c5d88e6067f23fb8080c6b8bdc61f1a5f6cbbf9ec`
>
>  For Raspberry Pi 3 usage, TF-A was built using the command:
>  ```
> diff --git a/Platform/RaspberryPi/RPi3/TrustedFirmware/bl1.bin b/Platform/RaspberryPi/RPi3/TrustedFirmware/bl1.bin
> index edfb46702e801a102c9d18e4a52bb4ab9bd72a47..cbbde5f744a7e2f50232a2e6c1a9de1d5254669c 100644
> GIT binary patch
...
> diff --git a/Platform/RaspberryPi/RPi3/TrustedFirmware/fip.bin b/Platform/RaspberryPi/RPi3/TrustedFirmware/fip.bin
> index 8feac04185377c5b9320a8bc32380b7b3b8ce43d..662d638e181af0461ef63058c459a48ef12971dd 100644
> GIT binary patch
...
> diff --git a/Platform/RaspberryPi/RPi4/TrustedFirmware/Readme.md b/Platform/RaspberryPi/RPi4/TrustedFirmware/Readme.md
> index 6631c05400dc..6db49445073a 100644
> --- a/Platform/RaspberryPi/RPi4/TrustedFirmware/Readme.md
> +++ b/Platform/RaspberryPi/RPi4/TrustedFirmware/Readme.md
> @@ -2,15 +2,15 @@ ARM Trusted Firmware for Raspberry Pi 4
>  =======================================
>
>  The `bl31.bin` TF-A binary found in this directory was built from the
> -[official TF-A 2.5 release](https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tag/?h=v2.5)
> +[official TF-A 2.6 release](https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tag/?h=v2.6)
>  through a [GitHub build script](https://github.com/pftf/pitf/blob/master/.github/workflows/build.yml)
>  that is designed to provide evidence that these binaries match the vanilla TF-A source.
>
>  Per the [GitHub Actions log](https://github.com/pftf/pitf/runs/2822874196),
>  the SHA-256 sum for the bin can be validated to be as follows:
> -- `bl31.bin`: `59c4486a0a257c8d630d8ea39d6a13d038cd50be4fc9a81985bf2c32a7c3fca6`
> +- `bl31.bin`: `48f129b3064fd44992c9903e8207eeee09f67edb6d06b14eba8e10614ac5c5b7`
>
>  For Raspberry Pi 4 usage, TF-A was built using the command:
>  ```
> -make PLAT=rpi4 RPI3_PRELOADED_DTB_BASE=0x1F0000 PRELOADED_BL33_BASE=0x20000 SUPPORT_VFP=1 DEBUG=0 all
> +make PLAT=rpi4 RPI3_PRELOADED_DTB_BASE=0x1F0000 PRELOADED_BL33_BASE=0x20000 SUPPORT_VFP=1 SMC_PCI_SUPPORT=1 DEBUG=0 all
>  ```
> diff --git a/Platform/RaspberryPi/RPi4/TrustedFirmware/bl31.bin b/Platform/RaspberryPi/RPi4/TrustedFirmware/bl31.bin
> index c97aab3895bd3a831d1a3f8c6759959acf2dba04..37aa0c433e9ec4b32bacf383532125f722c1cfc9 100644
> GIT binary patch
...
>
> --
> 2.33.0.windows.2
>

      reply	other threads:[~2022-01-10 14:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 13:42 [edk2-non-osi][PATCH 1/1] Platform/RaspberryPi: Update TF-A to v2.6 to enable the PCI SMCCC interface Pete Batard
2022-01-10 14:01 ` Ard Biesheuvel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMj1kXE7G8d4_W+tT-R-uW_=76a3D3-8QjtzTr-ekGmBcByq_w@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox